]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agotools/rados: assign to optional<> without deref'ing it 39329/head
Kefu Chai [Wed, 24 Feb 2021 14:24:50 +0000 (22:24 +0800)]
tools/rados: assign to optional<> without deref'ing it

this change addresses a regression introduced by
d333b35aa10bf03a8bc047994d5cf3fed019b49a

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

4 years agotools/rados: replace omap_key_valid with std::optional.
Radoslaw Zarzynski [Fri, 5 Feb 2021 18:47:29 +0000 (18:47 +0000)]
tools/rados: replace omap_key_valid with std::optional.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit eb87a0646a3635a7a35b6326e6d26e4b0b5b9d37)

4 years agotools/rados: replace omap_key_pretty with prettify().
Radoslaw Zarzynski [Fri, 5 Feb 2021 18:43:23 +0000 (18:43 +0000)]
tools/rados: replace omap_key_pretty with prettify().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit cca92228f279d1334207b5e1f4bcfa225dca7f11)

4 years agotools/rados: add support for binary object names.
Radoslaw Zarzynski [Fri, 5 Feb 2021 15:28:04 +0000 (15:28 +0000)]
tools/rados: add support for binary object names.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit d333b35aa10bf03a8bc047994d5cf3fed019b49a)

Conflicts:
src/tools/rados/rados.cc
  * no input-file option,
  * no commands for cache tiering,
  * older API for omap retrival.

4 years agoMerge pull request #39202 from idryomov/wip-krbd-msgr2-nautilus
Ilya Dryomov [Thu, 4 Feb 2021 17:09:31 +0000 (18:09 +0100)]
Merge pull request #39202 from idryomov/wip-krbd-msgr2-nautilus

nautilus: krbd: add support for msgr2 (kernel 5.11)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38894 from smithfarm/wip-48518-nautilus
Yuri Weinstein [Wed, 3 Feb 2021 18:42:24 +0000 (10:42 -0800)]
Merge pull request #38894 from smithfarm/wip-48518-nautilus

nautilus: pybind/cephfs: fix missing terminating NULL char in readlink()'s C string

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
4 years agoMerge pull request #38627 from batrick/i48634
Yuri Weinstein [Wed, 3 Feb 2021 18:41:49 +0000 (10:41 -0800)]
Merge pull request #38627 from batrick/i48634

nautilus: qa: fix tox failures

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #38101 from kotreshhr/wip-48192-nautilus
Yuri Weinstein [Wed, 3 Feb 2021 18:41:16 +0000 (10:41 -0800)]
Merge pull request #38101 from kotreshhr/wip-48192-nautilus

nautilus: cephfs: mds: throttle cap acquisition via readdir

Reviewed-by: Ramana Raja <rraja@redhat.com>
4 years agoMerge pull request #39125 from smithfarm/wip-48595-nautilus
Yuri Weinstein [Mon, 1 Feb 2021 17:31:48 +0000 (09:31 -0800)]
Merge pull request #39125 from smithfarm/wip-48595-nautilus

nautilus: tests: cancelling both noscrub *and* nodeep-scrub

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
4 years agoMerge pull request #39124 from smithfarm/wip-48379-nautilus
Yuri Weinstein [Mon, 1 Feb 2021 17:29:07 +0000 (09:29 -0800)]
Merge pull request #39124 from smithfarm/wip-48379-nautilus

nautilus: mon: validate crush-failure-domain

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #39076 from k0ste/wip-48957-nautilus
Yuri Weinstein [Mon, 1 Feb 2021 17:28:39 +0000 (09:28 -0800)]
Merge pull request #39076 from k0ste/wip-48957-nautilus

nautilus: mgr/prometheus: Fix 'pool filling up' with >50% usage

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
4 years agoMerge pull request #39075 from k0ste/wip-49005-nautilus
Yuri Weinstein [Mon, 1 Feb 2021 17:27:53 +0000 (09:27 -0800)]
Merge pull request #39075 from k0ste/wip-49005-nautilus

nautilus: mgr: update mon metadata when monmap is updated

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37948 from aclamk/fix-46194-bluefs-log-growth-nau
Yuri Weinstein [Mon, 1 Feb 2021 17:26:23 +0000 (09:26 -0800)]
Merge pull request #37948 from aclamk/fix-46194-bluefs-log-growth-nau

nautilus: bluestore: Add protection against bluefs log file growth

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #39123 from smithfarm/wip-49026-nautilus
Yuri Weinstein [Mon, 1 Feb 2021 16:40:32 +0000 (08:40 -0800)]
Merge pull request #39123 from smithfarm/wip-49026-nautilus

nautilus: rbd/bench: include used headers

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
4 years agoMerge pull request #39121 from smithfarm/wip-48691-nautilus
Yuri Weinstein [Mon, 1 Feb 2021 16:39:19 +0000 (08:39 -0800)]
Merge pull request #39121 from smithfarm/wip-48691-nautilus

nautilus: librbd: clear implicitly enabled feature bits when creating images

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39047 from smithfarm/wip-48969-nautilus
Yuri Weinstein [Mon, 1 Feb 2021 16:38:10 +0000 (08:38 -0800)]
Merge pull request #39047 from smithfarm/wip-48969-nautilus

nautilus: ocf: add support for mapping images within an RBD namespace

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
4 years agoMerge pull request #38830 from smithfarm/wip-48083-nautilus
Yuri Weinstein [Mon, 1 Feb 2021 16:35:36 +0000 (08:35 -0800)]
Merge pull request #38830 from smithfarm/wip-48083-nautilus

nautilus: rbd-nbd: reexpand the conf meta in child process

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoqa/suites/krbd: add msgr2 modes to most subsuites 39202/head
Ilya Dryomov [Wed, 20 Jan 2021 15:00:18 +0000 (16:00 +0100)]
qa/suites/krbd: add msgr2 modes to most subsuites

