]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agotools/ceph-objectstore-tool: split filestore directories offline to target hash level 23418/head
Zhi Zhang [Tue, 12 Sep 2017 06:49:31 +0000 (14:49 +0800)]
tools/ceph-objectstore-tool: split filestore directories offline to target hash level

Currently ceph-objectstore-tool can only split dirs that already
meet the usual object number criteria. It won't reduce the cost of
online split for those dirs that would meet the criteria online.

This change uses 'arg1' option for apply-layout-settings to specify
the target hash level wants to split to. Then dirs will be split
offline no matters how many objects they have. This also helps
those pools that forgot to do pre-splitting at their creation time.

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
(cherry picked from commit e71659b11a54ea3abdb047d2ec480bd855acee4a)

7 years agoMerge pull request #23369 from alfredodeza/luminous-cv-auto
Andrew Schoen [Wed, 1 Aug 2018 18:18:12 +0000 (18:18 +0000)]
Merge pull request #23369 from alfredodeza/luminous-cv-auto

luminous: ceph-volume initial take on auto sub-command

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #23236 from dzafman/wip-25085-luminous
David Zafman [Wed, 1 Aug 2018 15:51:12 +0000 (11:51 -0400)]
Merge pull request #23236 from dzafman/wip-25085-luminous

luminous: Fix  25085 and 24949

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22806 from smithfarm/wip-24697-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:41:14 +0000 (08:41 -0700)]
Merge pull request #22806 from smithfarm/wip-24697-luminous

luminous: ceph osd safe-to-destroy crashes the mgr

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22753 from pdvian/wip-24498-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:38:54 +0000 (08:38 -0700)]
Merge pull request #22753 from pdvian/wip-24498-luminous

luminous: librbd: force 'invalid object map' flag on-disk update

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoceph-volume tests verify get_devices captures device metadata 23369/head
Alfredo Deza [Thu, 3 May 2018 18:33:08 +0000 (14:33 -0400)]
ceph-volume tests verify get_devices captures device metadata

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

7 years agoceph-volume tests.conftest allow custom dirs in tmpfile fixture
Alfredo Deza [Thu, 3 May 2018 18:32:00 +0000 (14:32 -0400)]
ceph-volume tests.conftest allow custom dirs in tmpfile fixture

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

7 years agoceph-volume tests ensure human_readable_size works up to terabytes
Alfredo Deza [Thu, 3 May 2018 16:52:21 +0000 (12:52 -0400)]
ceph-volume tests ensure human_readable_size works up to terabytes

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

7 years agoceph-volume tests verify mapper and /dev devices
Alfredo Deza [Thu, 3 May 2018 16:47:53 +0000 (12:47 -0400)]
ceph-volume tests verify mapper and /dev devices

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

7 years agoceph-volume tests add tests for get_block_devs
Alfredo Deza [Thu, 3 May 2018 16:45:05 +0000 (12:45 -0400)]
ceph-volume tests add tests for get_block_devs

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

7 years agoceph-volume tests verify _map_dev_paths mappings
Alfredo Deza [Thu, 3 May 2018 16:40:17 +0000 (12:40 -0400)]
ceph-volume tests verify _map_dev_paths mappings

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

7 years agoceph-volume devices.auto initial take on auto sub-command
Alfredo Deza [Thu, 3 May 2018 15:05:42 +0000 (11:05 -0400)]
ceph-volume devices.auto initial take on auto sub-command

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

7 years agoceph-volume util.disk create a device metadata utility
Alfredo Deza [Thu, 3 May 2018 14:51:47 +0000 (10:51 -0400)]
ceph-volume util.disk create a device metadata utility

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

7 years agoceph-volume util.disk add dev mapping helpers for path resolution
Alfredo Deza [Thu, 3 May 2018 11:38:29 +0000 (07:38 -0400)]
ceph-volume util.disk add dev mapping helpers for path resolution

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

7 years agoceph-volume tests verify get_file_contents utility
Alfredo Deza [Wed, 2 May 2018 23:48:23 +0000 (19:48 -0400)]
ceph-volume tests verify get_file_contents utility

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

7 years agoceph-volume util.system capture file contents
Alfredo Deza [Wed, 2 May 2018 23:15:10 +0000 (19:15 -0400)]
ceph-volume util.system capture file contents

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

