]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoosd: Move creation of 'master_set' to scrub_compare_maps
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)

7 years agoMerge pull request #21717 from croit/luminous-23915
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>
7 years agoMerge pull request #21568 from cbodley/wip-22937
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>
7 years agoMerge pull request #21083 from pdvian/wip-23227-luminous
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>
7 years agocmake: 'make check' builds radosgw and its cls dependencies 21568/head
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)

7 years agorgw: beast frontend can listen on multiple endpoints
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&')

7 years agorgw: civetweb accepts multiple port= entries
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)

7 years agoMerge pull request #21746 from alfredodeza/backport-rm23874
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>
7 years agoceph-volume tests mkfs bluestore fails on non-zero exit status 21746/head
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)

7 years agoceph-volume tests allow setting return values on stubbed process.call
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)

7 years agoceph-volume util.prepare raise on non-zero exit statuso
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>
7 years agomon: handle bad snapshot removal reqs gracefully 21717/head
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

7 years agorgw: frontend config uses multimap
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()

7 years agoMerge pull request #21654 from alfredodeza/backport-rm23451
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>
7 years agodoc/ceph-volume include information for devices in listing 21654/head
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)

7 years agoceph-volume tests verify associated pvs reporting on listing
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)

7 years agoceph-volume tests update to include devices on listing
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)

7 years agoceph-volume lvm.listing include associated physical devices
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)

7 years agoceph-volume api.lvm include lv_uuid on pvs listings
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)

7 years ago12.2.5 v12.2.5
Jenkins Build Slave User [Mon, 23 Apr 2018 16:18:33 +0000 (16:18 +0000)]
12.2.5

7 years agoMerge pull request #21565 from alfredodeza/backport-wip-ceph-volume
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>
7 years agoMerge pull request #21574 from alfredodeza/backport-cv-doc-updates
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>
7 years agodoc/man/ceph-volume update flags for activate 21574/head
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)

7 years agodoc/man/ceph-volume update flags for prepare
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)

7 years agoMerge pull request #21492 from b-ranto/wip-mgr-rgw-luminous
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>
7 years agoRemove unused and wrongly-described _lsblk_type 21565/head
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)

7 years agoFix mixing of format() and %-interpolation
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)

7 years agoSpelling/typos
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)

7 years agoMerge pull request #21538 from alfredodeza/backport-rm23678
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>
7 years agomgr/dashboard: performance counter browsers 21492/head
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

7 years agomgr: expose have_mon_connection to python modules
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)

7 years agoceph-volume lvm.activate add --no-systemd flag to skip starting/enabling services 21538/head
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)

7 years agoceph-volume lvm.common add --no-systemd flag to skip enabling/starting services
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)

7 years agoceph-volume tests functional python tests for --no-systemd in activate
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)

7 years agoMerge pull request #21533 from alfredodeza/backport-rm23067
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>
7 years agoMerge pull request #21506 from liewegas/wip-rados-test-luminous
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>
7 years agopybind/mgr/prometheus: fix creation of osd_metadata metric
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)

7 years agomgr/prometheus: fix and complete PG state names
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)

7 years agomgr/prometheus: skip OSD output if missing from CRUSH devices
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)

7 years agoceph-volume lvm.activate error if no bluestore OSDs are found 21533/head
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)

7 years agoceph-volume tests/functional add 'activate all' for xenial/filestore/dmcrypt
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)

7 years agoceph-volume tests/functional add 'activate all' for xenial/bluestore/dmcrypt
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)

7 years agoceph-volume tests/functional add 'activate all' for centos7/filestore/dmcrypt
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)

7 years agoceph-volume tests/functional add 'activate all' for centos7/bluestore/dmcrypt
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)

7 years agoceph-volume tests/functional add 'activate all' in filestore playbook
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)

7 years agoceph-volume tests/functional add 'activate all' in bluestore playbook
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)

7 years agoceph-volume tests ensure activate all behavior
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)

7 years agoceph-volume lvm.activate warn when no osds are found with --all
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)

7 years agoceph-volume tests add process.call unit tests
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)

7 years agoceph-volume lvm.activate add 'activate all' functionality
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)

7 years agoceph-volume process.call add conditional verbosity on failure
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)

