]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: Fix duplicate error messages 23287/head
Stephan Müller [Fri, 27 Jul 2018 14:15:07 +0000 (16:15 +0200)]
mgr/dashboard: Fix duplicate error messages

Duplicate error messages currently appear if the task wrapper service is
used. It calls 'notifyTask' on a failed task, this would be fine if
we didn't have the API interceptor, which watches all API requests and
triggers 'notifyTask' itself if an error appears.

Fixes issue #25139

Signed-off-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #23281 from tspmelo/wip-opaque
Lenz Grimmer [Fri, 27 Jul 2018 10:56:46 +0000 (12:56 +0200)]
Merge pull request #23281 from tspmelo/wip-opaque

mgr/dashboard: Fix localStorage problem in Jest

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Fix localStorage problem in Jest 23281/head
Tiago Melo [Fri, 27 Jul 2018 09:51:30 +0000 (10:51 +0100)]
mgr/dashboard: Fix localStorage problem in Jest

Latest version of Jest was showing the following error:
"SecurityError: localStorage is not available for opaque origins"

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #23254 from tchaikov/wip-cmake-cleanup
Kefu Chai [Fri, 27 Jul 2018 05:12:54 +0000 (13:12 +0800)]
Merge pull request #23254 from tchaikov/wip-cmake-cleanup

cmake: modularize src/perfglue

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23255 from tchaikov/wip-seastar-yaml-cpp
Kefu Chai [Fri, 27 Jul 2018 05:12:28 +0000 (13:12 +0800)]
Merge pull request #23255 from tchaikov/wip-seastar-yaml-cpp

seastar: lower the required yaml-cpp version to 0.5.1

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #23253 from smithfarm/wip-doc-dev-toc
Kefu Chai [Fri, 27 Jul 2018 05:09:49 +0000 (13:09 +0800)]
Merge pull request #23253 from smithfarm/wip-doc-dev-toc

doc: make it easier to reach the old dev doc TOC

Reviewed-by: Dan Mick <dan.mick@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agodoc/dev/internals: drop :orphan: directive 23253/head
Nathan Cutler [Fri, 27 Jul 2018 03:53:18 +0000 (05:53 +0200)]
doc/dev/internals: drop :orphan: directive

Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #23165 from smithfarm/wip-doc-snaptrim-nit
Nathan Cutler [Thu, 26 Jul 2018 22:06:34 +0000 (00:06 +0200)]
Merge pull request #23165 from smithfarm/wip-doc-snaptrim-nit

doc/rados/operations/pg-states: fix PG state names, part 2

Reviewed-by: Jos Collin <jcollin@redhat.com>
6 years agoMerge pull request #23072 from fullerdj/wip-djf-24687
Josh Durgin [Thu, 26 Jul 2018 17:46:34 +0000 (10:46 -0700)]
Merge pull request #23072 from fullerdj/wip-djf-24687

mon/OSDMonitor: Warnings for expected_num_objects

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #23268 from ceph/simple-testinfra-version
Alfredo Deza [Thu, 26 Jul 2018 17:43:46 +0000 (13:43 -0400)]
Merge pull request #23268 from ceph/simple-testinfra-version

ceph-volume: do not pin the testinfra version for the simple tests

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume: do not pin the testinfra version for the simple tests 23268/head
Andrew Schoen [Thu, 26 Jul 2018 17:41:15 +0000 (12:41 -0500)]
ceph-volume: do not pin the testinfra version for the simple tests

For testinfra to work with a 2.6.x version of ansible it must use the
latest version.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agomon/OSDMonitor: Warn if missing expected_num_objects 23072/head
Douglas Fuller [Fri, 29 Jun 2018 17:55:31 +0000 (13:55 -0400)]
mon/OSDMonitor: Warn if missing expected_num_objects

When creating a pool on filestore, warn if the user appears to be
creating a pool to store a large number of objects but omitted the
expected_num_objects parameter. Create the pool anyway.