7 years agoceph-volume devices.auto initial take on auto sub-command
Alfredo Deza [Fri, 4 May 2018 17:16:05 +0000 (13:16 -0400)]
ceph-volume devices.auto initial take on auto sub-command

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

7 years agoceph-volume main include commented out auto subcommand
Alfredo Deza [Wed, 2 May 2018 23:01:10 +0000 (19:01 -0400)]
ceph-volume main include commented out auto subcommand

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

7 years agoceph-volume tests ensure is_lv detection on LVs
Alfredo Deza [Wed, 2 May 2018 22:59:51 +0000 (18:59 -0400)]
ceph-volume tests ensure is_lv detection on LVs

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

7 years agoceph-volume api.lvm create helpers to detect an lv from a device path
Alfredo Deza [Wed, 2 May 2018 20:39:16 +0000 (16:39 -0400)]
ceph-volume api.lvm create helpers to detect an lv from a device path

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

7 years agoMerge pull request #22844 from smithfarm/wip-24735-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:38:16 +0000 (08:38 -0700)]
Merge pull request #22844 from smithfarm/wip-24735-luminous

luminous: order rbdmap.service before remote-fs-pre.target

Reviewed-by: Boris Ranto <branto@redhat.com>
7 years agoMerge pull request #22865 from pdvian/wip-24584-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:37:38 +0000 (08:37 -0700)]
Merge pull request #22865 from pdvian/wip-24584-luminous

luminous: osdc: Fix the wrong BufferHead offset

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22767 from pdvian/wip-24514-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:36:19 +0000 (08:36 -0700)]
Merge pull request #22767 from pdvian/wip-24514-luminous

luminous: rgw: fix the bug of radowgw-admin zonegroup set requires realm

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #21806 from ivancich/wip-rgw-unordered-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:33:41 +0000 (08:33 -0700)]
Merge pull request #21806 from ivancich/wip-rgw-unordered-luminous

luminous: rgw: ability to list bucket contents in unsorted order for efficiency

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22817 from smithfarm/wip-24690-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:32:52 +0000 (08:32 -0700)]
Merge pull request #22817 from smithfarm/wip-24690-luminous

luminous: rgw-multisite: endless loop in RGWBucketShardIncrementalSyncCR

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22820 from smithfarm/wip-24692-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:32:27 +0000 (08:32 -0700)]
Merge pull request #22820 from smithfarm/wip-24692-luminous

luminous: rgw: index complete miss zones_trace set

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22822 from smithfarm/wip-24693-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:32:02 +0000 (08:32 -0700)]
Merge pull request #22822 from smithfarm/wip-24693-luminous

luminous: rgw: meta and data notify thread miss stop cr manager

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22846 from smithfarm/wip-24737-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:31:37 +0000 (08:31 -0700)]
Merge pull request #22846 from smithfarm/wip-24737-luminous

luminous: add unit test for cls bi list command

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #22942 from pdvian/wip-24782-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:30:58 +0000 (08:30 -0700)]
Merge pull request #22942 from pdvian/wip-24782-luminous

luminous: rgw: set cr state if aio_read err return in RGWCloneMetaLogCoroutine

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #22985 from joscollin/wip-24844-luminous
Yuri Weinstein [Wed, 1 Aug 2018 15:30:31 +0000 (08:30 -0700)]
Merge pull request #22985 from joscollin/wip-24844-luminous

luminous: rgw: require --yes-i-really-mean-it to run radosgw-admin orphans find

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge PR #23345 into luminous
Sage Weil [Wed, 1 Aug 2018 14:59:52 +0000 (09:59 -0500)]
Merge PR #23345 into luminous

* refs/pull/23345/head:
Revert "luminous: pybind/mgr/mgr_module: make rados handle available to all modules"

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #23137 from smithfarm/wip-24068-luminous
Yuri Weinstein [Tue, 31 Jul 2018 19:48:36 +0000 (12:48 -0700)]
Merge pull request #23137 from smithfarm/wip-24068-luminous

luminous: tests: osd sends op_reply out of order

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
7 years agoMerge pull request #23350 from ceph/backport-luminous-23348
Alfredo Deza [Tue, 31 Jul 2018 16:42:34 +0000 (12:42 -0400)]
Merge pull request #23350 from ceph/backport-luminous-23348

