]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yuri Weinstein [Tue, 8 May 2018 19:47:12 +0000 (12:47 -0700)]
Merge pull request #21366 from pdvian/wip-23636-luminous
luminous: mds: fix unhealth heartbeat during rejoin
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:46:47 +0000 (12:46 -0700)]
Merge pull request #21372 from pdvian/wip-23637-luminous
luminous: mds: mark damaged if sessions' preallocated inos don't match inotable
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:46:24 +0000 (12:46 -0700)]
Merge pull request #21441 from pdvian/wip-23702-luminous
luminous: mds: properly dirty sessions opened by journal replay
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:45:58 +0000 (12:45 -0700)]
Merge pull request #21447 from pdvian/wip-23703-luminous
luminous: MDSMonitor: fix mds health printed in bad format
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:45:18 +0000 (12:45 -0700)]
Merge pull request #21448 from pdvian/wip-23750-luminous
luminous: mds: make rstat.rctime follow inodes' ctime
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:44:20 +0000 (12:44 -0700)]
Merge pull request #21512 from pdvian/wip-23791-luminous
luminous: MDSMonitor: initialize new Filesystem epoch from pending
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:43:54 +0000 (12:43 -0700)]
Merge pull request #21542 from pdvian/wip-23802-luminous
luminous:client: flush the mdlog in _fsync before waiting on unstable reqs
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:43:26 +0000 (12:43 -0700)]
Merge pull request #21596 from joscollin/wip-23771-luminous
luminous: client: Fix the gid_count check
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:42:51 +0000 (12:42 -0700)]
Merge pull request #21732 from batrick/i23792
luminous: MDSMonitor: cleanup and protect fsmap access
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:42:07 +0000 (12:42 -0700)]
Merge pull request #21796 from dalgaaf/luminous-issue-23873
luminous: client: use common interp of st_nlink for dirs
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:41:28 +0000 (12:41 -0700)]
Merge pull request #21840 from pdvian/wip-23930-luminous
luminous: mds: properly trim log segments after scrub repairs something
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yuri Weinstein [Tue, 8 May 2018 19:41:03 +0000 (12:41 -0700)]
Merge pull request #21844 from pdvian/wip-23934-luminous
luminous: mds: properly check auth subtree count in MDCache::shutdown_pass()
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Yan, Zheng [Mon, 23 Apr 2018 10:36:37 +0000 (18:36 +0800)]
mds: properly check auth subtree count in MDCache::shutdown_pass()
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/23813
(cherry picked from commit
cb60472bd2803878c04dbb961fd7f7f54707f25b )
Yan, Zheng [Thu, 26 Apr 2018 07:50:39 +0000 (15:50 +0800)]
mds: properly trim log segments after scrub repairs something
Before calling MDLog::trim_all(), we need to make sure mdlog get flushed
Otherwise, there can be zero expiring log segments. This can cause
MDSGatherBuilder to malfunction. (MDSGatherBuilder::activate() does not
execute empty MDSGatherBuilder's finish context)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
http://tracker.ceph.com/issues/23880
(cherry picked from commit
5be40f35c3365265b76a12a3bd0e17c3f8761bb9 )
Yuri Weinstein [Fri, 4 May 2018 17:17:05 +0000 (10:17 -0700)]
Merge pull request #21740 from pdvian/wip-23881-luminous
luminous: os/bluestore/bluefs_types: make block_mask 64-bit
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Fri, 4 May 2018 17:16:24 +0000 (10:16 -0700)]
Merge pull request #21752 from pdvian/wip-23904-luminous
luminous: osdc/Objecter: prevent double-invocation of linger op callback
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Fri, 4 May 2018 17:15:41 +0000 (10:15 -0700)]
Merge pull request #21778 from pdvian/wip-23924-luminous
luminous: ceph_test_rados_api_aio: fix race with full pool and osdmap
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Fri, 4 May 2018 17:14:47 +0000 (10:14 -0700)]
Merge pull request #21737 from pdvian/wip-23870-luminous
luminous: osd: publish osdmap to OSDService before starting wq threads
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Fri, 4 May 2018 17:12:32 +0000 (10:12 -0700)]
Merge pull request #21518 from smithfarm/wip-23784-luminous
luminous: osd: Warn about objects with too many omap entries
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Yuri Weinstein [Fri, 4 May 2018 17:11:10 +0000 (10:11 -0700)]
Merge pull request #21655 from liewegas/wip-23786
luminous: qa: disable -Werror when compiling env_librados_test
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yuri Weinstein [Fri, 4 May 2018 16:54:20 +0000 (09:54 -0700)]
Merge pull request #21760 from badone/wip-summarise-osds-when-issuing-slow-request-warning-luminous
luminous: mon/PGMap: Summarise OSDs in blocked/stuck requests
Reviewed-by: John Spray <john.spray@redhat.com>
Brad Hubbard [Tue, 3 Apr 2018 07:49:08 +0000 (17:49 +1000)]
mon/PGMap: Summarise OSDs in blocked/stuck requests
This fix is luminous specific since this code was changed in Mimic to
use the new SLOW_OPS errors.
Fixes: https://tracker.ceph.com/issues/23205
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Patrick Donnelly [Wed, 25 Apr 2018 20:07:34 +0000 (13:07 -0700)]
client: use common interp of st_nlink for dirs
Apparently some applications use this (like mail servers) and since it's
trivial to support, let's do it. Idea is that st_nlinks for a directory is
either 0 (it is unlinked) or 2 + the number of sub-directories (which have ..
parent links).
Fixes: https://tracker.ceph.com/issues/23873
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
67c7e4619188cfd684e59e3cb538948ae8f2b74c )
Conflicts:
src/client/Inode.cc
Brad Hubbard [Fri, 13 Apr 2018 01:10:22 +0000 (11:10 +1000)]
qa/workunits/rados/test_large_omap_detection: Scrub pgs instead of OSDs
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit
aba1e74e03c753366009996dedcb59ef83e155de )
Brad Hubbard [Fri, 13 Oct 2017 05:46:47 +0000 (15:46 +1000)]
osd: Add a flag to ScrubMap to signal check needed
If we know none of the scrub maps have errors early in
be_large_omap_check() we can return without doing a lot of unnecessary
work.
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit
2094fda7655ddd82b56850b3ded961a8c5c66966 )
Brad Hubbard [Tue, 27 Jun 2017 01:40:47 +0000 (11:40 +1000)]
osd: Warn about objects with too many omap entries
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit
71bf04775bef90c9291bd825da626bc9de6f9ec1 )
Conflicts:
src/osd/osd_types.h (trivial resolution)
Brad Hubbard [Mon, 9 Oct 2017 07:24:17 +0000 (17:24 +1000)]
osd: Move creation of 'master_set' to scrub_compare_maps
Moving it to scrub_compare_maps allows us to pass it to multiple
subsequently called functions.
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit
63ef97b3db81c0c725119943c8594a4a0d12154e )
Yuri Weinstein [Thu, 3 May 2018 13:50:51 +0000 (06:50 -0700)]
Merge pull request #21717 from croit/luminous-23915
luminous: mon: handle bad snapshot removal reqs gracefully
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yuri Weinstein [Thu, 3 May 2018 13:49:48 +0000 (06:49 -0700)]
Merge pull request #21568 from cbodley/wip-22937
luminous: rgw: beast frontend can listen on multiple endpoints
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Yuri Weinstein [Thu, 3 May 2018 13:43:14 +0000 (06:43 -0700)]
Merge pull request #21083 from pdvian/wip-23227-luminous
luminous: common: fix BoundedKeyCounter const_pointer_iterator
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Sage Weil [Fri, 27 Apr 2018 22:32:38 +0000 (17:32 -0500)]
ceph_test_rados_api_aio: fix race with full pool and osdmap
We send ops until we get a EDQUOT, and then assert our next op to
a different object also gets EDQUOT. However, if the second osd
doesn't have as new a map it may succeed. Make sure the client has
the latest (mon) map, and thus the one marking the pool full, before
we send the second op. That ensures the second OSD also has that
newer map and also returns EDQUOT.
Fixes: http://tracker.ceph.com/issues/23917
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
5e067b9dcf9bcccd9a1c0153d94818dccf6a0f71 )
Casey Bodley [Tue, 13 Feb 2018 15:32:11 +0000 (10:32 -0500)]
cmake: 'make check' builds radosgw and its cls dependencies
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
a029d20b86c7d64626baf14bf0217c142e5e17cf )
Casey Bodley [Tue, 23 Jan 2018 21:03:13 +0000 (16:03 -0500)]
rgw: beast frontend can listen on multiple endpoints
rgw_frontends options port= and endpoint= can be given multiple times,
and the beast frontend will listen on each endpoint
Fixes: http://tracker.ceph.com/issues/22779
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
1bff073b0e3e19e341fc0a08918abb510f0711b4 )
Conflicts: rgw_asio_frontend.cc (boost::asio::string_view not available,
replaced with BOOST_ASIO_STRING_VIEW_PARAM
which falls back to 'const std::string&')
Casey Bodley [Tue, 23 Jan 2018 18:37:05 +0000 (13:37 -0500)]
rgw: civetweb accepts multiple port= entries
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
22df0fbffdfa8b1963092cbf67e1ca8e18f01595 )
Jason Dillaman [Wed, 25 Apr 2018 17:23:00 +0000 (13:23 -0400)]
osdc/Objecter: prevent double-invocation of linger op callback
Fixes: http://tracker.ceph.com/issues/23872
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
1bc6f31f8f5ce33176b8a346492b087728947a71 )
Patrick Donnelly [Tue, 17 Apr 2018 03:46:39 +0000 (20:46 -0700)]
MDSMonitor: cleanup and protect fsmap access
This commit is designed to permanently protect the current epoch FSMap from
accidental changes. Modifications to the pending_fsmap are protected by
checking if the monitor is the leader. Additionally, code must explicitly
request a writeable reference.
Fixes http://tracker.ceph.com/issues/23762
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
624efc64323f99b2e843f376879c1080276e036f )
Conflicts:
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h
Andrew Schoen [Mon, 30 Apr 2018 19:52:50 +0000 (19:52 +0000)]
Merge pull request #21746 from alfredodeza/backport-rm23874
luminous ceph-volume failed ceph-osd --mkfs command doesn't halt the OSD creation process
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Alfredo Deza [Thu, 26 Apr 2018 20:35:45 +0000 (16:35 -0400)]
ceph-volume tests mkfs bluestore fails on non-zero exit status
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
978552a51f000952e0c820422369522063fd581a )
Alfredo Deza [Thu, 26 Apr 2018 20:25:46 +0000 (16:25 -0400)]
ceph-volume tests allow setting return values on stubbed process.call
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
b57e90105721d2817908b60ec39c2b4cbb1ca8f3 )
Alfredo Deza [Thu, 26 Apr 2018 20:26:30 +0000 (16:26 -0400)]
ceph-volume util.prepare raise on non-zero exit statuso
Just for bluestore objectstore that uses process.call
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Sage Weil [Tue, 24 Apr 2018 22:11:15 +0000 (17:11 -0500)]
os/bluestore/bluefs_types: make block_mask 64-bit
Since block_size is 32 bits, we return 0x00000000fffff000 (or similar).
This breaks things if you get a file (e.g., bluefs metadata log file)
over 4GB.
Fixes: https://tracker.ceph.com/issues/23840
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
55dd28a9dee08a028c6a8db82a8be77b3af88e44 )
Sage Weil [Tue, 24 Apr 2018 18:02:14 +0000 (13:02 -0500)]
osd: publish osdmap to OSDService before starting wq threads
The worker threads may request the map from the service (notably,
advance_pg() does this).
Fixes: http://tracker.ceph.com/issues/21977
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
ef3e5b1069c81f4e5b64e6119b467aeb7193e0b7 )
Conflicts:
src/osd/OSD.cc: Resolved in OSD::init
Paul Emmerich [Sun, 11 Mar 2018 00:26:45 +0000 (01:26 +0100)]
mon: handle bad snapshot removal reqs gracefully
Snapshot deletion requests on snap ids larger than the snap_seq of
the pool will leave the pool in a state with snap_seq being less
than max(removed_snaps).
This is bad because further deletion requests to a pool in this state
might crash the mon in some cases: the deletion also inserts the new
snap_seq into the removed_snaps set -- which might already exist
in this case and trigger an assert.
Such bad requests will be generated by rbd clients without a fix for
issue #21567.
The change in OSDMonitor prevents pools from getting into this state
and may prevent old broken clients from incorrectly deleting snaps.
The change in osd_types avoids a crash if a pool is already in this
state.
Fixes #18746
Signed-off-by: Paul Emmerich <paul.emmerich@croit.io>
(cherry picked from commit
f42a6ba4c37cb10869718ec296352ae55254b44a )
Conflicts:
src/osd/osd_types.cc
Casey Bodley [Tue, 23 Jan 2018 18:21:11 +0000 (13:21 -0500)]
rgw: frontend config uses multimap
this allows us to configure multiple values for a given key without
resorting to string formatting to cram them into a single key/value pair
ex. port=80 port=443s instead of port=80+443s
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
cf1b84195ebb8b0abf733889a3fa994a341be1b1 )
Conflicts:
rgw_frontend.cc: missing overload of get_str_vec()
Andrew Schoen [Thu, 26 Apr 2018 15:13:29 +0000 (15:13 +0000)]
Merge pull request #21654 from alfredodeza/backport-rm23451
luminous ceph-volume include physical devices associated with an LV when listing
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Kefu Chai [Sun, 15 Apr 2018 14:38:08 +0000 (22:38 +0800)]
qa: disable -Werror when compiling env_librados_test
to silence warnings like
utilities/env_librados.cc:175:33: warning: unused parameter ‘offset’ [-Wunused-parameter]
Status InvalidateCache(size_t offset, size_t length) {
^~~~~~
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
1a95710441baa1f14a57129cb6fe18559df63766 )
Alfredo Deza [Wed, 25 Apr 2018 14:48:45 +0000 (10:48 -0400)]
doc/ceph-volume include information for devices in listing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
009d49a4f5cf8c97a156b710342d4786b734747b )
Alfredo Deza [Wed, 25 Apr 2018 13:50:24 +0000 (09:50 -0400)]
ceph-volume tests verify associated pvs reporting on listing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
f57cc594c282cf06a75b2278ca1c2b2d38f87aa3 )
Alfredo Deza [Tue, 24 Apr 2018 21:35:08 +0000 (17:35 -0400)]
ceph-volume tests update to include devices on listing
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
08dea1b7d1d92d893c2f0a5e6e750d838d9cdbe4 )
Alfredo Deza [Tue, 24 Apr 2018 21:16:50 +0000 (17:16 -0400)]
ceph-volume lvm.listing include associated physical devices
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
be1e6c2ae9a6e6a77fcb5297badb1aa58548180c )
Alfredo Deza [Tue, 24 Apr 2018 21:11:42 +0000 (17:11 -0400)]
ceph-volume api.lvm include lv_uuid on pvs listings
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
12a7a48c53b16f52a76ad74773aaa67f8bfc7c52 )
Jenkins Build Slave User [Mon, 23 Apr 2018 16:18:33 +0000 (16:18 +0000)]
12.2.5
Jos Collin [Wed, 11 Apr 2018 05:43:51 +0000 (11:13 +0530)]
client: Fix the gid_count check
Make the right check for gid_count.
Fixes: http://tracker.ceph.com/issues/23652
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit
956d5501facc6a65903b0bad0d4b87c88139c787 )
Andrew Schoen [Fri, 20 Apr 2018 18:23:04 +0000 (18:23 +0000)]
Merge pull request #21565 from alfredodeza/backport-wip-ceph-volume
luminous: ceph-volume: Nits noticed while studying code
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Fri, 20 Apr 2018 18:07:51 +0000 (18:07 +0000)]
Merge pull request #21574 from alfredodeza/backport-cv-doc-updates
luminous: ceph-volume update man page for prepare/activate flags
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Alfredo Deza [Fri, 20 Apr 2018 16:22:40 +0000 (12:22 -0400)]
doc/man/ceph-volume update flags for activate
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
a454abc863817cd393e01e8c135174c1e1839be2 )
Alfredo Deza [Fri, 20 Apr 2018 16:46:48 +0000 (12:46 -0400)]
doc/man/ceph-volume update flags for prepare
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
ae96b9f0a283a65ddf6887461f3515a5a756572b )
Yuri Weinstein [Fri, 20 Apr 2018 17:01:22 +0000 (10:01 -0700)]
Merge pull request #21492 from b-ranto/wip-mgr-rgw-luminous
[luminous] Backport recent prometheus rgw changes
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Dan Mick [Tue, 17 Apr 2018 02:13:18 +0000 (19:13 -0700)]
Remove unused and wrongly-described _lsblk_type
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit
a97419f5d2b23131242a3602f2fa5f91ac7bc74d )
Dan Mick [Tue, 17 Apr 2018 01:37:30 +0000 (18:37 -0700)]
Fix mixing of format() and %-interpolation
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit
9e9a07c9ae41cc72e587dfd6551fd83389cc35e6 )
Dan Mick [Tue, 17 Apr 2018 01:35:33 +0000 (18:35 -0700)]
Spelling/typos
Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit
15ef400bb35e70cbb27144d595759d31a075aa37 )
Andrew Schoen [Fri, 20 Apr 2018 15:13:28 +0000 (15:13 +0000)]
Merge pull request #21538 from alfredodeza/backport-rm23678
luminous: ceph-volume: allow skipping systemd interactions on activate/create
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Rubab-Syed [Tue, 9 Jan 2018 23:32:42 +0000 (04:32 +0500)]
mgr/dashboard: performance counter browsers
Signed-off-by: Rubab-Syed <rubab.syed21@gmail.com>
(cherry picked from commit
25ecfbd9cfb620463de1545ca0be50001c805460 )
Conflicts: Removed dashboard changes
John Spray [Thu, 9 Nov 2017 11:27:24 +0000 (06:27 -0500)]
mgr: expose have_mon_connection to python modules
So that they can warn their end users if the data
we have is probably stale.
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
5633328e28c0f7a5122229737c2ca132174a4349 )
Jeff Layton [Mon, 16 Apr 2018 17:48:10 +0000 (13:48 -0400)]
client: flush the mdlog in _fsync before waiting on unstable reqs
Recently, we changed ganesha to call to ceph_ll_sync_inode after
issuing a setattr call, to ensure that the attribute changes makes it
to the backing store before returning.
While testing with this, I noticed that we'd occasionally see setattr
calls stall for a long time. Analysis showed that the client's _fsync
request was stalled waiting on an mdlog flush.
This patch adds a call to flush_mdlog_sync prior to waiting on unsafe
requests in _fsync and seems to resolve the issue.
Tracker: http://tracker.ceph.com/issues/23714
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit
d790108158d21616fdf6ea148bf7f9d1534326d0 )
Alfredo Deza [Wed, 18 Apr 2018 00:29:26 +0000 (20:29 -0400)]
ceph-volume lvm.activate add --no-systemd flag to skip starting/enabling services
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
75685e33bfc192f3a3b16ad57b8cd40313bd8bc6 )
Alfredo Deza [Wed, 18 Apr 2018 00:28:14 +0000 (20:28 -0400)]
ceph-volume lvm.common add --no-systemd flag to skip enabling/starting services
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
832da49ca8f1a57807f8a892cd734aa9b37216a6 )
Alfredo Deza [Wed, 18 Apr 2018 12:20:57 +0000 (08:20 -0400)]
ceph-volume tests functional python tests for --no-systemd in activate
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
8848d037086f889a880f5ea1d3bb2254e16faf7b )
Andrew Schoen [Thu, 19 Apr 2018 19:55:24 +0000 (19:55 +0000)]
Merge pull request #21533 from alfredodeza/backport-rm23067
luminous: ceph-volume Implement an 'activate all' to help with dense servers or migrating OSDs
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Sage Weil [Thu, 19 Apr 2018 18:40:50 +0000 (13:40 -0500)]
Merge pull request #21506 from liewegas/wip-rados-test-luminous
qa/workunits/rados/test-upgrade-to-mimic.sh: fix tee output
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Jan Fajerski [Thu, 19 Apr 2018 15:27:03 +0000 (17:27 +0200)]
pybind/mgr/prometheus: fix creation of osd_metadata metric
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit
05a37d4a61c427ed532138ab0c13a9dd4d0f65fb )
John Spray [Sun, 8 Apr 2018 14:21:27 +0000 (15:21 +0100)]
mgr/prometheus: fix and complete PG state names
...and reformat into a flat list in the same
order as found in osd_types.cc so that it's
easy to cross check.
Fixes: https://tracker.ceph.com/issues/23584
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
48acc6c7981ef6cbb962883cd36e2666a16d9c23 )
John Spray [Wed, 28 Feb 2018 14:03:42 +0000 (14:03 +0000)]
mgr/prometheus: skip OSD output if missing from CRUSH devices
Apparently this occurs as a transient state while adding
OSDs.
Fixes: https://tracker.ceph.com/issues/23166
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
e8e5bffbb0842cc9c41bb64e7e9b5c6e2898fc0c )
Alfredo Deza [Tue, 10 Apr 2018 00:00:27 +0000 (20:00 -0400)]
ceph-volume lvm.activate error if no bluestore OSDs are found
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
b1920d6e731f194c4829810d849dba6b087ce3a4 )
Alfredo Deza [Mon, 9 Apr 2018 17:56:45 +0000 (13:56 -0400)]
ceph-volume tests/functional add 'activate all' for xenial/filestore/dmcrypt
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
d6524297ac423ffc7ea82dc9598d27b4cc61a0ae )
Alfredo Deza [Mon, 9 Apr 2018 17:56:31 +0000 (13:56 -0400)]
ceph-volume tests/functional add 'activate all' for xenial/bluestore/dmcrypt
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
452081e57e5de9bb3a1391f22ffcac1bb712f2e9 )
Alfredo Deza [Mon, 9 Apr 2018 17:56:12 +0000 (13:56 -0400)]
ceph-volume tests/functional add 'activate all' for centos7/filestore/dmcrypt
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
5513f4de4ee0b4802bc1c0d1af754dd2d80486ed )
Alfredo Deza [Mon, 9 Apr 2018 17:55:59 +0000 (13:55 -0400)]
ceph-volume tests/functional add 'activate all' for centos7/bluestore/dmcrypt
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
16421c9058011e115cf043de4cf279cbbd0ac0ce )
Alfredo Deza [Mon, 9 Apr 2018 17:55:15 +0000 (13:55 -0400)]
ceph-volume tests/functional add 'activate all' in filestore playbook
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
ef09f3996b8a165112afc4e6912a119015c798be )
Alfredo Deza [Mon, 9 Apr 2018 17:55:05 +0000 (13:55 -0400)]
ceph-volume tests/functional add 'activate all' in bluestore playbook
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
797518a54603ad8fc9b57a66eab7cf7e55ea0299 )
Alfredo Deza [Thu, 29 Mar 2018 18:03:00 +0000 (14:03 -0400)]
ceph-volume tests ensure activate all behavior
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
2d8f48983d8674376a57ad98db16700bc00f8e29 )
Alfredo Deza [Thu, 29 Mar 2018 18:02:25 +0000 (14:02 -0400)]
ceph-volume lvm.activate warn when no osds are found with --all
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
967938a0cf4353e99eb55815cde4ee90d6d4b79b )
Alfredo Deza [Thu, 29 Mar 2018 16:55:42 +0000 (12:55 -0400)]
ceph-volume tests add process.call unit tests
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
6975e221d9f0c1b17531ca6fed87882b514e6d95 )
Alfredo Deza [Thu, 29 Mar 2018 12:59:19 +0000 (08:59 -0400)]
ceph-volume lvm.activate add 'activate all' functionality
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
fb0008ea8babe0065c08d3377bdabd36f3c2fa33 )
Alfredo Deza [Thu, 29 Mar 2018 12:58:14 +0000 (08:58 -0400)]
ceph-volume process.call add conditional verbosity on failure
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
50c9d5331b0c42d568baa47a2d52f199b3b4d818 )
Alfredo Deza [Thu, 29 Mar 2018 12:35:17 +0000 (08:35 -0400)]
ceph-volume systemd.systemctl add helpers for daemon status
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
2e8249f9e233d408fc45b772e45995c00f5180d7 )
Alfredo Deza [Tue, 27 Mar 2018 11:51:03 +0000 (07:51 -0400)]
ceph-volume lvm.listing create a helper that lists osds
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
cee7612ce400ca4bc3e6e5dbcc1a158178edafe5 )
Alfredo Deza [Mon, 26 Mar 2018 18:20:30 +0000 (14:20 -0400)]
ceph-volume lvv.activate allo to configure the CLI with --all
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
4f305eb661553bebc1a86d18c11f596fa6206828 )
Andrew Schoen [Thu, 19 Apr 2018 14:44:10 +0000 (14:44 +0000)]
Merge pull request #21509 from ceph/backport-rm23757
luminous: ceph-volume: allow parallel creates
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Andrew Schoen [Thu, 19 Apr 2018 14:41:52 +0000 (14:41 +0000)]
Merge pull request #21505 from ceph/backport-rm23581
luminous: ceph-volume: automatic VDO detection
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
Alfredo Deza [Thu, 19 Apr 2018 13:29:38 +0000 (09:29 -0400)]
Merge pull request #21519 from ceph/evelu-luminous-readonly
luminous: ceph-volume: Using --readonly for {vg|pv|lv}s commands
Reviewed-by: Alfredo Deza <adeza@redhat.com>
Erwan Velu [Fri, 13 Apr 2018 08:16:44 +0000 (10:16 +0200)]
ceph-volume: Using --readonly for {vg|pv|lv}s commands
The actual code is detecting {vg|pv|lv}s by running the usual {vg|pv|lv}s commands.
Those calls expect lvmetad to be aware of the actual state of them.
This works actually pretty well in most of the cases.
When ceph-volume is run from a container,
this code also works from the container itself but don't on the host.
On the host side, running {vg|pv|lv}s commands reports nothing,
making ceph-volume reporting "No valid Ceph devices found"
The root cause is lvmetad not receiving the udev notification and so,
{vg|pv|lv}s commands reports the 'known' state instead of the 'real' state.
This is a major issue as it means that it exists cases or maybe races where
ceph-volume reports "No valid Ceph devices found" while the disk
actually have some Ceph data & metadata on them.
This could be interpreted like disks are free/available while they are not.
This will mislead users or configuration tools trying to understand the
current state of a node.
In July 2015, as per https://www.redhat.com/archives/lvm-devel/2015-July/msg00086.html,
a new option called "--readonly" have been added to lvm2.
One of the most interesting part of it is : "disable using lvmetad so VGs are read from disk"
In our case, that feature is really interesting as it means that
everytime ceph-volume calls a {vg|pv|lv}s command, it will read the
metadata from the disks instead of considering the lvmetad status.
This patch change all the {vg|pv|lv}s call to use --readonly.
It solves the bug exposed here and doesn't affect the traditional use-case.
The main benefit of this patch is to avoid a false report of a disk not having metadata.
(cherry picked from commit
7be00cd19297ec80b4a629e2fc1e79c64205402c )
Fixes: https://tracker.ceph.com/issues/23693
Signed-off-by: Erwan Velu <erwan@redhat.com>
Patrick Donnelly [Tue, 17 Apr 2018 01:42:53 +0000 (18:42 -0700)]
MDSMonitor: initialize new Filesystem epoch from pending
Fixes: https://tracker.ceph.com/issues/23764
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
9341e4ba01e1641fa7a016698cdf53a28c7af0c7 )
Conflicts:
src/mds/FSMap.cc: Resolved in create_filesystem
Theofilos Mouratidis [Wed, 18 Apr 2018 08:02:37 +0000 (10:02 +0200)]
ceph-volume: allow parallel creates
Currently the create code decides the vg_name "ceph-$cluster_fsid" as
the primary vg_name and creates a new name if this already exists.
If this code is run N times in parallel, the script will try to
create N times the vg with the name "ceph-$cluster_fsid" and it
will fail to create the N osds successfully.
Creating vgs with names like "ceph-$uuid4" lets our scripts to run
without any problems.
Signed-off-by: Theofilos Mouratidis <t.mour@cern.ch>
(cherry picked from commit
201817f27ecfe195216284d9e4c344038cb654b6 )
Sage Weil [Wed, 18 Apr 2018 19:35:49 +0000 (14:35 -0500)]
qa/workunits/rados/test-upgrade-to-mimic.sh: fix tee output
Signed-off-by: Sage Weil <sage@redhat.com>
Alfredo Deza [Mon, 16 Apr 2018 18:42:22 +0000 (14:42 -0400)]
ceph-volume util.prepare preserve order on incoming mount flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
89f8f82402f9eda7cf76ebe860e50dd8e1047d76 )
Alfredo Deza [Mon, 16 Apr 2018 18:41:52 +0000 (14:41 -0400)]
ceph-volume tests update (preserved) order on mount flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
1a92ecbede09f084ab34ef556de46b435fa3e9d1 )
Alfredo Deza [Mon, 16 Apr 2018 16:50:02 +0000 (12:50 -0400)]
doc/dev/ceph-volume add VDO tag information
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
eeff3463543c12874ca4dfc3c3852af539d318f2 )
Alfredo Deza [Mon, 16 Apr 2018 16:45:21 +0000 (12:45 -0400)]
ceph-volume tests ensure non-duplicate flags in mount calls
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
61bed1e615a111f1c978d474fda390ba980bfb85 )
Alfredo Deza [Mon, 16 Apr 2018 16:44:24 +0000 (12:44 -0400)]
ceph-volume util.prepare allow and dedupe extra flags for mounting
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit
81c20e6b58b77671ffaa0f8030f18747e1a23569 )