Commit Graph

124630 Commits

Author SHA1 Message Date
Blaine Gardner
651b28f2e3
ceph-volume: use safer check for bluestore label
Using only the exit status of `ceph-bluestore-tool show-label` to
determine if a device is a bluestore OSD could report a false negative
if there is a system error when `ceph-bluestore-tool` opens the device.

A better check is to open the device and read the bluestore device
label (the first 22 bytes of the device) to look for the bluestore
device signature ("bluestore block device"). If ceph-volume fails to
open the device due to a system error, it is safest to assume the device
is BlueStore so that an existing OSD isn't overwritten.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-07-20 12:24:37 -06:00
Ali Maredia
1ca7682159
Merge pull request #42127 from ivancich/wip-little-rgw-cleanup
rgw: a small set of clean-ups

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2021-07-01 14:59:29 -04:00
Yuval Lifshitz
092d8fa756
Merge pull request #42012 from yuvalif/wip-yuval-fix-50039
rgw/notifications: support v4 auth for topics and notifications
2021-07-01 20:15:58 +03:00
zdover23
f4154b1c7b
Merge pull request #42134 from zdover23/wip-doc-cephadm-operations-2021-07-01
doc/cephadm: improve "Ceph Daemon Logs" (1 of x)

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
2021-07-02 03:12:22 +10:00
Ali Maredia
0bc9b868e2
Merge pull request #42023 from TRYTOBE8TME/wip-rgw-notification-tests
rgw: Modification in the usage of force-branch

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2021-07-01 12:44:20 -04:00
Yuval Lifshitz
1c13283f9b
Merge pull request #41945 from yuvalif/wip-yuval-fix-51261
rgw/notifications: support metadata filter in CompleteMultipartUpload and Copy events
2021-07-01 19:19:03 +03:00
Ernesto Puerta
1be0cc0da9
Merge pull request #41953 from SMIL-Infra/fix-dashboard-osd-count
mgr/dashboard: fix OSD out count

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2021-07-01 17:26:32 +02:00
Ernesto Puerta
4e03486235
Merge pull request #42116 from votdev/issue_51443_migrate_userdb
mgr/dashboard: User database migration has been cut out

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2021-07-01 17:23:03 +02:00
Sage Weil
5c9a3962b7 Merge PR #42107 into master
* refs/pull/42107/head:
	mgr/ActivePyModules: streamline mgr_ips a bit
	mgr/ActivePyModules: don't take unnecessary lock
	pybind/mgr/mgr_module: use get("mgr_ips") for standby get_mgr_ip()
	mgr: add get() for standby modules

Reviewed-by: Daniel Pivonka <dpivonka@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
2021-07-01 09:11:09 -04:00
Zac Dover
09b1dd0bb5 doc/cephadm: improve "Ceph Daemon Logs" (1 of x)
This PR turned out to be a 3-in-1:

