]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agocls/journal: reduce verbosity of debug logs for non-errors 30857/head
Jason Dillaman [Mon, 22 Jul 2019 12:55:53 +0000 (08:55 -0400)]
cls/journal: reduce verbosity of debug logs for non-errors

Fixes: http://tracker.ceph.com/issues/40865
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7779860d38725636fb5438e2f52e432994dc3926)

5 years agocls/rbd: reduce verbosity of debug logs for non-errors
Jason Dillaman [Mon, 22 Jul 2019 12:55:25 +0000 (08:55 -0400)]
cls/rbd: reduce verbosity of debug logs for non-errors

Fixes: http://tracker.ceph.com/issues/40865
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7a6a2aefd72faf1da6594ca6bc5f8bf14a387edd)

5 years agoMerge pull request #29269 from smithfarm/wip-40135-luminous
Yuri Weinstein [Thu, 10 Oct 2019 21:33:22 +0000 (14:33 -0700)]
Merge pull request #29269 from smithfarm/wip-40135-luminous

luminous: rgw: the Multi-Object Delete operation of S3 API wrongly handles the Code response element

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoMerge pull request #30345 from dillaman/wip-41772-luminous
Yuri Weinstein [Thu, 10 Oct 2019 20:53:53 +0000 (13:53 -0700)]
Merge pull request #30345 from dillaman/wip-41772-luminous

luminous: common/config: hold lock while accessing mutable container

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #27974 from iain-buclaw-sociomantic/luminous-rgw-cls-bi-list-log...
Yuri Weinstein [Thu, 10 Oct 2019 20:10:39 +0000 (13:10 -0700)]
Merge pull request #27974 from iain-buclaw-sociomantic/luminous-rgw-cls-bi-list-log-level

luminous: rgw: cls/rgw: raise debug level of bi_log_iterate_entries output

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #27992 from smithfarm/wip-39016-luminous
Yuri Weinstein [Thu, 10 Oct 2019 20:10:17 +0000 (13:10 -0700)]
Merge pull request #27992 from smithfarm/wip-39016-luminous

luminous: rgw: unable to cancel reshard operations for buckets with tenants

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #29153 from davebiffuk/s3_policy_tracker_39272
Yuri Weinstein [Thu, 10 Oct 2019 20:09:50 +0000 (13:09 -0700)]
Merge pull request #29153 from davebiffuk/s3_policy_tracker_39272

luminous: rgw: policy fix for nonexistent objects

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #29170 from cbodley/wip-qa-rgw-tempest-luminous
Yuri Weinstein [Thu, 10 Oct 2019 20:09:17 +0000 (13:09 -0700)]
Merge pull request #29170 from cbodley/wip-qa-rgw-tempest-luminous

luminous: qa/rgw: remove incomplete rgw/tempest suite from luminous

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agoMerge pull request #29271 from smithfarm/wip-40143-luminous
Yuri Weinstein [Thu, 10 Oct 2019 20:08:30 +0000 (13:08 -0700)]
Merge pull request #29271 from smithfarm/wip-40143-luminous

luminous: rgw: multisite: 'radosgw-admin bucket sync status' should call syncs_from(source.name) instead of id

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #29295 from dillaman/wip-40233-luminous
Yuri Weinstein [Thu, 10 Oct 2019 20:07:59 +0000 (13:07 -0700)]
Merge pull request #29295 from dillaman/wip-40233-luminous

luminous: rbd/action: fix error getting positional argument

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
5 years agoMerge pull request #29826 from linuxbox2/wip-luminous-apiname
Yuri Weinstein [Thu, 10 Oct 2019 20:07:09 +0000 (13:07 -0700)]
Merge pull request #29826 from linuxbox2/wip-luminous-apiname

luminous: rgw: fix issue for CreateBucket with BucketLocation param

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #29874 from trociny/wip-41285-luminous
Yuri Weinstein [Thu, 10 Oct 2019 20:06:35 +0000 (13:06 -0700)]
Merge pull request #29874 from trociny/wip-41285-luminous

luminous: rbd-mirror: don't overwrite status error returned by replay

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30375 from smithfarm/wip-41480-luminous
Yuri Weinstein [Thu, 10 Oct 2019 20:04:33 +0000 (13:04 -0700)]
Merge pull request #30375 from smithfarm/wip-41480-luminous

luminous: rgw: make dns hostnames matching case insensitive

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #30666 from smithfarm/wip-41104-luminous
Yuri Weinstein [Thu, 10 Oct 2019 20:03:46 +0000 (13:03 -0700)]
Merge pull request #30666 from smithfarm/wip-41104-luminous

luminous: rgw: mitigate bucket list with max-entries excessively high

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
5 years agoMerge pull request #30677 from sobelek/wip-42049-luminous
Jan Fajerski [Wed, 9 Oct 2019 11:14:30 +0000 (13:14 +0200)]
Merge pull request #30677 from sobelek/wip-42049-luminous

luminous: ceph-volume: fix warnings raised by pytest