Fixes: http://tracker.ceph.com/issues/24687
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
6 years agoMerge pull request #23263 from ceph/simple-ansible-version
Andrew Schoen [Thu, 26 Jul 2018 15:22:46 +0000 (15:22 +0000)]
Merge pull request #23263 from ceph/simple-ansible-version

ceph-volume: update version of ansible to 2.6.x for simple tests

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume: update version of ansible to 2.6.x for simple tests 23263/head
Andrew Schoen [Thu, 26 Jul 2018 15:09:17 +0000 (10:09 -0500)]
ceph-volume: update version of ansible to 2.6.x for simple tests

ceph-ansible now requires a 2.5.x or 2.6.x version of ansible if you're
using the master branch. This updates our functional tests for the
simple subcommand to use a 2.6.x version of ansible.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23256 from trociny/wip-25114
Jason Dillaman [Thu, 26 Jul 2018 13:29:23 +0000 (09:29 -0400)]
Merge pull request #23256 from trociny/wip-25114

test/pybind: fix test_rbd.TestClone.test_trash_snapshot

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23168 from tchaikov/wip-dpdk-fixes
Kefu Chai [Thu, 26 Jul 2018 12:23:52 +0000 (20:23 +0800)]
Merge pull request #23168 from tchaikov/wip-dpdk-fixes

msg/async: fix FTBFS of dpdk

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23200 from votdev/bug_25068
Lenz Grimmer [Thu, 26 Jul 2018 12:01:15 +0000 (14:01 +0200)]
Merge pull request #23200 from votdev/bug_25068

mgr/dashboard: RGW is not working if an URL prefix is defined

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #22906 from tspmelo/wip-improve-summary
Lenz Grimmer [Thu, 26 Jul 2018 12:00:11 +0000 (14:00 +0200)]
Merge pull request #22906 from tspmelo/wip-improve-summary

mgr/dashboard: Improve SummaryService and TaskWrapperService

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agodo_cmake: fail if cmake fails 23255/head
Kefu Chai [Thu, 26 Jul 2018 07:03:49 +0000 (15:03 +0800)]
do_cmake: fail if cmake fails

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: add Findfmt.cmake
Kefu Chai [Thu, 26 Jul 2018 07:29:12 +0000 (15:29 +0800)]
cmake: add Findfmt.cmake

the cmake config provided by fmt-devel-3.0.2 does not offer fmt::fmt target,
so we need to offer a Findfmt.cmake to do this.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agodoc: make it easier to reach the old dev doc TOC
Nathan Cutler [Thu, 26 Jul 2018 04:21:04 +0000 (06:21 +0200)]
doc: make it easier to reach the old dev doc TOC

Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agotest/pybind: fix test_rbd.TestClone.test_trash_snapshot 23256/head
Mykola Golub [Thu, 26 Jul 2018 07:34:57 +0000 (10:34 +0300)]
test/pybind: fix test_rbd.TestClone.test_trash_snapshot

Fixes: http://tracker.ceph.com/issues/25114
Signed-off-by: Mykola Golub <mgolub@suse.com>
6 years agocmake: make cpu_profiler a library target 23254/head
Kefu Chai [Thu, 26 Jul 2018 05:50:29 +0000 (13:50 +0800)]
cmake: make cpu_profiler a library target

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: make heap_profiler a library target
Kefu Chai [Thu, 26 Jul 2018 05:41:55 +0000 (13:41 +0800)]
cmake: make heap_profiler a library target

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: import allocator libraries in a better way
Kefu Chai [Thu, 26 Jul 2018 05:28:02 +0000 (13:28 +0800)]
cmake: import allocator libraries in a better way

