]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agorgw: orphan list teuthology test & fully-qualified domain issue 35979/head
J. Eric Ivancich [Wed, 8 Jul 2020 02:40:10 +0000 (22:40 -0400)]
rgw: orphan list teuthology test & fully-qualified domain issue

Sometimes when teuthology machines are provisioned, the command
`hostname --fqdn` does not provide a fully qualified domain name but
instead just the hostname (e.g., smithi149 instead of
smithi149.front.sepia.ceph.com). This prevents the teuthology test for
rgw-orphan-list from running successfully [for example, the hostname
was for some reason mis-interpreted as the bucket name in the
request].

This commit checks whether the hostname derived from `hostname --fqdn`
contains any '.'s and if it does not, it will append
".front.sepia.ceph.com" to the hostname. This is a hack, but until
teuthology machines are configured appropriately it seems to be a
reasonable work-around.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoMerge pull request #35699 from fflorens/ff/work/bug_46139
Jason Dillaman [Wed, 1 Jul 2020 17:18:21 +0000 (13:18 -0400)]
Merge pull request #35699 from fflorens/ff/work/bug_46139

osd/OSDCap: rbd profile permits use of "rbd_info"

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35596 from Songweibin/wip-fix-rbd-rm
Jason Dillaman [Wed, 1 Jul 2020 17:18:00 +0000 (13:18 -0400)]
Merge pull request #35596 from Songweibin/wip-fix-rbd-rm

librbd: fix potential image rm failure due to parent missing

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #35856 from tchaikov/wip-46267
Kefu Chai [Wed, 1 Jul 2020 15:26:54 +0000 (23:26 +0800)]
Merge pull request #35856 from tchaikov/wip-46267

test/unittest_lockdep: skip lockdep test if CEPH_DEBUG_MUTEX is not d…

Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #35751 from smithfarm/wip-radosgw-admin-orphans
Josh Durgin [Wed, 1 Jul 2020 14:59:34 +0000 (07:59 -0700)]
Merge pull request #35751 from smithfarm/wip-radosgw-admin-orphans

doc: PendingReleaseNotes: fix deprecated radosgw-admin commands

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoMerge pull request #35782 from tspmelo/wip-ng-datepicker
Lenz Grimmer [Wed, 1 Jul 2020 14:17:03 +0000 (16:17 +0200)]
Merge pull request #35782 from tspmelo/wip-ng-datepicker

mgr/dashboard: Use ng-bootstrap for Datepicker

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35869 from smithfarm/wip-rn-15_2_4
Josh Durgin [Wed, 1 Jul 2020 14:12:19 +0000 (07:12 -0700)]
Merge pull request #35869 from smithfarm/wip-rn-15_2_4

doc/releases/octopus: add 15.2.4 release notes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agoMerge pull request #35805 from ricardoasmarques/ceph-orch-status-format
Sebastian Wagner [Wed, 1 Jul 2020 13:17:11 +0000 (15:17 +0200)]
Merge pull request #35805 from ricardoasmarques/ceph-orch-status-format

cephadm: Add "--format" option to "ceph orch status"

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35811 from tchaikov/wip-46054
Kefu Chai [Wed, 1 Jul 2020 12:47:28 +0000 (20:47 +0800)]
Merge pull request #35811 from tchaikov/wip-46054

kv/RocksDBStore: always release column family handles

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agoMerge pull request #35723 from tspmelo/wip-fix-action-tooltip
Lenz Grimmer [Wed, 1 Jul 2020 12:21:19 +0000 (14:21 +0200)]
Merge pull request #35723 from tspmelo/wip-fix-action-tooltip

mgr/dashboard: Fix title of disabled table actions

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35606 from Daniel-Pivonka/cephadm-45653-44866
Sebastian Wagner [Wed, 1 Jul 2020 11:08:02 +0000 (13:08 +0200)]
Merge pull request #35606 from Daniel-Pivonka/cephadm-45653-44866

cephadm: add sudo ssh user option

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agodoc/releases/octopus: add 15.2.4 release notes 35869/head
Nathan Cutler [Wed, 1 Jul 2020 10:36:44 +0000 (12:36 +0200)]
doc/releases/octopus: add 15.2.4 release notes

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agocephadm: Add "--format" option to "ceph orch status" 35805/head
Ricardo Marques [Fri, 26 Jun 2020 17:44:45 +0000 (18:44 +0100)]
cephadm: Add "--format" option to "ceph orch status"