5 years agoMerge pull request #28991 from smithfarm/wip-40249
Jason Dillaman [Thu, 3 Oct 2019 21:06:00 +0000 (17:06 -0400)]
Merge pull request #28991 from smithfarm/wip-40249

luminous: tests: qa/rados/upgrade/jewel-x-singleton: set RBD_FEATURES

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoqa/rados/upgrade/jewel-x-singleton: do not run on Bionic 28991/head
Nathan Cutler [Wed, 2 Oct 2019 12:19:04 +0000 (14:19 +0200)]
qa/rados/upgrade/jewel-x-singleton: do not run on Bionic

The test was failing because it did not explicitly set "os_type" and
"os_version", and teuthology defaulted to Ubuntu Bionic.

Jewel is not supported on Ubuntu Bionic, so we should not try to run tests on
that Ubuntu version.

NOTE: This commit is not cherry-picked from master because the fix is
luminous-specific (there is no "rados/upgrade/jewel-x-singleton" test after
luminous).

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoqa/rados/upgrade/jewel-x-singleton: set RBD_FEATURES
Nathan Cutler [Thu, 11 Jul 2019 13:29:17 +0000 (15:29 +0200)]
qa/rados/upgrade/jewel-x-singleton: set RBD_FEATURES

This commit cannot be cherry-picked from master because luminous is the only
non-EOL stable branch that still includes the
qa/rados/upgrade/jewel-x-singleton suite.

Fixes: https://tracker.ceph.com/issues/40249
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #30665 from smithfarm/wip-42106-luminous
Nathan Cutler [Wed, 2 Oct 2019 09:10:17 +0000 (11:10 +0200)]
Merge pull request #30665 from smithfarm/wip-42106-luminous

luminous: build/ops: admin/build-doc: use python3

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #24169 from tchaikov/wip-17516-luminous
Kefu Chai [Wed, 2 Oct 2019 03:50:29 +0000 (11:50 +0800)]
Merge pull request #24169 from tchaikov/wip-17516-luminous

luminous: cmake: pass -march to detect compiler support of arm64 crc/crypto

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #26247 from liewegas/wip-bluestore-disable-csum-luminous
Yuri Weinstein [Wed, 2 Oct 2019 00:09:05 +0000 (17:09 -0700)]
Merge pull request #26247 from liewegas/wip-bluestore-disable-csum-luminous

luminous: bluestore: add bluestore_ignore_data_csum option

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #29859 from athanatos/sjust/wip-luminous-20924
Yuri Weinstein [Wed, 2 Oct 2019 00:08:12 +0000 (17:08 -0700)]
Merge pull request #29859 from athanatos/sjust/wip-luminous-20924

luminous:  mds,osd,mon,msg: use intrusive_ptr for holding Connection::priv

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #27557 from smithfarm/wip-39277-luminous
Yuri Weinstein [Tue, 1 Oct 2019 22:59:49 +0000 (15:59 -0700)]
Merge pull request #27557 from smithfarm/wip-39277-luminous

luminous:  platform.linux_distribution() is deprecated; stop using it

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
5 years agoMerge pull request #27912 from ifed01/wip-ifed-fix-39565
Yuri Weinstein [Tue, 1 Oct 2019 22:59:01 +0000 (15:59 -0700)]
Merge pull request #27912 from ifed01/wip-ifed-fix-39565

luminous: os/bluestore_tool: bluefs-bdev-expand: indicate bypassed for main dev

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #29025 from ifed01/wip-ifed-fix-stupid-len0-lum
Yuri Weinstein [Tue, 1 Oct 2019 22:58:39 +0000 (15:58 -0700)]
Merge pull request #29025 from ifed01/wip-ifed-fix-stupid-len0-lum

luminous: os/bluestore: avoid length overflow in extents returned by Stupid Alloc

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #29248 from smithfarm/wip-38436-luminous
Yuri Weinstein [Tue, 1 Oct 2019 22:58:08 +0000 (15:58 -0700)]
Merge pull request #29248 from smithfarm/wip-38436-luminous

luminous: crc cache should be invalidated when posting preallocated rx buffers

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
5 years agoMerge pull request #29366 from dzafman/wip-37748
Yuri Weinstein [Tue, 1 Oct 2019 22:57:32 +0000 (15:57 -0700)]
Merge pull request #29366 from dzafman/wip-37748

luminous: tools: Add clear-data-digest command to objectstore tool.

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #28812 from trociny/wip-40592-luminous
Yuri Weinstein [Tue, 1 Oct 2019 20:50:08 +0000 (13:50 -0700)]
Merge pull request #28812 from trociny/wip-40592-luminous

luminous: rbd-mirror: handle duplicates in image sync throttler queue

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoceph-volume: avoid backported version of configparser 30677/head
Rishabh Dave [Wed, 18 Sep 2019 12:46:45 +0000 (18:16 +0530)]
ceph-volume: avoid backported version of configparser

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 88a8d5d967c9060e525e91f48b623beebee00c6d)

