]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agodoc: reset PendingReleaseNotes following 14.2.8 release 33863/head
Nathan Cutler [Tue, 10 Mar 2020 16:43:05 +0000 (17:43 +0100)]
doc: reset PendingReleaseNotes following 14.2.8 release

This commit cannot be cherry-picked from master because
PendingReleaseNotes is maintained separately for each stable release.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #33668 from epuertat/wip-44378-nautilus
Lenz Grimmer [Wed, 11 Mar 2020 13:02:29 +0000 (14:02 +0100)]
Merge pull request #33668 from epuertat/wip-44378-nautilus

nautilus: mgr/dashboard: Use default language when running "npm run build"

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #33860 from rhcs-dashboard/wip-44549-nautilus
Lenz Grimmer [Wed, 11 Mar 2020 10:29:00 +0000 (11:29 +0100)]
Merge pull request #33860 from rhcs-dashboard/wip-44549-nautilus

nautilus: monitoring: fix RGW grafana chart 'Average GET/PUT Latencies'

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #33714 from smithfarm/wip-44146-nautilus
Yuri Weinstein [Tue, 10 Mar 2020 20:07:58 +0000 (13:07 -0700)]
Merge pull request #33714 from smithfarm/wip-44146-nautilus

nautilus: rgw: Add support bucket policy for subuser

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #32924 from yuvalif/nautilus-backport-41122
Yuri Weinstein [Tue, 10 Mar 2020 20:06:27 +0000 (13:06 -0700)]
Merge pull request #32924 from yuvalif/nautilus-backport-41122

nautilus: rgw: GET/HEAD and PUT operations on buckets w/lifecycle expiration configured do not return x-amz-expiration header

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
5 years agoMerge pull request #32960 from yuvalif/nautilus-backport-kafka
Yuri Weinstein [Tue, 10 Mar 2020 20:05:33 +0000 (13:05 -0700)]
Merge pull request #32960 from yuvalif/nautilus-backport-kafka

nautilus: rgw/kafka: add kafka endpoint support

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agomonitoring: fix RGW grafana chart 'Average GET/PUT Latencies' 33860/head
Alfonso Martínez [Tue, 10 Mar 2020 11:05:26 +0000 (12:05 +0100)]
monitoring: fix RGW grafana chart 'Average GET/PUT Latencies'

Fixes: https://tracker.ceph.com/issues/44538
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit 1f0cddfafc05c82864b1d7e47becb1057794c762)

5 years agoMerge pull request #33726 from yaarith/backport-nautilus-all
Yuri Weinstein [Mon, 9 Mar 2020 23:51:09 +0000 (16:51 -0700)]
Merge pull request #33726 from yaarith/backport-nautilus-all

nautilus: common/blkdev: compilation of telemetry and device backports

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33765 from dvanders/nautilus_44453
Yuri Weinstein [Mon, 9 Mar 2020 20:35:39 +0000 (13:35 -0700)]
Merge pull request #33765 from dvanders/nautilus_44453

nautilus: mon: fix/improve mon sync over small keys

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33388 from s0nea/wip-43998-nautilus
Yuri Weinstein [Mon, 9 Mar 2020 20:34:15 +0000 (13:34 -0700)]
Merge pull request #33388 from s0nea/wip-43998-nautilus

nautilus: mgr/dashboard: show checkboxes for booleans

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agorgw: Fix bug on subuser policy identity checker 33714/head
Seena Fallah [Tue, 18 Feb 2020 20:47:26 +0000 (00:17 +0330)]
rgw: Fix bug on subuser policy identity checker

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit d9210dfc15bc3f3ca1056485cad3a26cf6241fd5)

5 years agomon: fix mon_sync_max_payload_size type 33765/head
Sage Weil [Wed, 4 Dec 2019 14:52:28 +0000 (08:52 -0600)]
mon: fix mon_sync_max_payload_size type

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

5 years agomon: cap keys in mon_sync messages
Sage Weil [Mon, 2 Dec 2019 13:43:54 +0000 (07:43 -0600)]
mon: cap keys in mon_sync messages

The previous cap was set at 1 MB.  However, a user was experiencing mon
timeouts while syncing the purged_snap_epoch * keys, which are ~20 bytes
each.  Reducing the max payload to 64K resolved the problem, which maps
to (very!) roughly 1500 keys per message.  Set our limit a bit higher than
that since we just made this quite a bit more efficient.  Most of the time
the keys are larger than 20 bytes and we wouldn't hit the key limit, but
having one ensures that we won't burn too much CPU in one go when we do
have lots of these little keys.

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