Fixes: https://tracker.ceph.com/issues/46233
Signed-off-by: Ricardo Marques <rimarques@suse.com>
5 years agoMerge pull request #35577 from mgfritch/orch-test-iscsi
Sebastian Wagner [Wed, 1 Jul 2020 08:06:02 +0000 (10:06 +0200)]
Merge pull request #35577 from mgfritch/orch-test-iscsi

mgr/test_orchestrator: add iscsi

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge PR #35417 into master
Patrick Donnelly [Wed, 1 Jul 2020 02:32:23 +0000 (19:32 -0700)]
Merge PR #35417 into master

* refs/pull/35417/head:
volumes/fs/nfs: Don't parse rados export objects during FSExport init
pybind/mgr/volumes/nfs: Fix flake8 errors
qa/tasks/test_nfs: Add todo note for cluster update test
qa/tasks/cephfs/test_nfs: Add test for get and list detailed export
qa/tasks/cephfs/test_nfs: Add test for export user id
qa/tasks/cephfs/test_nfs: Add description for each test
doc/cephfs: Add list and get export usage
qa/tasks/cephfs: Add tests for export create with non-existing fsname and cluster id
qa/tasks/cephfs: Add tests for invalid cluster id, export type and modify list cluster
qa/tasks/cephfs: Add test for listing exports
pybind/mgr/volumes/nfs: Reorder FSExport and NFSCluster class methods
mgr/volumes/nfs: Set pool_namespace and cluster_id through decorator
mgr/volumes/nfs: Check cluster availability in export command methods
mgr/volumes/nfs: Misc changes to export get and ls command
qa/tasks/cephfs: Add test for nfs cluster ls command
mgr/volumes/nfs: Add nfs cluster ls command
mgr/volumes/nfs: Remove 'ganesha-' prefix from orch returned service id
mgr/volumes/nfs: get export in a nfs cluster
mgr/volumes/nfs: list exports within a ganesha cluster
mgr/volume/nfs: allow only [A-Za-z0-9-_.] characters
qa/tasks/cephfs: Add test to check if export is available on restarting mgr
qa/tasks/cephfs: Add idempotency test for nfs commands
mgr/volumes/nfs: Check if cluster exists before creating exports
mgr/volumes/nfs: Fetch exports in persistent way if mgr is restarted

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agovolumes/fs/nfs: Don't parse rados export objects during FSExport init 35417/head
Patrick Donnelly [Sat, 27 Jun 2020 00:00:46 +0000 (17:00 -0700)]
volumes/fs/nfs: Don't parse rados export objects during FSExport init

Instead we can do it if any export commands are used. This fixes ImportError
raised when FSExport is initialized with cephadm module disabled.

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agopybind/mgr/volumes/nfs: Fix flake8 errors
Varsha Rao [Thu, 25 Jun 2020 07:03:04 +0000 (12:33 +0530)]
pybind/mgr/volumes/nfs: Fix flake8 errors

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/test_nfs: Add todo note for cluster update test
Varsha Rao [Thu, 25 Jun 2020 06:53:39 +0000 (12:23 +0530)]
qa/tasks/test_nfs: Add todo note for cluster update test

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs/test_nfs: Add test for get and list detailed export
Varsha Rao [Tue, 23 Jun 2020 18:25:46 +0000 (23:55 +0530)]
qa/tasks/cephfs/test_nfs: Add test for get and list detailed export

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs/test_nfs: Add test for export user id
Varsha Rao [Tue, 23 Jun 2020 18:17:43 +0000 (23:47 +0530)]
qa/tasks/cephfs/test_nfs: Add test for export user id

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs/test_nfs: Add description for each test
Varsha Rao [Fri, 19 Jun 2020 17:36:12 +0000 (23:06 +0530)]
qa/tasks/cephfs/test_nfs: Add description for each test

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agodoc/cephfs: Add list and get export usage
Varsha Rao [Tue, 16 Jun 2020 10:29:19 +0000 (15:59 +0530)]
doc/cephfs: Add list and get export usage

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs: Add tests for export create with non-existing fsname and cluster id
Varsha Rao [Tue, 16 Jun 2020 10:04:36 +0000 (15:34 +0530)]
qa/tasks/cephfs: Add tests for export create with non-existing fsname and cluster id

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs: Add tests for invalid cluster id, export type and modify list cluster
Varsha Rao [Tue, 16 Jun 2020 08:45:22 +0000 (14:15 +0530)]
qa/tasks/cephfs: Add tests for invalid cluster id, export type and modify list cluster

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs: Add test for listing exports
Varsha Rao [Mon, 15 Jun 2020 19:09:58 +0000 (00:39 +0530)]
qa/tasks/cephfs: Add test for listing exports

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agopybind/mgr/volumes/nfs: Reorder FSExport and NFSCluster class methods
Varsha Rao [Tue, 16 Jun 2020 07:09:45 +0000 (12:39 +0530)]
pybind/mgr/volumes/nfs: Reorder FSExport and NFSCluster class methods