5 years agoceph-volume: fix warnings raised by pytest
Rishabh Dave [Tue, 17 Sep 2019 08:10:55 +0000 (13:40 +0530)]
ceph-volume: fix warnings raised by pytest

Warnings are related to configparser. Update tests too.

Fixes: https://tracker.ceph.com/issues/41907
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 31a0c7e77bf5d0193e90e6693b424ca5305b47cc)

5 years agorgw: fix minimum of unordered bucket listing 30666/head
J. Eric Ivancich [Wed, 4 Sep 2019 14:02:32 +0000 (10:02 -0400)]
rgw: fix minimum of unordered bucket listing

A recent PR made sure that a bucket listing could not request too many
entries at once. It also did a minimum computation for number of
entries. For ordered listing the minimum was 0, as required to pass
all unit tests. However the minimum for unordered listing was left at
1. In order to make ordered and unordered listing behave the same --
with the exception of ordering -- the minimum for unordered listing is
modified to 0.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 38e02a7157d4c534cc9fd8ccfe20fdd93a9b07a8)

5 years agorgw: mitigate bucket list with max-entries excessively high
J. Eric Ivancich [Fri, 19 Jul 2019 20:10:59 +0000 (16:10 -0400)]
rgw: mitigate bucket list with max-entries excessively high

When listing a bucket with radosgw-admin, the user can specify the
maximum number of entries. That number can be unreasonably large, and
can affect the performance and memory availability. For example:

    radosgw-admin bucket list --bucket mybucket1 --max-entries=10000000

This has the potential for creating large data structures at multiple
levels in the the call stack of the radosgw(-admin) process,
potentially causing the process to run out of memory. This change
limits the maximum number of entries requested in all but the high
level code to help mitigate this issue.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 300429c9e98a27e17c2a20ade82c6c63ac276c20)

Conflicts:
src/rgw/rgw_rados.cc
- in luminous, RGWRados::Bucket::List::list_objects_ordered does not take
  optional_yield parameter
- no std::string_view in C++11

5 years agocommon/config: hold lock while accessing mutable container 30345/head
Jason Dillaman [Thu, 22 Aug 2019 00:20:10 +0000 (20:20 -0400)]
common/config: hold lock while accessing mutable container

The 'call_gate_leave' method was accessing the 'obs_call_gate' map
without holding the required lock. This data structure could be
manipulated by another thread underneath the observer callback
thread context.

Fixes: https://tracker.ceph.com/issues/41354
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 0cc2dd7bd1021dd8b5e22850495ce97da7d98716)

Conflicts:
src/common/config_proxy.h: logic incorporated into config.cc

5 years agoadmin/build-doc: use python3 30665/head
Kefu Chai [Wed, 7 Aug 2019 09:46:13 +0000 (17:46 +0800)]
admin/build-doc: use python3

to address https://github.com/sphinx-doc/sphinx/issues/3620, we need to
use sphinx with its fix at
https://github.com/sphinx-doc/sphinx/commit/e049f86b2de1cfdf8a74c88dc9593d047c85d5cb
in other words, we need to use sphinx v2.0.0 and up. but sphinx 2.0
requires python >= 3.5, so we have to use python3 for building the
documents.

in this change:

* doc-requirements.txt: install python3 packages on debian derivatives
* build-doc: install python3.6 packages from EPEL7, and use python3
  venv for using sphinx2
* doc-requirements.txt: bump up all python packages to latest
  stable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit ace8cb15a600daf5261c0ab349b43010a238a1d9)

Conflicts:
admin/doc-requirements.txt
admin/build-doc

5 years agoadmin/build-doc: support renamed python2 RPMs
Jason Dillaman [Thu, 4 Jan 2018 14:55:16 +0000 (09:55 -0500)]
admin/build-doc: support renamed python2 RPMs

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit f309180b961094e1e3ab88b76eb113578b07d752)

5 years agoMerge pull request #27639 from wumingqiao/luminous
Kefu Chai [Sun, 29 Sep 2019 07:28:55 +0000 (15:28 +0800)]
Merge pull request #27639 from wumingqiao/luminous

luminous: mgr: drop GIL in StandbyPyModule::get_config

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #29736 from smithfarm/wip-41334-luminous
Nathan Cutler [Thu, 26 Sep 2019 11:14:33 +0000 (13:14 +0200)]
Merge pull request #29736 from smithfarm/wip-41334-luminous

luminous: build/ops: ceph-test RPM not built for SUSE

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Kyr Shatskyy <kyrylo.shatskyy@suse.de>
5 years agoMerge pull request #30556 from alfredodeza/luminous-guits-41392
Jan Fajerski [Wed, 25 Sep 2019 07:10:49 +0000 (09:10 +0200)]
Merge pull request #30556 from alfredodeza/luminous-guits-41392

luminous ceph-volume: do not fail when trying to remove crypt mapper