7 years agoceph-volume systemd.systemctl add helpers for daemon status
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)

7 years agoceph-volume lvm.listing create a helper that lists osds
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)

7 years agoceph-volume lvv.activate allo to configure the CLI with --all
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)

7 years agoMerge pull request #21509 from ceph/backport-rm23757
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>
7 years agoMerge pull request #21505 from ceph/backport-rm23581
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>
7 years agoMerge pull request #21519 from ceph/evelu-luminous-readonly
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>
7 years agoceph-volume: Using --readonly for {vg|pv|lv}s commands 21519/head
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>
7 years agoceph-volume: allow parallel creates 21509/head
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)

7 years agoqa/workunits/rados/test-upgrade-to-mimic.sh: fix tee output 21506/head
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>
7 years agoceph-volume util.prepare preserve order on incoming mount flags 21505/head
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)

7 years agoceph-volume tests update (preserved) order on mount flags
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)

7 years agodoc/dev/ceph-volume add VDO tag information
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)

7 years agoceph-volume tests ensure non-duplicate flags in mount calls
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)

7 years agoceph-volume util.prepare allow and dedupe extra flags for mounting
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)

7 years agoceph-volume lvm.prepare detect vdo from device for mounting filestore
Alfredo Deza [Mon, 16 Apr 2018 16:40:27 +0000 (12:40 -0400)]
ceph-volume lvm.prepare detect vdo from device for mounting filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 6b87580d4fe8e86de958ac258971cb2f90a70455)

7 years agoceph-volume lvm.activate detect vdo from tags for mounting filestore
Alfredo Deza [Mon, 16 Apr 2018 16:38:35 +0000 (12:38 -0400)]
ceph-volume lvm.activate detect vdo from tags for mounting filestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 0deef5f53c61b4215817008c04589a4f4b5cc3b3)

7 years agoceph-volume util.prepare allow extra ad-hoc mount flags
Alfredo Deza [Fri, 13 Apr 2018 19:52:55 +0000 (15:52 -0400)]
ceph-volume util.prepare allow extra ad-hoc mount flags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit d815c4f45429fd73d2506bd874656de438fe74fd)

7 years agoceph-volume lvm.prepare capture vdo-ness on LVM tags
Alfredo Deza [Fri, 13 Apr 2018 19:52:23 +0000 (15:52 -0400)]
ceph-volume lvm.prepare capture vdo-ness on LVM tags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit c6a79ef21ccc61a7634c05db5a705fc3ef46fbb9)

7 years agoceph-volume tests for is_vdo detection
Alfredo Deza [Fri, 13 Apr 2018 17:54:25 +0000 (13:54 -0400)]
ceph-volume tests for is_vdo detection

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 75f532597aa5ad5b84e993dc60c60d4a147af191)

7 years agoceph-volume api.lvm helpers to detect vdo from a dm path
Alfredo Deza [Wed, 11 Apr 2018 12:53:17 +0000 (08:53 -0400)]
ceph-volume api.lvm helpers to detect vdo from a dm path

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 5b97d8e54ce3dcf2a56872cdf0cbc0139ca0a723)

7 years agoMerge pull request #21426 from ivancich/wip-fix-existing-mclock-cost-luminous
Eric Ivancich [Wed, 18 Apr 2018 14:16:41 +0000 (10:16 -0400)]
Merge pull request #21426 from ivancich/wip-fix-existing-mclock-cost-luminous

osd: remove cost from mclock op queues; cost not handled well in dmcl…

7 years agoprometheus: Implement rgw_metadata metric
Boris Ranto [Thu, 12 Apr 2018 16:11:51 +0000 (18:11 +0200)]
prometheus: Implement rgw_metadata metric

This maps rgw id to its hostname and ceph version running on the node.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit c7cbc24803da9474c9d1d15a52da8d0eed2d49af)

7 years agoMerge pull request #21397 from dzafman/wip-23654
David Zafman [Wed, 18 Apr 2018 00:29:12 +0000 (17:29 -0700)]
Merge pull request #21397 from dzafman/wip-23654

luminous: Special scrub handling of hinfo_key errors

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: Change shard digests to hex like object info digests 21397/head
David Zafman [Fri, 13 Apr 2018 22:01:52 +0000 (15:01 -0700)]
osd: Change shard digests to hex like object info digests

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 22ddc6da5fd03e65a7baf96748a8893cc258d977)