luminous: ceph-volume: adds test for `ceph-volume lvm list /dev/sda`

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: adds a unit test for `lvm list /dev/sda` 23350/head
Andrew Schoen [Mon, 30 Jul 2018 18:52:37 +0000 (13:52 -0500)]
ceph-volume: adds a unit test for `lvm list /dev/sda`

This test is to prove that the issue from
http://tracker.ceph.com/issues/24957 was fixed
by http://tracker.ceph.com/issues/24784

When running lvm list against a raw device it should handle
gracefully the situation where there are multiple PVs with the
name of the given device.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit ef10886f1e061d4273d3c0763ab0827e7e58e9d7)

7 years agoceph-volume: move pvolumes fixture into conftest.py
Andrew Schoen [Tue, 31 Jul 2018 13:26:57 +0000 (08:26 -0500)]
ceph-volume: move pvolumes fixture into conftest.py

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 37ed1be08b226a5b3a7a5bb70c4d5d1fd22db5d1)

7 years agoRevert "luminous: pybind/mgr/mgr_module: make rados handle available to all modules" 23345/head
Ernesto Puerta [Tue, 31 Jul 2018 09:39:53 +0000 (11:39 +0200)]
Revert "luminous: pybind/mgr/mgr_module: make rados handle available to all modules"

Reverts: https://github.com/ceph/ceph/pull/23235
Reverts: 45c7170eb68571a3d690460f99392c6753994799

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
7 years agoMerge pull request #22883 from smithfarm/wip-24311-luminous
Yuri Weinstein [Mon, 30 Jul 2018 20:48:10 +0000 (13:48 -0700)]
Merge pull request #22883 from smithfarm/wip-24311-luminous

luminous: pjd: cd: too many arguments

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22955 from joscollin/wip-24828-luminous
Yuri Weinstein [Mon, 30 Jul 2018 20:47:39 +0000 (13:47 -0700)]
Merge pull request #22955 from joscollin/wip-24828-luminous

luminous: qa: fix ffsb cd argument

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22980 from joscollin/wip-24860-luminous
Yuri Weinstein [Mon, 30 Jul 2018 20:47:01 +0000 (13:47 -0700)]
Merge pull request #22980 from joscollin/wip-24860-luminous

luminous: cephfs-journal-tool: Fix purging when importing an zero-length journal.

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #23012 from batrick/i23015
Yuri Weinstein [Mon, 30 Jul 2018 20:46:41 +0000 (13:46 -0700)]
Merge pull request #23012 from batrick/i23015

luminous: client: fixup parallel calls to ceph_ll_lookup_inode() in NFS FASL

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #23107 from pdvian/wip-24932-luminous
Yuri Weinstein [Mon, 30 Jul 2018 20:45:58 +0000 (13:45 -0700)]
Merge pull request #23107 from pdvian/wip-24932-luminous

luminous: client: add inst to asok status output

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #23222 from pdvian/wip-25038-luminous
Yuri Weinstein [Mon, 30 Jul 2018 20:45:28 +0000 (13:45 -0700)]
Merge pull request #23222 from pdvian/wip-25038-luminous

luminous: mds: scrub doesn't always return JSON results

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22779 from batrick/i24538
Yuri Weinstein [Mon, 30 Jul 2018 20:44:12 +0000 (13:44 -0700)]
Merge pull request #22779 from batrick/i24538

luminous: common/DecayCounter: set last_decay to current time when decoding decay counter

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22780 from batrick/i24295
Yuri Weinstein [Mon, 30 Jul 2018 20:43:23 +0000 (13:43 -0700)]
Merge pull request #22780 from batrick/i24295

luminous: repeated eviction of idle client until some IO happens

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22782 from ukernel/luminous-23989
Yuri Weinstein [Mon, 30 Jul 2018 20:41:00 +0000 (13:41 -0700)]
Merge pull request #22782 from ukernel/luminous-23989

luminous: mds: don't report slow request for blocked filelock request

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22783 from ukernel/luminous-24540
Yuri Weinstein [Mon, 30 Jul 2018 20:39:28 +0000 (13:39 -0700)]
Merge pull request #22783 from ukernel/luminous-24540