5 years agoceph-volume: do not fail when trying to remove crypt mapper 30556/head
Guillaume Abrioux [Fri, 20 Sep 2019 12:57:58 +0000 (14:57 +0200)]
ceph-volume: do not fail when trying to remove crypt mapper

In a containerized context, at some point, need to run `simple scan` on a device
from a separate container (not the existing and running corresponding container
to that device), but this can't work because when it tries to remove the
mapper which is still in use by the corresponding running osd container,
it fails.
This can be a bit more permissive and simply throw a warning.

Closes: https://tracker.ceph.com/issues/41392
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 80d3e4ca054b4d1334c2fb99fede46ab54ca4305)

5 years agorgw: fix dns name comparison for virtual hosting 30375/head
Casey Bodley [Fri, 6 Sep 2019 18:44:59 +0000 (14:44 -0400)]
rgw: fix dns name comparison for virtual hosting

Fixes: https://tracker.ceph.com/issues/41692
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 60b2dbe67af4a919df0d1b802c1fe21909c48d4c)

5 years agorgw: make dns hostnames matching case insensitive
Abhishek Lekshmanan [Mon, 29 Jul 2019 12:37:40 +0000 (14:37 +0200)]
rgw: make dns hostnames matching case insensitive

Currently when parsing host in requests, we try to case match against supplied
hostnames set, which violates dns hostnames being case insensitive. Do a case
insensitive comparision instead

Fixes: http://tracker.ceph.com/issues/40995
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 9bc7d7bd0cf42663ebf1131d9cac6c96e6d9f141)

5 years agoMerge pull request #29038 from dcasier/wip-40100-luminous
Alfredo Deza [Thu, 12 Sep 2019 21:52:54 +0000 (17:52 -0400)]
Merge pull request #29038 from dcasier/wip-40100-luminous

luminous: ceph-volume: lvm.activate: Return an error if WAL/DB devices absent

Reviewed-by: Alfredo Deza <adeza@redhat.com>
5 years agoceph-volume: lvm.activate: Return an error if WAL/DB devices absent 29038/head
David Casier [Wed, 3 Jul 2019 21:24:34 +0000 (23:24 +0200)]
ceph-volume: lvm.activate: Return an error if WAL/DB devices absent

Fixes: https://tracker.ceph.com/issues/40100
Signed-off-by: David Casier <david.casier@aevoo.fr>
(cherry picked from commit de439a0a236e4752e64a0cd63b7ce1ad3278eff3)

5 years agoMerge pull request #29771 from alfredodeza/luminous-bz-1738379
Jan Fajerski [Thu, 12 Sep 2019 13:00:16 +0000 (15:00 +0200)]
Merge pull request #29771 from alfredodeza/luminous-bz-1738379

luminous ceph-volume: use the OSD identifier when reporting success

5 years agoMerge pull request #30296 from alfredodeza/luminous-rm41378-2
Alfredo Deza [Thu, 12 Sep 2019 10:55:35 +0000 (06:55 -0400)]
Merge pull request #30296 from alfredodeza/luminous-rm41378-2

luminous ceph-volume: pre-install python-apt and its variants before test runs

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
5 years agoMerge pull request #30305 from alfredodeza/luminous-rm40664
Jan Fajerski [Thu, 12 Sep 2019 10:05:25 +0000 (12:05 +0200)]
Merge pull request #30305 from alfredodeza/luminous-rm40664

luminous ceph-volume  zap always skips block.db, leaves them around

5 years agoMerge pull request #30299 from alfredodeza/luminous-rm41660
Alfredo Deza [Wed, 11 Sep 2019 19:30:36 +0000 (15:30 -0400)]
Merge pull request #30299 from alfredodeza/luminous-rm41660

luminous ceph-volume: fix stderr failure to decode/encode when redirected

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
5 years agoceph-volume tests create a test file for checking unicode output 30299/head
Alfredo Deza [Mon, 9 Sep 2019 22:55:13 +0000 (18:55 -0400)]
ceph-volume tests create a test file for checking unicode output

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

5 years agoceph-volume tests create a shell test for functional unicode
Alfredo Deza [Mon, 9 Sep 2019 22:54:51 +0000 (18:54 -0400)]
ceph-volume tests create a shell test for functional unicode

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

5 years agoceph-volume tests verify new logging fallback and encodings in terminal
Alfredo Deza [Mon, 9 Sep 2019 19:20:13 +0000 (15:20 -0400)]
ceph-volume tests verify new logging fallback and encodings in terminal

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

5 years agoceph-volume terminal remove unicode stream handler
Alfredo Deza [Mon, 9 Sep 2019 17:45:08 +0000 (13:45 -0400)]
ceph-volume terminal remove unicode stream handler

This caused problems in environments where stderr was redirected, since
stderr sets the encoding to None. Getting it back again allows
everything to work correctly, and keeps all the current unit tests
passing

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

5 years agoceph-volume: instantiate the new terminal logger in main()
Alfredo Deza [Mon, 9 Sep 2019 17:44:36 +0000 (13:44 -0400)]
ceph-volume: instantiate the new terminal logger in main()

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