7 years agotest: Luminous backport specific changes
David Zafman [Wed, 11 Apr 2018 15:43:56 +0000 (08:43 -0700)]
test: Luminous backport specific changes

osd-scrub-repair.sh:
    Remove legacy_snaps and redirect_target to keep test more in sync with master
    We don't have omap_digest bluestore handling
        Additional cases of omap_digest_mismatch_oi changes
        omap_digest still set
        ROBJ10 output still applies
osd-scrub-snaps.sh:
    Add head_exists in snapset
    Add snapset for object with head_mismatch

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #21216 from smithfarm/wip-23545-luminous 21894/head
Yuri Weinstein [Tue, 17 Apr 2018 15:11:37 +0000 (08:11 -0700)]
Merge pull request #21216 from smithfarm/wip-23545-luminous

luminous: journal: Message too long error when appending journal

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #21471 from liewegas/wip-librbd-upgrade-luminous
Jason Dillaman [Tue, 17 Apr 2018 13:03:42 +0000 (09:03 -0400)]
Merge pull request #21471 from liewegas/wip-librbd-upgrade-luminous

test/pybind/test_rbd: allow v1 images for testing

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/pybind/test_rbd: allow v1 images for testing 21471/head
Sage Weil [Tue, 17 Apr 2018 12:53:14 +0000 (07:53 -0500)]
test/pybind/test_rbd: allow v1 images for testing

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #21452 from yuriw/wip-fix-p2p-luminous
Josh Durgin [Tue, 17 Apr 2018 00:04:30 +0000 (17:04 -0700)]
Merge pull request #21452 from yuriw/wip-fix-p2p-luminous

qa/tests - added tag: v12.2.2 to be used by client.1 ...

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoqa/tests - added tag: v12.2.2 to be used by client.1 under workload_luminous to avoid... 21452/head
Yuri Weinstein [Mon, 16 Apr 2018 19:28:27 +0000 (12:28 -0700)]
qa/tests - added tag: v12.2.2 to be used by client.1 under workload_luminous to avoid failures.

added workunits/rados/test-upgrade-to-mimic.sh, and add --gtest_filter=-CReadOpsTest.Exec to api_c_read_operations

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #21328 from tchaikov/wip-11332-luminous
Yuri Weinstein [Mon, 16 Apr 2018 16:22:48 +0000 (09:22 -0700)]
Merge pull request #21328 from tchaikov/wip-11332-luminous

luminous: mon: update PaxosService::cached_first_committed in PaxosService::may…

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #21365 from k0ste/luminous_backports
Yuri Weinstein [Mon, 16 Apr 2018 16:22:11 +0000 (09:22 -0700)]
Merge pull request #21365 from k0ste/luminous_backports

luminous: mgr: prometheus: fix PG state names

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agoMerge pull request #21394 from ifed01/wip-ifed-backport2
Yuri Weinstein [Mon, 16 Apr 2018 16:21:22 +0000 (09:21 -0700)]
Merge pull request #21394 from ifed01/wip-ifed-backport2

luminous:  BlueStore.cc: _balance_bluefs_freespace: assert(0 == "allocate failed, wtf");

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agotest: Use jq in a compatible way and for easier diff analysis
David Zafman [Mon, 16 Apr 2018 04:49:48 +0000 (21:49 -0700)]
test: Use jq in a compatible way and for easier diff analysis

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 458babe7ee2e5fc0c4519a94249cbc1bd7cec9b6)

7 years agoosd: remove cost from mclock op queues; cost not handled well in dmclock library 21426/head
J. Eric Ivancich [Fri, 13 Apr 2018 22:27:25 +0000 (18:27 -0400)]
osd: remove cost from mclock op queues; cost not handled well in dmclock library

The current version of the dmclock library does not handle operation
cost well. Therefore cost should not be passed into the library when
enqueuing operations; instead 0 should be passed in.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #21388 from theanalyst/wip-luminous-usage-log
Yuri Weinstein [Fri, 13 Apr 2018 15:27:26 +0000 (08:27 -0700)]
Merge pull request #21388 from theanalyst/wip-luminous-usage-log