5 years agomon/MonitorDBStore: improve get_chunk_tx limits
Sage Weil [Tue, 12 Nov 2019 20:51:41 +0000 (14:51 -0600)]
mon/MonitorDBStore: improve get_chunk_tx limits

The old version was horribly inefficient in that it would reencode the
transaction on every iteration.

Instead, estimate the size if we add an item and stop it if looks like it
will go over.  This isn't super precise, but it's close enough, since the
limits are approximate.

Drop the single-use helper since it only makes the code harder to
follow.

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

5 years agomon/MonitorDBStore: better size estimation for Transaction
Sage Weil [Tue, 12 Nov 2019 20:46:13 +0000 (14:46 -0600)]
mon/MonitorDBStore: better size estimation for Transaction

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

5 years agomon/MonitorDBStore: use const string& for args throughout
Sage Weil [Tue, 24 Sep 2019 13:30:17 +0000 (08:30 -0500)]
mon/MonitorDBStore: use const string& for args throughout

const bufferlist& too

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

5 years agomon/MonitorDBStore: add erase_range() op to transaction
Sage Weil [Mon, 23 Sep 2019 15:53:27 +0000 (10:53 -0500)]
mon/MonitorDBStore: add erase_range() op to transaction

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

5 years agoMerge pull request #33697 from rhcs-dashboard/wip-44372-nautilus
Lenz Grimmer [Thu, 5 Mar 2020 12:03:33 +0000 (13:03 +0100)]
Merge pull request #33697 from rhcs-dashboard/wip-44372-nautilus

nautilus: mgr/dashboard: Fixes rbd image 'purge trash' button & modal text

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #33688 from badone/wip-nautilus-fix-run-tox-pythonpath-failure
Nathan Cutler [Thu, 5 Mar 2020 08:53:43 +0000 (09:53 +0100)]
Merge pull request #33688 from badone/wip-nautilus-fix-run-tox-pythonpath-failure

nautilus: mgr/run-tox-tests: Fix issue with PYTHONPATH

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/run-tox-tests: Fix issue with PYTHONPATH 33688/head
Brad Hubbard [Tue, 3 Mar 2020 05:58:35 +0000 (15:58 +1000)]
mgr/run-tox-tests: Fix issue with PYTHONPATH

Something changed recently on Bionic which caused tox to fail when
PYTHONPATH is a relative path.  For some reason the path is mangled by
the time it gets to pytest so we need to ensure we are using an absolute
path. This seems to be nautilus specific, at least ATM.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
5 years agoMerge pull request #33533 from trociny/wip-44263-nautilus
Yuri Weinstein [Wed, 4 Mar 2020 23:27:40 +0000 (15:27 -0800)]
Merge pull request #33533 from trociny/wip-44263-nautilus

nautilus: rbd-mirror: improve detection of blacklisted state

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #33428 from leseb/bkp-33371
Sébastien Han [Wed, 4 Mar 2020 13:25:23 +0000 (14:25 +0100)]
Merge pull request #33428 from leseb/bkp-33371

nautilus: ceph-volume: silence 'ceph-bluestore-tool' failures

5 years agorgw: Add test for bucket policy subuser
Seena Fallah [Tue, 11 Feb 2020 20:39:37 +0000 (00:09 +0330)]
rgw: Add test for bucket policy subuser

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit e34bc060d437c58889575755c3c7b73795b566fa)

5 years agorgw: Add support bucket policy for subuser
Seena Fallah [Sun, 9 Feb 2020 15:31:04 +0000 (19:01 +0330)]
rgw: Add support bucket policy for subuser

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 84b96f8d4f49fe1a82f3a8803a91b26f2a50ffd7)

5 years agocommon/blkdev: include by-path path for each device in metadata 33726/head
Sage Weil [Sat, 14 Dec 2019 16:06:40 +0000 (10:06 -0600)]
common/blkdev: include by-path path for each device in metadata

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

5 years agocommon/blkdev: factor get_device_metadata out of mon, osd
Sage Weil [Sat, 14 Dec 2019 15:11:20 +0000 (09:11 -0600)]
common/blkdev: factor get_device_metadata out of mon, osd

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

5 years agocommon: Fix multiple logical errors in get_device_id.
Alex Zhang [Sun, 29 Sep 2019 09:33:58 +0000 (02:33 -0700)]
common: Fix multiple logical errors in get_device_id.

0. If blkdev.serial exists, the serial should be used. The original impl seems wrong (if serial does not exist, then use the value from the uninitialized buffer, or even worse, use the value from the last call (model))
1. When using fallback methods, device id should only be returned when both model and serial are present. The original impl looks like a logical error.