5 years agoceph-volume create a logger for the terminal
Alfredo Deza [Mon, 9 Sep 2019 17:44:17 +0000 (13:44 -0400)]
ceph-volume create a logger for the terminal

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

5 years agoceph-volume create a new tox.ini for shell-based tests
Alfredo Deza [Mon, 9 Sep 2019 17:40:06 +0000 (13:40 -0400)]
ceph-volume create a new tox.ini for shell-based tests

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

5 years agoMerge pull request #30302 from alfredodeza/luminous-ceph-volume-zap-fix
Alfredo Deza [Wed, 11 Sep 2019 13:31:13 +0000 (09:31 -0400)]
Merge pull request #30302 from alfredodeza/luminous-ceph-volume-zap-fix

luminous ceph-volume lvm.zap fix cleanup for db partitions

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
5 years agoceph-volume lvm.zap fix cleanup for db partitions 30302/head
Dominik Csapak [Tue, 28 May 2019 14:29:21 +0000 (16:29 +0200)]
ceph-volume lvm.zap fix cleanup for db partitions

this uses the correct type 'db' for db type partitions, else
a block.db parition does not get cleaned up by ceph-volume zap

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 140af8a7eee8d230ac9d94ba100320a20c137a12)

5 years agoMerge pull request #30331 from jan--f/wip-9e2175c-luminous
Alfredo Deza [Wed, 11 Sep 2019 12:54:34 +0000 (08:54 -0400)]
Merge pull request #30331 from jan--f/wip-9e2175c-luminous

luminous: ceph-volume: set a lvm_size property on the fakedevice fixture

Reviewed-by: Alfredo Deza <adeza@redhat.com>
5 years agoceph-volume: set a lvm_size property on the fakedevice fixture 30331/head
Andrew Schoen [Thu, 6 Dec 2018 18:37:56 +0000 (12:37 -0600)]
ceph-volume: set a lvm_size property on the fakedevice fixture

This is so tests can continue to set sys_api['size'] and the code
can retrieve that as Device.lvm_size

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

5 years agoceph-volume tests: verify that wipefs tries several times 30305/head
Alfredo Deza [Thu, 11 Jul 2019 15:56:07 +0000 (11:56 -0400)]
ceph-volume tests: verify that wipefs tries several times

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

5 years agoceph-volume lvm.zap: retry wipefs several times to prevent race condition failures
Alfredo Deza [Thu, 11 Jul 2019 13:34:10 +0000 (09:34 -0400)]
ceph-volume lvm.zap: retry wipefs several times to prevent race condition failures

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

5 years agoceph-volume tests pre-instrall python-apt to prevent auto-install failing later 30296/head
Alfredo Deza [Tue, 3 Sep 2019 14:00:14 +0000 (10:00 -0400)]
ceph-volume tests pre-instrall python-apt to prevent auto-install failing later

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

5 years agoMerge pull request #30129 from smithfarm/wip-41644-luminous
Nathan Cutler [Mon, 9 Sep 2019 22:29:13 +0000 (00:29 +0200)]
Merge pull request #30129 from smithfarm/wip-41644-luminous

luminous: install-deps.sh: Remove CR repo

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #29910 from vumrao/wip-vumrao-bluefs-log-level
Neha Ojha [Mon, 9 Sep 2019 19:12:52 +0000 (12:12 -0700)]
Merge pull request #29910 from vumrao/wip-vumrao-bluefs-log-level

luminous: os/bluestore: apply shared_alloc_size to shared device with log level change

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agoMerge pull request #29190 from badone/wip-luminous-lazy-omap-stats-backport-tracker...
Neha Ojha [Mon, 9 Sep 2019 17:36:12 +0000 (10:36 -0700)]
Merge pull request #29190 from badone/wip-luminous-lazy-omap-stats-backport-tracker-38551

luminous: core: lazy omap stat collection

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #29175 from neha-ojha/wip-40583-luminous 30169/head
Neha Ojha [Sat, 7 Sep 2019 19:17:30 +0000 (12:17 -0700)]
Merge pull request #29175 from neha-ojha/wip-40583-luminous

luminous: common/options.cc: Lower the default value of osd_deep_scrub_large_omap_object_key_threshold

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #30149 from neha-ojha/wip-40769-luminous
Neha Ojha [Fri, 6 Sep 2019 17:10:42 +0000 (10:10 -0700)]
Merge pull request #30149 from neha-ojha/wip-40769-luminous

luminous: common/options: Set concurrent bluestore rocksdb compactions to 2

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agocommon/options: Set concurrent bluestore rocksdb compactions to 2 30149/head
Mark Nelson [Fri, 12 Jul 2019 16:45:17 +0000 (12:45 -0400)]
common/options: Set concurrent bluestore rocksdb compactions to 2

Signed-off-by: Mark Nelson <mnelson@redhat.com>
(cherry picked from commit 26dc5189e73a1f5a22f89ee67eef5430ef660b5d)