* instead expose the paths, it'd better to expose a library target.
* remove HAVE_LIBJEMALLOC, as it not used anywhere.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoseastar: lower the required yaml-cpp version to 0.5.1
Kefu Chai [Thu, 26 Jul 2018 06:40:49 +0000 (14:40 +0800)]
seastar: lower the required yaml-cpp version to 0.5.1

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23191 from dillaman/wip-23398
Mykola Golub [Thu, 26 Jul 2018 05:06:33 +0000 (08:06 +0300)]
Merge pull request #23191 from dillaman/wip-23398

rbd: improved trash snapshot namespace handling

Reviewed-by: songweibin <song.weibin@zte.com.cn>
Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #23228 from tchaikov/wip-ceph-dencoder
Kefu Chai [Thu, 26 Jul 2018 04:11:39 +0000 (12:11 +0800)]
Merge pull request #23228 from tchaikov/wip-ceph-dencoder

test: move ceph-dencoder to src/tools

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #20366 from Synesis-LLC/master
Kefu Chai [Thu, 26 Jul 2018 03:50:26 +0000 (11:50 +0800)]
Merge pull request #20366 from Synesis-LLC/master

doc: print pg peering in SVG instead of PNG

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #23248 from linuxbox2/rgw-fix-relaxed
Matt Benjamin [Wed, 25 Jul 2018 22:33:54 +0000 (18:33 -0400)]
Merge pull request #23248 from linuxbox2/rgw-fix-relaxed

rgw: fix build

6 years agoMerge pull request #22758 from ricardoasmarques/wip-user-management
Lenz Grimmer [Wed, 25 Jul 2018 22:27:07 +0000 (00:27 +0200)]
Merge pull request #22758 from ricardoasmarques/wip-user-management

mgr/dashboard: Ceph dashboard user management from the UI

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agorgw: fix build 23248/head
Matt Benjamin [Wed, 25 Jul 2018 21:21:11 +0000 (17:21 -0400)]
rgw: fix build

merge crossed with #23074

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge PR #23247 into master
Sage Weil [Wed, 25 Jul 2018 21:23:42 +0000 (16:23 -0500)]
Merge PR #23247 into master

* refs/pull/23247/head:
Revert "rpm,deb: chown bluestore block* links to ceph.ceph on install/upgrade"
Revert "rpm,deb: fix chown to use -h"
rpm,deb: fix chown to use -h
rpm,deb: chown bluestore block* links to ceph.ceph on install/upgrade

Reviewed-by: Nathan Cutler <ncutler@suse.com>
6 years agoRevert "rpm,deb: chown bluestore block* links to ceph.ceph on install/upgrade" 23247/head
Sage Weil [Wed, 25 Jul 2018 21:22:09 +0000 (16:22 -0500)]
Revert "rpm,deb: chown bluestore block* links to ceph.ceph on install/upgrade"

This reverts commit 58cde3fd793c037beca6645cc30b2ae1c30e2af1.

This was only needed for luminous and mimic.  We are keeping these commits in master (and reverting them) only so that the cherry-pick -x references work.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoRevert "rpm,deb: fix chown to use -h"
Sage Weil [Wed, 25 Jul 2018 21:22:04 +0000 (16:22 -0500)]
Revert "rpm,deb: fix chown to use -h"

This reverts commit 92207c76b91c26c0558688a358ade7c0d94d1b59.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23234 from ceph/wip-rm24784
Alfredo Deza [Wed, 25 Jul 2018 20:52:40 +0000 (16:52 -0400)]
Merge pull request #23234 from ceph/wip-rm24784

ceph-volume: PVolumes.get() should return one PV when using name or uuid

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #23237 from neha-ojha/wip-whitelist-slow-requests
Yuri Weinstein [Wed, 25 Jul 2018 19:36:17 +0000 (12:36 -0700)]
Merge pull request #23237 from neha-ojha/wip-whitelist-slow-requests

qa/tasks/thrashosds-health.yaml: whitelist slow requests