To maintain consistency and improve readability.

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Set pool_namespace and cluster_id through decorator
Varsha Rao [Tue, 16 Jun 2020 06:31:05 +0000 (12:01 +0530)]
mgr/volumes/nfs: Set pool_namespace and cluster_id through decorator

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Check cluster availability in export command methods
Varsha Rao [Mon, 15 Jun 2020 15:47:59 +0000 (21:17 +0530)]
mgr/volumes/nfs: Check cluster availability in export command methods

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Misc changes to export get and ls command
Varsha Rao [Mon, 15 Jun 2020 11:29:41 +0000 (16:59 +0530)]
mgr/volumes/nfs: Misc changes to export get and ls command

This patch does following changes:
* Add extra line before every class definition
* Reorder export dictionary
* Use _fetch_export() in get export command
* Remove cluster_id key from export dictionary if single export is deleted

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs: Add test for nfs cluster ls command
Varsha Rao [Thu, 11 Jun 2020 05:27:50 +0000 (10:57 +0530)]
qa/tasks/cephfs: Add test for nfs cluster ls command

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Add nfs cluster ls command
Varsha Rao [Thu, 11 Jun 2020 05:18:56 +0000 (10:48 +0530)]
mgr/volumes/nfs: Add nfs cluster ls command

This commands provides list of deployed nfs clusters.

Fixes: https://tracker.ceph.com/issues/45742
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Remove 'ganesha-' prefix from orch returned service id
Varsha Rao [Wed, 10 Jun 2020 13:00:24 +0000 (18:30 +0530)]
mgr/volumes/nfs: Remove 'ganesha-' prefix from orch returned service id

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: get export in a nfs cluster
Ramana Raja [Fri, 5 Jun 2020 10:38:14 +0000 (16:08 +0530)]
mgr/volumes/nfs: get export in a nfs cluster

Fixes: https://tracker.ceph.com/issues/45741
Signed-off-by: Ramana Raja <rraja@redhat.com>
5 years agomgr/volumes/nfs: list exports within a ganesha cluster
Ramana Raja [Sun, 14 Jun 2020 16:33:16 +0000 (22:03 +0530)]
mgr/volumes/nfs: list exports within a ganesha cluster

List the pseudo paths of the exports within a ganesha cluster
with `nfs export ls <cluster ID>` command.

List all the details of the exports within a ganesha cluster
with `nfs export ls <cluster ID> --detailed` command.

Partially-fixes: https://tracker.ceph.com/issues/45741
Signed-off-by: Ramana Raja <rraja@redhat.com>
5 years agomgr/volume/nfs: allow only [A-Za-z0-9-_.] characters
Ramana Raja [Thu, 4 Jun 2020 06:46:49 +0000 (12:16 +0530)]
mgr/volume/nfs: allow only [A-Za-z0-9-_.] characters

... for ganesha cluster names.

Fixes: https://tracker.ceph.com/issues/45744
Signed-off-by: Ramana Raja <rraja@redhat.com>
5 years agoqa/tasks/cephfs: Add test to check if export is available on restarting mgr
Varsha Rao [Tue, 9 Jun 2020 07:44:36 +0000 (07:44 +0000)]
qa/tasks/cephfs: Add test to check if export is available on restarting mgr

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoqa/tasks/cephfs: Add idempotency test for nfs commands
Varsha Rao [Tue, 2 Jun 2020 11:34:19 +0000 (11:34 +0000)]
qa/tasks/cephfs: Add idempotency test for nfs commands

Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Check if cluster exists before creating exports
Varsha Rao [Fri, 5 Jun 2020 10:33:01 +0000 (16:03 +0530)]
mgr/volumes/nfs: Check if cluster exists before creating exports

Fixes: https://tracker.ceph.com/issues/45740
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agomgr/volumes/nfs: Fetch exports in persistent way if mgr is restarted
Varsha Rao [Fri, 5 Jun 2020 09:14:59 +0000 (14:44 +0530)]
mgr/volumes/nfs: Fetch exports in persistent way if mgr is restarted

