]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Zac Dover [Wed, 10 Feb 2021 01:57:22 +0000 (11:57 +1000)]
doc/dev: teuthology: improve triggering tests
- This PR cleans up the language in the "Triggering
Tests" section of the "Workflow" chapter of the
"Tests: Integration Tests" (Teuthology) guide.
- Added bash prompts.
Signed-off-by: Zac Dover <zac.dover@gmail.com>
zdover23 [Mon, 15 Feb 2021 13:36:19 +0000 (23:36 +1000)]
Merge pull request #39407 from zdover23/wip-doc-dev-testing-qa-changes-rewrite-11-Feb-2021
doc/dev: rewrite 'testing qa changes'
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Zac Dover [Thu, 11 Feb 2021 02:55:14 +0000 (12:55 +1000)]
doc/dev: rewrite 'testing qa changes'
This PR rewrites the "Testing QA Changes (Without
Re-Building Binaries)" section of the Developer
Guide. I also tried to unbury the lede.
Signed-off-by: Zac Dover <zac.dover@gmail.com>
Jan Fajerski [Mon, 15 Feb 2021 12:06:13 +0000 (13:06 +0100)]
Merge PR #38562 into master
* refs/pull/38562/head:
Update batch.py
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Dimitri Savineau <dsavinea@redhat.com>
Sebastian Wagner [Mon, 15 Feb 2021 09:16:06 +0000 (10:16 +0100)]
Merge pull request #39458 from sebastian-philipp/cephadm-spec-store-fix-race
mgr/cephadm: SpecStore: use d-under accessor methods
Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sebastian Wagner [Sat, 13 Feb 2021 12:56:34 +0000 (13:56 +0100)]
mgr/cephadm: SpecStore: use d-under accessor methods
This fixes a conflict between:
*
1fcdad17685a8884135a2cda0cdfe3525e325474
*
2c7f899124207d0d4866e16d9eb5609777ea22e8
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Kefu Chai [Sun, 14 Feb 2021 08:39:53 +0000 (16:39 +0800)]
Merge pull request #39379 from multi-arch/master
ceph.spec.in: Enable tcmalloc and lttng on IBM Power and Z
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Luke Browning <lbrownin@redhat.com>
Kefu Chai [Sun, 14 Feb 2021 08:38:35 +0000 (16:38 +0800)]
Merge pull request #39389 from tchaikov/wip-cmake-ccache
cmake: s/CCACHE_FOUND/CCACHE_EXECUTABLE/
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Kefu Chai [Sun, 14 Feb 2021 03:27:27 +0000 (11:27 +0800)]
Merge pull request #39411 from tchaikov/wip-rtd-theme
doc: cleanups and group tell commands
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Kefu Chai [Sat, 13 Feb 2021 08:21:25 +0000 (16:21 +0800)]
Merge pull request #39454 from rzarzynski/wip-crimson-crc-for-temp-msgr
crimson: configure CRC for the temp_mon_client's messenger.
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sat, 13 Feb 2021 02:34:32 +0000 (10:34 +0800)]
Merge pull request #39453 from rzarzynski/wip-crimson-monc-pick-from-addrs
crimson/monc: consider v1 addresses when connecting to a monitor.
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 12 Feb 2021 10:00:08 +0000 (18:00 +0800)]
doc: define command properties using field list
the rendering is more compacted this way, and the parameters can be
aligned.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 12 Feb 2021 08:05:06 +0000 (16:05 +0800)]
doc: silence warnings from openapi sphinx extension
this is a follow-up of
1debd9856565905439ae56f2cfdc16b0549055ec ,
we should use the logging from sphinx.util instead from Python standard
library's logging.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Fri, 12 Feb 2021 08:03:11 +0000 (16:03 +0800)]
doc: group commands by prefix
as there are lots commands, the toc in sidebar is clutterred with them,
so would be better to group them.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Thu, 11 Feb 2021 18:05:00 +0000 (02:05 +0800)]
doc: split the argdesc pair at the first '='
there is chance that the value of of the argdesc's kv pair contains
"=". for instance, the goodchars regexp could contain '='. so we should
stop at the first '='.
this change fixes the parsing of "osd pool application set" command.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Thu, 11 Feb 2021 15:40:56 +0000 (23:40 +0800)]
doc: drop ceph.js completely
these are leftovers of
7a62303b57150814ff465eb611b69b3b2e9f03f1
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Thu, 11 Feb 2021 14:18:22 +0000 (22:18 +0800)]
doc: decrease padding in the "docubetter" div
for better UX
Signed-off-by: Kefu Chai <kchai@redhat.com>
Sebastian Wagner [Sat, 13 Feb 2021 00:57:38 +0000 (01:57 +0100)]
Merge pull request #39385 from adk3798/error-redeploy
cephadm: allow redeploy of daemons in error state if container running
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Sat, 13 Feb 2021 00:57:21 +0000 (01:57 +0100)]
Merge pull request #38549 from adk3798/prepare-redeploy
mgr/cephadm: make generate_config internal, prepare before redeploy
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Radoslaw Zarzynski [Fri, 12 Feb 2021 19:18:23 +0000 (19:18 +0000)]
crimson: configure CRC for the temp_mon_client's messenger.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Radoslaw Zarzynski [Fri, 12 Feb 2021 19:17:04 +0000 (19:17 +0000)]
crimson/monc: improve debugs around Connection::reply.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Radoslaw Zarzynski [Fri, 12 Feb 2021 09:17:04 +0000 (09:17 +0000)]
crimson/monc: consider v1 addresses when connecting to a monitor.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Casey Bodley [Fri, 12 Feb 2021 19:06:56 +0000 (14:06 -0500)]
Merge pull request #39450 from cbodley/wip-rgw-notify-double-dpp
rgw: remove duplicated ldout in rgw_notify.cc
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Casey Bodley [Fri, 12 Feb 2021 16:32:09 +0000 (11:32 -0500)]
rgw: remove duplicated ldout in rgw_notify.cc
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Sebastian Wagner [Fri, 12 Feb 2021 12:58:33 +0000 (13:58 +0100)]
Merge pull request #39373 from varshar16/wip-fix-rook-timezone-error
mgr/rook: Add timezone info
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
Ernesto Puerta [Fri, 12 Feb 2021 10:30:07 +0000 (11:30 +0100)]
Merge pull request #39362 from rhcs-dashboard/49216-delete-eof-read-pwd-from-file
mgr/dashboard: delete EOF when reading passwords from file
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: sebastian-philipp <swagner@suse.com>
zdover23 [Fri, 12 Feb 2021 07:26:48 +0000 (17:26 +1000)]
Merge pull request #39434 from zdover23/wip-doc-dev-about-suites-and-filters-rewrite-2021-Feb-12
doc/dev: rewrite "about suites and filters"
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Ramana Raja [Fri, 12 Feb 2021 04:59:22 +0000 (23:59 -0500)]
Merge pull request #39327 from kotreshhr/qa-fix-mgr-vol-test-cases
qa: Fix a few mgr/volume test cases
Reviewed-by: Ramana Raja <rraja@redhat.com>
Jason Dillaman [Fri, 12 Feb 2021 03:51:34 +0000 (22:51 -0500)]
Merge pull request #39409 from trociny/wip-49245
librbd: don't log error if get mirror status fails due to mirroring disabled
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Sebastian Wagner [Fri, 12 Feb 2021 00:07:15 +0000 (01:07 +0100)]
Merge pull request #38883 from sebastian-philipp/cephadm-keep-deleted-specs
mgr/cephadm: Purge deleted services
Reviewed-by: Adam King <adking@redhat.com>
Sebastian Wagner [Fri, 12 Feb 2021 00:06:29 +0000 (01:06 +0100)]
Merge pull request #39058 from sebastian-philipp/cephadm-use_repo_digest-default-true
mgr/cephadm: enable use_repo_digest by default for pacific
Reviewed-by: Sage Weil <sage@redhat.com>
Sebastian Wagner [Fri, 12 Feb 2021 00:06:07 +0000 (01:06 +0100)]
Merge pull request #39364 from mgfritch/cephadm-log-errs
cephadm: add error messages to log file
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
Zac Dover [Thu, 11 Feb 2021 23:28:06 +0000 (09:28 +1000)]
doc/dev: rewrite "about suites and filters"
This improves the English in the section
"About Suites and Filters" in the new
Teuthology Guide in the Developer Guide.
Signed-off-by: Zac Dover <zac.dover@gmail.com>
Sage Weil [Thu, 11 Feb 2021 22:10:44 +0000 (17:10 -0500)]
Merge PR #39404 into master
* refs/pull/39404/head:
qa/suites/upgrade/octopus-x/stress-split: cephadm-based stress-split upgrade
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Jason Dillaman [Thu, 11 Feb 2021 19:32:08 +0000 (14:32 -0500)]
Merge pull request #39375 from idryomov/wip-rbd-rm-exclusive
librbd: refuse to release exclusive lock when removing
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 11 Feb 2021 19:31:24 +0000 (14:31 -0500)]
Merge pull request #39368 from MahatiC/wip-ssd-bug-fix
librbd/cache/pwl: Fix user request completion
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Xiaoyan Li <xiaoyan.li@intel.com>
Kotresh HR [Fri, 5 Feb 2021 18:05:22 +0000 (23:35 +0530)]
qa: Fix a few mgr/volume test cases
Recovering dirty auth metadata file might not retain the order,
fixed the comparison in 'test_recover_auth_metadata_during_authorize'
and 'test_recover_auth_metadata_during_deauthorize'.
Fixes: https://tracker.ceph.com/issues/49192
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Mykola Golub [Thu, 11 Feb 2021 09:24:49 +0000 (09:24 +0000)]
librbd: don't log error if get mirror status fails due to mirroring disabled
Fixes: https://tracker.ceph.com/issues/49245
Signed-off-by: Mykola Golub <mgolub@suse.com>
Samuel Just [Thu, 11 Feb 2021 01:51:37 +0000 (17:51 -0800)]
Merge pull request #39037 from liu-chunmei/seastore_collection
crimson/seastore: add collection implementation
Reviewed-by: Samuel Just <sjust@redhat.com>
Ken Dreyer [Thu, 11 Feb 2021 01:34:12 +0000 (18:34 -0700)]
Merge pull request #39398 from ktdreyer/cephadm-sys-fs-selinux
cephadm: make /sys/fs/selinux empty
Sage Weil [Thu, 4 Feb 2021 18:56:49 +0000 (12:56 -0600)]
qa/suites/upgrade/octopus-x/stress-split: cephadm-based stress-split upgrade
Apply stress during upgrade, and also pause partway and do some
thrashing.
Signed-off-by: Sage Weil <sage@newdream.net>
Neha Ojha [Wed, 10 Feb 2021 23:17:27 +0000 (15:17 -0800)]
Merge pull request #39384 from neha-ojha/wip-cephadm-compress
Revert "qa/tasks/cephadm: use cluster.sh and remote.sh for better readibility"
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Mykola Golub [Wed, 10 Feb 2021 16:37:34 +0000 (18:37 +0200)]
Merge pull request #39155 from dillaman/wip-49037
librbd: correct incremental deep-copy object-map inconsistencies
Reviewed-by: Mykola Golub <mgolub@suse.com>
Ken Dreyer [Wed, 10 Feb 2021 15:08:51 +0000 (08:08 -0700)]
cephadm: make /sys/fs/selinux empty
When the following conditions are true:
1) A host has selinux-policy-targeted,
2) We mount the host's /sys into a privileged container,
3) The container has SELINUXTYPE=targeted in /etc/selinux/config,
4) The container does not have an selinux-policy-targeted package,
then SELinux-enabled applications like restorecon or DNF do not work inside
the container.
Resolve this by making /sys/fs/selinux an empty directory.
Fixes: https://tracker.ceph.com/issues/49239
Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
Adam King [Mon, 8 Feb 2021 19:55:45 +0000 (14:55 -0500)]
cephadm: allow redeploy of daemons in error state if container running
Signed-off-by: Adam King <adking@redhat.com>
Ernesto Puerta [Wed, 10 Feb 2021 14:03:09 +0000 (15:03 +0100)]
Merge pull request #38963 from rhcs-dashboard/refresh-crushmap
mgr/dashboard: Automatically refresh crush map metadata table
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Sebastian Wagner [Wed, 10 Feb 2021 12:29:30 +0000 (13:29 +0100)]
Merge pull request #39355 from sebastian-philipp/doc-install-rm-deepsea
doc/install: cephadm is the successor of DeepSea
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Sebastian Wagner [Wed, 10 Feb 2021 12:17:00 +0000 (13:17 +0100)]
Merge pull request #38505 from sebastian-philipp/doc-dev-cephadm-scalability-notes
doc/dev/cephadm: scalability notes
Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Venky Shankar [Wed, 10 Feb 2021 12:00:14 +0000 (17:30 +0530)]
Merge pull request #39287 from david-z/wip-fix-join-fscid
mon/MDSMonitor.cc: fix join fscid not applied with pending fsmap at boot
Jan Fajerski [Wed, 10 Feb 2021 10:50:09 +0000 (11:50 +0100)]
Merge PR #38318 into master
* refs/pull/38318/head:
common: Add Windows ETW support
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
chunmei-liu [Sat, 6 Feb 2021 02:13:37 +0000 (18:13 -0800)]
crimson/seastore: add collection manager implementation
Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
Signed-off-by: Samuel Just <sjust@redhat.com>
Kefu Chai [Wed, 10 Feb 2021 03:47:15 +0000 (11:47 +0800)]
cmake: s/CCACHE_FOUND/CCACHE_EXECUTABLE/
to be more consistent with other find_program() calls.
and more correct this way, as ${CCACHE_FOUND} is not a boolean, it
is a path pointing to the found cache executable.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 10 Feb 2021 05:00:13 +0000 (13:00 +0800)]
Merge pull request #39387 from xxhdx1985126/wip-client-request-pg-ref
crimson/osd: capture pgref by value if it is to be referenced asynchronously
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 10 Feb 2021 04:56:46 +0000 (12:56 +0800)]
Merge pull request #39388 from ivzhh/master
cmake: don't pass ccache argument to RocksDB build
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sheng Mao [Wed, 10 Feb 2021 03:14:58 +0000 (20:14 -0700)]
cmake: don't pass ccache argument to RocksDB build
RocksDB's cmake has a similar logic to turn on ccache as the main cmake.
Currently BuildRocksDB.cmake explicitly passes ccache to RocksDB cmake
arguments as CMAKE_CXX_COMPILER_LAUNCHER. This causes a compilation error
on ccache 4.0, especially in make -j mode.
ccache: error: Recursive invocation (the name of the ccache binary must
be "ccache")
This commit lets cmake from RocksDB decide RULE_LAUNCH_COMPILE by itself.
Signed-off-by: Sheng Mao <shngmao@gmail.com>
Xuehan Xu [Wed, 10 Feb 2021 02:37:29 +0000 (10:37 +0800)]
crimson/osd: capture pgref by value if it is to be referenced asynchronously
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
zdover23 [Wed, 10 Feb 2021 02:00:15 +0000 (12:00 +1000)]
Merge pull request #39351 from zdover23/wip-doc-dev-getting-binaries-rewrite-08-Feb-2021
doc/dev: rewrite "getting binaries" section
Reviewed-by: Neha Ojha <nojha@redhat.com>
Brad Hubbard [Wed, 10 Feb 2021 01:37:17 +0000 (11:37 +1000)]
Merge pull request #39383 from badone/wip-unmask-deep-scrub-stdout-lazy_omap_stats_test
test/lazy-omap-stats: Immediate deep-scrub output
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Samuel Just [Tue, 9 Feb 2021 23:39:13 +0000 (15:39 -0800)]
Merge pull request #39333 from cyx1231st/wip-seastore-onode-tree-empty-oid-ns
crimson/onode-staged-tree: support empty ns and oid
Reviewed-by: Samuel Just <sjust@redhat.com>
Neha Ojha [Tue, 9 Feb 2021 22:10:19 +0000 (22:10 +0000)]
Revert "qa/tasks/cephadm: use cluster.sh and remote.sh for better readibility"
This reverts commit
6d7ba1180e66df2d6dee3a01fe3e12cafaa6fe8c .
Fixes: https://tracker.ceph.com/issues/49228
Signed-off-by: Neha Ojha <nojha@redhat.com>
Brad Hubbard [Tue, 9 Feb 2021 03:21:56 +0000 (13:21 +1000)]
test/lazy-omap-stats: Immediate deep-scrub output
Show stdout from the child process as it happens.
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Casey Bodley [Tue, 9 Feb 2021 21:22:42 +0000 (16:22 -0500)]
Merge pull request #38871 from cbodley/wip-qa-rgw-valgrind-on
qa/rgw: reenable valgrind in rgw/verify suite
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Zac Dover [Mon, 8 Feb 2021 09:04:56 +0000 (19:04 +1000)]
doc/dev: rewrite "getting binaries" section
This rewrites the "Getting Binaries" section
of the "Workflow" section of the "Tests:
Integration Tests" section of the Developer Guide.
Signed-off-by: Zac Dover <zac.dover@gmail.com>
Casey Bodley [Mon, 18 Jan 2021 21:59:05 +0000 (16:59 -0500)]
qa/rgw: test_rgw_reshard.py just tries common ports
the 'sudo netstat | grep radosgw' command is causing failures:
File "qa/workunits/rgw/test_rgw_reshard.py", line 53, in get_radosgw_port
x = out.decode('utf8').split(" ")
AttributeError: 'bool' object has no attribute 'decode'
because when valgrind is enabled, the process name is 'valgrind' instead
of 'radosgw'
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Tue, 12 Jan 2021 13:19:06 +0000 (08:19 -0500)]
test/rgw: re-enable valgrind in rgw verify suite
this only enables it for radosgw itself, not the other daemons
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Tue, 12 Jan 2021 19:36:01 +0000 (14:36 -0500)]
qa/rgw: move valgrind config into valgrind.yaml
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Nizamudeen A [Tue, 19 Jan 2021 12:35:43 +0000 (18:05 +0530)]
mgr/dashboard: Automatically refresh the crush map metadata table
If we make any change to the osd crush map like do an osd crush reweight from cli, for that change to be reflected on metadata table we need to reload the entire page. Instead this PR takes care of auto refreshing the tree view.
Fixes: https://tracker.ceph.com/issues/48922
Signed-off-by: Nizamudeen A <nia@redhat.com>
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Michael Fritch [Tue, 9 Feb 2021 18:12:37 +0000 (11:12 -0700)]
cephadm: add error messages to log file
Signed-off-by: Michael Fritch <mfritch@suse.com>
Yaakov Selkowitz [Tue, 9 Feb 2021 16:30:43 +0000 (11:30 -0500)]
ceph.spec.in: bump gperftools requirement for ppc64le
gperftools' libprofiler did not build on ppc64le until 2.7.90.
The EPEL 8 package is being updated accordingly.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Yaakov Selkowitz [Tue, 9 Feb 2021 16:03:42 +0000 (11:03 -0500)]
ceph.spec.in: enable tcmalloc and lttng on s390x
The necessary prerequisites are already in RHEL+EPEL 8.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Ilya Dryomov [Tue, 9 Feb 2021 13:04:39 +0000 (14:04 +0100)]
librbd: journal::StandardPolicy template defaults to ImageCtx
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Ilya Dryomov [Mon, 8 Feb 2021 16:01:47 +0000 (17:01 +0100)]
librbd: don't hold owner_lock for validate_image_removal()
handle_exclusive_lock() and handle_shut_down_exclusive_lock() call
validate_image_removal() without owner_lock held, so holding it in
shut_down_exclusive_lock() appears to be redundant.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Ilya Dryomov [Sun, 7 Feb 2021 14:09:24 +0000 (15:09 +0100)]
librbd: treat EROFS as expected in handle_acquire_lock()
If the peer refuses to release exclusive lock (e.g. in case automatic
exclusive lock transitions are disabled), EROFS is retured. Suppress
a rather confusing "Read-only file system" error message -- this case
is no different from EBUSY or EAGAIN.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Ilya Dryomov [Sun, 7 Feb 2021 12:46:15 +0000 (13:46 +0100)]
librbd: refuse to release exclusive lock when removing
Commit
25c2ffe145be ("librbd: acquire exclusive lock from peer when
removing") changed PreRemoveRequest to request exclusive lock from the
peer instead of giving up and proceeding without exclusive lock. This
caused one of the test cases that sometimes runs concurrent "rbd rm"
against the same image to fail intermittently, most often on assert
ceph_assert(image_ctx.exclusive_lock == nullptr ||
image_ctx.exclusive_lock->is_lock_owner());
because exclusive lock is now automatically transitioned to another
"rbd rm" on its request.
The root cause is older and probably goes back to when synchronous
librbd::remove() which held owner_lock across all operations including
trim_image() was converted to a set of state machines. Since then, any
peer that requests exclusive lock (instead of trying once and backing
off) is able to mess with image removal.
Install StandardPolicy to disable automatic exclusive lock transitions
during image removal.
Fixes: https://tracker.ceph.com/issues/49226
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Ilya Dryomov [Mon, 8 Feb 2021 15:49:35 +0000 (16:49 +0100)]
librbd: templatize exclusive_lock::StandardPolicy
This will be used by expect_set_exclusive_lock_policy() in
test_mock_PreRemoveRequest.cc.
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Casey Bodley [Tue, 9 Feb 2021 12:31:05 +0000 (07:31 -0500)]
Merge pull request #39211 from cbodley/wip-rgw-admin-formatter
radosgw-admin: fix leaks with make_unique()
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Casey Bodley [Tue, 9 Feb 2021 12:30:40 +0000 (07:30 -0500)]
Merge pull request #39301 from cbodley/wip-49169
rgw: fix snprintf() truncate warning in ETagVerifier
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Sebastian Wagner [Wed, 9 Dec 2020 10:59:59 +0000 (11:59 +0100)]
doc/dev/cephadm: scalability notes
Add a few notes about possible future scalability improvements
Co-authored-by: Joshua Schmid <jschmid@suse.de>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Mon, 8 Feb 2021 12:35:02 +0000 (13:35 +0100)]
doc/install: cephadm is the successor of DeepSea
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Mon, 25 Jan 2021 10:54:49 +0000 (11:54 +0100)]
mgr/cephadm: enable use_repo_digest by default for pacific
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Alfonso Martínez [Tue, 9 Feb 2021 10:17:52 +0000 (11:17 +0100)]
mgr/dashboard: delete EOF when reading passwords from file
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
Sebastian Wagner [Fri, 5 Feb 2021 12:19:21 +0000 (13:19 +0100)]
cephadm: --orphan-initial-daemons now applies services unmanaged
We do not want to have orphaned daemons at all. Thus apply
services as unmanaged in order to run `ceph orch daemon add ...`
later.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Varsha Rao [Tue, 9 Feb 2021 09:56:16 +0000 (15:26 +0530)]
mgr/rook: Add timezone info
Recently time zone info was added[1] to various properties like created,
started and others in cephadm and changes were made to orchestrator module too.
Let's add timezone info to rook as well, which will fix the type error.
[1] https://github.com/ceph/ceph/pull/37920
Fixes: https://tracker.ceph.com/issues/49126
Signed-off-by: Varsha Rao <varao@redhat.com>
Sebastian Wagner [Fri, 29 Jan 2021 17:49:25 +0000 (18:49 +0100)]
mgr/cephadm: purge service: remove `mds_join_fs`
Also add a unit test
Fixes: https://tracker.ceph.com/issues/48597
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Fri, 29 Jan 2021 17:27:52 +0000 (18:27 +0100)]
mgr/cephadm: Add service deletion timestamp to `orch ls`
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Fri, 29 Jan 2021 16:18:50 +0000 (17:18 +0100)]
mgr/cephadm: mandate the existence of Services for Daemons
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Fri, 29 Jan 2021 16:16:55 +0000 (17:16 +0100)]
mgr/cephadm: Add pytest to verify delayed service deletion
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Wed, 13 Jan 2021 13:12:24 +0000 (14:12 +0100)]
mgr/cephadm: Purge deleted services
If no daemon is deployed for a deleted service,
purge it.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Wed, 13 Jan 2021 12:40:16 +0000 (13:40 +0100)]
mgr/cephadm: add spec_deleted datetime to spec store
We'd like to keep the spec in the store, while we're cleaning
up all the daemons. Reason is to clean up the
config and config-key store when the last daemon of a
service is deleted.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Sebastian Wagner [Wed, 13 Jan 2021 12:43:21 +0000 (13:43 +0100)]
mgr/cephadm: remove dead code
SpecStore.find is no longer used
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Alin Gabriel Serdean [Mon, 16 Nov 2020 22:36:36 +0000 (00:36 +0200)]
common: Add Windows ETW support
This patch adds generic ETW logging on top of syslog calls.
The events are described in the message compiler file `event_logging.mc`.
Using the cross platform utility `windmc`, we will generate the header file,
`event_logging.h`, needed by the ETW implementation, and the resource file
`event_logging.rc`.
Over the generated resource file we will run another utility called `windres`.
this tool is used to compile the binary objects needed by the OS utilities
(i.e. `Event Viewer`) to view the logged events.
On usage, a registry key needs to be added/removed on the target computer.
The registry looks like the following:
[HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\<get_process_name>]
"EventMessageFile"="<Folder_location_to>\\event_logging.dll"
I.E.:
[HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\rbd-wnbd]
"EventMessageFile"="C:\\Program Files\\Ceph\\bin\\event_logging.dll"
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Co-authored-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Mahati Chamarthy [Wed, 3 Feb 2021 15:03:50 +0000 (20:33 +0530)]
librbd/cache/pwl: Fix user request completion in
... persist_on_flush mode
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
Kefu Chai [Tue, 9 Feb 2021 05:51:01 +0000 (13:51 +0800)]
Merge pull request #39345 from tchaikov/wip-crimson-move
crimson/osd: do not pass oop as a const ref and cleanups
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
Venky Shankar [Tue, 9 Feb 2021 05:13:10 +0000 (10:43 +0530)]
Merge pull request #39353 from lxbsz/minor
client: use scoped_lock instead of unique_lock
Yingxin Cheng [Tue, 9 Feb 2021 04:48:59 +0000 (12:48 +0800)]
crimson/onode-staged-tree: be explicit about string_key markers
To be explicit that string_kew_view_t::MIN and MAX are not valid
string lengths. They are reserved as markers.
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
Kefu Chai [Tue, 9 Feb 2021 04:23:50 +0000 (12:23 +0800)]
Merge pull request #39367 from runsisi/wip-fix-spec
ceph.spec.in: fix missing backslash for line continuation
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yingxin Cheng [Sun, 7 Feb 2021 03:09:14 +0000 (11:09 +0800)]
crimson/onode-staged-tree: support empty ns and oid
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
Kefu Chai [Mon, 8 Feb 2021 16:35:59 +0000 (00:35 +0800)]
crimson/os: disable code block only executed by Debug build
silences warning like:
warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
).safe_then([this, target_size] {
^~~~~
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 8 Feb 2021 16:34:25 +0000 (00:34 +0800)]
crimson/osd: capture labels using new variables
structured binding does not define variables, let's capture the bound
"variables" using variables defined in the capture list.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 8 Feb 2021 16:27:27 +0000 (00:27 +0800)]
crimson/common: mark ExitBarrier final
to silence -Wfinal-dtor-non-final-class warnings like
operation.h:461:20: warning: class with destructor marked 'final' cannot
be inherited from [-Wfinal-dtor-non-final-class]
~ExitBarrier() final {
^
Signed-off-by: Kefu Chai <kchai@redhat.com>