luminous: usage log fixes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21389 from theanalyst/wip-luminous-23687
Yuri Weinstein [Fri, 13 Apr 2018 15:27:07 +0000 (08:27 -0700)]
Merge pull request #21389 from theanalyst/wip-luminous-23687

Wip luminous 23687

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #21393 from theanalyst/wip-luminous-recalc
Yuri Weinstein [Fri, 13 Apr 2018 15:26:18 +0000 (08:26 -0700)]
Merge pull request #21393 from theanalyst/wip-luminous-recalc

luminous: rgw recalculate stats option added

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21390 from theanalyst/wip-luminous-23690
Yuri Weinstein [Fri, 13 Apr 2018 15:24:57 +0000 (08:24 -0700)]
Merge pull request #21390 from theanalyst/wip-luminous-23690

rgw: fix mutlisite read-write issues

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21233 from smithfarm/wip-jinja-mgr-luminous
Yuri Weinstein [Thu, 12 Apr 2018 21:32:46 +0000 (14:32 -0700)]
Merge pull request #21233 from smithfarm/wip-jinja-mgr-luminous

luminous: build/ops: deb: move python-jinja2 dependency to mgr

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: James Page <james.page@ubuntu.com>
7 years agoMerge pull request #21283 from liewegas/wip-pgpool-enc-luminous
Yuri Weinstein [Thu, 12 Apr 2018 21:30:51 +0000 (14:30 -0700)]
Merge pull request #21283 from liewegas/wip-pgpool-enc-luminous

luminous: osd/osd_types: fix pg_pool_t encoding for hammer

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #21307 from smithfarm/wip-23606-luminous
Yuri Weinstein [Thu, 12 Apr 2018 21:29:27 +0000 (14:29 -0700)]
Merge pull request #21307 from smithfarm/wip-23606-luminous

luminous: tests: ENGINE Error in 'start' listener <bound  in rados

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
7 years agoMerge pull request #21330 from tchaikov/wip-23610-luminous
Yuri Weinstein [Thu, 12 Apr 2018 21:28:16 +0000 (14:28 -0700)]
Merge pull request #21330 from tchaikov/wip-23610-luminous

luminous: osd: resend osd_pgtemp if it's not acked

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #21352 from pdvian/wip-23634-luminous
Yuri Weinstein [Thu, 12 Apr 2018 19:27:41 +0000 (12:27 -0700)]
Merge pull request #21352 from pdvian/wip-23634-luminous

luminous: doc: outline upgrade procedure for mds cluster

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoos/bluestore: do not assert on insufficient allocation during bluefs 21394/head
Igor Fedotov [Tue, 6 Feb 2018 17:45:24 +0000 (20:45 +0300)]
os/bluestore: do not assert on insufficient allocation during bluefs
rebalance

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 64abc7ba39fab57cc9e19463219e8a70d284eda0)

7 years agotest/store_test: add test case to for excessive fragmentation
Igor Fedotov [Tue, 6 Feb 2018 16:50:40 +0000 (19:50 +0300)]
test/store_test: add test case to for excessive fragmentation

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit eb0443a1034b42d006d2a1d2bd5cb91881f07df7)

7 years agoos/bluestore: fix lack of extent demotion in StupidAllocator::init_rm_free
Igor Fedotov [Mon, 23 Oct 2017 16:32:23 +0000 (09:32 -0700)]
os/bluestore: fix lack of extent demotion in StupidAllocator::init_rm_free

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 89aeea84f9ad24b2f9ca5ea3ee1dd9146e7eb664)

7 years agounittest_interval_set: test with flat_map<> too
Sage Weil [Sat, 28 Oct 2017 21:24:30 +0000 (16:24 -0500)]
unittest_interval_set: test with flat_map<> too

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 70ddb0c18b2969c26dbe855e1573f3f028d9f113)

7 years agoinclude/interval_set: cbegin/cend -> begin/end
Sage Weil [Sat, 28 Oct 2017 21:21:15 +0000 (16:21 -0500)]
include/interval_set: cbegin/cend -> begin/end

c{begin,end} don't exist for btree_map<>.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 7bbb7958df45b36556a0e469fe55f9236d036972)