Fixes: https://tracker.ceph.com/issues/45740
Signed-off-by: Varsha Rao <varao@redhat.com>
5 years agoMerge PR #35784 into master
Patrick Donnelly [Tue, 30 Jun 2020 17:37:29 +0000 (10:37 -0700)]
Merge PR #35784 into master

* refs/pull/35784/head:
mon/MDSMonitor: copy MDS info which may be removed

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #35038 into master
Patrick Donnelly [Tue, 30 Jun 2020 17:36:36 +0000 (10:36 -0700)]
Merge PR #35038 into master

* refs/pull/35038/head:
qa/tasks/cephfs/cephfs_test_case.py: skip cleaning the core dumps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr/dashboard: Use ng-bootstrap for Datepicker 35782/head
Tiago Melo [Fri, 29 May 2020 19:13:03 +0000 (19:13 +0000)]
mgr/dashboard: Use ng-bootstrap for Datepicker

Fixes: https://tracker.ceph.com/issues/45757
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agotest/unittest_lockdep: skip lockdep test if CEPH_DEBUG_MUTEX is not defined 35856/head
Kefu Chai [Tue, 30 Jun 2020 15:15:44 +0000 (23:15 +0800)]
test/unittest_lockdep: skip lockdep test if CEPH_DEBUG_MUTEX is not defined

this change addresses a regression introduced by
2dc50b5f91476cf10429dbcdd52b00e32f599d5c

Fixes: https://tracker.ceph.com/issues/46267
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32493 from rishabh-d-dave/cv-use-dash-S-everywhere
Jan Fajerski [Tue, 30 Jun 2020 12:59:44 +0000 (14:59 +0200)]
Merge pull request #32493 from rishabh-d-dave/cv-use-dash-S-everywhere

ceph-volume: don't use container classes in api/lvm.py

5 years agocephadm: add sudo ssh user option 35606/head
Daniel-Pivonka [Thu, 11 Jun 2020 14:28:44 +0000 (10:28 -0400)]
cephadm: add sudo ssh user option

add the ability to use a non-root users for connecting to hosts, this user requires pass wordless sudo access

useful for clusters that have root ssh access disabled

Fixes: https://tracker.ceph.com/issues/44866
Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
5 years agomgr/dashboard: Fix title of disabled table actions 35723/head
Tiago Melo [Tue, 23 Jun 2020 10:40:23 +0000 (10:40 +0000)]
mgr/dashboard: Fix title of disabled table actions

Fix regression introduced in a1fac664f5b0fa1c8b78de3440e99ee68d34f512.
Title attribute was unintentionally removed from the table actions.

Fixes: https://tracker.ceph.com/issues/46153
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35657 from athanatos/sjust/wip-lba-replay
Kefu Chai [Tue, 30 Jun 2020 10:52:24 +0000 (18:52 +0800)]
Merge pull request #35657 from athanatos/sjust/wip-lba-replay

crimson/seastore: add extent replay support, implement for lba tree nodes

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35370 from tspmelo/wip-ng-modal
Lenz Grimmer [Tue, 30 Jun 2020 09:51:04 +0000 (11:51 +0200)]
Merge pull request #35370 from tspmelo/wip-ng-modal

mgr/dashboard: Use ng-bootstrap for Modal

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoceph-volume: delete devices.lvm.prepare.Prepare.get_lv 32493/head
Rishabh Dave [Sat, 4 Jan 2020 08:24:58 +0000 (13:54 +0530)]
ceph-volume: delete devices.lvm.prepare.Prepare.get_lv

Since it calls get_lv_from_argument() internally and use get_first_lv()
instead and update tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoceph-volume: don't use api.lvm.VolumeGroups
Rishabh Dave [Tue, 31 Dec 2019 11:54:42 +0000 (17:24 +0530)]
ceph-volume: don't use api.lvm.VolumeGroups

Use api.lvm.get_vgs() and api.lvm.get_first_vg() instead and update
tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoceph-volume: don't use api.lvm.PVolumes
Rishabh Dave [Fri, 3 Jan 2020 11:40:23 +0000 (17:10 +0530)]
ceph-volume: don't use api.lvm.PVolumes

Update api.lvm.get_first_pv() and api.lvm.get_pvs() instead and update
tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoceph-volume: don't use api.lvm.get_lv
Rishabh Dave [Mon, 30 Dec 2019 14:56:22 +0000 (20:26 +0530)]
ceph-volume: don't use api.lvm.get_lv