luminous: client:  update inode fields according to issued caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22786 from pdvian/wip-24535-luminous
Yuri Weinstein [Mon, 30 Jul 2018 20:38:29 +0000 (13:38 -0700)]
Merge pull request #22786 from pdvian/wip-24535-luminous

luminous: client: _ll_drop_pins may access invalid iterator

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #22811 from smithfarm/wip-24694-luminous
Yuri Weinstein [Mon, 30 Jul 2018 20:37:38 +0000 (13:37 -0700)]
Merge pull request #22811 from smithfarm/wip-24694-luminous

luminous: PurgeQueue sometimes ignores Journaler errors

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #23329 from ceph/backport-luminous-23234
Alfredo Deza [Mon, 30 Jul 2018 18:14:48 +0000 (14:14 -0400)]
Merge pull request #23329 from ceph/backport-luminous-23234

luminous: ceph-volume: PVolumes.get() should return one PV when using name or uuid

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #22814 from smithfarm/wip-24748-luminous
Yuri Weinstein [Mon, 30 Jul 2018 16:44:42 +0000 (09:44 -0700)]
Merge pull request #22814 from smithfarm/wip-24748-luminous

luminous: change default filestore_merge_threshold to -10

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #22839 from vumrao/wip-vumrao-backport-d12ba37e0d0-to-luminous
Yuri Weinstein [Mon, 30 Jul 2018 16:44:01 +0000 (09:44 -0700)]
Merge pull request #22839 from vumrao/wip-vumrao-backport-d12ba37e0d0-to-luminous

luminous: osd: change log level when withholding pg creation

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #22979 from VictorDenisov/backport_24033
Yuri Weinstein [Mon, 30 Jul 2018 16:42:54 +0000 (09:42 -0700)]
Merge pull request #22979 from VictorDenisov/backport_24033

luminous: rados.pyx: make all exceptions accept keyword arguments

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #23064 from pdvian/wip-24886-luminous
Yuri Weinstein [Mon, 30 Jul 2018 16:41:53 +0000 (09:41 -0700)]
Merge pull request #23064 from pdvian/wip-24886-luminous

luminous: os/bluestore: fix races on SharedBlob::coll in ~SharedBlob.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #23331 from alfredodeza/wip-rm25170
Andrew Schoen [Mon, 30 Jul 2018 16:15:16 +0000 (16:15 +0000)]
Merge pull request #23331 from alfredodeza/wip-rm25170

luminous: ceph-volume add a __release__ string, to help version-conditional calls

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #23293 from smithfarm/wip-upgrade-cleanup-luminous
Yuri Weinstein [Mon, 30 Jul 2018 16:01:40 +0000 (09:01 -0700)]
Merge pull request #23293 from smithfarm/wip-upgrade-cleanup-luminous

luminous: qa: drop upgrade/luminous-x

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
7 years agoceph-volume add a __release__ string, to help version-conditional calls 23331/head
Alfredo Deza [Mon, 30 Jul 2018 15:58:37 +0000 (11:58 -0400)]
ceph-volume add a __release__ string, to help version-conditional calls

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: PVolumes.get() should return one PV when using name or uuid 23329/head
Andrew Schoen [Wed, 25 Jul 2018 16:47:27 +0000 (11:47 -0500)]
ceph-volume: PVolumes.get() should return one PV when using name or uuid

It is possible to get duplicated pv entires from the 'pvs' lvm command.
If we're using PVolumes.get() with either pv_name or pv_uuid we can
safely return a single PVolume object. However, if we use pv_tags with
PVolumes.get() we must still raise a MultiplePVsError if many pvs
are found that have the tags, because they are not guaranteed to be the
same pv, as would be the case with pv_name or pv_uuid.

Fixes: http://tracker.ceph.com/issues/24784
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit e5e866e8ecaf0522f3ebac83fa6fbc5a666acd58)

7 years agoMerge pull request #23238 from alfredodeza/luminous-rm24993
Andrew Schoen [Mon, 30 Jul 2018 13:42:57 +0000 (13:42 +0000)]
Merge pull request #23238 from alfredodeza/luminous-rm24993