5 years agoinstall-deps.sh: Remove CR repo 30129/head
Brad Hubbard [Thu, 22 Nov 2018 00:07:22 +0000 (10:07 +1000)]
install-deps.sh: Remove CR repo

Remove the continuous release repos for CentOS and Virtuozzo 7 as they
should no longer be needed since http://tracker.ceph.com/issues/13997 is
no longer relevant and the newer versions of selinux packages pulled in
by the build system are causing problems for systems without CR repos
enabled.

Fixes: https://tracker.ceph.com/issues/37335
Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit f39d9b7d1f4f2b63233802211a9ed0e641446ca1)

Conflicts:
install-deps.sh

5 years agoMerge pull request #30094 from jan--f/wip-41613-luminous
Alfredo Deza [Tue, 3 Sep 2019 17:51:42 +0000 (13:51 -0400)]
Merge pull request #30094 from jan--f/wip-41613-luminous

luminous: ceph-volume: lvm list is O(n^2)

Reviewed-by: Alfredo Deza <adeza@redhat.com>
5 years agoceph-volume: test number of times LVs list was created 30094/head
Rishabh Dave [Mon, 19 Aug 2019 13:33:21 +0000 (19:03 +0530)]
ceph-volume: test number of times LVs list was created

Add a test that cofirm that the LVs list was created only once when
calling devices.lvm.listing.list()

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 20d6264538dab444c0ef13f40c6c21ec3d2057f8)

5 years agoceph-volume: reuse list of LVs
Rishabh Dave [Wed, 14 Aug 2019 15:57:38 +0000 (21:27 +0530)]
ceph-volume: reuse list of LVs

Avoid creating of list of LVs in different methods of the same module
and resue them.

Fixes: https://tracker.ceph.com/issues/37490
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit ab3a58e78124a984d162b2f63992d01c5e59e2a7)

5 years agoceph-volume devices.lvm zap use the identifier to report success 29771/head
Alfredo Deza [Tue, 20 Aug 2019 12:04:56 +0000 (08:04 -0400)]
ceph-volume devices.lvm zap use the identifier to report success

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

5 years agoceph-volume tests check success message when zapping
Alfredo Deza [Tue, 20 Aug 2019 12:04:26 +0000 (08:04 -0400)]
ceph-volume tests check success message when zapping

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

5 years agoosdc/Objecter: invalidate crcs on preallocated rx buffers 29248/head
Ilya Dryomov [Wed, 20 Feb 2019 21:30:29 +0000 (22:30 +0100)]
osdc/Objecter: invalidate crcs on preallocated rx buffers

Both simple and async messengers use c_str() when copying the data from
the socket into the receive buffer, going behind bufferlist's back.  If
the receive buffer is preallocated, we need to invalidate its crc cache
by hand to avoid possible data crc mismatches on the client side.

Fixes: https://tracker.ceph.com/issues/38416
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 3eeab975b604d9fc4290747f85a78d59a2452c2e)

Conflicts:
src/test/librados/io_cxx.cc
- In master, 3730d10623650ce8569be96b28cbba599a9a0db6 renamed this file from
  src/test/librados/io.cc but that commit is not being backported to luminous.
  Manually cherry-picked the test mods into src/test/librados/io.cc.

5 years agoMerge pull request #29901 from alfredodeza/luminous-rm41378
Alfredo Deza [Tue, 27 Aug 2019 11:49:26 +0000 (07:49 -0400)]
Merge pull request #29901 from alfredodeza/luminous-rm41378

luminous ceph-volume tests set the noninteractive flag for Debian

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
5 years agoos/bluestore/BlueFS: Move bluefs alloc size initialization log message to log level 1 29910/head
Vikhyat Umrao [Thu, 22 Aug 2019 16:45:40 +0000 (09:45 -0700)]
os/bluestore/BlueFS: Move bluefs alloc size initialization log message to log level 1
Fixes: https://tracker.ceph.com/issues/41399
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
(cherry picked from commit 96d48af3252f0ec2c1864383ad5eee993ecfeb4f)

5 years agoMerge pull request #29791 from jan--f/wip-41373-luminous
Alfredo Deza [Mon, 26 Aug 2019 15:53:49 +0000 (11:53 -0400)]
Merge pull request #29791 from jan--f/wip-41373-luminous

luminous: batch functional idempotency test fails since message is now on stderr

Reviewed-by: Alfredo Deza <adeza@redhat.com>
5 years agoceph-volume tests set the noninteractive flag for Debian, to avoid prompts in apt 29901/head
Alfredo Deza [Wed, 21 Aug 2019 18:15:32 +0000 (14:15 -0400)]
ceph-volume tests set the noninteractive flag for Debian, to avoid prompts in apt

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

5 years agorbd-mirror: don't overwrite status error returned by replay 29874/head
Mykola Golub [Mon, 20 May 2019 13:59:23 +0000 (14:59 +0100)]
rbd-mirror: don't overwrite status error returned by replay

