Commit Graph

112876 Commits

Author SHA1 Message Date
Varsha Rao
285ab1b4ae qa/tasks/cephfs: Add tests for invalid cluster id, export type and modify list cluster
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
9418b42b29 qa/tasks/cephfs: Add test for listing exports
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
ed20bd8693 pybind/mgr/volumes/nfs: Reorder FSExport and NFSCluster class methods
To maintain consistency and improve readability.

Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
2692a94d69 mgr/volumes/nfs: Set pool_namespace and cluster_id through decorator
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
9d83045467 mgr/volumes/nfs: Check cluster availability in export command methods
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
310c7fbf73 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>
2020-06-30 23:17:38 +05:30
Varsha Rao
eb2cd16fbe qa/tasks/cephfs: Add test for nfs cluster ls command
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
b77c3eef78 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>
2020-06-30 23:17:38 +05:30
Varsha Rao
555da003fb mgr/volumes/nfs: Remove 'ganesha-' prefix from orch returned service id
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Ramana Raja
7dcefb158d mgr/volumes/nfs: get export in a nfs cluster
Fixes: https://tracker.ceph.com/issues/45741
Signed-off-by: Ramana Raja <rraja@redhat.com>
2020-06-30 23:17:38 +05:30
Ramana Raja
6f8d20f2cb 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>
2020-06-30 23:17:38 +05:30
Ramana Raja
7ae24c22f6 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>
2020-06-30 23:17:38 +05:30
Varsha Rao
3b554f2310 qa/tasks/cephfs: Add test to check if export is available on restarting mgr
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
1a55888b1b qa/tasks/cephfs: Add idempotency test for nfs commands
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
c13a40b99e 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>
2020-06-30 23:17:38 +05:30
Varsha Rao
162a57156f 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>
2020-06-30 23:17:38 +05:30
Patrick Donnelly
f7f156db5e
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>
2020-06-30 10:37:29 -07:00
Patrick Donnelly
95332d5fab
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>
2020-06-30 10:36:36 -07:00
Abutalib Aghayev
efe1cd410a os/bluestore: Move Int64ArrayMergeOperator from BlueStore.cc to
bluestore_common.h

Int64ArrayMergeOperator will be used by ZonedFreelistManager as well.

Signed-off-by: Abutalib Aghayev <agayev@cs.cmu.edu>
2020-06-30 12:54:40 -04:00
Tiago Melo
4b2f28af47 mgr/dashboard: Use ng-bootstrap for Datepicker
Fixes: https://tracker.ceph.com/issues/45757

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-06-30 16:44:35 +00:00
Kefu Chai
fb74d5443a test/unittest_lockdep: skip lockdep test if CEPH_DEBUG_MUTEX is not defined
this change addresses a regression introduced by
2dc50b5f91

Fixes: https://tracker.ceph.com/issues/46267
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-06-30 23:16:07 +08:00
Tiago Melo
d30bd44307 mgr/dashboard: Fix NFS Edit page loading problem
We were trying to access a component that is only created
after the form loading is finished, before it was finished.

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

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-06-30 14:30:02 +00:00
Jan Fajerski
2650550192
Merge pull request #32493 from rishabh-d-dave/cv-use-dash-S-everywhere
ceph-volume: don't use container classes in api/lvm.py
2020-06-30 14:59:44 +02:00
Daniel-Pivonka
1052b9db7b 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>
2020-06-30 08:57:24 -04:00
Tiago Melo
ce34442476 mgr/dashboard: Fix title of disabled table actions
Fix regression introduced in a1fac664f5.
Title attribute was unintentionally removed from the table actions.

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

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-06-30 11:21:22 +00:00
Tiago Melo
e5d94e24ec mgr/dashboard: Re-enable OSD's table autoReload
Fixes: https://tracker.ceph.com/issues/45303

Signed-off-by: Tiago Melo <tmelo@suse.com>
2020-06-30 11:00:46 +00:00
Kefu Chai
7948e2de78
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>
2020-06-30 18:52:24 +08:00
Lenz Grimmer
ffaf709cad
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>
2020-06-30 11:51:04 +02:00
Rishabh Dave
ca1d3e694c 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>
2020-06-30 14:21:12 +05:30
Rishabh Dave
dfe6b1b903 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>
2020-06-30 14:21:12 +05:30
Rishabh Dave
a6e3c69c6c 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>
2020-06-30 14:21:12 +05:30
Rishabh Dave
b2254050c0 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>
2020-06-30 14:21:12 +05:30
Rishabh Dave
5301c4959e 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>
2020-06-30 14:21:12 +05:30
Rishabh Dave
2f5c10c12c 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>
2020-06-30 14:21:11 +05:30
Lenz Grimmer
399521d66b
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>
2020-06-30 10:50:59 +02:00
Sebastian Wagner
e5d8df1a7a
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>
2020-06-30 10:50:21 +02:00
Lenz Grimmer
4bfa514fdb
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>
2020-06-30 10:46:54 +02:00
Lenz Grimmer
15ffb4e7aa
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>
2020-06-30 10:31:43 +02:00
Kefu Chai
8f1620b3c9 rpm: package crimson-osd in ceph-osd
in hope to simplify the enabling of crimson-osd. as we will use cephadm
as the way for deploying crimson-osd in future. it's unlikely we will
have classic osd and crimson osd co-located in the same system. so
this is most simple way to enable crimson-osd with minimum efforts.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-06-30 16:14:18 +08:00
Lenz Grimmer
9b1f949ae8
Merge pull request #35615 from ishanrai05/scss-linting
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-06-30 10:01:24 +02:00
Patrick Donnelly
a63b9ca3d3
Merge PR #35826 into master
* refs/pull/35826/head:
	mds: fix typo in MDSSocketHook

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-06-29 12:57:23 -07:00
Ilya Dryomov
cedf2bbd13
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>
2020-06-29 16:36:39 +02:00
Abhishek L
014b4cfa99
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>
2020-06-29 16:29:31 +02:00
Nathan Cutler
5300cd6c4c doc/releases/nautilus: add 14.2.10 release notes
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2020-06-29 15:39:06 +02:00
Sebastian Wagner
ef71436bab
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>
2020-06-29 15:10:37 +02:00
Sebastian Wagner
b1996f2bb3
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>
2020-06-29 14:33:43 +02:00
Lenz Grimmer
0be19ba300
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>
2020-06-29 14:20:46 +02:00
Radoslaw Zarzynski
3fdfd606f1 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>
2020-06-29 13:29:54 +02:00
Volker Theile
505b0433d1 mgr/dashboard: Remove useless tab in monitoring/alerts datatable details
Fixes: https://tracker.ceph.com/issues/46249

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-06-29 11:05:06 +02:00
Kefu Chai
e630bebb4e mgr/dashboard: print osd log as well
see also https://tracker.ceph.com/issues/45717

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-06-29 16:30:12 +08:00