6 years agoMerge pull request #23141 from alfredodeza/wip-rm24993
Alfredo Deza [Wed, 25 Jul 2018 19:02:00 +0000 (15:02 -0400)]
Merge pull request #23141 from alfredodeza/wip-rm24993

ceph-volume process.call with stdin in Python 3 fix

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #22533 from linuxbox2/wip-rgw-24507
Matt Benjamin [Wed, 25 Jul 2018 18:41:27 +0000 (14:41 -0400)]
Merge pull request #22533 from linuxbox2/wip-rgw-24507

rgw: add option for relaxed region enforcement

6 years agoqa/tasks/thrashosds-health.yaml: whitelist slow requests 23237/head
Neha Ojha [Wed, 25 Jul 2018 17:20:12 +0000 (10:20 -0700)]
qa/tasks/thrashosds-health.yaml: whitelist slow requests

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #23074 from tchaikov/wip-seastar-config
Kefu Chai [Wed, 25 Jul 2018 17:02:11 +0000 (01:02 +0800)]
Merge pull request #23074 from tchaikov/wip-seastar-config

common/config: add ConfigProxy for crimson

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agomgr/dashboard: Ceph dashboard user management 22758/head
Ricardo Marques [Tue, 12 Jun 2018 14:55:08 +0000 (15:55 +0100)]
mgr/dashboard: Ceph dashboard user management

Fixes: https://tracker.ceph.com/issues/24446
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Skip tab focus on "show/hide password" button
Ricardo Marques [Sat, 21 Jul 2018 11:10:14 +0000 (12:10 +0100)]
mgr/dashboard: Skip tab focus on "show/hide password" button

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add 'onCancel' output for 'ConfirmationModal'
Ricardo Marques [Mon, 2 Jul 2018 10:54:42 +0000 (11:54 +0100)]
mgr/dashboard: Add 'onCancel' output for 'ConfirmationModal'

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add cd-select-badges component
Ricardo Marques [Mon, 18 Jun 2018 15:24:31 +0000 (16:24 +0100)]
mgr/dashboard: Add cd-select-badges component

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agoceph-volume: PVolumes.get() should return one PV when using name or uuid 23234/head
Andrew Schoen [Wed, 25 Jul 2018 16:47:27 +0000 (11:47 -0500)]
ceph-volume: PVolumes.get() should return one PV when using name or uuid

It is possible to get duplicated pv entires from the 'pvs' lvm command.
If we're using PVolumes.get() with either pv_name or pv_uuid we can
safely return a single PVolume object. However, if we use pv_tags with
PVolumes.get() we must still raise a MultiplePVsError if many pvs
are found that have the tags, because they are not guaranteed to be the
same pv, as would be the case with pv_name or pv_uuid.

Fixes: http://tracker.ceph.com/issues/24784
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge PR #23232 into master
Sage Weil [Wed, 25 Jul 2018 16:38:52 +0000 (11:38 -0500)]
Merge PR #23232 into master

* refs/pull/23232/head:
mon: don't require CEPHX_V2 from mons until nautilus

6 years agoceph-volume tests run to log_descriptors, verifying utf-8 23141/head
Alfredo Deza [Wed, 25 Jul 2018 12:40:53 +0000 (08:40 -0400)]
ceph-volume tests run to log_descriptors, verifying utf-8

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume process decode to utf-8 when logging descriptors
Alfredo Deza [Wed, 25 Jul 2018 12:39:16 +0000 (08:39 -0400)]
ceph-volume process decode to utf-8 when logging descriptors

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.process ensure that stdin works on py3 and py2.7
Alfredo Deza [Fri, 20 Jul 2018 13:49:59 +0000 (09:49 -0400)]
ceph-volume tests.process ensure that stdin works on py3 and py2.7

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume process encode stdin with utf-8 to prevent bytes TypeError
Alfredo Deza [Fri, 20 Jul 2018 13:48:38 +0000 (09:48 -0400)]
ceph-volume process encode stdin with utf-8 to prevent bytes TypeError

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agomon: don't require CEPHX_V2 from mons until nautilus 23232/head
Sage Weil [Wed, 25 Jul 2018 16:22:45 +0000 (11:22 -0500)]
mon: don't require CEPHX_V2 from mons until nautilus