(1) improves syntax and formatting of "Logging to stdout"
(2) improves syntax and formatting of "Logging to files"
(3) replaces all carets with tildes in 3rd-level section
    headers in operations.rst (./build-doc was crying
    about inconsistency when I fed it tildes, but tildes
    and not carets are the RST standard according to
    https://docutils.sourceforge.io/ \
    docs/user/rst/quickstart.html#sections
    so the carets had to go.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2021-07-01 22:43:10 +10:00
Kefu Chai
e2cc12ea0f
Merge pull request #42130 from tchaikov/wip-doc-install
doc/install/get-packages: s/el7/el8/ and cleanups

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
2021-07-01 17:59:38 +08:00
Kefu Chai
166d961360
Merge pull request #42108 from zdover23/wip-doc-upgrading-ceph-cancelling-the-upgrade-2021-06-30
doc/cephadm: improve "Canceling an Upgrade"

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
2021-07-01 17:50:34 +08:00
Kefu Chai
3a41134592 doc/install/get-packages: do not mention additional 3rd party packages
since we are able to build and run on ubuntu focal without extra
dependencies of 3rd party packages, there is no need to mention them.
actually all of the removed packages are available in ubuntu focal.
some of them have different package names though.

the same applies to el8.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-07-01 16:38:56 +08:00
Kefu Chai
71e6adac35 doc/install/get-packages: s/el7/el8/
since we don't build for el7 anymore. replace all occurrences of el7 with
el8.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-07-01 16:38:56 +08:00
Kalpesh Pandya
9bb68a55ca rgw: Modification in the usage of force-branch
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2021-07-01 13:54:51 +05:30
Samuel Just
e9717a4735
Merge pull request #42080 from cyx1231st/wip-seastore-fix-cache
crimson/os/seastore/cache: misc fixes and cleanup

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xuxuehan@360.cn>
2021-06-30 21:17:47 -07:00
Yingxin Cheng
29d9c3d588 crimson/os/seastore/cache: rename try_construct_record to prepare_record
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:16:43 +08:00
Yingxin Cheng
b5762ca66b crimson/os/seastore/cache: wait io when read from Cache::extents
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
2243b3d593 crimson/os/seastore/cache: add the missing extent invalid check
see 2bc257beb2

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
054b2eda32 crimson/os/seastore/cache: add missing add_to_read_set()
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
5cd2c7c151 crimson/os/seastore/cache: cleanup get_extent_if_cached()
And remove the query_cache_for_extent(t).

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
82203cd353 crimson/os/seastore/cache: fix get_extent_by_type(t) to use Transaction::get_extent()
The original query_cache_for_extent() doesn't call wait_io() if the
extent is pending. And the following get_extent_by_type() already covers
the lookup to Cache::extents and also implements wait_io() correctly.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
1445ba17a1 crimson/os/seastore/cache: add absent extent to read-set before retire
So that transaction can be invalidated if the retiring extent has
conflict.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
a593927273 crimson/os/seastore/cache: remove retired extents from cache
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
91e91e5dca crimson/os/seastore: fix print_detail() of RetiredExtentPlaceholder
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
4c4405ee27 crimson/os/seastore/cache: cleanup try_construct_record() optional return
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:15:21 +08:00
Yingxin Cheng
e52d5469b7 crimson/onode-staged-tree: check invalid transaction only
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:13:07 +08:00
Yingxin Cheng
43ddfe3f3a crimson/os/seastore/cache: retire PRESENT extents and add to retired-set
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:13:07 +08:00
Yingxin Cheng
77839d6252 crimson/os/seastore/cache: invalidate transaction referencing retired extents
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2021-07-01 10:13:07 +08:00
Kefu Chai
85ac0c6442
Merge pull request #42103 from athanatos/sjust/wip-seastore-collection-ordering
crimson/seastore: enforce per-collection transaction ordering

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Xuehan Xu <xuxuehan@360.cn>
2021-07-01 10:06:40 +08:00
Kefu Chai
8f64ef1f02
Merge pull request #41932 from tchaikov/wip-mgr-mock-osdmap
mgr,pybind/mgr: add OSDMap.build_simple() method

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2021-07-01 09:50:45 +08:00
Ilya Dryomov
71274c8843
Merge pull request #41958 from ceph/wip-yuriw-notes-14.2.22_2
doc: 14.2.22 Release Notes

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2021-07-01 00:30:49 +02:00
Ilya Dryomov
4bc5f138aa doc/releases/nautilus,octopus: add a note for msgr2 interoperability fix
octopus 15.2.13 already shipped, let's add it retroactively.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-07-01 00:18:56 +02:00
Neha Ojha
b1f8afac33 doc/releases/nautilus: add notable changes for RADOS
Signed-off-by: Neha Ojha <nojha@redhat.com>
2021-07-01 00:18:56 +02:00
Yuri Weinstein
712e7a0e22 doc: 14.2.22 Release Notes
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2021-07-01 00:18:54 +02:00
Ilya Dryomov
ecf10ec13d
Merge pull request #42118 from sandrobonazzola/patch-3
doc/rbd/iscsi-initiator-linux: set "product" in multipath.conf

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2021-07-01 00:05:17 +02:00
Sandro Bonazzola
a5c361b648 doc/rbd/iscsi-initiator-linux: set "product" in multipath.conf
Adding missing parameter in multipath configuration.  See
https://bugzilla.redhat.com/show_bug.cgi?id=1769135.

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
2021-06-30 23:46:11 +02:00
J. Eric Ivancich
04fa36a699 rgw: a small set of clean-ups
Small items noticed along the way and addressed collectively in this
small "omnibus" PR.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2021-06-30 16:08:51 -04:00
Josh Durgin
488e6be0ed
Merge pull request #42121 from ceph/wip-md
ceph-release-notes: Support for markdown for new ceph.io site

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2021-06-30 11:42:00 -07:00
David Galloway
8497f4b1d6 ceph-release-notes: Support for markdown for new ceph.io site
Signed-off-by: David Galloway <dgallowa@redhat.com>
2021-06-30 13:11:06 -04:00
Sage Weil
49d5a5bdea mgr/ActivePyModules: streamline mgr_ips a bit
Signed-off-by: Sage Weil <sage@newdream.net>
2021-06-30 11:19:11 -04:00
Sage Weil
3ee6f97b3e mgr/ActivePyModules: don't take unnecessary lock
This isn't needed.

Signed-off-by: Sage Weil <sage@newdream.net>
2021-06-30 11:19:11 -04:00
Sage Weil
d159adc20e pybind/mgr/mgr_module: use get("mgr_ips") for standby get_mgr_ip()
This is necessary to allow the standby mgr to bind to the right IP.

Signed-off-by: Sage Weil <sage@newdream.net>
2021-06-30 11:19:11 -04:00
Sage Weil
8b8e752298 mgr: add get() for standby modules
Fixes: https://tracker.ceph.com/issues/51446
Signed-off-by: Sage Weil <sage@newdream.net>
2021-06-30 11:19:11 -04:00
Ernesto Puerta
849de7c98c
Merge pull request #42026 from rhcs-dashboard/bucket-name-regex-fix
mgr/dashboard: Fix bucket name input allowing space in the value

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2021-06-30 17:09:40 +02:00
Kefu Chai
5e6d1519f9
Merge pull request #41353 from a16bitsysop/mgr-node_modules
pybind/mgr/CMakeLists.txt: exclude files not used at runtime

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2021-06-30 22:44:55 +08:00
Volker Theile
8292281161 mgr/dashboard: User database migration has been cut out
This PR will revert changes done by https://tracker.ceph.com/issues/49645 to auto-migrate user database v1 to v2.

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

Signed-off-by: Volker Theile <vtheile@suse.com>
2021-06-30 16:35:23 +02:00
Ilya Dryomov
a408347e14
Merge pull request #41954 from pkalever/notrim
rbd-nbd: support notrim option with map command

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2021-06-30 14:02:10 +02:00
Kefu Chai
eb20648daf
Merge pull request #42089 from tchaikov/wip-xattr-cleanup
osd, crimson/osd: do_cmp_xattr() related cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
2021-06-30 19:30:09 +08:00
Kefu Chai
6772c71114
Merge pull request #42054 from tchaikov/wip-os-xattrs
os: use transparent comparator in ObjectStore::getattrs()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
2021-06-30 19:29:17 +08:00