basic, rbd and rbd-nomount subsuites are expanded to run with each
of ms_mode=legacy, ms_mode=crc and ms_mode=secure.  This increases
the total number of jobs in the suite from 100 to 220.

fsx, singleton and thrash subsuites choose ms_mode at random (from
the above plus ms_mode=prefer-crc).

unmap and wac subsuites remain msgr1-only.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 65948736a41f424d8152b208d013419f8d6038a4)

Conflicts:
qa/suites/krbd/fsx/conf.yaml [ commit cff2e49ff09e
  ("qa/suites/krbd: fsx with object-map and fast-diff") and
  read_from_replica map option not in nautilus ]
qa/suites/krbd/fsx/ms_mode$/*.yaml [ read_from_replica map option
  not in nautilus ]

4 years agotest/librbd/fsx: respect rbd_default_map_options in krbd_open()
Ilya Dryomov [Thu, 9 Jul 2020 20:27:41 +0000 (22:27 +0200)]
test/librbd/fsx: respect rbd_default_map_options in krbd_open()

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit b29dfc4624f3b8286d345ec62894fa70c5f6cf9b)

4 years agodoc: deprecate [no]cephx_require_signatures map options
Ilya Dryomov [Mon, 18 Jan 2021 13:29:27 +0000 (14:29 +0100)]
doc: deprecate [no]cephx_require_signatures map options

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit fd5f5722a29964bb33b305a381bcf9a48cdcbb47)

4 years agokrbd: add support for msgr2
Ilya Dryomov [Mon, 18 Jan 2021 12:49:49 +0000 (13:49 +0100)]
krbd: add support for msgr2

Recognize ms_mode map option and filter initial monitor addresses
accordingly: if ms_mode is not given or ms_mode=legacy, discard v2
addresses, otherwise discard v1 addresses.

Note that nothing was discarded (i.e. v2 addresses were passed to
the kernel) previously.  The intent was to preserve that behaviour
in case ms_mode is not given, allowing to change the kernel default
in the future.  However, it turns out that mount.ceph helper has
been misguidedly discarding v2 addresses since commit eae01275134e
("mount.ceph: fork a child to get info from local configuration"),
so that ship has sailed.

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

Conflicts:
doc/man/8/rbd.rst [ crush_location, read_from_replica and
  compression_hint map options not in nautilus ]
src/krbd.cc [ commit a1aecba6f44d ("krbd: make wait_for_udev_add()
  clearer and a bit more efficient") not in nautilus ]
src/tools/rbd/action/Kernel.cc [ commit 34f539d8af33 ("rbd:
  delay parsing of default kernel map options") not in nautilus ]

4 years agoMerge pull request #39175 from rhcs-dashboard/49062-fix-iscsi-gw-add
Ernesto Puerta [Fri, 29 Jan 2021 18:35:09 +0000 (19:35 +0100)]
Merge pull request #39175 from rhcs-dashboard/49062-fix-iscsi-gw-add

nautilus mgr/dashboard: fix 'ceph dashboard iscsi-gateway-add'

Reviewed-by: Dimitri Savineau <dsavinea@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agonautilus mgr/dashboard: fix 'ceph dashboard iscsi-gateway-add' 39175/head
Alfonso Martínez [Fri, 29 Jan 2021 16:53:57 +0000 (17:53 +0100)]
nautilus mgr/dashboard: fix 'ceph dashboard iscsi-gateway-add'

Fixes: https://tracker.ceph.com/issues/49062
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
4 years agotest: cancelling both noscrub *and* nodeep-scrub 39125/head
Ronen Friedman [Mon, 7 Dec 2020 12:41:45 +0000 (14:41 +0200)]
test: cancelling both noscrub *and* nodeep-scrub

as part of osd-scrub-test.sh.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
(cherry picked from commit 43b1129030823817e0b7a21c85de5d3da841510a)

4 years agomon: validate crush-failure-domain 39124/head
Prashant D [Tue, 15 Sep 2020 02:27:21 +0000 (22:27 -0400)]
mon: validate crush-failure-domain

While creating erasure-coded profile make sure
that user is specifying valid crush-failure-domain.

Fixes: https://tracker.ceph.com/issues/47452
Signed-off-by: Prashant Dhange <pdhange@redhat.com>
(cherry picked from commit f8b7fddc4c4a787d58fb9efef6ecb13cf878f92b)

4 years agorbd/bench: include used headers 39123/head
Kefu Chai [Tue, 26 Jan 2021 08:08:43 +0000 (16:08 +0800)]
rbd/bench: include used headers

should help with fixing following failure:

src/tools/rbd/action/Bench.cc:20:26: error: aggregate 'std::atomic<bool>
terminating' has incomplete type and cannot be defined

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

4 years agolibrbd: drop explicit masking of implicit feature bits 39121/head
Jason Dillaman [Fri, 18 Dec 2020 15:14:13 +0000 (10:14 -0500)]
librbd: drop explicit masking of implicit feature bits

Now that the create image state machine is handling the masking
of implicit features, all callers to the state machine can skip
the need to perform the masking themselves.

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

Conflicts:
src/librbd/api/Migration.cc
- in nautilus, this file does not mention RBD_FEATURES_IMPLICIT_ENABLE

4 years agolibrbd/image: mask out all implicit features when creating an image
Jason Dillaman [Fri, 18 Dec 2020 14:55:30 +0000 (09:55 -0500)]
librbd/image: mask out all implicit features when creating an image

This will ensure that all paths to the create image state machine
properly handle this condition. Previously, it was up to the callers
of the state machine to clear the implicit feature bits.

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

4 years agolibrbd/image: use internal feature flag mask when creating images
Jason Dillaman [Fri, 18 Dec 2020 14:48:58 +0000 (09:48 -0500)]
librbd/image: use internal feature flag mask when creating images

When validating the provided features for an image, utilize the
RBD_FEATURES_INTERNAL flag instead of just RBD_FEATURE_OPERATION.

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

4 years agolibrbd/api: do not explicitly add the MIGRATION feature bit
Jason Dillaman [Fri, 18 Dec 2020 14:42:51 +0000 (09:42 -0500)]
librbd/api: do not explicitly add the MIGRATION feature bit

This feature bit is automatically added to the source and destination
images via the cls method on the OSD.

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

Conflicts:
src/librbd/api/Migration.cc
- no Migration<I>::prepare_import template in nautilus

4 years agoMerge pull request #39090 from smithfarm/wip-48284-nautilus
Yuri Weinstein [Wed, 27 Jan 2021 23:52:22 +0000 (15:52 -0800)]
Merge pull request #39090 from smithfarm/wip-48284-nautilus

nautilus: rpm,deb: change sudoers file mode to 440

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocommon: do not dup the options when reexpanding 38830/head
Xiubo Li [Mon, 23 Nov 2020 12:55:01 +0000 (20:55 +0800)]
common: do not dup the options when reexpanding

The old code will store all the options, which has `$pid` in them,
in may_reexpand_meta map. And when reexpanding later, the reexpand
code will dup them with a higher priority(CONF_OVERRIDE).

This will be a problem, if the default value has `$pid` and be
stored in the may_reexpand_meta map, and then the code set a new
different value, which may have no `$pid`, from CLI or config file.
The reexpand will override it with the default value always.

This will do not duplicate the options with CONF_OVERRIDE priority
when reexpanding, just refresh them and call the observers. And the
finalize_reexpand_meta() will always be called after the fork() is
done in child processes.

Fixes: https://tracker.ceph.com/issues/48240
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 56ca87ae3b3c341a78a8df8f95d3bf31828c9108)

4 years agocommon/config_proxy: clear the values.changed in _gather_changes()
Xiubo Li [Mon, 23 Nov 2020 08:27:51 +0000 (16:27 +0800)]
common/config_proxy: clear the values.changed in _gather_changes()

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 7496be719c3419224ac7fc29d6db4e282b193554)

4 years agoglobal: reexpand the conf meta in all the child processes
Xiubo Li [Fri, 13 Nov 2020 08:08:31 +0000 (16:08 +0800)]
global: reexpand the conf meta in all the child processes

Especially for the tools or the daemons whose config options need
to expand the '$pid', they will be always expanded with the parent
processes. We need to reexpand them in child processes just after
the fork is done.

Fixes: https://tracker.ceph.com/issues/48240
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 73a48dfe8ed165cb6c8295a88f133acb30e7065e)

Conflicts:
PendingReleaseNotes

4 years agoMerge pull request #38950 from Vicente-Cheng/wip-48643-nautilus
Yuri Weinstein [Wed, 27 Jan 2021 19:20:23 +0000 (11:20 -0800)]
Merge pull request #38950 from Vicente-Cheng/wip-48643-nautilus

nautilus: cephfs: client: ensure we take Fs caps when fetching directory link count from cached inode

Reviewed-by: Ramana Raja <rraja@redhat.com>
4 years agoMerge pull request #38948 from Vicente-Cheng/wip-48641-nautilus
Yuri Weinstein [Wed, 27 Jan 2021 19:19:11 +0000 (11:19 -0800)]
Merge pull request #38948 from Vicente-Cheng/wip-48641-nautilus

nautilus: cephfs: client: set CEPH_STAT_RSTAT mask for dir in readdir_r_cb

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
4 years agoMerge pull request #37936 from kotreshhr/wip-47823-nautilus
Yuri Weinstein [Wed, 27 Jan 2021 19:18:00 +0000 (11:18 -0800)]
Merge pull request #37936 from kotreshhr/wip-47823-nautilus

nautilus: mgr/volumes: Make number of cloner threads configurable

Reviewed-by: Ramana Raja <rraja@redhat.com>
4 years agoMerge pull request #38952 from smithfarm/wip-48887-nautilus
Yuri Weinstein [Wed, 27 Jan 2021 15:50:21 +0000 (07:50 -0800)]
Merge pull request #38952 from smithfarm/wip-48887-nautilus

nautilus: cmake: detect and use sigdescr_np() if available

Reviewed-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
4 years agoMerge pull request #38833 from smithfarm/wip-48342-nautilus
Yuri Weinstein [Wed, 27 Jan 2021 15:48:23 +0000 (07:48 -0800)]
Merge pull request #38833 from smithfarm/wip-48342-nautilus

nautilus: pybind/mgr/rbd_support: delay creation of progress module events

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39072 from smithfarm/wip-49002-nautilus
Nathan Cutler [Tue, 26 Jan 2021 18:22:40 +0000 (19:22 +0100)]
Merge pull request #39072 from smithfarm/wip-49002-nautilus

nautilus: test/run-cli-tests: use cram from github

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agorpm,deb: change sudoers file mode to 440 39090/head
David Turner [Tue, 10 Nov 2020 19:31:35 +0000 (14:31 -0500)]
rpm,deb: change sudoers file mode to 440

change sudoers file mode to 440 to match recommended defaults.

From the sudoers man page.

> the default file mode is 0440 (read‐able by owner and group, writable
by none).
> The default mode may be changed via the “sudoers_mode” option to the
sudoers
>  Plugin line in the sudo.conf(5) file.

Fixes: https://tracker.ceph.com/issues/48169
Signed-off-by: David Turner <drakonstein@gmail.com>
(cherry picked from commit 1de14c7f9bcaf94152c62b50c37f4a44b6445f58)

Conflicts:
debian/rules
- ignored extra lines introduced post-nautilus

4 years agomgr: update mon metadata when monmap is updated 39075/head
Kefu Chai [Sat, 16 Jan 2021 06:33:17 +0000 (14:33 +0800)]
mgr: update mon metadata when monmap is updated

there is chance that some monitor(s) is updated / upgraded in a single
monmap update without being removed from cluster state's metata first,
so, without this change, we will not update the metadata associated with
that monitor, hence the mgr modules which consumes the metadata is not
updated accordingly and keep reporting the stale information.

in this change, we always update the metadata associated with all monitor
included by the latest monmap. multiple "mon metadata" commands are sent
to monitor for retrieving their updated metadata, instead of sending a
single one, so that we can reuse "MetadataUpdate" to update the metadata
of a given daemon. as the number of monitors in a typical cluster is
relatively small, and the frequency of monmap update is low, so this
overhead should be fine.

unlike other places where we ask mon for metadata in Mgr class, the code
sending the mon command for updated monitor metata is located outside of
`cluster_state.with_monmap()` block, the reason is that `with_monmap()`
is guraded by the monc_lock under the hood, while `start_mon_command()`
also need to acquire the monc_lock, which is not a recursive lock. so we
have to do this out of the `with_monmap()` block.

Fixes: https://tracker.ceph.com/issues/48905
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit c037f4cb5d7436879d58c34748ef516b5269781f)

backport:
  - path: src/mgr/Mgr.cc
    comment: nautilus don't declared `fmt`

4 years agomgr/prometheus: Fix 'pool filling up' with >50% usage 39076/head
Daniël Vos [Wed, 25 Nov 2020 11:05:53 +0000 (12:05 +0100)]
mgr/prometheus: Fix 'pool filling up' with  >50% usage

Fixes: https://tracker.ceph.com/issues/48354
Signed-off-by: Daniël Vos <danielvos@outlook.com>
(cherry picked from commit 79568d51c6ba1a064e31f0591a922ce45141a78e)

4 years agotest/downloads: drop cram-0.5 tar ball 39072/head
Kefu Chai [Sat, 23 Jan 2021 18:13:31 +0000 (02:13 +0800)]
test/downloads: drop cram-0.5 tar ball

since we install cram from github, drop the tarball from repo

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

4 years agotest/run-cli-tests: use cram from github
Kefu Chai [Sat, 23 Jan 2021 18:12:31 +0000 (02:12 +0800)]
test/run-cli-tests: use cram from github

to address the failure of

  WARNING: Built wheel for cram is invalid: Metadata 1.2 mandates PEP 440 version, but '0.5.0ceph.2011-01-14' is not
Failed to build cram

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

4 years agoocf: add support for mapping images within an RBD namespace 39047/head
Jason Dillaman [Fri, 22 Jan 2021 15:29:29 +0000 (10:29 -0500)]
ocf: add support for mapping images within an RBD namespace

Support for RBD namespaces was not added to the OCF resource agent.
This commit fixes this oversight and also fixes a bug in handling
of the "rbd device list" output.

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

4 years agoMerge pull request #38972 from rhcs-dashboard/wip-48927-nautilus
Ernesto Puerta [Thu, 21 Jan 2021 17:14:57 +0000 (18:14 +0100)]
Merge pull request #38972 from rhcs-dashboard/wip-48927-nautilus

nautilus: mgr/dashboard: add `--ssl` to `ng serve`

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #38813 from rhcs-dashboard/selection-regression
Ernesto Puerta [Thu, 21 Jan 2021 17:12:50 +0000 (18:12 +0100)]
Merge pull request #38813 from rhcs-dashboard/selection-regression

nautilus: mgr/dashboard: Fix for datatable item not showing details after getting selected

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #38818 from smithfarm/wip-44997-nautilus-fix
Yuri Weinstein [Thu, 21 Jan 2021 16:42:19 +0000 (08:42 -0800)]
Merge pull request #38818 from smithfarm/wip-44997-nautilus-fix

nautilus: rpm: ceph-mgr-dashboard recommends python3-saml on SUSE

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #38816 from smithfarm/wip-44364-nautilus-fixup
Yuri Weinstein [Thu, 21 Jan 2021 16:40:44 +0000 (08:40 -0800)]
Merge pull request #38816 from smithfarm/wip-44364-nautilus-fixup

nautilus: mgr/telemetry: fix proxy usage

Reviewed-by: Lars Marowsky-Bree <lmb@suse.com>
Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
4 years agoMerge pull request #38760 from tchaikov/nautilus-38263
Yuri Weinstein [Wed, 20 Jan 2021 16:19:32 +0000 (08:19 -0800)]
Merge pull request #38760 from tchaikov/nautilus-38263

nautilus: cmake: define BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT for Boost.Asio users

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38588 from smithfarm/wip-48100-nautilus
Yuri Weinstein [Wed, 20 Jan 2021 16:18:39 +0000 (08:18 -0800)]
Merge pull request #38588 from smithfarm/wip-48100-nautilus

nautilus: rgw: rgw-admin: fixes BucketInfo for missing buckets

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
4 years agomgr/dashboard: add `--ssl` to `ng serve` 38972/head
Tatjana Dehler [Tue, 12 Jan 2021 09:28:35 +0000 (10:28 +0100)]
mgr/dashboard: add `--ssl` to `ng serve`

Add the `--ssl` option to the `ng serve` command in order to
reflect the changes to the cookies (https://tracker.ceph.com/issues/44591)
and be able to log into the dashboard by using the development server.

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

 Conflicts:
src/pybind/mgr/dashboard/frontend/package.json
   - Adopted the master branch changes.

4 years agoMerge pull request #38828 from smithfarm/wip-48543-nautilus
Yuri Weinstein [Mon, 18 Jan 2021 16:29:03 +0000 (08:29 -0800)]
Merge pull request #38828 from smithfarm/wip-48543-nautilus

nautilus: rgw_file: return common_prefixes in lexical order

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38827 from smithfarm/wip-48744-nautilus
Yuri Weinstein [Mon, 18 Jan 2021 16:28:37 +0000 (08:28 -0800)]
Merge pull request #38827 from smithfarm/wip-48744-nautilus

nautilus: rgw: distribute cache for exclusive put

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38825 from smithfarm/wip-48724-nautilus
Yuri Weinstein [Mon, 18 Jan 2021 16:28:14 +0000 (08:28 -0800)]
Merge pull request #38825 from smithfarm/wip-48724-nautilus

nautilus: rgw: fix bucket limit check fill_status warnings

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38823 from smithfarm/wip-48428-nautilus
Yuri Weinstein [Mon, 18 Jan 2021 16:27:41 +0000 (08:27 -0800)]
Merge pull request #38823 from smithfarm/wip-48428-nautilus

nautilus: rgw: avoid expiration early triggering caused by overflow

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38822 from smithfarm/wip-48803-nautilus
Yuri Weinstein [Mon, 18 Jan 2021 16:27:05 +0000 (08:27 -0800)]
Merge pull request #38822 from smithfarm/wip-48803-nautilus

nautilus: rgw: cls/user: set from_index for reset stats calls

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38623 from smithfarm/wip-48426-nautilus
Yuri Weinstein [Mon, 18 Jan 2021 16:26:34 +0000 (08:26 -0800)]
Merge pull request #38623 from smithfarm/wip-48426-nautilus

nautilus: rgw: S3 Put Bucket Policy should return 204 on success

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
4 years agoMerge pull request #38590 from smithfarm/wip-48346-nautilus
Yuri Weinstein [Mon, 18 Jan 2021 16:25:48 +0000 (08:25 -0800)]
Merge pull request #38590 from smithfarm/wip-48346-nautilus

nautilus: rgw: fix invalid payload issue when serving s3website error page

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agocmake: detect and use sigdescr_np() if available 38952/head
David Disseldorp [Tue, 1 Sep 2020 11:49:21 +0000 (13:49 +0200)]
cmake: detect and use sigdescr_np() if available

sys_siglist is deprecated with glibc 2.32. A new thread-safe and
async-signal safe sigdescr_np() function is provided, so use it if
available.

Fixes: https://tracker.ceph.com/issues/47187
Signed-off-by: David Disseldorp <ddiss@suse.de>
(cherry picked from commit b9b6faf66ae67648626470cb4fc3f0850ac4d842)

Conflicts:
        CMakeLists.txt
cmake/modules/CephChecks.cmake
- CephChecks.cmake file does not exist in nautilus; manually cherry-picked the
  change in that file to top-level CMakeLists.txt

4 years agoclient: when STATX_NLINK is requested request FsLs caps 38950/head
Jeff Layton [Fri, 20 Nov 2020 23:43:31 +0000 (18:43 -0500)]
client: when STATX_NLINK is requested request FsLs caps

We currently determine the getattr request mask prior to doing the
lookup, so we don't necessarily know whether the terminal entry is
a directory or something else.

Directory nlink count is governed by the dirstats, and those are
under Fs caps. Request both Fs and Ls if the request mask includes
STATX_NLINK.

Fixes: https://tracker.ceph.com/issues/48313
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit e2ea2214cbb1ff4bd7332bb28db4f3477efb37df)

4 years agoclient: ensure we take Fs caps when querying dirstat vxattrs
Jeff Layton [Fri, 20 Nov 2020 15:39:58 +0000 (10:39 -0500)]
client: ensure we take Fs caps when querying dirstat vxattrs

Dirstats values are only updated when Fs caps are held, so ensure that
we request those caps in the _getattr call when querying for them.

Drop the old XATTR_NAME_CEPH helper and rename XATTR_NAME_CEPH2 to
XATTR_NAME_CEPH. Add a new VXATTR_DIRSTAT field and add that to all of
the dirstats vxattrs.

Fixes: https://tracker.ceph.com/issues/48313
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 3db582b1416dc170a0e25c957166d7bdc58e4c67)

Conflicts:
src/client/Client.cc
  - keep hidden because we still need it in nautilus
  - drop some code because we did not introduce the
            following features: ceph.mirror.info and rsnaps

4 years agoclient: set CEPH_STAT_RSTAT mask for dir in readdir_r_cb 38948/head
chencan [Sat, 21 Nov 2020 02:41:11 +0000 (10:41 +0800)]
client: set CEPH_STAT_RSTAT mask for dir in readdir_r_cb

Fixes: https://tracker.ceph.com/issues/48318
Signed-off-by: chencan <chen.can2@zte.com.cn>
(cherry picked from commit 8740414908625f58e1a719fa4fdfbe62ed42fada)

4 years agorgw : modify error message to NoSuchBucket when bucket doesn't exist in bucket info API 38588/head
cao.leilc [Tue, 3 Nov 2020 06:41:36 +0000 (14:41 +0800)]
rgw : modify error message to NoSuchBucket when bucket doesn't exist in bucket info API

Fixes: https://tracker.ceph.com/issues/48073
Signed-off-by: caolei <halei15848934852@163.com>
(cherry picked from commit bc5ef5c9cf0ea89fc028332c39766eb8e7e1bd0b)

Conflicts:
src/rgw/rgw_bucket.cc
- bucket.init() call has an additional argument in master

4 years agorgw: fixes BucketInfo for missing buckets
Nick Janus [Thu, 30 Apr 2020 16:22:33 +0000 (12:22 -0400)]
rgw: fixes BucketInfo for missing buckets

The admin api BucketInfo endpoint should now return 404 for buckets that
are not found where only the bucket name is passed as a parameter.

Fixes: https://tracker.ceph.com/issues/45193
Signed-off-by: Nick Janus <njanus@digitalocean.com>
(cherry picked from commit d70ca81502d25bd7a76dd2ed2a538bf5e6584822)

Conflicts:
        src/rgw/rgw_bucket.cc
- omitted null_yield parameter from bucket.init() call for nautilus purposes

4 years agoMerge pull request #38584 from votdev/wip-48593-nautilus
Yuri Weinstein [Thu, 14 Jan 2021 16:21:06 +0000 (08:21 -0800)]
Merge pull request #38584 from votdev/wip-48593-nautilus

nautilus: mgr/dashboard: Drop invalid RGW client instances, improve logging

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #38558 from badone/wip-nautilus-fix-logfile-create-perms
Yuri Weinstein [Thu, 14 Jan 2021 16:15:42 +0000 (08:15 -0800)]
Merge pull request #38558 from badone/wip-nautilus-fix-logfile-create-perms

nautilus: common: fix logfile create perms

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38475 from ifed01/wip-ifed-fix-avl-nau
Yuri Weinstein [Thu, 14 Jan 2021 16:15:04 +0000 (08:15 -0800)]
Merge pull request #38475 from ifed01/wip-ifed-fix-avl-nau

nautilus: os/bluestore: fix inappropriate ENOSPC from avl/hybrid allocator

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
4 years agoMerge pull request #38834 from smithfarm/wip-48675-nautilus
Yuri Weinstein [Wed, 13 Jan 2021 23:45:31 +0000 (15:45 -0800)]
Merge pull request #38834 from smithfarm/wip-48675-nautilus

nautilus: qa: krbd_stable_pages_required.sh: move to stable_writes attribute

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
4 years agoMerge pull request #38832 from rhcs-dashboard/wip-48655-nautilus
Yuri Weinstein [Wed, 13 Jan 2021 23:44:39 +0000 (15:44 -0800)]
Merge pull request #38832 from rhcs-dashboard/wip-48655-nautilus

nautilus: mgr/dashboard: CLI commands: read passwords from file

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #38831 from smithfarm/wip-48224-nautilus
Yuri Weinstein [Wed, 13 Jan 2021 23:43:12 +0000 (15:43 -0800)]
Merge pull request #38831 from smithfarm/wip-48224-nautilus

nautilus: rbd: librbd: update hidden global config when removing pool config override

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38771 from votdev/wip-48628-nautilus
Yuri Weinstein [Wed, 13 Jan 2021 23:41:47 +0000 (15:41 -0800)]
Merge pull request #38771 from votdev/wip-48628-nautilus

nautilus: mgr/dashboard: The /rgw/status endpoint does not check for running service

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
4 years agopybind/cephfs: fix missing terminating NULL char in readlink()'s C string 38894/head
Tuan Hoang [Tue, 1 Dec 2020 10:57:33 +0000 (11:57 +0100)]
pybind/cephfs: fix missing terminating NULL char in readlink()'s C string

The error is in test_readlink() in src/test/pybind/test_cephfs.py:

...
test_cephfs.test_readlink ... FAIL

======================================================================
FAIL: test_cephfs.test_readlink
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/tmhoang/test_cephfs.py", line 99, in test_readlink
    assert_equal(d, b"/file-1")
AssertionError: b'/file-1\xe8' != b'/file-1'
...

Fixes: https://tracker.ceph.com/issues/48408
Signed-off-by: Tuan Hoang <tmhoang@linux.ibm.com>
(cherry picked from commit b7af5152c1be806fd529242411b9583fd4d50c76)

4 years agomgr/dashboard: Fix for datatable item not showing details after getting selected 38813/head
Nizamudeen A [Fri, 8 Jan 2021 07:37:27 +0000 (13:07 +0530)]
mgr/dashboard: Fix for datatable item not showing details after getting selected

**Regression in nautilus**

Datatable items are not showing the details even if an item in the list is selected. This is happening because of this backport (https://github.com/ceph/ceph/pull/37756/files) which backports the line this.selection.selected = $event['selected']; but this feature was not implemented in the nautilus branch originally.

Fixes: https://tracker.ceph.com/issues/48796
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #38803 from smithfarm/wip-48768-nautilus
Yuri Weinstein [Mon, 11 Jan 2021 16:44:48 +0000 (08:44 -0800)]
Merge pull request #38803 from smithfarm/wip-48768-nautilus

nautilus: mgr/PyModule: correctly remove config options

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38637 from ifed01/wip-ifed-fix-alloc-nau
Yuri Weinstein [Mon, 11 Jan 2021 16:44:13 +0000 (08:44 -0800)]
Merge pull request #38637 from ifed01/wip-ifed-fix-alloc-nau

nautilus: os/bluestore: fix segfault on out-of-bound offset provided to  claim_…

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #38478 from ifed01/wip-ifed-faster-rm1-nau
Yuri Weinstein [Mon, 11 Jan 2021 16:43:38 +0000 (08:43 -0800)]
Merge pull request #38478 from ifed01/wip-ifed-faster-rm1-nau

nautilus: osd: optimize PG removal (part1)

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37793 from ifed01/wip-ifed-fix-alloc-multi-reg-nau
Yuri Weinstein [Mon, 11 Jan 2021 16:42:51 +0000 (08:42 -0800)]
Merge pull request #37793 from ifed01/wip-ifed-fix-alloc-multi-reg-nau

nautilus: bluestore: provide a different name for fallback allocator

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agomgr/dashboard: fix issues from cherry-pick conflict resolution 38832/head
Alfonso Martínez [Mon, 11 Jan 2021 14:34:34 +0000 (15:34 +0100)]
mgr/dashboard: fix issues from cherry-pick conflict resolution

src/test/mgr/mgr-dashboard-smoke.sh
src/vstart.sh
- Add 'tell mgr' in ac-user-create command.

src/pybind/mgr/dashboard/tests/test_access_control.py
qa/tasks/mgr/dashboard/test_auth.py
- Remove 'force_password' argument.

qa/tasks/mgr/dashboard/test_rgw.py
- Fix test_status test.

cherry-pick commit: b82478e1061bfc1475693b0910a7f14276b4d6ab

Fixes: https://tracker.ceph.com/issues/48355
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
4 years agopybind/mgr/rbd_support: delay creation of progress event 38833/head
Jason Dillaman [Thu, 19 Nov 2020 20:59:34 +0000 (15:59 -0500)]
pybind/mgr/rbd_support: delay creation of progress event

Create the progress module event upon receipt of the first
progress callback from the librbd API. This will help to ensure
that all prereqs have been validated for retryable errors like
scheduling an image to be removed while it still has attached
cloned children.

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

Conflicts:
        src/pybind/mgr/rbd_support/task.py
- file does not exist in nautilus: applied the changes manually

4 years agopybind/mgr/rbd_support: include retryable error message in task
Jason Dillaman [Thu, 19 Nov 2020 21:08:22 +0000 (16:08 -0500)]
pybind/mgr/rbd_support: include retryable error message in task

If a retryable error occurs, include the reason message in the
task JSON structure that is exposed via the "rbd task list"
MGR command.

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

Conflicts:
        src/pybind/mgr/rbd_support/task.py
- file does not exist in nautilus: applied the changes manually

4 years agopybind/mgr/rbd_support: add linear backoff to retried tasks
Jason Dillaman [Thu, 19 Nov 2020 20:25:52 +0000 (15:25 -0500)]
pybind/mgr/rbd_support: add linear backoff to retried tasks

When a task fails but will be retried, linearly increase the
delay for the next retry up to a maximum of 5 minutes.

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

Conflicts:
        src/pybind/mgr/rbd_support/task.py
- file does not exist in nautilus: applied the changes manually

4 years agoMerge pull request #38799 from votdev/wip-48653-nautilus
Ernesto Puerta [Fri, 8 Jan 2021 21:04:16 +0000 (22:04 +0100)]
Merge pull request #38799 from votdev/wip-48653-nautilus

nautilus: mgr/dashboard: Display a warning message in Dashboard when debug mode is enabled

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
4 years agoMerge pull request #38509 from rhcs-dashboard/wip-48516-nautilus
Ernesto Puerta [Fri, 8 Jan 2021 20:55:15 +0000 (21:55 +0100)]
Merge pull request #38509 from rhcs-dashboard/wip-48516-nautilus

nautilus: mgr/dashboard: Updating the inbuilt ssl providers error

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoqa: krbd_stable_pages_required.sh: move to stable_writes attribute 38834/head
Ilya Dryomov [Thu, 3 Dec 2020 10:24:32 +0000 (11:24 +0100)]
qa: krbd_stable_pages_required.sh: move to stable_writes attribute

bdi/stable_pages_required attribute was deprecated in 5.10 and now
always returns 0.  The replacement is queue/stable_writes.  (It is
also writeable, so we can simplify these test cases somewhat in the
future.)

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

Conflicts:
qa/workunits/rbd/krbd_stable_writes.sh
- this file is much bigger in master than in nautilus

4 years agomgr/BaseMgrModule: add optional inbuf param to ceph_send_command.
Alfonso Martínez [Tue, 15 Dec 2020 08:29:53 +0000 (09:29 +0100)]
mgr/BaseMgrModule: add optional inbuf param to ceph_send_command.

BaseMgrModule.cc: ceph_send_command: add inbuf param for handling input file content.

Fixes: https://tracker.ceph.com/issues/48355
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit dc37e0fdb1ea5187aea42303f0bfe27aadd8d64d)

 Conflicts:
src/pybind/mgr/ceph_module.pyi

 - Remove this file as it does not exist in nautilus.

4 years agomgr/dashboard: CLI commands: read passwords from file
Alfonso Martínez [Tue, 15 Dec 2020 08:28:46 +0000 (09:28 +0100)]
mgr/dashboard: CLI commands: read passwords from file

Fixes: https://tracker.ceph.com/issues/48355
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
(cherry picked from commit 5d7ee7c1f0ad971fd0079f917e2b44cdef1d6f9f)

 Conflicts:
doc/mgr/dashboard.rst
qa/tasks/mgr/dashboard/helper.py
qa/tasks/mgr/dashboard/test_auth.py
qa/tasks/mgr/dashboard/test_rgw.py
qa/tasks/mgr/dashboard/test_user.py
qa/workunits/cephadm/test_dashboard_e2e.sh
src/cephadm/cephadm
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/cephadm/services/iscsi.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/cephadm/tests/test_services.py
src/pybind/mgr/dashboard/run-frontend-e2e-tests.sh
src/pybind/mgr/dashboard/services/access_control.py
src/pybind/mgr/dashboard/services/iscsi_cli.py
src/pybind/mgr/dashboard/tests/test_access_control.py
src/pybind/mgr/dashboard/tests/test_iscsi.py
src/pybind/mgr/dashboard/tests/test_settings.py
src/pybind/mgr/mgr_module.py
src/pybind/mgr/tests/__init__.py
src/test/mgr/mgr-dashboard-smoke.sh
src/vstart.sh

  - Remove cephadm files and related code (does not apply to nautilus).
  - Remove code related to non-existing functionality in nautilus.
  - Adapt code to be py2 compatible.
  - Resolve conflicts related to code divergence.

4 years agolibrbd: update hidden global config when removing pool config override 38831/head
Jason Dillaman [Sat, 7 Nov 2020 15:09:32 +0000 (10:09 -0500)]
librbd: update hidden global config when removing pool config override

The remove notification was missed and therefore in-use images will not
properly remove pool config overrides.

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

4 years agorbd-nbd: reexpand the conf meta in child process
Xiubo Li [Fri, 30 Oct 2020 02:02:51 +0000 (22:02 -0400)]
rbd-nbd: reexpand the conf meta in child process

Fixed: https://tracker.ceph.com/issues/48046
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit f482b8ca7973c998cfa02ef84aba92709aa1f49b)

4 years agorgw_file: return common_prefixes in lexical order 38828/head
Matt Benjamin [Fri, 8 Jan 2021 18:23:56 +0000 (13:23 -0500)]
rgw_file: return common_prefixes in lexical order

Since inception RGWReaddirRequest has sent all leaf objects first
(in lexical order), then common_prefixes (in lexical order). In
hindsight, an overall listing could trivially be returned out of
lexical order, which can cause continued listing of large, mixed
directories to fail.

RCA by Dan Gryniewicz.

Fixes: https://tracker.ceph.com/issues/48410
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit e561e98e5cca2678854e01c990f95e474022b7ed)

Conflicts:
        src/rgw/rgw_file.h

4 years agorgw: distribute cache for exclusive put 38827/head
Or Friedmann [Wed, 16 Dec 2020 16:09:24 +0000 (18:09 +0200)]
rgw: distribute cache for exclusive put

Distribute cache for exclusive put

Fixes: https://tracker.ceph.com/issues/48632
Thanks to Casey Bodley for finding the solution

Signed-off-by: Or Friedmann <ofriedma@redhat.com>
(cherry picked from commit 4fb51bc125b4ec23c2f47e7326d67f885f7d268c)

Conflicts:
src/rgw/services/svc_notify.cc
- robust_notify() call has different argument list in nautilus
src/rgw/services/svc_sys_obj_cache.cc
- distribute_cache() call has different argument list in nautilus

4 years agorgw: fix bucket limit check fill_status warnings 38825/head
Paul Emmerich [Tue, 11 Jun 2019 12:10:55 +0000 (14:10 +0200)]
rgw: fix bucket limit check fill_status warnings

all variables in the calculation where ints, so the warning would
only ever trigger if objects_per_shard == limit_objects and the
percentage for > 100% used a granularity of 100%

Fixes: http://tracker.ceph.com/issues/40255
Signed-off-by: Paul Emmerich <paul.emmerich@croit.io>
(cherry picked from commit 694076419e6f20d1ed6c95b4b1ff94f134a10d4d)

4 years agorgw: change the format of the cast 38823/head
jiahuizeng [Mon, 30 Dec 2019 11:25:36 +0000 (11:25 +0000)]
rgw: change the format of the cast

Signed-off-by: jiahuizeng <jhzeng93@foxmail.com>
(cherry picked from commit c44a335aeae3f830ff70fe9b4ed04b53f32c07d6)

Conflicts:
src/rgw/rgw_lc.cc
- make_timespan() call in s3_expiration_header is different in nautilus

4 years agorgw: avoid expiration early triggering caused by overflow
jiahuizeng [Tue, 5 Nov 2019 02:48:51 +0000 (10:48 +0800)]
rgw: avoid expiration early triggering caused by overflow

Fixes: https://tracker.ceph.com/issues/42634
Signed-off-by: jiahuizeng <jhzeng93@foxmail.com>
(cherry picked from commit 260df7dfd819a4117ae76aaf699370afda653baf)

Conflicts:
src/rgw/rgw_lc.cc
- make_timespan() call in s3_expiration_header is different in nautilus

4 years agorgw: cls/user: set from_index for reset stats calls 38822/head
Abhishek Lekshmanan [Mon, 23 Nov 2020 15:23:37 +0000 (16:23 +0100)]
rgw: cls/user: set from_index for reset stats calls

Fixes: https://tracker.ceph.com/issues/48327
Signed-off-by: Mykola Golub <mgolub@suse.com>
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 8dd07c8d185d18c34525c9ed8aca4d62e976a675)

4 years agoMerge pull request #38589 from smithfarm/wip-48128-nautilus
Yuri Weinstein [Fri, 8 Jan 2021 16:33:43 +0000 (08:33 -0800)]
Merge pull request #38589 from smithfarm/wip-48128-nautilus

nautilus: rgw: keep syncstopped flag when copying bucket shard headers

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38556 from smithfarm/wip-48576-nautilus
Yuri Weinstein [Fri, 8 Jan 2021 16:33:14 +0000 (08:33 -0800)]
Merge pull request #38556 from smithfarm/wip-48576-nautilus

nautilus: rgw: Disable prefetch of entire head object when GET request with range header

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
4 years agoMerge pull request #38527 from s0nea/wip-48537-nautilus
Yuri Weinstein [Fri, 8 Jan 2021 16:32:39 +0000 (08:32 -0800)]
Merge pull request #38527 from s0nea/wip-48537-nautilus

nautilus: mgr/dashboard: test_standby* (tasks.mgr.test_dashboard.TestDashboard) failed locally

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
4 years agoMerge pull request #38504 from callithea/wip-48512-nautilus
Yuri Weinstein [Fri, 8 Jan 2021 16:31:57 +0000 (08:31 -0800)]
Merge pull request #38504 from callithea/wip-48512-nautilus

nautilus: mgr/dashboard: remove pyOpenSSL version pinning

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>