Signed-off-by: Difan Zhang <difan@google.com>
(cherry picked from commit 3e09dfd8254abf3c4ff85d6c1b1fafc4b38eae7d)

5 years agoosd: add common smartctl output to JSON output
Patrick Seidensal [Mon, 16 Sep 2019 13:44:53 +0000 (15:44 +0200)]
osd: add common smartctl output to JSON output

Enables consumers like the dashboard to provide the regular smartctl
output to users.

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
(cherry picked from commit 44068fc941f50c37f235725e77630f4de77cb3fa)

5 years agocommon/blkdev.c: check retval of snprintf()
Kefu Chai [Wed, 29 May 2019 09:45:35 +0000 (17:45 +0800)]
common/blkdev.c: check retval of snprintf()

as snprintf()'ed string could be truncated, to properly use this
function, we need to check its return value.

to silence warning like

../src/common/blkdev.cc: In member function ‘int64_t
BlkDev::get_string_property(blkdev_prop_t, char*, size_t) const’:
../src/common/blkdev.cc:165:15: warning: ‘%s’ directive output may be
truncated writing up to 4095 bytes into a region of size between 4085
and 4089 [-Wformat-truncation=]
  165 |     "%s/block/%s/%s", sysfsdir(), dev, propstr);
      |               ^~
In file included from /usr/include/stdio.h:873,
                 from /usr/include/c++/9/cstdio:42,
                 from /usr/include/c++/9/ext/string_conversions.h:43,
                 from /usr/include/c++/9/bits/basic_string.h:6493,
                 from /usr/include/c++/9/string:55,
                 from /usr/include/c++/9/bits/locale_classes.h:40,
                 from /usr/include/c++/9/bits/ios_base.h:41,
                 from /usr/include/c++/9/ios:42,
                 from /usr/include/c++/9/ostream:38,
                 from /usr/include/c++/9/iterator:64,
                 from
/opt/ceph/include/boost/iterator/iterator_traits.hpp:10,
                 from
/opt/ceph/include/boost/range/iterator_range_core.hpp:26,
                 from
/opt/ceph/include/boost/algorithm/string/replace.hpp:16,
                 from ../src/common/blkdev.cc:31:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note:
‘__builtin___snprintf_chk’ output 9 or more bytes (assuming 4108) into a
destination of size 4096
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL
- 1,
      |
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

5 years agoMerge pull request #33340 from tpsilva/wip-44129-nautilus
Yuri Weinstein [Tue, 3 Mar 2020 19:12:45 +0000 (11:12 -0800)]
Merge pull request #33340 from tpsilva/wip-44129-nautilus

nautilus: rgw: make max_connections configurable in beast

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33274 from smithfarm/wip-43852-nautilus
Yuri Weinstein [Tue, 3 Mar 2020 19:11:42 +0000 (11:11 -0800)]
Merge pull request #33274 from smithfarm/wip-43852-nautilus

nautilus: test: Fix race with osd restart and doing a scrub

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #33271 from smithfarm/wip-43999-nautilus
Yuri Weinstein [Tue, 3 Mar 2020 19:09:23 +0000 (11:09 -0800)]
Merge pull request #33271 from smithfarm/wip-43999-nautilus

nautilus: rgw: MultipartObjectProcessor supports stripe size > chunk size

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33267 from smithfarm/wip-43855-nautilus
Yuri Weinstein [Tue, 3 Mar 2020 19:08:49 +0000 (11:08 -0800)]
Merge pull request #33267 from smithfarm/wip-43855-nautilus

nautilus: rgw: fix SignatureDoesNotMatch when use ipv6 address in s3 client

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33266 from smithfarm/wip-43851-nautilus
Yuri Weinstein [Tue, 3 Mar 2020 19:08:20 +0000 (11:08 -0800)]
Merge pull request #33266 from smithfarm/wip-43851-nautilus

nautilus: rgw: Fix dynamic resharding not working for empty zonegroup in period

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33265 from smithfarm/wip-43848-nautilus
Yuri Weinstein [Tue, 3 Mar 2020 19:07:38 +0000 (11:07 -0800)]
Merge pull request #33265 from smithfarm/wip-43848-nautilus

nautilus: rgw: Fix upload part copy range able to get almost any string

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33270 from smithfarm/wip-43923-nautilus
Yuri Weinstein [Tue, 3 Mar 2020 19:05:33 +0000 (11:05 -0800)]
Merge pull request #33270 from smithfarm/wip-43923-nautilus

