]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agoUpdate batch.py 39470/head
jshen28 [Mon, 14 Dec 2020 06:54:46 +0000 (14:54 +0800)]
Update batch.py

Correct a typo

Signed-off-by: shenjiatong <yshxxsjt715@gmail.com>
(cherry picked from commit aa5f48780e469b3ed90f251a01cfa3e2a4f7beb0)

4 years agoMerge PR #39270 into nautilus
Jan Fajerski [Mon, 15 Feb 2021 10:18:21 +0000 (11:18 +0100)]
Merge PR #39270 into nautilus

* refs/pull/39270/head:
ceph-volume: mock VGs with string properties in tests
ceph-volume: add some flexibility to bytes_to_extents

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #39221 into nautilus
Jan Fajerski [Mon, 15 Feb 2021 09:10:49 +0000 (10:10 +0100)]
Merge PR #39221 into nautilus

* refs/pull/39221/head:
ceph-volume: Fix usage of is_lv

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge pull request #39292 from kotreshhr/wip-mgr-backports-nautilus
Ramana Raja [Fri, 12 Feb 2021 22:40:21 +0000 (17:40 -0500)]
Merge pull request #39292 from kotreshhr/wip-mgr-backports-nautilus

nautilus: mgr/volume: subvolume auth_id management and few bug fixes

Reviewed-by: Ramana Raja <rraja@redhat.com>
4 years agoMerge pull request #39419 from rhcs-dashboard/wip-49248-nautilus
Ernesto Puerta [Fri, 12 Feb 2021 10:31:58 +0000 (11:31 +0100)]
Merge pull request #39419 from rhcs-dashboard/wip-49248-nautilus

nautilus: mgr/dashboard: customize CherryPy Server Header

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoqa: leave one standby available to avoid warning 39292/head
Patrick Donnelly [Mon, 2 Nov 2020 18:01:59 +0000 (10:01 -0800)]
qa: leave one standby available to avoid warning

Four file systems will use all MDS and generate this warning:

2020-11-02T03:48:33.407 INFO:teuthology.orchestra.run.smithi003.stdout:2020-11-02T03:24:21.817337+0000 mon.a (mon.0) 481 : cluster [WRN] Health check failed: insufficient standby MDS daemons available (MDS_INSUFFICIENT_STANDBY)

Fixes: https://tracker.ceph.com/issues/23718
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 59451923d31f5e4f707aa6d22ececc8edd395ca9)

4 years agoqa: unmount volumes before removal
Patrick Donnelly [Fri, 30 Oct 2020 21:40:25 +0000 (14:40 -0700)]
qa: unmount volumes before removal

To avoid potential failures/hangs in umount.

Fixes: https://tracker.ceph.com/issues/23718
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 4ca8aaafa32bb7397eec80a8eb366d2dd781a72f)

4 years agoqa: Fix a few mgr/volume test cases
Kotresh HR [Fri, 5 Feb 2021 18:05:22 +0000 (23:35 +0530)]
qa: Fix a few mgr/volume test cases

Recovering dirty auth metadata file might not retain the order,
fixed the comparison in 'test_recover_auth_metadata_during_authorize'
and 'test_recover_auth_metadata_during_deauthorize'.

Fixes: https://tracker.ceph.com/issues/49192
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 4952d2132ffd92594e749a652970d5d9415c721d)

4 years agoThis commit is intended to hide CherryPy name and version, from HTTP header 'Server... 39419/head
anurag [Mon, 20 Apr 2020 23:13:07 +0000 (04:43 +0530)]
This commit is intended to hide CherryPy name and version, from HTTP header 'Server' response.

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

4 years agoqa/cephfs: add methods to read/write on CephFS mounts
Rishabh Dave [Wed, 1 Apr 2020 11:21:06 +0000 (16:51 +0530)]
qa/cephfs: add methods to read/write on CephFS mounts

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

Conflicts:
    qa/tasks/cephfs/mount.py: get_file and IP module is not present in
        nautilus

4 years agoceph_volume_client: Fix failure of test_idempotency
Kotresh HR [Sat, 23 Jan 2021 17:03:32 +0000 (22:33 +0530)]
ceph_volume_client: Fix failure of test_idempotency

With the test environment, 'args must be encodeable
 as a bytearray' error is seen for 'ceph_mds_command'.
Hence removed tuple and passed the JSON formatted string.

Fixes: https://tracker.ceph.com/issues/48830
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 1c6c172a9b665d6b769d67e301061dbd7b044472)