Fixes: https://tracker.ceph.com/issues/39980
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit c06ebf0c075e0533149572fde6c203ab22495cf6)

5 years agoos/bluestore: record gifts < expected size in superblock 29860/head
Josh Durgin [Sat, 24 Aug 2019 02:52:52 +0000 (22:52 -0400)]
os/bluestore: record gifts < expected size in superblock

Returning 0 from _balance_bluefs_freespace() skips recording
allocations in the superblock, so we fail the consistency check on
startup. The elseif branch handles this case already, so just remove
it from the first branch. This is luminous/mimic specific, since
bluefs extents are not recorded in the superblock in later releases.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
5 years agoqa: fix for s3tests.functional.test_s3.test_bucket_get_location failed 29826/head
Enming Zhang [Sat, 23 Jun 2018 09:09:54 +0000 (17:09 +0800)]
qa: fix for s3tests.functional.test_s3.test_bucket_get_location failed

Fixes: https://tracker.ceph.com/issues/41401
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
(cherry picked from commit ad6edd4dd2d6e57682ff82ad0ad0bfcde5942d66)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
5 years agorgw: fix issue for CreateBucket with BucketLocation param under default zonegroup
Enming Zhang [Wed, 30 May 2018 02:54:42 +0000 (10:54 +0800)]
rgw: fix issue for CreateBucket with BucketLocation param under default zonegroup

Because there is not a default realm, the has_zonegroup_api always returns false
when create bucket with the BucketLocation parameter under default zonegroup,
which always leads to the CreateBucket with BucketLocation parameter request failed.

Fixes: https://tracker.ceph.com/issues/41401
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
(cherry picked from commit 18115915fa861a4b32e8d442266e90e9589215f7)

5 years agorgw: set "api_name" to default_zonegroup_name for default zonegroup
Enming Zhang [Wed, 30 May 2018 02:42:55 +0000 (10:42 +0800)]
rgw: set "api_name" to default_zonegroup_name for default zonegroup

Fixes: https://tracker.ceph.com/issues/41401
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
(cherry picked from commit 1f8ee65c1c6515dd8006b9035a993a386ce2b7e4)

5 years agosrc/osd/: Move session variables out of if for backport 29859/head
Samuel Just [Wed, 21 Aug 2019 22:06:43 +0000 (15:06 -0700)]
src/osd/: Move session variables out of if for backport

That construction isn't allowed in luminous.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agomds,osd,mon,msg: use intrusive_ptr for holding Connection::priv
Kefu Chai [Tue, 29 May 2018 07:51:07 +0000 (15:51 +0800)]
mds,osd,mon,msg: use intrusive_ptr for holding Connection::priv

See-also: http://tracker.ceph.com/issues/20924
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 72883956c26fdc4345324e9b27b45c3dfac17fa2)

 Conflicts:
src/osd/OSD.cc
src/osdc/Objecter.cc

5 years agoMerge pull request #27551 from smithfarm/wip-osd-markdown-luminous
Gregory Farnum [Wed, 21 Aug 2019 21:08:13 +0000 (14:08 -0700)]
Merge pull request #27551 from smithfarm/wip-osd-markdown-luminous

luminous: qa/standalone/osd/osd-markdown: fix dup command disabling

5 years agoosdc: cleanup code.
Jianpeng Ma [Mon, 9 Apr 2018 00:44:29 +0000 (08:44 +0800)]
osdc: cleanup code.

Remvoe useless conditon.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 964068ca8f60a9409abbfdd5836eb89a29553229)

5 years agoosdc/Objecter: using session::put() rather than put_session().
Jianpeng Ma [Mon, 23 Oct 2017 13:55:13 +0000 (21:55 +0800)]
osdc/Objecter: using session::put() rather than put_session().

If using connection::get_priv(), it use session::put rather than
put_session() to reduce reduanant check.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit d485b1bf34e9e6bc7bc189a97f1b86718c5f0da5)

5 years agoMerge pull request #27471 from dzafman/wip-38567
Gregory Farnum [Wed, 21 Aug 2019 21:00:12 +0000 (14:00 -0700)]
Merge pull request #27471 from dzafman/wip-38567

luminous: doc: osd_recovery_priority is not documented (but osd_recovery_op_priority is)

5 years agomgr/DaemonServer: [Cleanup] Remove redundant code
Shinobu Kinjo [Sat, 4 Nov 2017 00:53:31 +0000 (09:53 +0900)]
mgr/DaemonServer: [Cleanup] Remove redundant code

Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
(cherry picked from commit e1b4c9de677a9041ba9dfba37d1b37999842789a)

5 years agoceph-volume: fix batch functional tests, idempotent test must check stderr 29791/head
Jan Fajerski [Thu, 15 Aug 2019 11:28:42 +0000 (13:28 +0200)]
ceph-volume: fix batch functional tests, idempotent test must check stderr