Use api.lvm.get_lvs() and api.lvm.get_first_lv() instead and update the
tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoceph-volume: don't use api.lvm.get_lv_from_argument
Rishabh Dave [Mon, 30 Dec 2019 14:05:56 +0000 (19:35 +0530)]
ceph-volume: don't use api.lvm.get_lv_from_argument

Use api.lvm.get_lvs() and api.lvm.get_first_lv() instead and update
tests.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoceph-volume: don't use class api.lvm.Volumes
Rishabh Dave [Mon, 30 Dec 2019 06:18:08 +0000 (11:48 +0530)]
ceph-volume: don't use class api.lvm.Volumes

Replace code using class Volumes by methods get_lvs() and
get_first_lv(). Also, update the tests accordingly.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
5 years agoMerge pull request #34532 from rhcs-dashboard/wip-45068-fix-parse-error
Lenz Grimmer [Tue, 30 Jun 2020 08:50:59 +0000 (10:50 +0200)]
Merge pull request #34532 from rhcs-dashboard/wip-45068-fix-parse-error

mgr/dashboard: Prometheus query error in the metrics of Pools, OSDs and RBD images

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35576 from sebastian-philipp/cephadm-etc-ceph-ceph-conf
Sebastian Wagner [Tue, 30 Jun 2020 08:50:21 +0000 (10:50 +0200)]
Merge pull request #35576 from sebastian-philipp/cephadm-etc-ceph-ceph-conf

mgr/cephadm: Manage /etc/ceph/ceph.conf

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #35565 from bk201/wip-44985
Lenz Grimmer [Tue, 30 Jun 2020 08:46:54 +0000 (10:46 +0200)]
Merge pull request #35565 from bk201/wip-44985

mgr/dashboard: fix wal/db slots controls in the OSD form

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #35779 from votdev/show_yes_no
Lenz Grimmer [Tue, 30 Jun 2020 08:31:43 +0000 (10:31 +0200)]
Merge pull request #35779 from votdev/show_yes_no

mgr/dashboard: Display check icon instead of true|false in various datatables

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #35615 from ishanrai05/scss-linting
Lenz Grimmer [Tue, 30 Jun 2020 08:01:24 +0000 (10:01 +0200)]
Merge pull request #35615 from ishanrai05/scss-linting

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge PR #35826 into master
Patrick Donnelly [Mon, 29 Jun 2020 19:57:23 +0000 (12:57 -0700)]
Merge PR #35826 into master

* refs/pull/35826/head:
mds: fix typo in MDSSocketHook

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35729 from rzarzynski/wip-bl-deprecate-claim
Ilya Dryomov [Mon, 29 Jun 2020 14:36:39 +0000 (16:36 +0200)]
Merge pull request #35729 from rzarzynski/wip-bl-deprecate-claim

common/bl, *: deprecate bufferlist::claim() and switch to rvalue-taking operator=()

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
5 years agoMerge pull request #35833 from smithfarm/wip-rn_14_2_10
Abhishek L [Mon, 29 Jun 2020 14:29:31 +0000 (16:29 +0200)]
Merge pull request #35833 from smithfarm/wip-rn_14_2_10

doc/releases/nautilus: add 14.2.10 release notes

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
5 years agodoc/releases/nautilus: add 14.2.10 release notes 35833/head
Nathan Cutler [Mon, 29 Jun 2020 13:39:06 +0000 (15:39 +0200)]
doc/releases/nautilus: add 14.2.10 release notes

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #35786 from matthewoliver/cephadm_iscsi_remove_pool_cap
Sebastian Wagner [Mon, 29 Jun 2020 13:10:37 +0000 (15:10 +0200)]
Merge pull request #35786 from matthewoliver/cephadm_iscsi_remove_pool_cap

cephadm: ceph-iscsi remove pool from cap

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #35800 from jan--f/drive-groups-tidy-interface
Sebastian Wagner [Mon, 29 Jun 2020 12:33:43 +0000 (14:33 +0200)]
Merge pull request #35800 from jan--f/drive-groups-tidy-interface

py-common/deployment/translate: drop unneeded ctor arg

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35781 from rhcs-dashboard/fix-bucket-list-columns-ui
Lenz Grimmer [Mon, 29 Jun 2020 12:20:46 +0000 (14:20 +0200)]
Merge pull request #35781 from rhcs-dashboard/fix-bucket-list-columns-ui

mgr/dashboard: fix UI of the columns for rgw-bucket-list

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agocommon/bl, *: deprecate list::claim() in favor of operator=(list&&). 35729/head
Radoslaw Zarzynski [Tue, 23 Jun 2020 10:28:15 +0000 (10:28 +0000)]
common/bl, *: deprecate list::claim() in favor of operator=(list&&).

