]>
git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
Sage Weil [Fri, 1 Nov 2019 14:10:28 +0000 (09:10 -0500)]
Merge PR #31320 into master
* refs/pull/31320/head:
ceph-daemon: fix os.mkdir call
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Fri, 1 Nov 2019 14:05:49 +0000 (09:05 -0500)]
ceph-daemon: fix os.mkdir call
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 1 Nov 2019 13:57:33 +0000 (08:57 -0500)]
Merge PR #31314 into master
* refs/pull/31314/head:
mgr/orchestrator_cli: pass default value to "req=False" params
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 1 Nov 2019 13:56:36 +0000 (08:56 -0500)]
Merge PR #31315 into master
* refs/pull/31315/head:
ceph-daemon: create ~/.ssh if not exist
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Fri, 1 Nov 2019 09:39:35 +0000 (17:39 +0800)]
ceph-daemon: create ~/.ssh if not exist
there is chance that /root/.ssh does not exist yet, when we are trying
to add key to authorized_keys.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 1 Nov 2019 12:06:20 +0000 (20:06 +0800)]
Merge pull request #31045 from tchaikov/wip/librados/no-more-ack-commit
librados,test,rgw: cleanups to deprecate safe_cb related functions
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 1 Nov 2019 11:47:26 +0000 (07:47 -0400)]
Merge pull request #31311 from tchaikov/wip/rbd/cleanup
librbd: always initialize local variables
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Mykola Golub [Fri, 1 Nov 2019 11:41:28 +0000 (13:41 +0200)]
Merge pull request #30912 from dillaman/wip-42265
mgr: add 'rbd' profiles to support 'rbd_support' module commands
Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Fri, 1 Nov 2019 10:15:15 +0000 (18:15 +0800)]
Merge pull request #31244 from changchengx/deploy_doc
doc: update with osd addition
Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 1 Nov 2019 10:00:38 +0000 (18:00 +0800)]
Merge pull request #31196 from liewegas/wip-osdmon-iec
mon/OSDMonitor: expand iec_options for 'osd pool set'
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 1 Nov 2019 02:17:05 +0000 (10:17 +0800)]
rgw: use new aio_create_completion()
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 29 Oct 2019 17:35:35 +0000 (01:35 +0800)]
journal: use new aio_create_completion()
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 29 Oct 2019 17:14:39 +0000 (01:14 +0800)]
test/librados_test_stub: implement aio_create_completion2() and friends
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 29 Oct 2019 07:08:57 +0000 (15:08 +0800)]
librbd: use new aio_create_completion()
to silence warnings like:
src/librbd/Utils.h:139:48: warning: 'static librados::v14_2_0::AioCompletion* librados::v14_2_0::Rados::aio_create_completion(void*, librados::callback_t, librados::callback_t)' is deprecated
[-Wdeprecated-declarations]
return librados::Rados::aio_create_completion(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
obj, &detail::rados_callback<T, MF>, nullptr);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 29 Oct 2019 12:12:42 +0000 (20:12 +0800)]
test/libradosstriper: use new aio_create_completion()
to silence -Wdeprecated-declarations warnings
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 11:20:10 +0000 (19:20 +0800)]
cls/journal: s/create_completion/create_completion2/
src/cls/journal/cls_journal_client.cc:154:72: warning: 'static librados::v14_2_0::AioCompletion* librados::v14_2_0::Rados::aio_create_completion(void*, librados::callback_t, librados::callback_t)' is
deprecated [-Wdeprecated-declarations]
librados::Rados::aio_create_completion(this, rados_callback, NULL);
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 11:14:16 +0000 (19:14 +0800)]
rgw: s/create_completion/create_completion2/
to silence the warnings like
s_user_client.cc:151:77: warning: 'static librados::v14_2_0::AioCompletion* librados::v14_2_0::Rados::aio_create_completion(void*, librados::callback_t, librados::callback_t)' is deprecated
[-Wdeprecated-declarations]
AioCompletion *c = librados::Rados::aio_create_completion(NULL, NULL, NULL);
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 08:03:41 +0000 (16:03 +0800)]
librados: s/aio_create_completion/aio_create_completion2/
the former is deprecated
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 08:03:21 +0000 (16:03 +0800)]
libradosstriper: s/create_completion/create_completion2/
replace `librados::Rados::aio_create_completion(arg, complete_cb,
safe_cb)` with `librados::Rados::aio_create_completion(arg,
complete_cb)`
the former is deprecated
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 07:35:51 +0000 (15:35 +0800)]
tools: s/rados_aio_create_completion/rados_aio_create_completion2/
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 07:32:37 +0000 (15:32 +0800)]
test: s/rados_aio_create_completion/rados_aio_create_completion2/
the former is deprecated and replaced with the latter
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 07:08:07 +0000 (15:08 +0800)]
test: s/wait_for_safe/wait_for_complete/
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 07:07:35 +0000 (15:07 +0800)]
rgw: s/wait_for_safe/wait_for_complete/
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 07:06:57 +0000 (15:06 +0800)]
librados: s/wait_for_safe/wait_for_complete/
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 07:06:35 +0000 (15:06 +0800)]
test/ceph_kvstorebench: s/wait_for_safe/wait_for_complete/
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 06:53:59 +0000 (14:53 +0800)]
tools/rados: s/wait_for_safe/wait_for_complete/
wait_for_safe() and friend are deprecated, so use wait_for_complete()
instead.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 1 Nov 2019 09:22:25 +0000 (17:22 +0800)]
mgr/orchestrator_cli: pass default value to "req=False" params
in mds_add() command, both "num" and "hosts" are optional, so they
should have default values of "None". this change was introduced in
c35db383 .
Signed-off-by: Kefu Chai <kchai@redhat.com>
Changcheng Liu [Wed, 30 Oct 2019 09:07:01 +0000 (17:07 +0800)]
doc: update with osd addition
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
Kefu Chai [Fri, 1 Nov 2019 05:32:24 +0000 (13:32 +0800)]
librbd: always initialize local variables
silence warnings like:
src/librbd/io/ImageRequestWQ.cc:576:7: warning: 'length' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (block_overlapping_io(&m_in_flight_extents, offset, length)) {
^~
...
src/librbd/io/ImageRequestWQ.cc:935:12: note: 'length' was declared here
uint64_t length;
^~~~~~
Signed-off-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Fri, 1 Nov 2019 02:49:46 +0000 (21:49 -0500)]
Merge PR #31225 into master
* refs/pull/31225/head:
mgr/telemetry: send device telemetry via per-host POST to device endpoint
Reviewed-by: Dan Mick <dmick@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 06:18:10 +0000 (14:18 +0800)]
pybind/rados: do not use wait_for_safe() anymore
in librados, wait_for_safe() is an alias of wait_for_complete(). so in
this change, wait_for_safe() calls wait_for_complete(), and the callers
of wait_for_safe() will just call wait_for_complete(), instead of
calling both of them.
also, rados_aio_create_completion() is replaced with
rados_aio_create_completion2().
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 07:34:08 +0000 (15:34 +0800)]
librados: add Rados::aio_create_completion(arg, cb)
which does not take safe_cb, and will take the place of
Rados::aio_create_completion(arg, cb_complete, cb_safe)
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 06:15:58 +0000 (14:15 +0800)]
librados: add rados_aio_create_completion2()
rados_aio_create_completion2() is almost identical to
rados_aio_create_completion(). the only difference is that the former
does not accept the `safe` callback. as it's an alias of `complete`
callback since
af01db76f63a22178509b402776da54164af1eb0
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 22 Oct 2019 06:10:16 +0000 (14:10 +0800)]
librados: mark wait_for_safe() functions deprecated
safe is an alias of completed since
af01db76f63a22178509b402776da54164af1eb0 . there is no need to have
two callbacks for tracking the state of an async operation anymore.
in this change, wait_for_safe() and friends are marked "deprecated"
Signed-off-by: Kefu Chai <kchai@redhat.com>
Patrick Donnelly [Thu, 31 Oct 2019 23:42:18 +0000 (16:42 -0700)]
Merge PR #31046 into master
* refs/pull/31046/head:
doc: hide page contents for Ceph Internals
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Patrick Donnelly [Thu, 31 Oct 2019 20:08:34 +0000 (13:08 -0700)]
Merge PR #31206 into master
* refs/pull/31206/head:
qa: test fs:upgrade when running upgrade suite
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Sage Weil [Thu, 31 Oct 2019 15:40:59 +0000 (10:40 -0500)]
Merge PR #31270 into master
* refs/pull/31270/head:
ceph-daemon: no extra newline needed in authorized_keys file
ceph-daemon: use client.admin keyring during bootstrap
Reviewed-by: Alfredo Deza <adeza@redhat.com>
Ilya Dryomov [Thu, 31 Oct 2019 14:45:19 +0000 (15:45 +0100)]
Merge pull request #31265 from idryomov/wip-krbd-unmap-msgr1
qa/suites/krbd: run unmap subsuite with msgr1 only
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Volker Theile [Thu, 31 Oct 2019 11:07:31 +0000 (12:07 +0100)]
mgr/dashboard: Remove convertion to seconds (#31262)
mgr/dashboard: Remove convertion to seconds
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Ni-Feng Chang <kiefer.chang@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Volker Theile [Thu, 31 Oct 2019 11:05:06 +0000 (12:05 +0100)]
mgr/dashboard: edit/clone/copy rbd image after its data is rec… (#31245)
mgr/dashboard: edit/clone/copy rbd image after its data is received
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Nathan Cutler [Thu, 31 Oct 2019 11:02:58 +0000 (12:02 +0100)]
Merge pull request #31247 from smithfarm/wip-bri-regression
backport-resolve-issue: "recognize that Target version is populated" and "prune duplicate URLs"
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Patrick Donnelly [Wed, 30 Oct 2019 19:22:48 +0000 (12:22 -0700)]
Merge PR #31231 into master
* refs/pull/31231/head:
qa: add tests for CephFS admin commands
mds/MDSRank: report state to mgr as mds id, not rank
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Sage Weil [Wed, 30 Oct 2019 19:09:36 +0000 (14:09 -0500)]
ceph-daemon: no extra newline needed in authorized_keys file
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 30 Oct 2019 15:05:24 +0000 (10:05 -0500)]
ceph-daemon: use client.admin keyring during bootstrap
It's usually okay to use the mon. key for CLI commands, except we had a
mgr but that prevented you from issuing mgr commands correctly. We have
the new client.admin key available, so use that instead.
Update tests to not --skip-ssh (now that it doesn't hang).
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 30 Oct 2019 19:04:07 +0000 (14:04 -0500)]
Merge PR #31264 into master
* refs/pull/31264/head:
ceph-daemon: deal with lack of TemporaryDirectory on py2
ceph-daemon: make StringIO usage py2 compatible
ceph-daemon: make ConfigParser py2 compatible
Reviewed-by: Alfredo Deza <adeza@redhat.com>
Ilya Dryomov [Tue, 29 Oct 2019 15:19:14 +0000 (16:19 +0100)]
qa/suites/krbd: run unmap subsuite with msgr1 only
pre-single-major.yaml kernel doesn't have any of the monitor client
fixes that came in 4.6. If the connection is closed, it closes the
session and retries only after 10 seconds. On top of that, there is
nothing to prevent it from picking the same monitor when reconnecting.
This means that when given both v1 and v2 ports (which look like two
different monitors), it is susceptible to mount_timeout (60 seconds):
$ sudo rbd map img
rbd: sysfs write failed
In some cases useful info is found in syslog - try "dmesg | tail".
rbd: map failed: (5) Input/output error
[ 822.242313] libceph: mon0 172.21.15.132:3300 socket closed (con state CONNECTING)
[ 832.265494] libceph: mon0 172.21.15.132:3300 socket closed (con state CONNECTING)
[ 842.296175] libceph: mon0 172.21.15.132:3300 socket closed (con state CONNECTING)
[ 852.326924] libceph: mon0 172.21.15.132:3300 socket closed (con state CONNECTING)
[ 862.357611] libceph: mon0 172.21.15.132:3300 socket closed (con state CONNECTING)
[ 872.388373] libceph: mon0 172.21.15.132:3300 socket closed (con state CONNECTING)
[ 882.676136] libceph: mon0 172.21.15.132:3300 socket closed (con state CONNECTING)
Unlike newer kernels that return ETIMEDOUT, it returns EIO.
Newer kernels are much more aggressive about retries and will pick
a different monitor when reconnecting, hence they are always able to
establish the session in time.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Patrick Donnelly [Wed, 30 Oct 2019 17:21:22 +0000 (10:21 -0700)]
qa: add tests for CephFS admin commands
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Sage Weil [Wed, 30 Oct 2019 18:22:43 +0000 (13:22 -0500)]
ceph-daemon: deal with lack of TemporaryDirectory on py2
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 30 Oct 2019 15:33:52 +0000 (10:33 -0500)]
ceph-daemon: make StringIO usage py2 compatible
Otherwise,
Traceback (most recent call last):
File "../src/ceph-daemon", line 1698, in <module>
r = args.func()
File "../src/ceph-daemon", line 767, in command_bootstrap
with StringIO() as f:
AttributeError: StringIO instance has no attribute '__exit__'
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Wed, 30 Oct 2019 15:32:00 +0000 (10:32 -0500)]
ceph-daemon: make ConfigParser py2 compatible
Signed-off-by: Sage Weil <sage@redhat.com>
Tiago Melo [Wed, 30 Oct 2019 16:13:01 +0000 (15:13 -0100)]
mgr/dashboard: Remove convertion to seconds
This is no longer need since the values are already in seconds.
Fixes: https://tracker.ceph.com/issues/42567
Signed-off-by: Tiago Melo <tmelo@suse.com>
Patrick Donnelly [Wed, 30 Oct 2019 16:09:06 +0000 (09:09 -0700)]
Merge PR #31195 into master
* refs/pull/31195/head:
vstart: Fix /dev/tty No such device or address
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Jason Dillaman [Wed, 30 Oct 2019 16:07:30 +0000 (12:07 -0400)]
Merge pull request #31161 from trociny/wip-42488
rbd-mirror: mirrored clone should be same format
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 30 Oct 2019 16:07:12 +0000 (12:07 -0400)]
Merge pull request #31149 from wonderpow/master1
cls/rbd: add snapshot_add raise -ESTALE test case
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 30 Oct 2019 16:06:41 +0000 (12:06 -0400)]
Merge pull request #31140 from Gangbiao/add-pybind-test-case
test/pybind: add create_snap rasie ImageExists test case
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Wed, 30 Oct 2019 16:06:08 +0000 (12:06 -0400)]
Merge pull request #30994 from JackSlateur/rbd_merged_du
rbd: add --merge to disk-usage
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Lenz Grimmer [Wed, 30 Oct 2019 15:32:15 +0000 (15:32 +0000)]
mgr/dashboard: remove space in tox.ini deps (#31246)
mgr/dashboard: remove space in tox.ini deps
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Volker Theile [Tue, 29 Oct 2019 14:24:22 +0000 (15:24 +0100)]
vstart: Fix /dev/tty No such device or address
Running on Jenkins slave or as a daemon there will be no writable console.
Fixes: https://tracker.ceph.com/issues/42487
Signed-off-by: Volker Theile <vtheile@suse.com>
Nathan Cutler [Wed, 30 Oct 2019 13:30:08 +0000 (14:30 +0100)]
backport-resolve-issue: prune duplicate URLs
I have seen PR descriptions with a single backport tracker URL mentioned twice.
When backport-resolve-issue hit one of these, it would say:
Found backport tracker: https://tracker.ceph.com/issues/39272
Found backport tracker: https://tracker.ceph.com/issues/39272
-----------------------------------------------------------------
INFO:root:Tracker https://tracker.ceph.com/issues/39272 links to PR https://github.com/ceph/ceph/pull/29153
INFO:root:Backport Tracker 39272 target version already populated with correct value v12.2.13
INFO:root:Backport Tracker 39272 status is already set to Resolved
-----------------------------------------------------------------
INFO:root:Tracker https://tracker.ceph.com/issues/39272 links to PR https://github.com/ceph/ceph/pull/29153
INFO:root:Backport Tracker 39272 target version already populated with correct value v12.2.13
INFO:root:Backport Tracker 39272 status is already set to Resolved
=================================================================
This commit fixes the issue.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Lenz Grimmer [Wed, 30 Oct 2019 12:32:37 +0000 (12:32 +0000)]
mgr/dashboard: Allow removal of single notification (#31048)
mgr/dashboard: Allow removal of single notification
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Lenz Grimmer [Wed, 30 Oct 2019 11:58:15 +0000 (11:58 +0000)]
mgr/dashboard: Use checkbox for multi selection (#30495)
mgr/dashboard: Use checkbox for multi selection
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Alfonso Martínez [Wed, 30 Oct 2019 11:31:13 +0000 (12:31 +0100)]
mgr/dashboard: edit/clone/copy rbd image after its data is received
Fixes: https://tracker.ceph.com/issues/42561
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
Nathan Cutler [Wed, 30 Oct 2019 10:54:18 +0000 (11:54 +0100)]
Merge pull request #31193 from rhcs-dashboard/wip-42507-master
mgr/dashboard: update dashboard CODEOWNERShip
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 30 Oct 2019 10:44:56 +0000 (11:44 +0100)]
backport-resolve-issue: recognize that Target version is populated
Due to a regression, the script stopped recognizing that a Backport tracker
issue's "Target version" field is populated.
Fixes: af43b3cc3b05e70ec248ad5c23da6fbd4c2e78a1
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 30 Oct 2019 10:31:21 +0000 (11:31 +0100)]
Merge pull request #30988 from smithfarm/wip-bri-multi
backport-resolve-issue: resolve multiple backport issues
Sebastian Wagner [Wed, 30 Oct 2019 10:20:02 +0000 (11:20 +0100)]
mgr/dashboard: remove space in tox.ini deps
Fixes: https://tracker.ceph.com/issues/42469
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Nathan Cutler [Wed, 30 Oct 2019 10:02:30 +0000 (11:02 +0100)]
Merge pull request #31163 from callithea/wip-issue-42489
doc: Small update of SubmittingPatches-backports
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 30 Oct 2019 09:30:01 +0000 (10:30 +0100)]
Merge pull request #30879 from smithfarm/wip-cbs-check-missing-milestone
ceph-backport.sh: implement --milestones feature and more-careful vetting
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Kefu Chai [Wed, 30 Oct 2019 02:11:01 +0000 (10:11 +0800)]
Merge pull request #29930 from IlsooByun/rocksdb_ver
cmake: require RocksDB 5.14 or higher
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Tue, 29 Oct 2019 19:17:47 +0000 (14:17 -0500)]
mds/MDSRank: report state to mgr as mds id, not rank
Introduced by
625dffe65c0f8001b3b6ca6d0b12732a1a103849 , which added
periodic scrub stats reporting.
Fixes: https://tracker.ceph.com/issues/42494
Fixes: https://tracker.ceph.com/issues/41525
Signed-off-by: Sage Weil <sage@redhat.com>
Patrick Donnelly [Tue, 29 Oct 2019 22:32:18 +0000 (15:32 -0700)]
Merge PR #30369 into master
* refs/pull/30369/head:
doc/cephfs: add doc for cephfs io path
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Tue, 29 Oct 2019 19:39:06 +0000 (12:39 -0700)]
Merge PR #31201 into master
* refs/pull/31201/head:
doc: document rank option for journal reset
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Sage Weil [Tue, 29 Oct 2019 18:39:40 +0000 (13:39 -0500)]
Merge PR #31181 into master
* refs/pull/31181/head:
ceph-daemon: only pass podman -it if need an interactive shell
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Alfredo Deza [Tue, 29 Oct 2019 16:05:11 +0000 (12:05 -0400)]
Merge pull request #31159 from alfredodeza/wip-rm42484
ceph-volume tests remove xenial from functional testing
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Sage Weil [Tue, 29 Oct 2019 14:28:18 +0000 (09:28 -0500)]
mgr/telemetry: send device telemetry via per-host POST to device endpoint
We do not want to associate devices with clusters because that may
communicate unnecessary information about the association between vendors
and clusters (which, when large, are potentially identifying).
Instead, do a POST per host with all of the devices on that host only.
The devices endpoint does not log the POST time, so these per-host
records won't be associated with each other.
Signed-off-by: Sage Weil <sage@redhat.com>
Gangbiao Liu [Wed, 23 Oct 2019 02:26:02 +0000 (10:26 +0800)]
test/pybind: add create_snap rasie ImageExists test case
Signed-off-by: Gangbiao Liu <liugangbiao@cmss.chinamobile.com>
Kefu Chai [Tue, 29 Oct 2019 15:07:39 +0000 (23:07 +0800)]
Merge pull request #31222 from sebastian-philipp/python-common-avoid-setup_requires
python-common: avoid using setup_requires in setup.py
Reviewed-by: Kefu Chai <kchai@redhat.com>
Tiago Melo [Fri, 4 Oct 2019 12:10:52 +0000 (12:10 +0000)]
mgr/dashboard: Allow removal of single notification
Signed-off-by: Tiago Melo <tmelo@suse.com>
Sage Weil [Sun, 27 Oct 2019 17:29:36 +0000 (12:29 -0500)]
ceph-daemon: only pass podman -it if need an interactive shell
Otherwise, we get errors like
2019-10-26T17:29:42.004 INFO:tasks.workunit.client.0.mira109.stderr:+ sudo /usr/sbin/ceph-daemon shell -- ceph -v
2019-10-26T17:29:42.004 INFO:tasks.workunit.client.0.mira109.stderr:+ grep 'ceph version'
2019-10-26T17:29:42.149 INFO:tasks.workunit.client.0.mira109.stderr:the input device is not a TTY
Fixes: https://tracker.ceph.com/issues/42499
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 29 Oct 2019 14:38:57 +0000 (09:38 -0500)]
Merge PR #31059 into master
* refs/pull/31059/head:
mgr/rook: implement update_mds
mgr/ssh: implement 'mds update'
mgr/orchestrator_cli: add 'mds update' command
mgr/ssh: unique names for mds instances
mgr/ssh: name mgrs with random string id; add removal support
mgr/ssh: provide get_unique_name helper
mgr/orchestrator_cli: rename 'mds rm' arg
mgr/orchestrator_cli: rename 'mds add' arg
mgr/ssh: add 'mds rm'
mgr/ssh: (broken) mds rm
mgr/ssh: make mds add work
mgr/orchestrator: add count, hosts args to 'mds add'
mgr/ssh: be consistently verbose
mgr/ActivePyModules: expose 'mds_metadata' to modules
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Jan Fajerski [Tue, 29 Oct 2019 14:27:02 +0000 (15:27 +0100)]
Merge pull request #31197 from jan--f/c-v-fix-lvm-mokeypatch
ceph-volume: mokeypatch calls to lvm related binaries
Sebastian Wagner [Tue, 29 Oct 2019 13:05:25 +0000 (14:05 +0100)]
python-common: avoid using setup_requires in setup.py
Fixes: https://tracker.ceph.com/issues/42528
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Jason Dillaman [Sun, 27 Oct 2019 19:56:34 +0000 (15:56 -0400)]
pybind/mgr: use custom exception to handle authorization failures
Python2 does not include the PermissionError exception so use a
custom exception to support both versions.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 22 Oct 2019 15:19:14 +0000 (11:19 -0400)]
qa/workunits/rbd: add permission tests for mgr profile
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Tue, 22 Oct 2019 13:11:34 +0000 (09:11 -0400)]
mgr: added placeholder 'osd' and 'mds' profiles
CephFS documents a previously unhandled profile named 'mds' that
needs to be accepted as valid (but currently provides no caps).
Similarly, the 'osd' cap is deployed in several scenarios as well.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Oct 2019 16:45:56 +0000 (12:45 -0400)]
doc/rbd: add new 'profile rbd' mgr caps to examples
Fixes: https://tracker.ceph.com/issues/42265
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Oct 2019 16:34:35 +0000 (12:34 -0400)]
pybind/mgr: test session authorization against specific pools/namespaces
Use the optional "pool" and "namespace" constraints for the RBD cap
profiles to ensure the user has access to touch the specified
pool/namespace combo.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Oct 2019 14:39:54 +0000 (10:39 -0400)]
mgr: python modules can now perform authorization tests
In cases where the python service or individual python modules are
enabled via caps, the module might want to perform finer grained
tests to ensure specific commands are allowed. An example of this is
the 'rbd_support' module limiting access by pools and namespaces.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 17 Oct 2019 13:37:13 +0000 (09:37 -0400)]
mgr: validate that profile caps are actually valid
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Mon, 14 Oct 2019 14:54:44 +0000 (10:54 -0400)]
mgr: added 'profile rbd/rbd-read-only' cap
These profiles can be further restricted via 'pool' and
'namespace' argument optionals.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Oct 2019 16:44:01 +0000 (12:44 -0400)]
mgr: support optional arguments for module and profile caps
This allows an optional, arbitrary key/value constraint clauses to
be appended to "profile XYZ" and "allow module XYZ" caps. A module
can then provide additional validatation against these meta-arguments.
Example:
profile rbd pool=rbd
allow module rbd_support with pool=rbd
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Oct 2019 15:25:56 +0000 (11:25 -0400)]
mgr: add new 'allow module' cap to MgrCap
This allows specific python add-on modules to be whitelisted instead
of manually adding each command exported by the module.
allow module {module-name} {access-spec}
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Oct 2019 14:45:15 +0000 (10:45 -0400)]
mon: dropped daemon type argument for MonCap
This was a placeholder for handling MGR caps within the MonCap
class. Now that the MGR has its own MgrCap class, this is no
longer required.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 11 Oct 2019 14:30:03 +0000 (10:30 -0400)]
mgr: stop re-using MonCap for handling MGR caps
Use the existing MonCap as the basis for a new custom MgrCap
processor.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Ilya Dryomov [Tue, 29 Oct 2019 10:40:45 +0000 (11:40 +0100)]
Merge pull request #31023 from idryomov/wip-krbd-udev-enumerate-retry
krbd: retry on transient errors from udev_enumerate_scan_devices()
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Ilsoo Byun [Tue, 27 Aug 2019 10:48:52 +0000 (19:48 +0900)]
cmake: require RocksDB 5.14 or higher
error: ‘class rocksdb::Env’ has no member named ‘SetAllowNonOwnerAccess’
opt.env->SetAllowNonOwnerAccess(false);
^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Ilsoo Byun <ilsoobyun@linecorp.com>
Jan Fajerski [Tue, 29 Oct 2019 07:16:14 +0000 (08:16 +0100)]
Merge pull request #31072 from sebastian-philipp/ceph-volume-inventory-device-id
ceph-volume: add Ceph's device id to inventory
Patrick Donnelly [Tue, 29 Oct 2019 03:41:29 +0000 (20:41 -0700)]
qa: test fs:upgrade when running upgrade suite
Sometimes this suite breaks because it's not usually tested when upgrade
suites are modified.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Tue, 29 Oct 2019 03:37:31 +0000 (20:37 -0700)]
Merge PR #31063 into master
* refs/pull/31063/head:
qa: disable too few PG warning during Mimic deploy
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Mon, 28 Oct 2019 23:57:36 +0000 (07:57 +0800)]
Merge pull request #31178 from tchaikov/wip/rpm/pyyaml
ceph.spec.in: add missing python-yaml dependency for mgr-k8sevents
Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>