nautilus: rgw multisite: enforce spawn window for incremental data sync

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
5 years agomgr/dashboard: Fixes rbd image 'purge trash' button & modal text 33697/head
anurag [Thu, 6 Feb 2020 08:27:46 +0000 (13:57 +0530)]
mgr/dashboard: Fixes rbd image 'purge trash' button & modal text

Fixes: https://tracker.ceph.com/issues/43801
Signed-off-by: anurag <abandhu@redhat.com>
(cherry picked from commit 803a0e2599f76a0a5894ba857bdeb57b6641a5ad)

Conflicts:
        src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-trash-list/rbd-trash-list.component.html
- nautilus uses button class="btn btn-sm btn-default btn-label" instead of class="btn btn-light"

5 years agoRGWLC: fix expiration header tag match 32924/head
Matt Benjamin [Fri, 19 Jul 2019 20:32:20 +0000 (16:32 -0400)]
RGWLC: fix expiration header tag match

Need to match key->value

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit af327f21aa377a7abd0290814bfa7333db5443c3)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agorgw: fix header timestamp
Matt Benjamin [Fri, 3 May 2019 17:48:31 +0000 (13:48 -0400)]
rgw: fix header timestamp

The AWS example of this header intends to be RFC822-compliant.
Found by Tyler Brekke <tbrekke@redhat.com>.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 6da5be5aba0820dc91aa44d4b63cd490b39371db)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agorgw: complete expiration header (object tags)
Matt Benjamin [Tue, 19 Feb 2019 16:17:45 +0000 (11:17 -0500)]
rgw: complete expiration header (object tags)

The expiration header tag processing is complete, but the
passed RGWObjTags argument was never initialized.  Now it is
initialized in RGWGetObj and RGWPutObj, as required.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 8981c5e9f688b13a00345e069c2ce1e62fb0a588)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agoRGWLC: debug tags in rgwlc_s3_expiration_header
Matt Benjamin [Tue, 19 Feb 2019 14:30:18 +0000 (09:30 -0500)]
RGWLC: debug tags in rgwlc_s3_expiration_header

Dump object tags to log at debug level 16.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 45f463fec55aebe53fa91aebf891dd9cb6cc1e19)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agorgw: project and return lc expiration from GET/HEAD and PUT ops
Matt Benjamin [Sat, 26 Jan 2019 22:43:51 +0000 (17:43 -0500)]
rgw: project and return lc expiration from GET/HEAD and PUT ops

https://tracker.ceph.com/issues/38055

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit c89a889adc022f3e0298f6efd67a73a6a10a8bc7)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
Conflicts:
src/CMakeLists.txt
src/rgw/rgw_tag.h

5 years agoMerge pull request #33268 from smithfarm/wip-43878-nautilus
Yuri Weinstein [Mon, 2 Mar 2020 23:30:01 +0000 (15:30 -0800)]
Merge pull request #33268 from smithfarm/wip-43878-nautilus

nautilus: rgw:  when you abort a multipart upload request, the quota may be not updated

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
5 years agoMerge pull request #33273 from smithfarm/wip-44038-nautilus
Yuri Weinstein [Mon, 2 Mar 2020 23:28:35 +0000 (15:28 -0800)]
Merge pull request #33273 from smithfarm/wip-44038-nautilus

nautilus: rgw: fix rgw crash when duration is invalid in sts request

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
5 years ago14.2.8 40148/head v14.2.8
Jenkins Build Slave User [Mon, 2 Mar 2020 17:49:20 +0000 (17:49 +0000)]
14.2.8

5 years agomgr/dashboard: Use default language when running "npm run build" 33668/head
Tiago Melo [Tue, 12 Nov 2019 11:08:40 +0000 (10:08 -0100)]
mgr/dashboard: Use default language when running "npm run build"

This allow us to simply run "npm run build" and it will compile the frontend
with "en-US" as the default language and in the correct "dist/en-US" folder.

Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 360b616c1224e0eef4b3d163ebae74d8d45b8d9a)

5 years agoMerge PR #33569 into nautilus
Patrick Donnelly [Thu, 27 Feb 2020 20:18:40 +0000 (12:18 -0800)]
Merge PR #33569 into nautilus

* refs/pull/33569/head:
mgr/volumes: unregister job upon async threads exception

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agomgr/volumes: unregister job upon async threads exception 33569/head
Venky Shankar [Wed, 26 Feb 2020 04:52:37 +0000 (23:52 -0500)]
mgr/volumes: unregister job upon async threads exception

If the async threads hit a temporary exception the job is
never unregistered and therefore gets skipped by the async
threads on subsequent scans.