The motivation is that `claim(list&)` seems to actually be a pre-C++11
counterpart of the already available `operator=(list&&)`.
This commit deprecates the `claim()` method but doesn't drop it yet.

All occurrences of `buffer::list::claim(list&)` are switched to
  * `list::operator=(list&&)` or
  * reworked to use `list::list(list&&)` instead.

Changes are applied to: rgw, osdc, osd, os/memstore, os/filestore,
os/bluestore, os, msg, mgr, messages, mds, librbd, librados, crimson,
common, cls, mon.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agomds: fix typo in MDSSocketHook 35826/head
Xiubo Li [Mon, 29 Jun 2020 08:11:49 +0000 (04:11 -0400)]
mds: fix typo in MDSSocketHook

Signed-off-by: Xiubo Li <xiubli@redhat.com>
5 years agoMerge pull request #34311 from cyx1231st/wip-seastar-fix-heartbeat-race
Kefu Chai [Mon, 29 Jun 2020 05:47:25 +0000 (13:47 +0800)]
Merge pull request #34311 from cyx1231st/wip-seastar-fix-heartbeat-race

crimson/osd: support 1 lossy connection between a heartbeat peer

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35815 from inspur-wyq/wip-doc-radosgw-archive-sync-module
Kefu Chai [Mon, 29 Jun 2020 05:46:03 +0000 (13:46 +0800)]
Merge pull request #35815 from inspur-wyq/wip-doc-radosgw-archive-sync-module

doc/radosgw/archive-sync-module: fix url of "Multisite Configuration"

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: improve readability of Heartbeat::Peer classes 34311/head
Yingxin Cheng [Sun, 28 Jun 2020 02:59:15 +0000 (10:59 +0800)]
crimson/osd: improve readability of Heartbeat::Peer classes

* Add rationales to introduce Heartbeat::Peer class series.
* Find better names for internal interfaces.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agoMerge pull request #35787 from tchaikov/wip-46208
Kefu Chai [Sun, 28 Jun 2020 13:19:44 +0000 (21:19 +0800)]
Merge pull request #35787 from tchaikov/wip-46208

install-deps,cmake: use boost v1.73

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #35771 from sebastian-philipp/mypy-0.782
Kefu Chai [Sun, 28 Jun 2020 10:40:16 +0000 (18:40 +0800)]
Merge pull request #35771 from sebastian-philipp/mypy-0.782

qa,src: update mypy to 0.782

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
5 years agoMerge pull request #35763 from rzarzynski/wip-test-unused-var-in-test_ino_release_cb
Kefu Chai [Sun, 28 Jun 2020 10:39:10 +0000 (18:39 +0800)]
Merge pull request #35763 from rzarzynski/wip-test-unused-var-in-test_ino_release_cb

test: fix unused variable warning in test_ino_release_cb.cc.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35666 from inspur-wyq/wip-debian-cmake-version
Kefu Chai [Sun, 28 Jun 2020 10:38:26 +0000 (18:38 +0800)]
Merge pull request #35666 from inspur-wyq/wip-debian-cmake-version

debian: update cmake version to cmake_minimum_required(VERSION 3.10.2)

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agodoc/radosgw/archive-sync-module.rst: fix url of "Multisite Configuration" 35815/head
wangyunqing [Sun, 28 Jun 2020 08:06:14 +0000 (16:06 +0800)]
doc/radosgw/archive-sync-module.rst: fix url of "Multisite Configuration"

Signed-off-by: wangyunqing <wangyunqing@inspur.com>
5 years agoMerge pull request #35750 from rzarzynski/wip-common-config-dissect-boolcast
Kefu Chai [Sat, 27 Jun 2020 15:17:42 +0000 (23:17 +0800)]
Merge pull request #35750 from rzarzynski/wip-common-config-dissect-boolcast

common, crimson: reuse the interpreter of Option::TYPE_BOOL

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35512 from ZhenLiu94/liuz02
Kefu Chai [Sat, 27 Jun 2020 15:16:41 +0000 (23:16 +0800)]
Merge pull request #35512 from ZhenLiu94/liuz02

src/mon/MonCommands.h: Remove the redundant right parenthesis in the help message

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35760 from tchaikov/wip-mgr-track-pending-module
Kefu Chai [Sat, 27 Jun 2020 15:15:28 +0000 (23:15 +0800)]
Merge pull request #35760 from tchaikov/wip-mgr-track-pending-module