luminous ceph-volume process.call with stdin in Python 3 fix

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #23296 from b-ranto/wip-volume-selinux-luminous
Alfredo Deza [Sun, 29 Jul 2018 13:20:23 +0000 (09:20 -0400)]
Merge pull request #23296 from b-ranto/wip-volume-selinux-luminous

[luminous] ceph-volume: Restore SELinux context

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: Restore SELinux context 23296/head
Boris Ranto [Tue, 10 Jul 2018 20:52:38 +0000 (22:52 +0200)]
ceph-volume: Restore SELinux context

We need to reset the root context of the file system after mounting it.
Otherwise, the SELinux policy rules will not be preserved.

Fixes: https://tracker.ceph.com/issues/24785
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 61dbf4ac2af7d1e9da927bbc4006c9fbccb55478)

7 years agoceph-volume tests.util verify as_bytes behavior 23238/head
Alfredo Deza [Fri, 27 Jul 2018 15:16:19 +0000 (11:16 -0400)]
ceph-volume tests.util verify as_bytes behavior

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

7 years agoceph-volume tests catch utf-8 encoded stdin errors
Alfredo Deza [Fri, 27 Jul 2018 15:15:58 +0000 (11:15 -0400)]
ceph-volume tests catch utf-8 encoded stdin errors

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

7 years agoceph-volume process use the as_bytes util for stdin
Alfredo Deza [Fri, 27 Jul 2018 15:14:13 +0000 (11:14 -0400)]
ceph-volume process use the as_bytes util for stdin

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

7 years agoceph-volume util create a helper for converting to bytes
Alfredo Deza [Fri, 27 Jul 2018 15:13:19 +0000 (11:13 -0400)]
ceph-volume util create a helper for converting to bytes

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

7 years agoceph-volume tests validate the new utils for prompts
Alfredo Deza [Mon, 16 Jul 2018 13:23:14 +0000 (09:23 -0400)]
ceph-volume tests validate the new utils for prompts

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

7 years agoceph-volume tests verify str_to_int utility
Alfredo Deza [Fri, 13 Jul 2018 12:55:46 +0000 (08:55 -0400)]
ceph-volume tests verify str_to_int utility

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

7 years agoceph-volume util create prompt helpers
Alfredo Deza [Mon, 16 Jul 2018 13:22:50 +0000 (09:22 -0400)]
ceph-volume util create prompt helpers

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

7 years agoceph-volume util move the str_to_int utility out of lvm
Alfredo Deza [Fri, 13 Jul 2018 12:54:33 +0000 (08:54 -0400)]
ceph-volume util move the str_to_int utility out of lvm

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

7 years agoceph-volume tests run to log_descriptors, verifying utf-8
Alfredo Deza [Wed, 25 Jul 2018 12:40:53 +0000 (08:40 -0400)]
ceph-volume tests run to log_descriptors, verifying utf-8

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume process decode to utf-8 when logging descriptors
Alfredo Deza [Wed, 25 Jul 2018 12:39:16 +0000 (08:39 -0400)]
ceph-volume process decode to utf-8 when logging descriptors

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.process ensure that stdin works on py3 and py2.7
Alfredo Deza [Fri, 20 Jul 2018 13:49:59 +0000 (09:49 -0400)]
ceph-volume tests.process ensure that stdin works on py3 and py2.7

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume process encode stdin with utf-8 to prevent bytes TypeError
Alfredo Deza [Fri, 20 Jul 2018 13:48:38 +0000 (09:48 -0400)]
ceph-volume process encode stdin with utf-8 to prevent bytes TypeError

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoluminous: qa: drop upgrade/luminous-x 23293/head
Nathan Cutler [Fri, 27 Jul 2018 20:45:46 +0000 (22:45 +0200)]
luminous: qa: drop upgrade/luminous-x

This suite would typically be run from the mimic or master branches, not
luminous.

This commit is intentionally not a cherry-pick, since it is relevant to
luminous only.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #23274 from yuriw/wip-yuriw-25123-luminous
Nathan Cutler [Fri, 27 Jul 2018 04:18:54 +0000 (06:18 +0200)]
Merge pull request #23274 from yuriw/wip-yuriw-25123-luminous