Patrick hit this in nautilus when one of the purge threads
hit an exception when trying to log a message. The trash
entry was never picked up again by the purge threads.

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

5 years agoMerge pull request #33346 from yaarith/backport-nautilus-pr-32903
Yuri Weinstein [Tue, 25 Feb 2020 19:05:39 +0000 (11:05 -0800)]
Merge pull request #33346 from yaarith/backport-nautilus-pr-32903

nautilus: mgr/devicehealth: fix telemetry stops sending device reports after 48 hours

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agorbd-mirror: improve detection of blacklisted state 33533/head
Mykola Golub [Wed, 19 Feb 2020 10:17:08 +0000 (10:17 +0000)]
rbd-mirror: improve detection of blacklisted state

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

Conflicts:
src/tools/rbd_mirror/InstanceReplayer.h (ceph::mutex vs Mutex)
src/tools/rbd_mirror/NamespaceReplayer.cc (does not exist)
src/tools/rbd_mirror/PoolReplayer.cc (code from NamespaceReplayer is here)
src/test/rbd_mirror/test_mock_PoolReplayer.cc (accordingly to PoolReplayer.cc changes)

5 years agoMerge PR #33526 into nautilus
Patrick Donnelly [Tue, 25 Feb 2020 04:26:30 +0000 (20:26 -0800)]
Merge PR #33526 into nautilus

* refs/pull/33526/head:
test: verify purge queue w/ large number of subvolumes
test: pass timeout argument to mount::wait_for_dir_empty()
mgr/volumes: access volume in lockless mode when fetching async job

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agotest: verify purge queue w/ large number of subvolumes 33526/head
Venky Shankar [Wed, 19 Feb 2020 14:19:31 +0000 (09:19 -0500)]
test: verify purge queue w/ large number of subvolumes

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

5 years agotest: pass timeout argument to mount::wait_for_dir_empty()
Venky Shankar [Mon, 24 Feb 2020 07:27:25 +0000 (02:27 -0500)]
test: pass timeout argument to mount::wait_for_dir_empty()

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

5 years agomgr/volumes: access volume in lockless mode when fetching async job
Venky Shankar [Wed, 19 Feb 2020 12:31:40 +0000 (07:31 -0500)]
mgr/volumes: access volume in lockless mode when fetching async job

Saw a deadlock when deleting lot of subvolumes -- purge threads were
stuck in accessing global lock for volume access. This can happen
when there is a concurrent remove (which renames and signals the
purge threads) and a purge thread is just about to scan the trash
directory for entries.

For the fix, purge threads fetches entries by accessing the volume
in lockless mode. This is safe from functionality point-of-view as
the rename and directory scan is correctly handled by the filesystem.
Worst case the purge thread would pick up the trash entry on next
scan, never leaving a stale trash entry.

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

5 years agoMerge PR #33498 into nautilus
Patrick Donnelly [Mon, 24 Feb 2020 15:28:23 +0000 (07:28 -0800)]
Merge PR #33498 into nautilus

* refs/pull/33498/head:
mgr: drop reference to msg on return

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agomgr: drop reference to msg on return 33498/head
Patrick Donnelly [Sun, 23 Feb 2020 23:27:34 +0000 (15:27 -0800)]
mgr: drop reference to msg on return

Caused by backport commit cb48be5a69fe6482cbe3bff1b53ba090e077de0d which
did not account for the explicit drop of the message reference, only in
Nautilus-.

Fixes: https://tracker.ceph.com/issues/44245
Fixes: cb48be5a69fe6482cbe3bff1b53ba090e077de0d
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #33470 from neha-ojha/wip-mgsr2-order-nautilus
Yuri Weinstein [Fri, 21 Feb 2020 22:13:27 +0000 (14:13 -0800)]
Merge pull request #33470 from neha-ojha/wip-mgsr2-order-nautilus

nautilus: qa/suites/upgrade/mimic-x/stress-split: fix msgr2 vs nautilus ordering

5 years agoqa/suites/upgrade/mimic-x/stress-split: fix msgr2 vs nautilus ordering 33470/head
Neha Ojha [Thu, 20 Feb 2020 02:11:26 +0000 (18:11 -0800)]
qa/suites/upgrade/mimic-x/stress-split: fix msgr2 vs nautilus ordering

This was done for octopus in 8283ea9f587fb1136b4e9fa9d8a0435852fb948a,
but not for nautilus

Signed-off-by: Neha Ojha <nojha@redhat.com>
5 years agoceph-volume: silence 'ceph-bluestore-tool' failures 33428/head
Sébastien Han [Wed, 19 Feb 2020 15:03:02 +0000 (16:03 +0100)]
ceph-volume: silence 'ceph-bluestore-tool' failures