mgr: avoid false alarm of MGR_MODULE_ERROR

Reviewed-By: Josh Durgin <jdurgin@redhat.com>
5 years agokv/RocksDBStore: use scoped_guard for destroying cf 35811/head
Kefu Chai [Sat, 27 Jun 2020 14:15:27 +0000 (22:15 +0800)]
kv/RocksDBStore: use scoped_guard for destroying cf

to make sure that the handles are released before db is deleted

Fixes: https://tracker.ceph.com/issues/46054
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agokv/RocksDBStore: use unique_ptr for destroying cf
Kefu Chai [Sat, 27 Jun 2020 14:11:50 +0000 (22:11 +0800)]
kv/RocksDBStore: use unique_ptr for destroying cf

to avoid leak in ColumnFamilySet

Fixes: https://tracker.ceph.com/issues/46054
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agokv/RocksDBStore: use map for tracking cfs
Kefu Chai [Sat, 27 Jun 2020 13:20:21 +0000 (21:20 +0800)]
kv/RocksDBStore: use map for tracking cfs

instead of using two vectors, use a map for tracking names and handles
of column families.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agokv/RocksDBStore: replace raw ptr with unique_ptr
Kefu Chai [Sat, 27 Jun 2020 11:42:17 +0000 (19:42 +0800)]
kv/RocksDBStore: replace raw ptr with unique_ptr

for better readablity

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agotest/objectstore: group subtests using braces
Kefu Chai [Sat, 27 Jun 2020 11:35:32 +0000 (19:35 +0800)]
test/objectstore: group subtests using braces

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agokv/RocksDBStore: use structured binding for better readablity
Kefu Chai [Sat, 27 Jun 2020 11:30:35 +0000 (19:30 +0800)]
kv/RocksDBStore: use structured binding for better readablity

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agojson_spirit: avoid using bind placeholders in global namespace 35787/head
Kefu Chai [Fri, 26 Jun 2020 14:26:40 +0000 (22:26 +0800)]
json_spirit: avoid using bind placeholders in global namespace

to silence the warning from boost v1.73, like

