Commit Graph

112757 Commits

Author SHA1 Message Date
Kefu Chai
5bbbbc66ce crimson/osd: implement flush_pg_stats command
this command is used by teuthology based tests for updating the mgr with
the lastes pg stats on OSD.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-03 16:09:38 +08:00
Kefu Chai
d5e1d104ff crimson/{mgr,osd}: add WithStats::update_stats()
because we need to implement a tell command which forces osd to
send the latest pg stats to mgr, and the command returns the user with
the sequence id of the report, and `mgr::Client::report()` does not
return a future, so we have to update the seq id before sending
the report. the solution is to update the seq id in a separated
method, so in this change:

* add `const` to `WithStats::get_stats()
* add a dedicated method of `WithStats::update_stats()` to update
  the stats to be collected by mgr::Client.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-03 16:09:38 +08:00
Kefu Chai
99067b8dc6
Merge pull request #35887 from joscollin/wip-update-kyr
.githubmap: add Kyr

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-07-03 09:48:55 +08:00
Kefu Chai
9e5da00b74
Merge pull request #35845 from tchaikov/wip-rpm-crimson
rpm: package crimson-osd in ceph-osd

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
2020-07-03 09:46:31 +08:00
Neha Ojha
c36c96d2fa
Merge pull request #35867 from jwilk-forks/spelling
doc/dev/osd_internals: fix typos

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-07-02 17:48:50 -07:00
Kefu Chai
0e6004cc6e
Merge pull request #35894 from tchaikov/wip-crimson-os
crimson/os: pin the last cpu core for the alien worker threads 

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
2020-07-02 22:48:00 +08:00
Lenz Grimmer
6e90a165c2
Merge pull request #35745 from votdev/issue_46146_delete_host
mgr/dashboard: Host delete action should be disabled if not managed by Orchestrator

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2020-07-02 15:52:18 +02:00
Lenz Grimmer
a1d5a6e32c
Merge pull request #35642 from tspmelo/wip-fix-flicker
mgr/dashboard: Re-enable OSD's table autoReload

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2020-07-02 15:50:06 +02:00
Lenz Grimmer
74f42ec2ce
Merge pull request #34889 from votdev/issue_43120_tabs
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-07-02 15:47:10 +02:00
Kefu Chai
ddfba53b1c crimson/os/alienstore: assert on failure
before we have a failure recovery, better off failing fast.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-02 19:38:16 +08:00
Kefu Chai
2ba13668a6 crimson/os: pin the last cpu core for the alien worker threads
before this change, we assume that we have at least current_shared + 10
cores. but that's not always true. so in this change, the last core
is used for performing the alien tasks scheduled by reactor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-07-02 19:38:16 +08:00
Volker Theile
5c5d0bac4f mgr/dashboard: stay on active tab (accessible via URL)
This PR refactors the /monitoring page by introducing a new component which is responsible for rendering the tabs. All tabs have a dedicated route/URL now, no fragments are used anymore, thus they will act like the iSCSI and RBD pages.

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

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-07-02 11:11:57 +02:00
Ilya Dryomov
0195fd53f1
Merge pull request #35816 from idryomov/wip-msgr21-fix-reuse
msg/async/ProtocolV2: take care of features when replacing the socket

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-07-02 10:54:16 +02:00
Lenz Grimmer
3343e87350
Merge pull request #35854 from tspmelo/wip-fix-nfs-loading
mgr/dashboard: Fix NFS Edit page loading problem

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2020-07-02 10:29:13 +02:00
Sebastian Wagner
faf701d787
Merge pull request #35823 from bk201/wip-46245
mgr/cephadm: reconfig ssh after setting or clearing ssh_config

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-07-02 10:22:32 +02:00
Lenz Grimmer
fe9b920d6d
Merge pull request #35765 from votdev/issue_46145_reset_action_button
mgr/dashboard: Action button is not reset after switching tabs

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-07-02 10:20:46 +02:00
Lenz Grimmer
74ba53be98
Merge pull request #35803 from s0nea/wip-dashboard-remove-formatted-attr
mgr/dashboard: remove cdCopy2ClipboardButton `formatted` attribute

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-07-02 09:59:24 +02:00
Lenz Grimmer
ea7fd5fc35
Merge pull request #35828 from votdev/issue_46249_rm_tab
mgr/dashboard: Remove useless tab in monitoring/alerts datatable details

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-07-02 09:57:37 +02:00
Laura Paduano
44908df6e5
Merge pull request #35564 from rhcs-dashboard/wip-45957-fixUiApiEndpoints
mgr/dashboard: fix ui api endpoints
2020-07-02 09:08:07 +02:00
Jos Collin
dd7e753c9d
.githubmap: add Kyr
Signed-off-by: Jos Collin <jcollin@redhat.com>
2020-07-02 12:05:54 +05:30
Jos Collin
e4673f4778
Merge pull request #35639 from joscollin/wip-fix-sh-as-in-teuthology
qa/tasks: make sh() in vstart_runner.py identical with teuthology.orchestra.remote.sh

Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2020-07-02 11:56:19 +05:30
Jason Dillaman
5d85397905
Merge pull request #35037 from CongMinYin/qa-test-for-immutale-object-cache
qa: add tests for immutable object cache

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-07-01 20:08:11 -04:00
Yin Congmin
1af4ed0a76 librbd/image: fix immutable object cache read failed bug when daemon down
Fix bug: read child image failed when enabling immutable object cache and daemon down

Signed-off-by: Yin Congmin <congmin.yin@intel.com>
2020-07-01 14:19:59 -04:00
Yin Congmin
25f1f62cba qa: add tests for immutable object cache
based on qemu task, use immutable_object_cache task to test parent cache
based on rbd_fio task, use immutable_object_cache task to test parent cache

Signed-off-by: Yin Congmin <congmin.yin@intel.com>
Signed-off-by: Feng Hualong <hualong.feng@intel.com>
2020-07-01 14:19:59 -04:00
Jason Dillaman
33dd9ea305
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>
2020-07-01 13:18:21 -04:00
Jason Dillaman
82e27b536a
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>
2020-07-01 13:18:00 -04:00
Kefu Chai
a914e094e1
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>
2020-07-01 23:26:54 +08:00
Josh Durgin
124ffa4663
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>
2020-07-01 07:59:34 -07:00
Lenz Grimmer
5859346631
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>
2020-07-01 16:17:03 +02:00
Josh Durgin
8233d86784
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>
2020-07-01 07:12:19 -07:00
Sebastian Wagner
7efae08d28
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>
2020-07-01 15:17:11 +02:00
Kefu Chai
87395bcf1e
Merge pull request #35811 from tchaikov/wip-46054
kv/RocksDBStore: always release column family handles

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
2020-07-01 20:47:28 +08:00
Lenz Grimmer
4af207735e
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>
2020-07-01 14:21:19 +02:00
Jos Collin
63a9ddc57f
qa/tasks: make sh() in vstart_runner.py identical with teuthology.orchestra.remote.sh
Fixes: https://tracker.ceph.com/issues/46069
Signed-off-by: Jos Collin <jcollin@redhat.com>
2020-07-01 17:49:35 +05:30
Sebastian Wagner
b911a95652
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>
2020-07-01 13:08:02 +02:00
Nathan Cutler
1c480a58d8 doc/releases/octopus: add 15.2.4 release notes
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2020-07-01 12:36:44 +02:00
Jakub Wilk
e3cc60e631 doc/dev/osd_internals: fix typos
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
2020-07-01 11:56:25 +02:00
Ricardo Marques
83ff83157c cephadm: Add "--format" option to "ceph orch status"
Fixes: https://tracker.ceph.com/issues/46233

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2020-07-01 10:05:33 +01:00
Sebastian Wagner
d3b8716e96
Merge pull request #35577 from mgfritch/orch-test-iscsi
mgr/test_orchestrator: add iscsi

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-07-01 10:06:02 +02:00
Patrick Donnelly
2555ed1def
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>
2020-06-30 19:32:58 -07:00
Patrick Donnelly
4ebb2581d6 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>
2020-06-30 23:17:38 +05:30
Varsha Rao
4da7581675 pybind/mgr/volumes/nfs: Fix flake8 errors
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
d7396fdc0f qa/tasks/test_nfs: Add todo note for cluster update test
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
5f506e3969 qa/tasks/cephfs/test_nfs: Add test for get and list detailed export
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
1aa2a660bd qa/tasks/cephfs/test_nfs: Add test for export user id
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
dfa3ab4349 qa/tasks/cephfs/test_nfs: Add description for each test
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
55fd634e88 doc/cephfs: Add list and get export usage
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
Varsha Rao
eab60b5fad qa/tasks/cephfs: Add tests for export create with non-existing fsname and cluster id
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-06-30 23:17:38 +05:30
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