If 'ceph-bluestore-tool' fails on a device, the json output of the list
command will be messed up. Ignoring stderr of that command fixes this.

Signed-off-by: Sébastien Han <seb@redhat.com>
5 years agocmake: disable kafka when not found 32960/head
Yuval Lifshitz [Sun, 2 Feb 2020 14:14:15 +0000 (16:14 +0200)]
cmake: disable kafka when not found

This should fix the issue of incompatible librdkafka in ubuntu-xenial
This does not apply to octopus (or newer) since ubuntu-xenial is
not supported for them.
Note that this change automatically changes the users build directives,
which we would not like to carry forward to newer versions.

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agobuild: FreeBSD does not have /etc/os-release
Willem Jan Withagen [Sat, 2 Mar 2019 14:37:38 +0000 (15:37 +0100)]
build: FreeBSD does not have /etc/os-release

So "manually" set requirements

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
(cherry picked from commit 46b3d671b4408a766aaed379274242ad4b38afb3)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
Conflicts:
do_cmake.sh

5 years agocmake: check version of librdkafka
Kefu Chai [Fri, 13 Dec 2019 11:02:22 +0000 (19:02 +0800)]
cmake: check version of librdkafka

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 1f8e3bd5e7abee3d8597aaa65fe19430abe23766)
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agorgw/kafka: update release notes
Yuval Lifshitz [Wed, 29 Jan 2020 11:41:44 +0000 (13:41 +0200)]
rgw/kafka: update release notes

Since ubuntu-xenial does not have correct librdkafka version,
the nautilus release notes must give a warning that a custom
librdjkafka should be used if kafka support is needed.
This does not apply to octopus (or newer) since ubuntu-xenial is
not supported for them.

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agoMerge pull request #33378 from badone/wip-badone-testing
Yuri Weinstein [Tue, 18 Feb 2020 21:26:18 +0000 (13:26 -0800)]
Merge pull request #33378 from badone/wip-badone-testing

nautilus: qa/ceph-ansible: ansible-version and ceph_ansible

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
5 years agomgr/dashboard: show checkboxes for booleans 33388/head
Tatjana Dehler [Fri, 24 Jan 2020 16:02:22 +0000 (17:02 +0100)]
mgr/dashboard: show checkboxes for booleans

The frontend showed textboxes for the dashboard settings because
the actual type information was missing here. The REST API then
returned the default type 'str'.

Edit the e2e test case in order to update a different setting as
the 'editMgrModule' method can't handle checkboxes.

Fixes: https://tracker.ceph.com/issues/43769
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit 7e7cac98116e76bc9e4c52ac47796e3fcd880667)

5 years agonautilus: qa/ceph-ansible: ansible-version and ceph_ansible 33378/head
Brad Hubbard [Wed, 5 Feb 2020 06:46:29 +0000 (16:46 +1000)]
nautilus: qa/ceph-ansible: ansible-version and ceph_ansible

Upgrade to 2.8.1 and stable-4.0 respectively

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
5 years agomgr/devicehealth: fix telemetry stops sending device reports after 48 hours 33346/head
Yaarit Hatuka [Mon, 27 Jan 2020 13:57:55 +0000 (08:57 -0500)]
mgr/devicehealth: fix telemetry stops sending device reports after 48 hours

Telemetry module fetches device metrics which were scraped in the last
"telemetry interval"*2 (=48 hours by default) by calling
_get_device_metrics() with min_sample. _get_device_metrics() fetches the
metrics from omap and breaks on the first one that is older than
min_sample. But because it fetched in ascending order (from oldest to
newest) it was breaking on the first one it received, if it was older
than the interval above. We need to pass min_sample to get_omap_vals()
so it will start fetching from that value.

Fixes: https://tracker.ceph.com/issues/43837
Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
(cherry picked from commit 5f7e4a980a73e8cacb2c9bde47d822a32fb8c440)

5 years agomgr/devicehealth: factor _get_device_metrics out of show_device_metrics
Sage Weil [Fri, 4 Oct 2019 20:03:02 +0000 (15:03 -0500)]
mgr/devicehealth: factor _get_device_metrics out of show_device_metrics

Add the min_sample lower-bound argument too

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 7be5c1323b3814e2634d5cd66d45cab5a77df680)
Conflicts: had to be backported to enable backporting of
https://github.com/ceph/ceph/pull/32903
Backport tracker: https://tracker.ceph.com/issues/43873