qa/upgrade/luminous-p2p: cleaned up "#branch: luminous" lines

Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #23179 from smithfarm/wip-25066-luminous
Nathan Cutler [Fri, 27 Jul 2018 03:46:53 +0000 (05:46 +0200)]
Merge pull request #23179 from smithfarm/wip-25066-luminous

luminous: build/ops: install-deps.sh fails on newest openSUSE Leap

Reviewed-by: Tim Serong <tserong@suse.com>
7 years agoqa/tests: cleaned up "#branch: luminous" lines 23274/head
Yuri Weinstein [Thu, 26 Jul 2018 22:13:38 +0000 (15:13 -0700)]
qa/tests: cleaned up "#branch: luminous" lines

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #23265 from yuriw/wip-yuriw-25123-luminous
Yuri Weinstein [Thu, 26 Jul 2018 22:12:26 +0000 (15:12 -0700)]
Merge pull request #23265 from yuriw/wip-yuriw-25123-luminous

qa/tests: added 12.2.7 to the mix

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #23150 from alfredodeza/luminous-rm24952
Andrew Schoen [Thu, 26 Jul 2018 20:48:09 +0000 (20:48 +0000)]
Merge pull request #23150 from alfredodeza/luminous-rm24952

luminous: ceph-volume lvm.listing only include devices if they exist

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoqa/tests: added 12.2.7 to the mix 23265/head
Yuri Weinstein [Thu, 26 Jul 2018 15:57:09 +0000 (08:57 -0700)]
qa/tests: added 12.2.7 to the mix
also added 'overall HEALTH_' to the whitelist

Fixes: https://tracker.ceph.com/issues/25123
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
7 years agoMerge pull request #23177 from smithfarm/wip-25063-luminous
Nathan Cutler [Thu, 26 Jul 2018 20:05:37 +0000 (22:05 +0200)]
Merge pull request #23177 from smithfarm/wip-25063-luminous

luminous: doc: ceph-bluestore-tool manpage not getting rendered correctly

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agotest: Add test for automatic repair during scrub when distrust set 23236/head
David Zafman [Tue, 24 Jul 2018 22:12:15 +0000 (15:12 -0700)]
test: Add test for automatic repair during scrub when distrust set

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: Even when we are distrust data_digest, go ahead and set it when we can
David Zafman [Tue, 24 Jul 2018 20:30:09 +0000 (13:30 -0700)]
osd: Even when we are distrust data_digest, go ahead and set it when we can

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: Fix digest if osd_distrust_data_digest set and replicas match each other
David Zafman [Wed, 25 Jul 2018 12:35:19 +0000 (05:35 -0700)]
osd: Fix digest if osd_distrust_data_digest set and replicas match each other

Fixes: https://tracker.ceph.com/issues/24949
Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: be_select_auth_object() gives chksum objectstore priority if osd_distrust_data_d...
David Zafman [Fri, 20 Jul 2018 15:09:52 +0000 (08:09 -0700)]
osd: be_select_auth_object() gives chksum objectstore priority if osd_distrust_data_digest true

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Add test for repair of bad object info data_digest on all copies
David Zafman [Tue, 24 Jul 2018 16:40:24 +0000 (09:40 -0700)]
test: Add test for repair of bad object info data_digest on all copies

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

7 years agoosd: Fix pg repair to handle object info data_digest mismatched, but replicas match...
David Zafman [Mon, 23 Jul 2018 23:02:25 +0000 (16:02 -0700)]
osd: Fix pg repair to handle object info data_digest mismatched, but replicas match each other.

Fixes: https://tracker.ceph.com/issues/25085
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 61e995b2c1b866768151a405641463de067c210c)

7 years agotools: Add testing feature "corrupt-info" to ceph-objectstore-tool
David Zafman [Fri, 20 Jul 2018 19:31:56 +0000 (12:31 -0700)]
tools: Add testing feature "corrupt-info" to ceph-objectstore-tool

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

Conflicts:
    src/tools/ceph_objectstore_tool.cc (adjust for Luminous transactions)

7 years agoosd: Improve logic in be_compare_scrubmaps()
David Zafman [Mon, 23 Jul 2018 22:54:16 +0000 (15:54 -0700)]
osd: Improve logic in be_compare_scrubmaps()

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