The mimic 13.2.0 didn't have it.

Fixes: 3dc80e5f9b6ebf1bc1cecbd95b288005216bdbec
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #23231 from tchaikov/wip-fio
Kefu Chai [Wed, 25 Jul 2018 16:11:29 +0000 (00:11 +0800)]
Merge pull request #23231 from tchaikov/wip-fio

tests/fio: fix build failures and ensure this is covered by run-make-check.sh

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agotools/ceph_dencoder: use full path for including headers 23228/head
Kefu Chai [Wed, 25 Jul 2018 16:07:32 +0000 (00:07 +0800)]
tools/ceph_dencoder: use full path for including headers

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Add match validator
Ricardo Marques [Mon, 18 Jun 2018 11:42:08 +0000 (12:42 +0100)]
mgr/dashboard: Add match validator

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add user management API
Ricardo Marques [Wed, 20 Jun 2018 15:03:39 +0000 (16:03 +0100)]
mgr/dashboard: Add user management API

Fixes: https://tracker.ceph.com/issues/24446
Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agomgr/dashboard: Add asserError helper method
Ricardo Marques [Wed, 20 Jun 2018 15:05:22 +0000 (16:05 +0100)]
mgr/dashboard: Add asserError helper method

Signed-off-by: Ricardo Marques <rimarques@suse.com>
6 years agocmake: sync up with upstream FIO 23231/head
Kefu Chai [Wed, 25 Jul 2018 14:47:18 +0000 (22:47 +0800)]
cmake: sync up with upstream FIO

to pick up the change to FTBFS with C++ engine.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Improve SummaryService and TaskWrapperService 22906/head
Tiago Melo [Thu, 5 Jul 2018 16:45:32 +0000 (17:45 +0100)]
mgr/dashboard: Improve SummaryService and TaskWrapperService

When you create a new task, and it stays running, it will be added automatically
to the summary data.

This will allows for us to deal with it more quickly, by subscribing
to the summaryService, and removes the need to pass a runningTasks array
between services.

Added 3 new methods to SummaryService.

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #22695 from a2batic/scss
Lenz Grimmer [Wed, 25 Jul 2018 14:32:16 +0000 (16:32 +0200)]
Merge pull request #22695 from a2batic/scss

mgr/dashboard: Color variables for color codes

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #23100 from adamemerson/wip-robustly-notify
Casey Bodley [Wed, 25 Jul 2018 14:30:05 +0000 (10:30 -0400)]
Merge pull request #23100 from adamemerson/wip-robustly-notify

rgw: Robustly notify

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoMerge pull request #23183 from ricardoasmarques/wip-fix-url-prefix
Ricardo Dias [Wed, 25 Jul 2018 14:20:18 +0000 (15:20 +0100)]
Merge pull request #23183 from ricardoasmarques/wip-fix-url-prefix

mgr/dashboard: Fix cherrypy static content URL prefix config

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: Color variables for color codes 22695/head
a2batic [Sat, 21 Jul 2018 00:59:47 +0000 (02:59 +0200)]
mgr/dashboard: Color variables for color codes
Assign variables to colors present in css files
Changed navigation icons padding because the notification dropdown was going out of window.
Fixes: http://tracker.ceph.com/issues/24575
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
6 years agoMerge pull request #22857 from tspmelo/wip-move-test-file
Lenz Grimmer [Wed, 25 Jul 2018 13:13:20 +0000 (15:13 +0200)]
Merge pull request #22857 from tspmelo/wip-move-test-file