5 years agorgw: make max_connections configurable in beast 33340/head
Tiago Pasqualini [Fri, 31 Jan 2020 18:22:19 +0000 (15:22 -0300)]
rgw: make max_connections configurable in beast

Beast frontend currently accepts a hardcoded number of connections
that is defined by boost::asio::socket_base::max_connections. This
commit makes it configurable via a 'max_connections' config option
on rgw frontend.

Fixes: https://tracker.ceph.com/issues/43952
Signed-off-by: Tiago Pasqualini <tiago.pasqualini@canonical.com>
(cherry picked from commit d6dada5bcb356abaef8d9237ceca8f42d4fcfb74)

5 years agoMerge pull request #33278 from smithfarm/wip-44085-nautilus
Yuri Weinstein [Fri, 14 Feb 2020 17:23:51 +0000 (09:23 -0800)]
Merge pull request #33278 from smithfarm/wip-44085-nautilus

nautilus: ceph-monstore-tool: correct the key for storing mgr_command_descs

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33277 from smithfarm/wip-43722-nautilus
Yuri Weinstein [Fri, 14 Feb 2020 17:23:24 +0000 (09:23 -0800)]
Merge pull request #33277 from smithfarm/wip-43722-nautilus

nautilus: common/bl: fix the dangling last_p issue.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33276 from smithfarm/wip-44082-nautilus
Yuri Weinstein [Fri, 14 Feb 2020 17:22:55 +0000 (09:22 -0800)]
Merge pull request #33276 from smithfarm/wip-44082-nautilus

nautilus: qa/suites/rados/multimon/tasks/mon_clock_with_skews: disable ntpd etc

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32844 from smithfarm/wip-43239-nautilus
Yuri Weinstein [Fri, 14 Feb 2020 17:22:04 +0000 (09:22 -0800)]
Merge pull request #32844 from smithfarm/wip-43239-nautilus

nautilus: mgr/DaemonServer: fix 'osd ok-to-stop' for EC pools

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #33337 from jan--f/wip-44153-nautilus
Jan Fajerski [Fri, 14 Feb 2020 17:00:46 +0000 (18:00 +0100)]
Merge pull request #33337 from jan--f/wip-44153-nautilus

nautilus: ceph-volume: don't remove vg twice when zapping filestore

5 years agoMerge pull request #33334 from jan--f/wip-44152-nautilus
Jan Fajerski [Fri, 14 Feb 2020 17:00:20 +0000 (18:00 +0100)]
Merge pull request #33334 from jan--f/wip-44152-nautilus

nautilus: ceph-volume: pass journal_size as Size not string

5 years agoceph-volume: don't remove vg twice when zapping filestore 33337/head
Jan Fajerski [Fri, 14 Feb 2020 13:10:36 +0000 (14:10 +0100)]
ceph-volume: don't remove vg twice when zapping filestore

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

5 years agoceph-volume: pass journal_size as Size not string 33334/head
Jan Fajerski [Fri, 14 Feb 2020 11:50:47 +0000 (12:50 +0100)]
ceph-volume: pass journal_size as Size not string

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

5 years agoMerge pull request #33301 from jan--f/wip-43871-nautilus-failed-cp
Jan Fajerski [Fri, 14 Feb 2020 10:41:40 +0000 (11:41 +0100)]
Merge pull request #33301 from jan--f/wip-43871-nautilus-failed-cp

nautilus: ceph-volume: batch bluestore fix create_lvs call

5 years agoMerge pull request #33297 from jan--f/wip-44135-nautilus
Jan Fajerski [Fri, 14 Feb 2020 09:45:27 +0000 (10:45 +0100)]
Merge pull request #33297 from jan--f/wip-44135-nautilus

nautilus: ceph-volume: avoid calling zap_lv with a LV-less VG

5 years agoceph-volume: batch bluestore fix create_lvs call 33301/head
Jan Fajerski [Tue, 28 Jan 2020 08:25:39 +0000 (09:25 +0100)]
ceph-volume: batch bluestore fix create_lvs call

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

5 years agoceph-volume: avoid calling zap_lv with a LV-less VG 33297/head
Jan Fajerski [Thu, 13 Feb 2020 16:09:44 +0000 (17:09 +0100)]
ceph-volume: avoid calling zap_lv with a LV-less VG

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

5 years agoMerge pull request #33151 from shyukri/wip-43877-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 22:25:53 +0000 (14:25 -0800)]
Merge pull request #33151 from shyukri/wip-43877-nautilus