json_spirit/json_spirit_reader.cpp:7:
/opt/ceph/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> +
using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
   36 | BOOST_PRAGMA_MESSAGE(
      | ^~~~~~~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomake-dist: redistribute boost 1.73
Kefu Chai [Fri, 26 Jun 2020 14:41:39 +0000 (22:41 +0800)]
make-dist: redistribute boost 1.73

Fixes: https://tracker.ceph.com/issues/46208
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agopy-common/deployment/translate: drop unneeded ctor arg 35800/head
Jan Fajerski [Fri, 26 Jun 2020 13:18:18 +0000 (15:18 +0200)]
py-common/deployment/translate: drop unneeded ctor arg

The DriveGroupSpec is already part of the DriveSelection.

Fixes: https://tracker.ceph.com/issues/46231
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
5 years agoMerge pull request #35490 from sseshasa/wip-grace-interval-timer-reset
Sridhar Seshasayee [Fri, 26 Jun 2020 11:26:07 +0000 (16:56 +0530)]
Merge pull request #35490 from sseshasa/wip-grace-interval-timer-reset

mon/OSDMonitor: Reset grace period if failure interval exceeds a threshold.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoqa,src: update mypy to 0.782 35771/head
Sebastian Wagner [Thu, 25 Jun 2020 12:11:54 +0000 (14:11 +0200)]
qa,src: update mypy to 0.782

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35791 from tchaikov/wip-mock-rados
Kefu Chai [Fri, 26 Jun 2020 10:09:59 +0000 (18:09 +0800)]
Merge pull request #35791 from tchaikov/wip-mock-rados

script/gen_static_command_descriptions: add mock for rados python binding

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoscript/gen_static_command_descriptions: add mock for rados python binding 35791/head
Kefu Chai [Fri, 26 Jun 2020 09:48:42 +0000 (17:48 +0800)]
script/gen_static_command_descriptions: add mock for rados python binding

to address issue like

Traceback (most recent call last):
  File "/home/jenkins-build/build/workspace/ceph-pr-docs/doc/scripts/../../src/script/gen_static_command_descriptions.py", line 168, in <module>
    print(json.dumps(gen_commands_dicts(), indent=2, sort_keys=True))
  File "/home/jenkins-build/build/workspace/ceph-pr-docs/doc/scripts/../../src/script/gen_static_command_descriptions.py", line 163, in gen_commands_dicts
    comms = from_mon_commands_h() + from_mgr_modules()
  File "/home/jenkins-build/build/workspace/ceph-pr-docs/doc/scripts/../../src/script/gen_static_command_descriptions.py", line 85, in from_mgr_modules
    comms = sum([list_mgr_module(name) for name in names], [])
  File "/home/jenkins-build/build/workspace/ceph-pr-docs/doc/scripts/../../src/script/gen_static_command_descriptions.py", line 85, in <listcomp>
    comms = sum([list_mgr_module(name) for name in names], [])
  File "/home/jenkins-build/build/workspace/ceph-pr-docs/doc/scripts/../../src/script/gen_static_command_descriptions.py", line 65, in list_mgr_module
    mgr_mod = __import__(m_name, globals(), locals(), [], 0)
  File "/home/jenkins-build/build/workspace/ceph-pr-docs/src/pybind/mgr/volumes/__init__.py", line 2, in <module>
    from .module import Module
  File "/home/jenkins-build/build/workspace/ceph-pr-docs/src/pybind/mgr/volumes/module.py", line 8, in <module>
    from .fs.nfs import NFSCluster, FSExport
  File "/home/jenkins-build/build/workspace/ceph-pr-docs/src/pybind/mgr/volumes/fs/nfs.py", line 6, in <module>
    from rados import TimedOut
ImportError: cannot import name 'TimedOut'

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: download and build boost 1.73 if it is not installed
Kefu Chai [Fri, 26 Jun 2020 07:48:11 +0000 (15:48 +0800)]
cmake: download and build boost 1.73 if it is not installed

Fixes: https://tracker.ceph.com/issues/46208
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: update FindBoost.cmake for 1.73
Kefu Chai [Fri, 26 Jun 2020 07:35:38 +0000 (15:35 +0800)]
cmake: update FindBoost.cmake for 1.73

adapted from
https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake
commit b76b4dea1cd60e9899fd641602901ded9e0d7a7b

Fixes: https://tracker.ceph.com/issues/46208
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoinstall-deps.sh: use ceph-libboost1.73
Kefu Chai [Fri, 26 Jun 2020 07:26:46 +0000 (15:26 +0800)]
install-deps.sh: use ceph-libboost1.73

Fixes: https://tracker.ceph.com/issues/46208
Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #34744 from ceph/rhbz-1827349
Jan Fajerski [Fri, 26 Jun 2020 09:15:59 +0000 (11:15 +0200)]
Merge pull request #34744 from ceph/rhbz-1827349

ceph-volume: handle idempotency with batch and explicit scenarios

5 years agoMerge pull request #35468 from guits/guits-raw_dmcrypt
Sébastien Han [Fri, 26 Jun 2020 08:38:58 +0000 (10:38 +0200)]
Merge pull request #35468 from guits/guits-raw_dmcrypt

ceph-volume: add dmcrypt support in raw mode

5 years agomgr/dashboard: run lint and fix scripts in parallel 35615/head
Ishan Rai [Thu, 25 Jun 2020 14:28:30 +0000 (14:28 +0000)]
mgr/dashboard: run lint and fix scripts in parallel

use npm-run-all package to run all the lint scripts and fix
scripts in parallel

Fixes: https://tracker.ceph.com/issues/46108
Signed-off-by: Ishan Rai <ishanrai05@gmail.com>
5 years agoMerge pull request #35770 from tchaikov/wip-install-deps
Kefu Chai [Fri, 26 Jun 2020 07:06:48 +0000 (15:06 +0800)]
Merge pull request #35770 from tchaikov/wip-install-deps

install-deps.sh: drop el7 bits and uninstall python-sphinx if sphinx-build is in python2

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agocephadm: ceph-iscsi remove pool from cap 35786/head
Matthew Oliver [Fri, 26 Jun 2020 00:15:12 +0000 (00:15 +0000)]
cephadm: ceph-iscsi remove pool from cap

When we create a ceph-iscsi daemon/continer in cephadm we create a user
and set some caps. Turns out we were a little too restrictive.

We were locking down to only access the pool that was given in the spec,
which happens to be the pool the iscsi config is stored. But in reality
we need to be able  to attach any rbd images which could exist in other
pools.

So this patch removes the `pool=` from the osd cap, so from:

   osd = allow rwx pool={spec.pool}

To:

   osd = allow rwx

Fixes: https://tracker.ceph.com/issues/46138
Signed-off-by: Matthew Oliver <moliver@suse.com>