4 years agomgr/volumes: Evict clients based on auth-IDs and subvolume mounted
Kotresh HR [Fri, 15 Jan 2021 20:07:14 +0000 (01:37 +0530)]
mgr/volumes: Evict clients based on auth-IDs and subvolume mounted

Add subvolume evict command which evicts the subvolume mounts
which are mounted using particular auth-ID.

Fixes: https://tracker.ceph.com/issues/44928
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 269adcc8b8ab0742ba741ed7c2b59ccfb17a63f9)

Conflicts:
    qa/tasks/cephfs/test_volumes.py: Few of the tests are re-organized,
      hence the conflicts. Resolved the same.

4 years agodoc/mgr/volumes: Document 'fs subvolume authorized_list' cli
Kotresh HR [Tue, 5 Jan 2021 13:25:32 +0000 (18:55 +0530)]
doc/mgr/volumes: Document 'fs subvolume authorized_list' cli

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 9f9f8adc47486432c746565ea5a1f204736632c1)

4 years agoqa: Add tests for list auth-ids of a subvolume
Kotresh HR [Wed, 16 Dec 2020 12:49:42 +0000 (18:19 +0530)]
qa: Add tests for list auth-ids of a subvolume

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 1b98e63e75236ff1cd1c9cb1ead8eb965698d5b6)

Conflicts:
    qa/tasks/cephfs/test_volumes.py: Few of the tests are re-organized,
     hence the conflicts. Resolved the same.

4 years agomgr/volumes: Update the 'volumes' key to 'subvolumes' in auth metadata file
Kotresh HR [Tue, 5 Jan 2021 12:55:54 +0000 (18:25 +0530)]
mgr/volumes: Update the 'volumes' key to 'subvolumes' in auth metadata file

The older auth metadata files created by CephVolumeClient stores the
authorized subvolumes using the 'volumes' key as the notion of
'subvolumes' brought in by mgr/volumes. Hence, this would be tranparently
updated to 'subvolumes' and newer auth metadata files would store them
with 'subvolumes' key.

Also fails the deauthorize if the auth-id doesn't exist.

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 5f32eb15918657bcf1f73025fbb3adf0cc06317e)

4 years agomgr/volumes: Optionally authorize existing auth-ids
Kotresh HR [Tue, 15 Dec 2020 12:12:25 +0000 (17:42 +0530)]
mgr/volumes: Optionally authorize existing auth-ids

Optionally allow authorizing auth-ids not created by mgr plugin
via the option 'allow_existing_id'. This can help existing deployers
of manila to disallow/allow authorization of pre-created auth IDs
via a manila driver config that sets 'allow_existing_id' to False/True.

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 713270d1869e2370b674b1a4bc6f6a37023a5917)

4 years agomgr/volumes: Preserve existing caps while authorize/deauthorize auth-id
Kotresh HR [Tue, 15 Dec 2020 12:01:54 +0000 (17:31 +0530)]
mgr/volumes: Preserve existing caps while authorize/deauthorize auth-id

Authorize/Deauthorize used to overwrite the caps of auth-id which would
end up deleting existing caps. This patch fixes the same by retaining
the existing caps by appending or deleting the new caps as needed.

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 2dece3be081fe572455d6b634e38a663d1643dc8)

4 years agomgr/volumes: Disallow authorize existing auth_id
Kotresh HR [Mon, 4 Jan 2021 13:04:54 +0000 (18:34 +0530)]
mgr/volumes: Disallow authorize existing auth_id

This patch disallow the mgr plugin to authorize the auth_id
which is not created via mgr plugin. Those auth_ids could be
created by other means for other use cases which should not be modified
via mgr plugin.

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit c02890404e47a5a95c5cc16b699306045d586c7f)

4 years agomgr/volumes: Add subvolume authorized_list command
Kotresh HR [Mon, 23 Nov 2020 12:19:04 +0000 (17:49 +0530)]
mgr/volumes: Add subvolume authorized_list command

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 1abec3d0ca8c4fa405cdbf56c55f44f37aca9ca8)

4 years agomgr/volumes: Add tenant_id option to subvolume authorize
Kotresh HR [Mon, 23 Nov 2020 06:08:27 +0000 (11:38 +0530)]
mgr/volumes: Add tenant_id option to subvolume authorize

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 39acfcc91c1b6a85f6fa96a5e894d81a7225f9dc)

4 years agomgr/volumes: Persist auth and subvolume metadata
Kotresh HR [Wed, 18 Nov 2020 10:13:25 +0000 (15:43 +0530)]
mgr/volumes: Persist auth and subvolume metadata

1. Subvolume create and delete operations create and delete subvolume
   metadata file respectively.