Fixes: https://tracker.ceph.com/issues/41295
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 88807110f3014e7a2a39c37ae5c64bb3ab107d80)

 Conflicts:
src/ceph-volume/ceph_volume/tests/functional/batch/playbooks/test_explicit.yml
        removed

5 years agoos/bluestore: try to gift large extents, then fall back to small extents 29740/head
Sage Weil [Mon, 19 Aug 2019 15:09:36 +0000 (10:09 -0500)]
os/bluestore: try to gift large extents, then fall back to small extents

First try to gift using the larger alloc_size (normally bluefs_alloc_size,
but here max(bluefs_alloc_size,bluefs_shared_alloc_size) just in case the
settings are weird.  If that fails, then try the shared_alloc_size.  If
that fails, fail and complain as before, with an more accurate error
message.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoos/bluestore: gift freespace to bluefs based on shared_alloc_size
Sage Weil [Mon, 19 Aug 2019 13:47:40 +0000 (08:47 -0500)]
os/bluestore: gift freespace to bluefs based on shared_alloc_size

This does not appear in master because this code was removed with the
allocator fallback behavior, which was not backported.

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

5 years agoos/bluestore/BlueFS: apply shared_alloc_size to shared device
Sage Weil [Mon, 19 Aug 2019 13:46:09 +0000 (08:46 -0500)]
os/bluestore/BlueFS: apply shared_alloc_size to shared device

Keep an alloc_size vector so that we have this value handy at all times.
Allow bluestore to fetch this value directly instead of looking at the
bluefs_* config options since this encapsulates things a bit better, and
also isn't vulnerable to the config setting changing at runtime.

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

# Conflicts:
# src/os/bluestore/BlueFS.cc
- missing assert(got != 0) in luminous
- ROUND_UP_TO vs round_up_to
- missing fallback allocations
- no BDEV_NEW*
# src/os/bluestore/BlueFS.h
- adjacent declarations
# src/os/bluestore/BlueStore.cc
- P2ROUNDUP vs p2roundup

5 years agoos/bluestore/BlueFS: add bluefs_shared_alloc_size
Sage Weil [Wed, 7 Aug 2019 15:44:38 +0000 (10:44 -0500)]
os/bluestore/BlueFS: add bluefs_shared_alloc_size

Add a separate config option that controls the alloc_size for the shared
device (BDEV_SLOW).

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

- no Option::TYPE_SIZE

5 years agoos/bluestore: cleanup around allocator calls
Sage Weil [Fri, 16 Aug 2019 21:44:57 +0000 (16:44 -0500)]
os/bluestore: cleanup around allocator calls

Both stupid and bitmap allocator returs -ENOSPC if they're
unable to allocate any space. Existing callers aren't always
respect this - hence doing some cleanup.

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

- allocator fallback not there
- allocator fallback not there

5 years agorpm: always build ceph-test package 29736/head
Nathan Cutler [Thu, 15 Aug 2019 11:28:51 +0000 (13:28 +0200)]
rpm: always build ceph-test package

Fixes: https://tracker.ceph.com/issues/41296
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit b9c744301051aa637f948be074be7b53c26cb504)

5 years agoMerge pull request #29603 from jan--f/wip-41202-luminous
Alfredo Deza [Tue, 13 Aug 2019 12:05:02 +0000 (08:05 -0400)]
Merge pull request #29603 from jan--f/wip-41202-luminous

luminous: ceph-volume prints log messages to stdout

Reviewed-by: Alfredo Deza <adeza@redhat.com>
5 years agoceph-volume: never log to stdout, use stderr instead 29603/head
Jan Fajerski [Thu, 8 Aug 2019 08:42:37 +0000 (10:42 +0200)]
ceph-volume: never log to stdout, use stderr instead

We should never print log messages to stdout, as this should be reserved
for output of ceph-volume.

Fixes: https://tracker.ceph.com/issues/41158
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit b8d6dcbe9f803c96c0af68da54f1262e9b6a9e77)

5 years agoceph-volume: terminal: encode unicode when writing to stdout
Kefu Chai [Sun, 24 Mar 2019 09:11:31 +0000 (17:11 +0800)]
ceph-volume: terminal: encode unicode when writing to stdout

python determins the encoding of stdout and stderr based on the LC_CTYPE
and PYTHONIOENCODING env variable, by default, python3's sys.stdout uses
'utf-8' as its encoding, so it will be able to write unicode string even
the stdout is not attached to a tty device. but when it comes to
python2, it will default to ascii if neither of these variabls is set.
so, if we are writing unicode using `_Write` in an environment where
LC_CTYPE and/or PYTHONIOENCODING are using non UTF-8 encoding, it chokes
by raising `UnicodeEncodeError` exception.

in this change, we add a wrapper around `_Write._writer` so it is able
to write unicode string in such a non-unicode-friendly environment.

for more info related the encoding of stdout and stderr, see
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONIOENCODING .

Signed-off-by: Alfredo Deza <adeza@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 77912c0c71874a23785d3bdd109ad61e4f4c0e28)