nautilus: rgw: fix one part of the bulk delete(RGWDeleteMultiObj_ObjStore_S3) fails but no error messages

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33149 from shyukri/wip-43874-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 22:25:13 +0000 (14:25 -0800)]
Merge pull request #33149 from shyukri/wip-43874-nautilus

nautilus: rgw: maybe coredump when reload operator happened

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33008 from smithfarm/wip-43922-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 22:21:55 +0000 (14:21 -0800)]
Merge pull request #33008 from smithfarm/wip-43922-nautilus

nautilus: rgw_file: avoid string::front() on empty path

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33152 from shyukri/wip-43879-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:15:09 +0000 (12:15 -0800)]
Merge pull request #33152 from shyukri/wip-43879-nautilus

nautilus: mon: Don't put session during feature change

Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #33095 from k0ste/wip-43979-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:14:43 +0000 (12:14 -0800)]
Merge pull request #33095 from k0ste/wip-43979-nautilus

nautilus: mgr/telemetry: check get_metadata return val

Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #32908 from smithfarm/wip-43821-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:12:53 +0000 (12:12 -0800)]
Merge pull request #32908 from smithfarm/wip-43821-nautilus

nautilus: mon/Session: only index osd ids >= 0

5 years agoMerge pull request #33170 from k0ste/wip-43727-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:11:01 +0000 (12:11 -0800)]
Merge pull request #33170 from k0ste/wip-43727-nautilus

nautilus: mgr/pg_autoscaler: calculate pool_pg_target using pool size

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33168 from k0ste/wip-44057-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:10:28 +0000 (12:10 -0800)]
Merge pull request #33168 from k0ste/wip-44057-nautilus

nautilus: mgr/telemetry: split entity_name only once (handle ids with dots)

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33157 from shyukri/wip-43924-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:09:56 +0000 (12:09 -0800)]
Merge pull request #33157 from shyukri/wip-43924-nautilus

nautilus: mgr/prometheus: report per-pool pg states

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
5 years agoMerge pull request #33155 from shyukri/wip-43916-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:09:22 +0000 (12:09 -0800)]
Merge pull request #33155 from shyukri/wip-43916-nautilus

nautilus: mon/ConfigMonitor: only propose if leader

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33147 from shyukri/wip-43989-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:08:34 +0000 (12:08 -0800)]
Merge pull request #33147 from shyukri/wip-43989-nautilus

nautilus: osd: Allow 64-char hostname to be added as the "host" in CRUSH

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #33142 from shyukri/wip-44000-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:07:53 +0000 (12:07 -0800)]
Merge pull request #33142 from shyukri/wip-44000-nautilus

nautilus: mon/MgrMonitor.cc: warn about missing mgr in a cluster with osds

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33082 from k0ste/wip-43974-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 20:07:07 +0000 (12:07 -0800)]
Merge pull request #33082 from k0ste/wip-43974-nautilus

nautilus: mgr/telemetry: anonymizing smartctl report itself

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32948 from yaarith/wip-telemetry-serial-nautilus-yh
Yuri Weinstein [Thu, 13 Feb 2020 20:06:36 +0000 (12:06 -0800)]
Merge pull request #32948 from yaarith/wip-telemetry-serial-nautilus-yh

nautilus: mgr/telemetry: fix device serial number anonymization

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #33007 from smithfarm/wip-43928-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 19:35:30 +0000 (11:35 -0800)]
Merge pull request #33007 from smithfarm/wip-43928-nautilus

nautilus: mon: elector: return after triggering a new election

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #32931 from smithfarm/wip-43819-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 19:31:42 +0000 (11:31 -0800)]
Merge pull request #32931 from smithfarm/wip-43819-nautilus

nautilus: mgr/pg_autoscaler: default to pg_num[_min] = 32

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #32905 from smithfarm/wip-43731-nautilus
Yuri Weinstein [Thu, 13 Feb 2020 19:29:36 +0000 (11:29 -0800)]
Merge pull request #32905 from smithfarm/wip-43731-nautilus

nautilus: crush/CrushWrapper: behave with empty weight vector

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32856 from zhengchengyao/nautilus_no_mon_update
Yuri Weinstein [Thu, 13 Feb 2020 19:28:54 +0000 (11:28 -0800)]
Merge pull request #32856 from zhengchengyao/nautilus_no_mon_update

nautilus: mon/ConfigMonitor: fix handling of NO_MON_UPDATE settings

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agodoc: update mondb recovery script 33278/head
Kefu Chai [Mon, 10 Feb 2020 09:36:04 +0000 (17:36 +0800)]
doc: update mondb recovery script

to note that we also need to add mgr's key to monitor's keyring

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