mgr/dashboard: Move unit-test-helper into the new testing folder

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #22624 from ashutosh-narkar/opa-ceph
Matt Benjamin [Wed, 25 Jul 2018 13:09:32 +0000 (09:09 -0400)]
Merge pull request #22624 from ashutosh-narkar/opa-ceph

rgw: Initial work for OPA-Ceph integration

6 years agotest: move ceph-dencoder to src/tools
Kefu Chai [Wed, 25 Jul 2018 13:09:18 +0000 (21:09 +0800)]
test: move ceph-dencoder to src/tools

as it belongs to ceph-common, not ceph-test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #23220 into master
Sage Weil [Wed, 25 Jul 2018 12:00:23 +0000 (07:00 -0500)]
Merge PR #23220 into master

* refs/pull/23220/head:
osd/OSDMap: CRUSH_TUNABLES5 added in jewel, not kraken

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agomgr/dashboard: RGW is not working if an URL prefix is defined 23200/head
Volker Theile [Tue, 24 Jul 2018 07:28:49 +0000 (09:28 +0200)]
mgr/dashboard: RGW is not working if an URL prefix is defined

Fixes https://tracker.ceph.com/issues/25068

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoInitial work for OPA-Ceph integration 22624/head
Ashutosh Narkar [Wed, 30 May 2018 23:49:30 +0000 (16:49 -0700)]
Initial work for OPA-Ceph integration

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
6 years agocommon/config_proxy: document Config{Values,Proxy} 23074/head
Kefu Chai [Wed, 25 Jul 2018 04:56:12 +0000 (12:56 +0800)]
common/config_proxy: document Config{Values,Proxy}

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest/crimson: update test_alien_echo.cc with f80b848d
Kefu Chai [Sat, 21 Jul 2018 12:40:14 +0000 (20:40 +0800)]
test/crimson: update test_alien_echo.cc with f80b848d

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocmake: build c-ares if it's not found or not new enough
Kefu Chai [Thu, 19 Jul 2018 16:14:03 +0000 (00:14 +0800)]
cmake: build c-ares if it's not found or not new enough

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoc-ares: add c-ares submodule
Kefu Chai [Thu, 19 Jul 2018 16:11:31 +0000 (00:11 +0800)]
c-ares: add c-ares submodule

c-ares is a C library for asynchronous DNS requests, seastar requires
c-ares 1.13.0 or up. but xenial and EPEL offer 1.10.0, so we need to
build and ship it as part of Ceph.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/common: add ceph::common::ConfigProxy
Kefu Chai [Sat, 14 Jul 2018 04:02:55 +0000 (12:02 +0800)]
crimson/common: add ceph::common::ConfigProxy

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: change md_config_obs_impl's template param to ConfigProxy
Kefu Chai [Wed, 18 Jul 2018 07:57:46 +0000 (15:57 +0800)]
common/config: change md_config_obs_impl's template param to ConfigProxy

we were using LockPolicy as this tempalte class's template parameter,
but turns out ConfigProxy is a better parameter for it. as ConfigProxy is
"closer" to md_config_obs_impl than LockPolicy is.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: change md_config_impl<> back to plain class
Kefu Chai [Wed, 18 Jul 2018 07:55:55 +0000 (15:55 +0800)]
common/config: change md_config_impl<> back to plain class

now that all of the variables that change depending on seastar/alien
have been extracted out of md_config_impl<>, there is no need to make it
a template anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agorpm,install-deps,cmake: install {c-ares,fmt}-devel
Kefu Chai [Wed, 18 Jul 2018 06:22:45 +0000 (14:22 +0800)]
rpm,install-deps,cmake: install {c-ares,fmt}-devel

* ceph.spec.in: c-ares-devel and fmt-devel are installed as
  dependencies fo seastar.
* install-deps.sh: libfmt-dev is missing in xenial, so we only
  install libc-ares-dev for ubuntu in install-deps.sh .