2. Subvolume authorize creates the auth meta file and persists the
   required metadata on subvolume metadata file and auth metdata file
   on disk. Subvolume deauthorize clears the required metadata on
   both metadata files.

Fixes: https://tracker.ceph.com/issues/44931
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 04d876ced756ca86580bdff4ac116333dbb102e5)

4 years agomgr/volumes: Filter inherited snapshots while listing snapshots
Kotresh HR [Fri, 18 Dec 2020 11:33:14 +0000 (17:03 +0530)]
mgr/volumes: Filter inherited snapshots while listing snapshots

Filter inherited snapshots resulted as part of a snapshot
at ancestor level while listing snapshots of a subvolume
and subvolumegroup

Also, fail the snapshot info on inherited snapshot.

Fixes: https://tracker.ceph.com/issues/48501
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit bd49b6409be79dba4a119c809983a05687242732)

Conflicts:
    qa/tasks/cephfs/test_volumes.py: Few of the tests are re-organized,
      hence the conflicts. Resolved the same.

4 years agodoc/mgr/volumes: Document authorize/deauthorize cli commands
Kotresh HR [Fri, 11 Sep 2020 04:26:22 +0000 (09:56 +0530)]
doc/mgr/volumes: Document authorize/deauthorize cli commands

Fixes: https://tracker.ceph.com/issues/40401
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 1426c23ab50a4d64e1c4f1f61185117a270c8ec7)

4 years agoqa/tasks/cephfs: test `fs subvolume authorize/deauthorize`
Ramana Raja [Thu, 11 Jul 2019 11:14:35 +0000 (16:44 +0530)]
qa/tasks/cephfs: test `fs subvolume authorize/deauthorize`

Fixes: https://tracker.ceph.com/issues/40401
Signed-off-by: Ramana Raja <rraja@redhat.com>
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 7c98dc1ad35a2244cbf949be9782a3412886b305)

Conflicts:
    qa/tasks/cephfs/test_volumes.py: Few of the tests are re-organized
        and CLIENTS_REQUIRED should be 2 for these tests which was 1
        for existing tests. Resolved the same.

4 years agomgr/volumes: Allow/deny auth IDs access to FS subvolumes
Ramana Raja [Fri, 5 Jul 2019 06:41:52 +0000 (12:11 +0530)]
mgr/volumes: Allow/deny auth IDs access to FS subvolumes

... via the `ceph fs subvolume authorize/deauthorize` command.

Fixes: https://tracker.ceph.com/issues/40401
Signed-off-by: Ramana Raja <rraja@redhat.com>
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit 6c3b7547fbf3d987e715e9502359acd873374831)

Conflicts:
    src/pybind/mgr/volumes/fs/volume.py: subvolume pin is not available
in nautilus.

4 years agomon/MonCap: allow 'profile mgr' to create/update/del auth IDs
Ramana Raja [Wed, 10 Jul 2019 19:03:20 +0000 (00:33 +0530)]
mon/MonCap: allow 'profile mgr' to create/update/del auth IDs

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit d3aea5579778a73dc2418e7b137dc21717944c3e)

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 agoceph-volume: mock VGs with string properties in tests 39270/head
Jan Fajerski [Tue, 22 Dec 2020 14:44:10 +0000 (15:44 +0100)]
ceph-volume: mock VGs with string properties in tests

The real things uses string properties as well.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit c4bbb1b999b08bd84d793537f2602fc8e4c93bae)

4 years agoceph-volume: add some flexibility to bytes_to_extents
Jan Fajerski [Tue, 22 Dec 2020 13:29:02 +0000 (14:29 +0100)]
ceph-volume: add some flexibility to bytes_to_extents

For batch we want to report the projected sizes before creating any LVM
structures, we use the device size for that. This means we pass this
projected size to lvm/api.py::create_lv. This could result in situations
where we request more extents for the new LV than are actually
available, as LVM takes up some available space on the block device
(plus alignment).
We fix this by adjusting the extent count downwards if its less than 1% off the
requested value.

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

4 years agoceph-volume: Fix usage of is_lv 39221/head
Michał Nasiadka [Tue, 12 Jan 2021 14:21:51 +0000 (15:21 +0100)]
ceph-volume: Fix usage of is_lv

In commit e09d3cd1a5bcfb42972b6958fb7e6c42a645549d is_lv method was removed from
api/lvm.py. This change fixes util/disk.py to not use this missing method.

Fixes: https://tracker.ceph.com/issues/48784
Signed-off-by: Michał Nasiadka <mnasiadka@gmail.com>
(cherry picked from commit 5050a88e7a85bb1aa6cd5473c9083a186e2264d5)

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>