]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Patrick Donnelly [Tue, 10 Dec 2019 23:08:41 +0000 (15:08 -0800)]
qa: fix output check to not be sensitive to debugging
The traceback would screw up the equality checks.
Also, use unittest asserts so we can easily see the assert values.
Fixes: https://tracker.ceph.com/issues/43247
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Sage Weil [Tue, 10 Dec 2019 22:40:58 +0000 (16:40 -0600)]
Merge PR #31772 into master
* refs/pull/31772/head:
qa/standalone/test_ceph_daemon.sh: clone corpus explicitly
ceph-daemon: re-enable the OSD standalone test
ceph-daemon: move standalone test tgz to corpus
ceph-daemon: add ceph-daemon-adoption-corpus.git submodule
Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Jason Dillaman [Tue, 10 Dec 2019 21:41:28 +0000 (16:41 -0500)]
Merge pull request #30548 from trociny/wip-41557
rbd-mirror: snapshot mirror mode
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Patrick Donnelly [Tue, 10 Dec 2019 21:33:54 +0000 (13:33 -0800)]
Merge PR #31122 into master
* refs/pull/31122/head:
mds: Reorganize class members in MDSTable header
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Tue, 10 Dec 2019 21:32:19 +0000 (13:32 -0800)]
Merge PR #31253 into master
* refs/pull/31253/head:
mds: Reorganize class members in Migrator header
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Tue, 10 Dec 2019 21:31:28 +0000 (13:31 -0800)]
Merge PR #31596 into master
* refs/pull/31596/head:
mds: Reorganize class members in PurgeQueue header
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Sage Weil [Tue, 10 Dec 2019 20:33:02 +0000 (14:33 -0600)]
Merge PR #32148 into master
* refs/pull/32148/head:
doc/releases/nautilus: fix release notes (crash->device)
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
David Zafman [Tue, 10 Dec 2019 18:56:04 +0000 (10:56 -0800)]
Merge pull request #32041 from dzafman/wip-balancer3-pending
release note: Add pending release notes for already merged code
Reviewed-by: Neha Ojha <nojha@redhat.com>
Sage Weil [Fri, 6 Dec 2019 22:00:36 +0000 (16:00 -0600)]
qa/standalone/test_ceph_daemon.sh: clone corpus explicitly
When this is run by teuthology we don't have a full ceph source tree
checkout with submodules.
Signed-off-by: Sage Weil <sage@redhat.com>
Michael Fritch [Wed, 4 Dec 2019 22:55:12 +0000 (15:55 -0700)]
ceph-daemon: re-enable the OSD standalone test
Signed-off-by: Michael Fritch <mfritch@suse.com>
Michael Fritch [Wed, 4 Dec 2019 22:50:46 +0000 (15:50 -0700)]
ceph-daemon: move standalone test tgz to corpus
Fixes: https://tracker.ceph.com/issues/42876
Signed-off-by: Michael Fritch <mfritch@suse.com>
Michael Fritch [Wed, 4 Dec 2019 18:45:30 +0000 (11:45 -0700)]
ceph-daemon: add ceph-daemon-adoption-corpus.git submodule
Signed-off-by: Michael Fritch <mfritch@suse.com>
Sage Weil [Tue, 10 Dec 2019 18:16:23 +0000 (12:16 -0600)]
Merge PR #32127 into master
* refs/pull/32127/head:
mgr/rook: Added Mypy static type checking
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 10 Dec 2019 18:16:07 +0000 (12:16 -0600)]
Merge PR #32138 into master
* refs/pull/32138/head:
ceph-daemon: combine SUDO and ARGS into a single var
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 10 Dec 2019 18:15:53 +0000 (12:15 -0600)]
Merge PR #32137 into master
* refs/pull/32137/head:
ceph-daemon: don't deref symlinks during chown
Reviewed-by: Sage Weil <sage@redhat.com>
Patrick Donnelly [Tue, 10 Dec 2019 17:22:06 +0000 (09:22 -0800)]
Merge PR #32145 into master
* refs/pull/32145/head:
doc: show how to count jobs before triggering them
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Kefu Chai [Tue, 10 Dec 2019 16:28:49 +0000 (00:28 +0800)]
Merge pull request #32140 from tchaikov/wip-cmake-cleanup
cmake: silence messages when cppcheck/IWYU is not found
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
David Zafman [Tue, 10 Dec 2019 16:08:37 +0000 (08:08 -0800)]
Merge pull request #31954 from dzafman/wip-42346
osd: Use physical ratio for nearfull (doesn't include backfill resserve)
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Mykola Golub [Sat, 30 Nov 2019 17:07:38 +0000 (17:07 +0000)]
librbd: force promote for snapshot mirroring
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Wed, 4 Dec 2019 09:31:48 +0000 (09:31 +0000)]
librbd: introduce LIST_WATCHERS_MIRROR_INSTANCES_ONLY flag
Also, don't skip listing mirror watchers if the image has journaling
disabled -- it is not correct for snapshot mirror mode.
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 28 Nov 2019 11:04:35 +0000 (11:04 +0000)]
librbd: refactor CreateNonPrimaryRequest and CreatePrimaryRequest
to extract re-usable functions into utils
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 21 Nov 2019 14:26:34 +0000 (14:26 +0000)]
librbd: store/remove image state when creating/removing mirror snapshot
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 21 Nov 2019 14:25:46 +0000 (14:25 +0000)]
librbd: requests for mirror snapshot image state
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 21 Nov 2019 14:21:09 +0000 (14:21 +0000)]
cls/rbd: async methods for snapshot_get_limit
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Sun, 10 Nov 2019 18:09:34 +0000 (18:09 +0000)]
rbd: list primary mirror snapshots in mirror image status
TODO: provide the same in verbose mirror pool status.
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Sun, 10 Nov 2019 10:17:44 +0000 (10:17 +0000)]
rbd: add 'mirror image snapshot' command
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Wed, 13 Nov 2019 16:24:48 +0000 (16:24 +0000)]
librbd: API method to get mirror image mode
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Sun, 3 Nov 2019 15:31:42 +0000 (15:31 +0000)]
librbd: add mirror image snapshot tests
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 19 Sep 2019 13:07:16 +0000 (14:07 +0100)]
librbd: add mirror image snapshot API
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 10 Oct 2019 19:17:37 +0000 (20:17 +0100)]
librbd: when removing mirror peer unlink it from all snapshots
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Sun, 1 Sep 2019 08:48:16 +0000 (09:48 +0100)]
librbd: snapshot mirror mode
Enabling mirroring for an image that does not support journaling
assumes snapshot based mirroring, which is supported only when the
pool is in the "image" mirror mode.
Also for the pool in the "image" mirror mode disabling/enabling
journaling feature for a mirroring image will switch
snapshot/journal mirror mode.
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Fri, 11 Oct 2019 18:32:31 +0000 (19:32 +0100)]
librbd: state machine for snapshot based mirror promote/demote
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 10 Oct 2019 15:18:00 +0000 (16:18 +0100)]
librbd: state machine for creating mirroring snapshot
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Mon, 7 Oct 2019 16:07:34 +0000 (17:07 +0100)]
librbd: state machine for unlinking peer from mirror snapshot
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 24 Oct 2019 15:28:36 +0000 (16:28 +0100)]
cls/rbd: method to set mirror snapshot copy progress
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Wed, 9 Oct 2019 13:38:55 +0000 (14:38 +0100)]
cls/rbd: method to unlink peer from mirror snapshot
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Thu, 10 Oct 2019 15:14:46 +0000 (16:14 +0100)]
cls/rbd: async methods for mirror_peer_list
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Tue, 12 Nov 2019 15:05:46 +0000 (15:05 +0000)]
librbd: cleanup: remove unused function
Signed-off-by: Mykola Golub <mgolub@suse.com>
Mykola Golub [Mon, 4 Nov 2019 09:59:32 +0000 (09:59 +0000)]
cls/rbd: add mode (journal/snapshot) to mirror image
Signed-off-by: Mykola Golub <mgolub@suse.com>
Michael Fritch [Tue, 10 Dec 2019 04:42:43 +0000 (21:42 -0700)]
ceph-daemon: don't deref symlinks during chown
- consolidate move/copy loop logic
- chown the actual file and not the symlink
Signed-off-by: Michael Fritch <mfritch@suse.com>
Sage Weil [Tue, 10 Dec 2019 14:49:52 +0000 (08:49 -0600)]
Merge PR #32132 into master
* refs/pull/32132/head:
osd/OSDMap: rename old calc_pg_role -> calc_pg_role_broken
osd/OSDMap: remove dead osd_is_valid_op_target
osd/OSDMap: fix get_pg_acting_role()
osd: use spg_t for pending_creates_from_osd
osd/OSDMap: drop unused get_pg_acting_role()
osd/OSDMap: fix+simplify is_up_acting_osd_shard
osd: use new and improved calc_pg_role()
osd/OSDMap: new calc_pg_role() that takes a pg_shard_t
osd/OSDMap: calc_pg_rank -> calc_pg_role
osd/PeeringState: debug lines for upacting_features, proc_lease
osd/PeeringState: use pg_vector_string for operator<<
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Tue, 10 Dec 2019 14:32:02 +0000 (08:32 -0600)]
doc/releases/nautilus: fix release notes (crash->device)
Fix pending note for octopus too
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 10 Dec 2019 13:15:59 +0000 (07:15 -0600)]
Merge PR #31827 into master
* refs/pull/31827/head:
mgr/ssh: add 'upgrade check' command
ceph-daemon: add 'pull' command
mgr/orchestrator_cli: document orchestrator option
mgr/ssh: move entity name munging into a helper
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Sage Weil [Tue, 10 Dec 2019 13:13:47 +0000 (07:13 -0600)]
Merge PR #31970 into master
* refs/pull/31970/head:
doc/releases: add Nautilus 14.2.5 to release timeline
doc/releases: add release notes for nautilus v14.2.5
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Kefu Chai [Tue, 10 Dec 2019 13:12:28 +0000 (21:12 +0800)]
Merge pull request #32141 from tchaikov/wip-doc-highlight-console
doc: use the console lexer for rendering command line sessions
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Tue, 10 Dec 2019 13:07:29 +0000 (21:07 +0800)]
Merge pull request #31965 from rosinL/wip-osd-support-bond-network
osd/osd: Refactor get_iface_numa_node
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 10 Dec 2019 12:28:57 +0000 (20:28 +0800)]
Merge pull request #27392 from rouming/bluestore-iouring
os/bluestore: introduce new io_uring IO engine
Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sebastian Wagner [Tue, 10 Dec 2019 10:23:45 +0000 (11:23 +0100)]
Merge pull request #31979 from jan--f/c-v-patch-volumegroups
ceph-volume/test: patch VolumeGroups
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Lenz Grimmer [Tue, 10 Dec 2019 09:33:41 +0000 (09:33 +0000)]
Merge pull request #32122 from s0nea/wip-dashboard-fix-tests
qa/tasks/mgr/dashboard/test_health: update schema
Reviewed-by: Alfonso MartÃnez <almartin@redhat.com>
Rishabh Dave [Tue, 10 Dec 2019 09:31:17 +0000 (15:01 +0530)]
doc: show how to count jobs before triggering them
Suggesting to use teuthology-suite command switch --dry-run for that.
Signed-off-by: Rishabh Dave <ridave@redhat.com>
Roman Penyaev [Thu, 21 Mar 2019 17:10:11 +0000 (18:10 +0100)]
os/bluestore: introduce new io_uring IO engine
This implements low-level IO engine, which utilizes brand-new
io_uring IO interface: https://lwn.net/Articles/776428/
By default libaio is used. If bluestore_ioring=true is set but kernel
does not support io_uring or architecture is not x86-64, libaio will be
used instead.
In current patch liburing library is used in order not to open code
everything.
In order to compile with liburing WITH_LIBURING=ON should be specified.
Signed-off-by: Roman Penyaev <rpenyaev@suse.de>
Roman Penyaev [Tue, 26 Mar 2019 09:10:50 +0000 (10:10 +0100)]
os/bluestore: make abstract interface for any sorts of AIO queues
In the next patch new io_uring API will be used instead of libaio.
So this prepares the abstract interface.
Signed-off-by: Roman Penyaev <rpenyaev@suse.de>
Kefu Chai [Tue, 10 Dec 2019 09:18:03 +0000 (17:18 +0800)]
Merge pull request #32007 from tchaikov/wip-osd-cleanup
osd: use unique_ptr for managing life cycles
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Kefu Chai [Tue, 10 Dec 2019 09:13:21 +0000 (17:13 +0800)]
Merge pull request #31931 from majianpeng/bluestore-bugfix
os/bluestore: fix wakeup bug
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Kefu Chai [Tue, 10 Dec 2019 08:57:48 +0000 (16:57 +0800)]
Merge pull request #32052 from mgfritch/wip-cd-standalone-tempfiles
ceph-daemon: clean-up tempfiles on EXIT
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Yehuda Sadeh [Tue, 10 Dec 2019 05:51:27 +0000 (07:51 +0200)]
Merge pull request #32100 from yehudasa/wip-43184
qa: radosgw-admin: remove dependency on bunch package
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Jos Collin [Tue, 10 Dec 2019 05:42:03 +0000 (11:12 +0530)]
Merge pull request #31961 from joscollin/wip-B43038-subvolume-group-create-fail
mgr/volumes: check for string values in uid/gid
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Kefu Chai [Tue, 10 Dec 2019 04:41:36 +0000 (12:41 +0800)]
doc: use console lexer for rendering command line sessions
by default the pygements uses python lexer for rendering literal blocks,
and `#` is considered as the marker for inline comments. in this change,
the "console" lexer is specified explicitly. see
https://pygments.org/docs/lexers/#lexers-for-various-shells for more details,
in which "BashSessionLexer" is for this very use case.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Patrick Donnelly [Tue, 10 Dec 2019 03:52:41 +0000 (19:52 -0800)]
Merge PR #32124 into master
* refs/pull/32124/head:
doc/cephfs/disaster-recovery-experts: Add link for scrub and note for scrub_path
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Kefu Chai [Tue, 10 Dec 2019 03:03:13 +0000 (11:03 +0800)]
cmake: silence messages when cppcheck/IWYU is not found
* remove messages spit when these tools are not found
they are not necessary for building Ceph. and the messages in the cmake
output are distracting.
* fix a typo
Signed-off-by: Kefu Chai <kchai@redhat.com>
Patrick Donnelly [Tue, 10 Dec 2019 01:05:52 +0000 (17:05 -0800)]
Merge PR #27894 into master
* refs/pull/27894/head:
cephfs-shell: Add default list to df
cephfs-shell: Add tests for df command
cephfs-shell: Fix 'df' command errors
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Tue, 10 Dec 2019 00:39:36 +0000 (16:39 -0800)]
Merge PR #32131 into master
* refs/pull/32131/head:
codeowners: Add ceph2.py to @ceph/orchestrators
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Patrick Donnelly [Tue, 10 Dec 2019 00:36:59 +0000 (16:36 -0800)]
Merge PR #32038 into master
* refs/pull/32038/head:
doc: reorganize CephFS landing page and ToC
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Sage Weil [Tue, 10 Dec 2019 00:29:41 +0000 (18:29 -0600)]
Merge PR #32098 into master
* refs/pull/32098/head:
ceph-daemon: py2: tolerate whitespace before config key name
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Nathan Cutler [Mon, 9 Dec 2019 23:42:16 +0000 (00:42 +0100)]
Merge pull request #32037 from smithfarm/wip-43152-workaround
build/ops: make-dist: default to no dashboard frontend build parallelism
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Nathan Cutler [Mon, 9 Dec 2019 22:28:58 +0000 (23:28 +0100)]
doc/releases: add Nautilus 14.2.5 to release timeline
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Tue, 3 Dec 2019 11:53:08 +0000 (12:53 +0100)]
doc/releases: add release notes for nautilus v14.2.5
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Ilya Dryomov [Mon, 9 Dec 2019 21:59:13 +0000 (22:59 +0100)]
Merge pull request #32088 from idryomov/wip-krbd-exclusive-lock-fixups
qa: krbd_exclusive_option.sh: update for recent kernel changes
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Mon, 9 Dec 2019 21:34:57 +0000 (15:34 -0600)]
Merge PR #32046 into master
* refs/pull/32046/head:
mgr/DaemonServer: fix 'osd ok-to-stop' for EC pools
Reviewed-by: Neha Ojha <nojha@redhat.com>
Sage Weil [Mon, 9 Dec 2019 20:46:39 +0000 (14:46 -0600)]
Merge PR #31489 into master
* refs/pull/31489/head:
pybind/rados: add WriteOp::writesame() and test WriteOp::writesame()
pybind/rados: add Ioctx::aio_writesame() and test Ioctx::aio_writesame()
pybind/rados: add Ioctx::writesame() and test Ioctx::writesame()
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Sage Weil [Mon, 9 Dec 2019 20:46:09 +0000 (14:46 -0600)]
Merge PR #29214 into master
* refs/pull/29214/head:
mgr: templatize/generalize metrics collection interface
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Sage Weil [Mon, 9 Dec 2019 20:44:37 +0000 (14:44 -0600)]
Merge PR #32102 into master
* refs/pull/32102/head:
mgr/diskprediction_local: import scipy early to fix self-test deadlock
Reviewed-by: Kefu Chai <kchai@redhat.com>
David Zafman [Thu, 5 Dec 2019 17:52:04 +0000 (09:52 -0800)]
release note: Add pending release notes for already merged code
Follow on to https://github.com/ceph/ceph/pull/31774
Signed-off-by: David Zafman <dzafman@redhat.com>
Jason Dillaman [Mon, 9 Dec 2019 17:47:47 +0000 (12:47 -0500)]
Merge pull request #31794 from dillaman/wip-42889
librbd: disable zero-copy writes by default
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Jason Dillaman [Mon, 9 Dec 2019 17:37:37 +0000 (12:37 -0500)]
Merge pull request #32105 from junxfl/test1
librbd: fix rbd_open_by_id, rbd_open_by_id_read_only
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Daniel Gryniewicz [Mon, 9 Dec 2019 17:23:12 +0000 (12:23 -0500)]
Merge pull request #32109 from yehudasa/wip-42868
rgw: list buckets: don't return buckets if limit=0
Sage Weil [Mon, 9 Dec 2019 16:56:02 +0000 (10:56 -0600)]
osd/OSDMap: rename old calc_pg_role -> calc_pg_role_broken
Also primary_changed -> primary_changed_broken.
Logged this issue with https://tracker.ceph.com/issues/43213
Signed-off-by: Sage Weil <sage@redhat.com>
Michael Fritch [Mon, 9 Dec 2019 16:53:31 +0000 (09:53 -0700)]
ceph-daemon: combine SUDO and ARGS into a single var
- reduce the amount of typing/noise for each CEPH_DAEMON invocation
- ensure the `--image` param is passed to each test invocation
- allow passing additional args to ceph-daemon via CEPH_DAEMON_ARGS
Signed-off-by: Michael Fritch <mfritch@suse.com>
Sage Weil [Mon, 9 Dec 2019 16:53:08 +0000 (10:53 -0600)]
osd/OSDMap: remove dead osd_is_valid_op_target
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 9 Dec 2019 16:47:49 +0000 (10:47 -0600)]
osd/OSDMap: fix get_pg_acting_role()
This needs to take an spgid in order to know what role the osd is
serving.
Signed-off-by: Sage Weil <sage@redhat.com>
Sebastian Wagner [Mon, 9 Dec 2019 16:46:57 +0000 (17:46 +0100)]
codeowners: Add ceph2.py to @ceph/orchestrators
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Lenz Grimmer [Mon, 9 Dec 2019 16:44:56 +0000 (16:44 +0000)]
Merge pull request #32053 from votdev/left_align_badges
mgr/dashboard: Left align badge datatable columns
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Sage Weil [Mon, 9 Dec 2019 16:44:55 +0000 (10:44 -0600)]
osd: use spg_t for pending_creates_from_osd
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 9 Dec 2019 16:43:16 +0000 (10:43 -0600)]
osd/OSDMap: drop unused get_pg_acting_role()
No callers.
Signed-off-by: Sage Weil <sage@redhat.com>
Lenz Grimmer [Mon, 9 Dec 2019 16:42:54 +0000 (16:42 +0000)]
Merge pull request #31927 from bk201/wip-43072
mgr/dashboard: hide in-use devices when creating OSDs
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Sage Weil [Mon, 9 Dec 2019 16:42:39 +0000 (10:42 -0600)]
osd/OSDMap: fix+simplify is_up_acting_osd_shard
Use the new calc_pg_role() to simplify this function
Signed-off-by: Sage Weil <sage@redhat.com>
Lenz Grimmer [Mon, 9 Dec 2019 16:34:50 +0000 (16:34 +0000)]
Merge pull request #32084 from votdev/auth_service_observable
mgr/dashboard: Use Observable in auth.service
Reviewed-by: Alfonso MartÃnez <almartin@redhat.com>
Lenz Grimmer [Mon, 9 Dec 2019 16:32:03 +0000 (16:32 +0000)]
mgr/dashboard: Improve badge column template. (#32026)
mgr/dashboard: Improve badge column template.
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Sage Weil [Mon, 9 Dec 2019 16:30:26 +0000 (10:30 -0600)]
Merge PR #31907 into master
* refs/pull/31907/head:
mgr/dashboard: properly handle a missing rbd-mirror service status
mgr: cull service daemons when the last instance has been removed
mgr: ensure new daemons are properly indexed by hostname
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Ilya Dryomov [Wed, 4 Dec 2019 18:08:46 +0000 (19:08 +0100)]
qa: kernel.sh: unlock before rolling back
"rbd snap rollback" expects an unlocked image, but we may get there
locked if object map is enabled (or if lock_on_read is specified in
rbd_default_map_options).
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Ilya Dryomov [Wed, 4 Dec 2019 14:26:54 +0000 (15:26 +0100)]
qa: krbd_exclusive_option.sh: update for recent kernel changes
Since 5.3:
- a plain "rbd map" acquires the lock, so it's not different from
"rbd map -o exclusive" in this regard
- if the lock is held by the exclusive peer, I/O is failed right away
instead of blocking
- lock_timeout option is respected only by "rbd map" and not by I/O
Since 5.5:
- if the mapping is read-only, the lock isn't acquired
Added blacklisting test case, dropped lock_timeout test case.
Fixes: https://tracker.ceph.com/issues/43127
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Sage Weil [Mon, 9 Dec 2019 15:44:11 +0000 (09:44 -0600)]
osd: use new and improved calc_pg_role()
An acting set might be [0,1,2,1], and we want pgs 1.0s2 and 1.0s4 on
osd.1 to get roles 1 and 3, respectively (instead of 1 and -1). This
allows the second EC PG on the OSD to have role >= 0.
This probably was unnoticed before, but now it leads to hangs in the
rados/thrash-erasure-code collection because proc_lease() bails out
when is_nonprimary() fails (due to role < 0).
Fixes: https://tracker.ceph.com/issues/43189
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 9 Dec 2019 15:41:31 +0000 (09:41 -0600)]
osd/OSDMap: new calc_pg_role() that takes a pg_shard_t
If you have an acting set like [0,1,2,1] then osd.1 has two possible roles
(1 and 3). If we simply return the first one we see then we can't
correctly calculate a role for a pg like 1.0s3. Take pg_shard_t instead.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 9 Dec 2019 15:29:22 +0000 (09:29 -0600)]
osd/OSDMap: calc_pg_rank -> calc_pg_role
These were identical.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 9 Dec 2019 15:45:01 +0000 (09:45 -0600)]
osd/PeeringState: debug lines for upacting_features, proc_lease
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 9 Dec 2019 15:44:39 +0000 (09:44 -0600)]
osd/PeeringState: use pg_vector_string for operator<<
This shows NONE instead of a numeric CRUSH_ITEM_NONE.
Signed-off-by: Sage Weil <sage@redhat.com>
Tatjana Dehler [Mon, 9 Dec 2019 12:45:45 +0000 (13:45 +0100)]
qa/tasks/mgr/dashboard/test_health: update schema
Fixes: https://tracker.ceph.com/issues/43195
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
Sebastian Wagner [Mon, 9 Dec 2019 14:55:41 +0000 (15:55 +0100)]
mgr/rook: Added Mypy static type checking
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sage Weil [Mon, 9 Dec 2019 14:23:44 +0000 (08:23 -0600)]
Merge PR #32009 into master
* refs/pull/32009/head:
doc: removes kube-helm installation instructions
Reviewed-by: Sebastian Wagner <swagner@suse.com>
yangjun [Sun, 8 Dec 2019 01:09:53 +0000 (09:09 +0800)]
librbd: fix rbd_open_by_id, rbd_open_by_id_read_only
These methods incorrectly delete ImageCtx on error, resulting
in double-free heap corruption.
Fixes: https://tracker.ceph.com/issues/43178
Signed-off-by: yangjun <yangjun@cmss.chinamobile.com>