* cmake: build libfmt if it's not found.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agofmt: add libfmt submodule
Kefu Chai [Wed, 18 Jul 2018 06:17:56 +0000 (14:17 +0800)]
fmt: add libfmt submodule

libfmt is a library for fast printf() support in C++, it is used by
seastar. but it's missing in xenial. so we need to ship it in our dist
tarball and build if if it's not found in system.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoseastar: use the modernized cmake
Kefu Chai [Tue, 17 Jul 2018 16:17:13 +0000 (00:17 +0800)]
seastar: use the modernized cmake

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoseastar: sync with upstream
Kefu Chai [Tue, 17 Jul 2018 07:52:14 +0000 (15:52 +0800)]
seastar: sync with upstream

to pick up the commit of 67bb775e, which marks
foreign_ptr::get_owner_shard() const.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: mark do_argv_commands() const
Kefu Chai [Sun, 15 Jul 2018 11:31:01 +0000 (19:31 +0800)]
common/config: mark do_argv_commands() const

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocommon/config: extract ObserverMgr from md_config_impl<>
Kefu Chai [Sun, 15 Jul 2018 10:14:43 +0000 (18:14 +0800)]
common/config: extract ObserverMgr from md_config_impl<>

crimson will have sharded<PGShard> (name may vary in future), and
underlying ObjectStore instances. they will be consumers of crimson
ConfigProxy, and will register them as an observer of config changes.
but as always, in crimson osd, world is sharded, each ConfigProxy will
only take care of the sharded services living on the shard which it is
in charge of. in other words, unlike alien's ConfigProxy, the
"observers" data structure is not shared, they are sharded as well. so
we need to extract the observers out of md_config_impl<>, and move it
into ConfigProxy.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoosd/OSDMap: CRUSH_TUNABLES5 added in jewel, not kraken 23220/head
Sage Weil [Wed, 25 Jul 2018 01:30:54 +0000 (20:30 -0500)]
osd/OSDMap: CRUSH_TUNABLES5 added in jewel, not kraken

In 0ceb5c0f3694725c7043ea99b077816da2ca44a7 I screwed up the version that
CRUSH_TUANBLES5 (chooseleaf_stable) was added: it comes from
043a7378ec4e828f2568ea3906d9076848161ccd, v10.0.3, which leads up to
jewel.

This, in turn, means that when jewel tunables are set we do not actually
encode the jewel tunables.  At least, luminous doesn't; jewel uses a
different code path to decode how to encode the OSDMap.

This, in turn, leads to crc errors:

- luminous mons running
- require_osd_release is jewel
- jewel tunables are set.  mon in-memory crushmap gets chooseleaf_stable=1
- osds are luminous, but don't see the new field in the crushmap
- upgrade finishes, and require_osd_Release becomes luminous
- the full osdmap encodes the chooseleaf_stable field, finally, and it
  is 1
- the osds try to encode the same thing, but their crushmap has 0.
-> crc mismatch

This is a regression from 0ceb5c0f3694725c7043ea99b077816da2ca44a7,
backported to luminous in 686b054f48c50859bd5e8bad93007bf9d7d7899c in
12.2.6.

Fixes: 686b054f48c50859bd5e8bad93007bf9d7d7899c
Fixes: http://tracker.ceph.com/issues/25057
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/dashboard: prettify code 22857/head
Tiago Melo [Wed, 4 Jul 2018 16:20:56 +0000 (17:20 +0100)]
mgr/dashboard: prettify code

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Move unit-test-helper into the new testing folder
Tiago Melo [Wed, 4 Jul 2018 15:56:43 +0000 (16:56 +0100)]
mgr/dashboard: Move unit-test-helper into the new testing folder

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #22996 from batrick/mds-state-dot
Gregory Farnum [Tue, 24 Jul 2018 21:22:08 +0000 (14:22 -0700)]
Merge pull request #22996 from batrick/mds-state-dot