7 years agoceph-volume lvm.listing only include devices if they exist 23150/head
Alfredo Deza [Wed, 18 Jul 2018 20:50:25 +0000 (16:50 -0400)]
ceph-volume lvm.listing only include devices if they exist

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

7 years agoceph-volume: do not pin the testinfra version for the simple tests
Andrew Schoen [Thu, 26 Jul 2018 17:41:15 +0000 (12:41 -0500)]
ceph-volume: do not pin the testinfra version for the simple tests

For testinfra to work with a 2.6.x version of ansible it must use the
latest version.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 70b86012b56fd4b66fc0c7ce88a6cfbe895a0702)

7 years agoMerge pull request #23264 from ceph/backport-luminous-23263
Alfredo Deza [Thu, 26 Jul 2018 17:44:32 +0000 (13:44 -0400)]
Merge pull request #23264 from ceph/backport-luminous-23263

luminous: ceph-volume: update version of ansible to 2.6.x for simple tests

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: update version of ansible to 2.6.x for simple tests 23264/head
Andrew Schoen [Thu, 26 Jul 2018 15:09:17 +0000 (10:09 -0500)]
ceph-volume: update version of ansible to 2.6.x for simple tests

ceph-ansible now requires a 2.5.x or 2.6.x version of ansible if you're
using the master branch. This updates our functional tests for the
simple subcommand to use a 2.6.x version of ansible.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 654578928dd840801967c5409b5b19ad6cf90317)

7 years agoMerge pull request #23245 from alfredodeza/luminous-ansible-26
Andrew Schoen [Wed, 25 Jul 2018 21:03:02 +0000 (21:03 +0000)]
Merge pull request #23245 from alfredodeza/luminous-ansible-26

luminous ceph-volume tests/functional use Ansible 2.6

Reviewed-by: Andrew Schoen <aschoen@redhat.com
7 years agoceph-volume tests/functional use testinfra latest for ansible 2.6 23245/head
Alfredo Deza [Mon, 23 Jul 2018 18:16:41 +0000 (14:16 -0400)]
ceph-volume tests/functional use testinfra latest for ansible 2.6

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

7 years agoceph-volume tests/functional use Ansible 2.6
Alfredo Deza [Mon, 23 Jul 2018 14:18:34 +0000 (10:18 -0400)]
ceph-volume tests/functional use Ansible 2.6

The ceph-ansible project now refuses to use 2.4 even though it works
with that version

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

7 years agoMerge pull request #23235 from rhcs-dashboard/wip-25102-luminous
Ernesto Puerta [Wed, 25 Jul 2018 18:33:21 +0000 (20:33 +0200)]
Merge pull request #23235 from rhcs-dashboard/wip-25102-luminous

pybind/mgr/mgr_module: make rados handle available to all modules

7 years agopybind/mgr/mgr_module: make rados handle available to all modules 23235/head
Sage Weil [Tue, 16 Jan 2018 21:02:14 +0000 (15:02 -0600)]
pybind/mgr/mgr_module: make rados handle available to all modules

Fixes: http://tracker.ceph.com/issues/25102
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 366905fb5779ecb110ec4216afe7cde14fbbb2d8)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
7 years agoMerge pull request #23227 from liewegas/wip-25057-luminous
Sage Weil [Wed, 25 Jul 2018 12:07:58 +0000 (07:07 -0500)]
Merge pull request #23227 from liewegas/wip-25057-luminous

luminous: osd/OSDMap: CRUSH_TUNABLES5 added in jewel, not kraken

7 years agotest: validate empty json output during recursive scrub 23222/head
Venky Shankar [Fri, 13 Jul 2018 11:39:12 +0000 (07:39 -0400)]
test: validate empty json output during recursive scrub

Signed-off-by: Venky Shankar <vshankar@redhat.com>
Fixes: http://tracker.ceph.com/issues/23958
(cherry picked from commit f253e3c3117aad183b05b863474c6d92fb923ed4)

7 years agotest: subclass test_scrub.Workload from CephFSTestCase
Venky Shankar [Tue, 17 Jul 2018 06:06:44 +0000 (02:06 -0400)]
test: subclass test_scrub.Workload from CephFSTestCase

This allows usage of assert*() calls instead of writing
our own version.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit ba23f5aa707b306f35939325b48de79859c93bcc)