doc: add mds state transition diagram

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #22581 from fullerdj/wip-djf-24544
Matt Benjamin [Tue, 24 Jul 2018 20:39:17 +0000 (16:39 -0400)]
Merge pull request #22581 from fullerdj/wip-djf-24544

rgw: change default rgw_thread_pool_size to 512

6 years agomds: remove ascii art version of mds state diagram 22996/head
Patrick Donnelly [Sat, 21 Jul 2018 04:00:14 +0000 (21:00 -0700)]
mds: remove ascii art version of mds state diagram

Now refer to the user documentation. Any updates should go there!

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agodoc: create mds state documentation
Patrick Donnelly [Wed, 11 Jul 2018 19:56:06 +0000 (12:56 -0700)]
doc: create mds state documentation

Fixes: http://tracker.ceph.com/issues/22989
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #20330 from joke-lee/wip-rgw-postobjloc
Yuri Weinstein [Tue, 24 Jul 2018 16:19:47 +0000 (09:19 -0700)]
Merge pull request #20330 from joke-lee/wip-rgw-postobjloc

rgw: return valid Location element, PostObj

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
6 years agoMerge pull request #22937 from tianshan/fix_index_suggest_ut_fail
Yuri Weinstein [Tue, 24 Jul 2018 16:18:01 +0000 (09:18 -0700)]
Merge pull request #22937 from tianshan/fix_index_suggest_ut_fail

rgw: continue enoent index in dir_suggest

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
6 years agoMerge pull request #23095 from trociny/wip-24898
Yuri Weinstein [Tue, 24 Jul 2018 16:17:11 +0000 (09:17 -0700)]
Merge pull request #23095 from trociny/wip-24898

 librbd: ensure exclusive lock acquired when removing sync point snapshots

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #23167 from tchaikov/wip-tools-rbd-cleanup
Yuri Weinstein [Tue, 24 Jul 2018 16:16:50 +0000 (09:16 -0700)]
Merge pull request #23167 from tchaikov/wip-tools-rbd-cleanup

tools/rbd: assert(g_ceph_context) not g_conf

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #22419 from votdev/hide_progress_bar
Lenz Grimmer [Tue, 24 Jul 2018 15:40:43 +0000 (17:40 +0200)]
Merge pull request #22419 from votdev/hide_progress_bar

mgr/dashboard: Hide progress bar in case of an error

6 years agoMerge pull request #23182 from alfredodeza/wip-ansible-26
Andrew Schoen [Tue, 24 Jul 2018 14:22:35 +0000 (14:22 +0000)]
Merge pull request #23182 from alfredodeza/wip-ansible-26

ceph-volume tests/functional use Ansible 2.6

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #23132 from dillaman/wip-25000
Mykola Golub [Tue, 24 Jul 2018 13:43:13 +0000 (16:43 +0300)]
Merge pull request #23132 from dillaman/wip-25000

librbd: deep-copy should not write to objects that cannot exist

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoqa/workunits/rbd: updates to the clone v2 CLI tests 23191/head
Jason Dillaman [Mon, 23 Jul 2018 18:58:51 +0000 (14:58 -0400)]
qa/workunits/rbd: updates to the clone v2 CLI tests

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: clone detach should attempt to remove trashed snapshots
Jason Dillaman [Mon, 23 Jul 2018 14:57:44 +0000 (10:57 -0400)]
librbd: clone detach should attempt to remove trashed snapshots

Fixes: http://tracker.ceph.com/issues/23398
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: new helper method for retrieving a single snapshot info record
Jason Dillaman [Mon, 23 Jul 2018 18:15:05 +0000 (14:15 -0400)]
librbd: new helper method for retrieving a single snapshot info record

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: reduce log level of write denied permission error
Jason Dillaman [Mon, 23 Jul 2018 15:40:20 +0000 (11:40 -0400)]
librbd: reduce log level of write denied permission error

The watch OSD op requires write permission since -EPERM will still
be returned to the user.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>