]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yuri Weinstein [Thu, 18 Mar 2021 16:32:25 +0000 (09:32 -0700)]
Merge pull request #39746 from pponnuvel/wip-49538-octopus
octopus: rgw: catch non int exception
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Yuri Weinstein [Thu, 18 Mar 2021 16:31:27 +0000 (09:31 -0700)]
Merge pull request #39611 from smithfarm/wip-49380-octopus
octopus: rgw: multisite: fix single-part-MPU object etag misidentify problem
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Thu, 18 Mar 2021 16:29:53 +0000 (09:29 -0700)]
Merge pull request #39935 from gerald-yang/octopus-49641
octopus: common: Fix assertion when disabling and re-enabling clog_to_monitors
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yuri Weinstein [Thu, 18 Mar 2021 16:29:11 +0000 (09:29 -0700)]
Merge pull request #39899 from singuliere/wip-49039-octopus
octopus: blk/kernel: fix io_uring got (4) Interrupted system call
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yuri Weinstein [Thu, 18 Mar 2021 16:28:48 +0000 (09:28 -0700)]
Merge pull request #39717 from sebastian-philipp/octopus-backport-39385
octopus: cephadm: allow redeploy of daemons in error state if container running
Reviewed-by: Adam King adking@redhat.com
Yuri Weinstein [Thu, 18 Mar 2021 16:26:56 +0000 (09:26 -0700)]
Merge pull request #39887 from tchaikov/octopus-49533
octopus: mgr: relax osd ok-to-stop condition on degraded pgs
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
Yuri Weinstein [Thu, 18 Mar 2021 16:26:09 +0000 (09:26 -0700)]
Merge pull request #39804 from sebastian-philipp/octopus-backport-39770
octopus: cephadm: add docker.service dependency in systemd units
Reviewed-by: Sage Weil <sage@redhat.com>
Yuri Weinstein [Thu, 18 Mar 2021 16:23:59 +0000 (09:23 -0700)]
Merge pull request #39578 from neha-ojha/wip-49320-octopus
octopus: qa/*/thrash_cache_writeback_proxy_none.yaml: disable writeback overlay tests
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Thu, 18 Mar 2021 16:18:19 +0000 (09:18 -0700)]
Merge pull request #39343 from smithfarm/wip-48904-octopus
octopus: common/ipaddr: Allow binding on lo
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Yuri Weinstein [Thu, 18 Mar 2021 16:16:07 +0000 (09:16 -0700)]
Merge pull request #39341 from smithfarm/wip-48898-octopus
octopus: mgr: fix deadlock in ActivePyModules::get_osdmap()
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jenkins Build Slave User [Wed, 17 Mar 2021 17:02:39 +0000 (17:02 +0000)]
15.2.10
Yuri Weinstein [Tue, 16 Mar 2021 17:26:40 +0000 (10:26 -0700)]
Merge pull request #40155 from rhcs-dashboard/wip-49272-octopus
octopus: mgr/dashboard: delete EOF when reading passwords from file
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Alfonso Martínez [Tue, 9 Feb 2021 10:17:52 +0000 (11:17 +0100)]
mgr/dashboard: delete EOF when reading passwords from file
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit
caeadf1397db00c6b7ba218b1910508099802e39 )
Yuri Weinstein [Mon, 15 Mar 2021 16:36:57 +0000 (09:36 -0700)]
Merge pull request #39701 from ifed01/wip-ifed-fix-huge-bluefs-oct
octopus: os/bluestore: fix huge reads/writes at BlueFS
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Yuri Weinstein [Fri, 12 Mar 2021 23:24:32 +0000 (15:24 -0800)]
Merge pull request #40074 from ideepika/wip-fix-ignorelist
octopus: qa/suites/upgrade: s/whitelist/ignorelist for octopus specific tests
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Yuri Weinstein [Fri, 12 Mar 2021 23:12:55 +0000 (15:12 -0800)]
Merge pull request #39754 from ifed01/wip-ifed-bluefs-zero-read-retry-octa
octopus: os/bluestore: Add option to check BlueFS reads
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Yuri Weinstein [Fri, 12 Mar 2021 17:09:55 +0000 (09:09 -0800)]
Merge pull request #39872 from rhcs-dashboard/wip-48190-octopus
octopus: mgr/dashboard: add ssl verify option for prometheus and alert manager
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Yuri Weinstein [Fri, 12 Mar 2021 17:09:14 +0000 (09:09 -0800)]
Merge pull request #39868 from rhcs-dashboard/wip-49083-octopus
octopus: mgr/dashboard: Fix missing root path of each session for CephFS
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Yuri Weinstein [Fri, 12 Mar 2021 17:07:27 +0000 (09:07 -0800)]
Merge pull request #39854 from rhcs-dashboard/wip-49324-octopus
octopus: mgr/dashboard: fix MTU Mismatch alert
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Yuri Weinstein [Fri, 12 Mar 2021 17:05:59 +0000 (09:05 -0800)]
Merge pull request #39852 from rhcs-dashboard/wip-49599-octopus
octopus: mgr/dashboard: report mgr fsid
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Yuri Weinstein [Fri, 12 Mar 2021 17:05:07 +0000 (09:05 -0800)]
Merge pull request #39436 from rhcs-dashboard/wip-48654-octopus
octopus: mgr/dashboard: CLI commands: read passwords from file
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Deepika Upadhyay [Fri, 12 Mar 2021 16:21:32 +0000 (21:51 +0530)]
qa/suites/upgrade: s/whitelist/ignorelist for octopus only
some upgrade tests are only present for octopus and not for master and
hence we missed updating the ignorelist terminology for those cases.
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
Yuri Weinstein [Thu, 11 Mar 2021 16:48:54 +0000 (08:48 -0800)]
Merge pull request #39885 from smithfarm/wip-49031-octopus
octopus: cmake: boost>=1.74 adds BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT to radosgw
Reviewed-by: Kefu Chai <kchai@redhat.com>
Yuri Weinstein [Thu, 11 Mar 2021 16:48:24 +0000 (08:48 -0800)]
Merge pull request #39867 from trociny/wip-49452-octopus
octopus: rbd-mirror: reset update_status_task pointer in timer thread
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Thu, 11 Mar 2021 16:47:18 +0000 (08:47 -0800)]
Merge pull request #39866 from trociny/wip-49454-octopus
octopus: librbd: use on-disk image name when storing mirror snapshot state
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Thu, 11 Mar 2021 16:46:52 +0000 (08:46 -0800)]
Merge pull request #39864 from trociny/wip-49399-octopus
octopus: librbd: allow disabling journaling for snapshot based mirroring image
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Thu, 11 Mar 2021 16:46:24 +0000 (08:46 -0800)]
Merge pull request #39863 from trociny/wip-49335-octopus
octopus: mgr/rbd_support: mirror snapshot schedule should skip non-primary images
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Thu, 11 Mar 2021 16:45:55 +0000 (08:45 -0800)]
Merge pull request #39862 from trociny/wip-49263-octopus
octopus: librbd: don't log error if get mirror status fails due to mirroring disabled
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Yuri Weinstein [Thu, 11 Mar 2021 15:59:45 +0000 (07:59 -0800)]
Merge pull request #39704 from smithfarm/wip-49397-octopus
octopus: qa/suites/rados/dashboard: whitelist TELEMETRY_CHANGED
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Xuehan Xu [Sun, 7 Feb 2021 04:40:36 +0000 (12:40 +0800)]
mgr: relax osd ok-to-stop condition on degraded pgs
Right now, the "ok-to-stop" condition is relatively rigorous, it allows
stopping an osd only if no PG on it is non-active or degraded. But there
are situations in which an OSD is part of a degraded pg and the pg still
still have > min_size complete replicas after the OSD is stopped.
In
9750061d5d4236aaba156d60790e0b8bcd7cfb64 , we changed from considering
just acting to using avail_no_missing (OSDs that have no missing objects).
When the projected pg_acting is constructed this way, we can safely compare
to min_size... even for a PG marked degraded.
Fixes: https://tracker.ceph.com/issues/49392
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
(cherry picked from commit
2f28fc58eb63e20c2a869f5407516cf8044dbc41 )
Kefu Chai [Tue, 9 Mar 2021 09:20:10 +0000 (17:20 +0800)]
Merge pull request #39890 from tchaikov/octopus-github-milestone
octopus: .github: add workflow for adding label and milestone
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Kefu Chai [Tue, 9 Mar 2021 04:16:26 +0000 (12:16 +0800)]
.github/workflows: use a released sha1
otherwise the action cannot be found
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
ae8ea10f415ec170be4a7be48567dbac83221dc0 )
Kefu Chai [Mon, 8 Mar 2021 18:46:46 +0000 (02:46 +0800)]
.github/workflows: rename labeler.yml to pr-triage.yml
to reflect the change in the actions in it.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
453cd5fd602c54809dc091f0c3a498f903366c8f )
Kefu Chai [Mon, 8 Mar 2021 18:26:34 +0000 (02:26 +0800)]
.github/workflows: use @{sha1} for actions
more secure this way. see also https://julienrenaux.fr/2019/12/20/github-actions-security-risk/
point the sha1 to
* labeler@v3
* milestone@main HEAD
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
79e8038046092053b0c0b120e0d7ca07a33a1c00 )
Kefu Chai [Sun, 7 Mar 2021 11:21:25 +0000 (19:21 +0800)]
.github/workflows: move milestone.yml into labeler.yml
no need to have two actions triggered by the same event.
we could backport this labeler.yml to LTS branches.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
98b90189791d3f4d2524fd829edb616d0ffd94f7 )
Kefu Chai [Sat, 6 Mar 2021 16:32:42 +0000 (00:32 +0800)]
.github: correct the regex in mileston workflow
also use pull_request_target event so the action is run in the
context of the base of the pull request. this helps us to overcome
the "Resource not accessible by integration" issue where the action
is run in the context of the pull request.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
c5f6d15e36fdd019196a1520525382f73f276f14 )
Kefu Chai [Sat, 6 Mar 2021 13:18:13 +0000 (21:18 +0800)]
.github: add workflow for adding milestone
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
1657a44750442ff2582d601fb028aa89e3a95999 )
Ernesto Puerta [Wed, 18 Nov 2020 12:00:00 +0000 (13:00 +0100)]
github/labeler: disable sync-labels
Yaml syntax cleaned too.
Fixes: https://github.com/ceph/ceph/pull/38107#issuecomment-729300615
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit
59702b6198c59b84f1695e37256ae351b331b604 )
Ernesto Puerta [Thu, 12 Nov 2020 17:07:44 +0000 (18:07 +0100)]
github: autolabel PRs
... starting with dashboard ones.
Requires https://github.com/marketplace/actions/labeler
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit
298bc67f7b8d1c64520b543f4749b29f7be67379 )
Patrick Donnelly [Mon, 8 Mar 2021 19:40:04 +0000 (11:40 -0800)]
Merge PR #39906 into octopus
* refs/pull/39906/head:
mgr/volumes: Bump up AuthMetadataManager's version
pybind/ceph_volume_client: Bump up the version and compat_version to 6
pybind/ceph_volume_client: Fix auth-metadata file recovery
pybind/ceph_volume_client: Update the 'volumes' key to 'subvolumes' in auth metadata file
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Ernesto Puerta [Mon, 8 Mar 2021 16:19:37 +0000 (17:19 +0100)]
Merge pull request #39627 from rhcs-dashboard/wip-49421-octopus
octopus: mgr/dashboard: set security headers
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Kotresh HR [Fri, 19 Feb 2021 11:27:23 +0000 (16:57 +0530)]
mgr/volumes: Bump up AuthMetadataManager's version
With ceph_volume_client and mgr-volumes co-existing
for sometime, the version of both needs to be same.
The ceph_volume_client version <=5 can't decode
'subvolumes' key in auth-metadata file. Hence to
handle version in-compatibility, the version of
ceph_volume_client is bumped up to 6 and the same
needs to be done in mgr-volume's AuthMetadataManager
Fixes: https://tracker.ceph.com/issues/49374
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit
818c7781ff0467c6521bf2b3002b094fb8a71257 )
Kotresh HR [Fri, 19 Feb 2021 11:12:33 +0000 (16:42 +0530)]
pybind/ceph_volume_client: Bump up the version and compat_version to 6
With 'volumes' key updated to 'subvolumes', the version of
ceph_volume_client <= 5 can't decode auth-metadata file. Hence
bumping up ceph_volume_client version and compat_version to 6.
Fixes: https://tracker.ceph.com/issues/49294
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit
ce55a0bcdc5db139fc8f39665c372f1b7cc274a7 )
Kotresh HR [Fri, 19 Feb 2021 11:08:31 +0000 (16:38 +0530)]
pybind/ceph_volume_client: Fix auth-metadata file recovery
Fixes: https://tracker.ceph.com/issues/49294
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit
99cdfdad59175a19bc06859e69301ca0478a2db4 )
Kotresh HR [Mon, 15 Feb 2021 16:26:51 +0000 (21:56 +0530)]
pybind/ceph_volume_client: Update the 'volumes' key to 'subvolumes' in auth metadata file
The older auth metadata files before nautilus release stores
the authorized subvolumes using the 'volumes' key. As the
notion of 'subvolumes' brought in by mgr/volumes, it makes
sense to use 'subvolumes' key. This patch would be tranparently
update 'volumes' key 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/49294
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit
dee03c8d5c0b86cf51865090bec203419a3008a9 )
Gerald Yang [Wed, 3 Mar 2021 04:37:15 +0000 (04:37 +0000)]
common: reset last_log_sent when clog_to_monitors is updated
When clog_to_monitors is disabled, "last_log" still keeps increasing by
get_next_seq() if OSD writes info to clog
But "last_log_sent" doesn't increase, if we disable clog_to_monitors for
a bit longer and then re-enabling it, the num_unsent could be bigger than
log_queue_size(), it will trigger an assertion in _get_mon_log_message
We need to reset last_log_sent to last_log before updating clog_to_monitors
Signed-off-by: Gerald Yang <gerald.yang@canonical.com>
Gerald Yang [Thu, 21 Jan 2021 08:16:48 +0000 (08:16 +0000)]
logclient: move LogChannel::set_log_to_monitors(bool v) to LogClient.cc
Signed-off-by: Gerald Yang <gerald.yang@canonical.com>
Yanhu Cao [Thu, 14 Jan 2021 14:55:24 +0000 (22:55 +0800)]
blk/kernel: fix io_uring got (4) Interrupted system call
Fixes: https://tracker.ceph.com/issues/48872
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
(cherry picked from commit
f4ce8571b43010d95b8f0e23d2701c38ae29a3d1 )
Ramana Raja [Sat, 6 Mar 2021 16:51:31 +0000 (11:51 -0500)]
Merge pull request #39390 from kotreshhr/wip-mgr-backports-octopus
octopus: mgr/volume: subvolume auth_id management and few bug fixes
Reviewed-by: Ramana Raja <rraja@redhat.com>
Casey Bodley [Mon, 25 Jan 2021 18:08:35 +0000 (13:08 -0500)]
cmake: boost>=1.74 adds BOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT to radosgw
Fixes: https://tracker.ceph.com/issues/48988
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
722b4303b1986ce93744af5baeecde7681d8e347 )
Jean "henyxia" Wasilewski [Mon, 12 Oct 2020 15:57:00 +0000 (17:57 +0200)]
mgr/dashboard: add ssl verify option for prometheus and alert manager
Fixes: https://tracker.ceph.com/issues/47863
Signed-off-by: Jean "henyxia" Wasilewski <henyxia@revs0.com>
(cherry picked from commit
0f230ea49b93c85a1db47cc665951c79bc8b2225 )
Yongseok Oh [Fri, 7 Aug 2020 11:20:17 +0000 (20:20 +0900)]
mgr/dashboard: Fix missing root path of each session for CephFS
Signed-off-by: Yongseok Oh <yongseok.oh@linecorp.com>
(cherry picked from commit
7c3cadd09645575898a85d2b50b95808b334de69 )
Mykola Golub [Mon, 22 Feb 2021 16:22:54 +0000 (16:22 +0000)]
rbd-mirror: reset update_status_task pointer in timer thread
To avoid a time window when m_update_status_task is invalid. If
during this time the cancel_update_mirror_image_replay_status is
called, it may cancel some other's ImageReplayer task, if it
happened to add the task with the same address.
Fixes: https://tracker.ceph.com/issues/49418
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
3a289d43f6ab010bcadb80888fb73763f4f55ed0 )
Mykola Golub [Tue, 23 Feb 2021 04:46:00 +0000 (04:46 +0000)]
test/librbd: TestLibRBD.RenameViaLockOwner doesn't require journaling now
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
3042eec0d8aa7e28a8b0452c11a6dc6528fe4992 )
Mykola Golub [Mon, 22 Feb 2021 12:54:43 +0000 (12:54 +0000)]
librbd: use on-disk image name when storing mirror snapshot state
Fixes: https://tracker.ceph.com/issues/49115
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
813728ae2036231a269be86bcb3dc48951a20f21 )
Mykola Golub [Mon, 22 Feb 2021 12:53:38 +0000 (12:53 +0000)]
test/librbd: extend TestLibRBD.RenameViaLockOwner
To cover the following case:
- Client A has image opened but does not owns the lock.
- Client B renames the image (client A is not aware of it).
- Client A becomes the lock owner.
- Client B requests rename, which is proxied to the client A.
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
2d2e04e86bcc666e3abaceeeef7e1598dcc9fb94 )
Ernesto Puerta [Fri, 5 Mar 2021 16:59:05 +0000 (17:59 +0100)]
Merge pull request #39836 from rhcs-dashboard/wip-49594-octopus
octopus: mgr/dashboard: fix issues related with PyJWT versions >=2.0.0
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Mykola Golub [Sun, 14 Feb 2021 11:50:32 +0000 (11:50 +0000)]
librbd: make rename be always executed by lock owner
Fixes: https://tracker.ceph.com/issues/49115
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
2a9fac2cc4b10af04c52e12f34932e6d2d91441f )
Conflicts:
src/librbd/Operations.cc
(request_id (async notification) is not used for "rename" op in octopus
-- added in pasific for "serialize maintenance operations by type")
Mykola Golub [Sun, 14 Feb 2021 11:48:35 +0000 (11:48 +0000)]
librbd: always check on-disk image name when renaming
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
950a7b5cfc66bdfea35304e6cb06e74c92dcaf5c )
Mykola Golub [Fri, 12 Feb 2021 17:18:07 +0000 (17:18 +0000)]
librbd: allow disabling journaling for snapshot based mirroring image
Fixes: https://tracker.ceph.com/issues/49282
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
2a5885fedaaf2ddd3c7005162064c9981a499240 )
Mykola Golub [Wed, 17 Feb 2021 14:15:57 +0000 (14:15 +0000)]
mgr/rbd_support: mirror snapshot schedule should skip non-primary images
And while here, suppress error messages for ENOENT errors.
Fixes: https://tracker.ceph.com/issues/49284
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
d39eb283c5cee12c98afb2667d63112ef9409630 )
Mykola Golub [Thu, 11 Feb 2021 09:24:49 +0000 (09:24 +0000)]
librbd: don't log error if get mirror status fails due to mirroring disabled
Fixes: https://tracker.ceph.com/issues/49245
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit
1d303e6faa51ab71e5b5b909053fd6120c981081 )
Aashish Sharma [Mon, 15 Feb 2021 04:43:39 +0000 (10:13 +0530)]
mgr/dashboard:fix MTU Mismatch alert
This PR intends to fix the expression used for MTU Mismatch alert in prometheus
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit
8527489b9148a8845d6fccca6461b23ed7989172 )
Ernesto Puerta [Fri, 12 Feb 2021 18:46:20 +0000 (19:46 +0100)]
mgr/dashboard: report mgr fsid
Add mgr fsid from the ceph mgr API.
Fixes: https://tracker.ceph.com/issues/49283
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit
206f9f2ea180b6b06158d5d74e1ab55c21044502 )
Conflicts:
src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/configuration.e2e-spec.ts
- Adopting the master branch changes.
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 )
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 )
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
octopus
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 )
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.
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 )
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.
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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.
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 )
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 test cases are
re-organized, hence the conflicts. Resolved the same.
Signed-off-by: Kotresh HR <khiremat@redhat.com>
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 )
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 )
Ernesto Puerta [Thu, 4 Mar 2021 19:55:46 +0000 (20:55 +0100)]
Merge pull request #39512 from rhcs-dashboard/wip-48862-octopus
octopus: mgr/dashboard: Monitoring alert badge includes suppressed alerts
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Alfonso Martínez [Wed, 3 Mar 2021 14:36:06 +0000 (15:36 +0100)]
mgr/dashboard: fix issues related with PyJWT versions >=2.0.0
Fixes: https://tracker.ceph.com/issues/49574
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
(cherry picked from commit
4b96bb51e8f133badd7bc651bcb4dcd755b43d75 )
Conflicts:
src/pybind/mgr/dashboard/services/auth.py
- Addressed conflicts.
Yuri Weinstein [Thu, 4 Mar 2021 16:09:15 +0000 (08:09 -0800)]
Merge pull request #39715 from sebastian-philipp/octopus-backport-39069
octopus: cephadm: fix 'inspect' and 'pull'
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Yuri Weinstein [Thu, 4 Mar 2021 16:07:31 +0000 (08:07 -0800)]
Merge pull request #39633 from donggyupark/fix-cephadm-openports
octopus: cephadm: Delete the unnecessary error line in open_ports
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Yuri Weinstein [Thu, 4 Mar 2021 16:06:10 +0000 (08:06 -0800)]
Merge pull request #39507 from k0ste/wip-49316-octopus
octopus: mgr/dashboard: prometheus alerting: add some leeway for package drops and errors
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Yuri Weinstein [Thu, 4 Mar 2021 16:04:23 +0000 (08:04 -0800)]
Merge pull request #39325 from ifed01/wip-ifed-add-rocksdb-annex
octopus: os/bluestore: introduce bluestore_rocksdb_options_annex config parame…
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Ernesto Puerta [Thu, 4 Mar 2021 12:59:01 +0000 (13:59 +0100)]
Merge pull request #39645 from rhcs-dashboard/wip-49388-octopus
octopus: mgr/dashboard: fix tooltip for Provisioned/Total Provisioned fields
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Ernesto Puerta [Thu, 4 Mar 2021 12:55:53 +0000 (13:55 +0100)]
Merge pull request #39527 from rhcs-dashboard/wip-49328-octopus
octopus: mgr/dashboard: avoid using document.write()
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Ernesto Puerta [Thu, 4 Mar 2021 12:55:13 +0000 (13:55 +0100)]
Merge pull request #39545 from aaSharma14/wip-48734-octopus
octopus: mgr/dashboard:minimize console log traces of Ceph backend API tests
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Yuri Weinstein [Wed, 3 Mar 2021 22:13:28 +0000 (14:13 -0800)]
Merge pull request #39819 from yuriw/wip-yuriw-client-upgrade-octopus-pacific-octopus
qa/tests: fixed branch entry
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yuri Weinstein [Wed, 3 Mar 2021 17:51:01 +0000 (09:51 -0800)]
qa/tests: fixed branch entry
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Sage Weil [Mon, 1 Mar 2021 22:42:15 +0000 (17:42 -0500)]
cephadm: add docker.service dependency in systemd units
This ensures that (1) we start after the docker daemon is running, and
(2) a restart of docker will also restart the ceph services.
Fixes: https://tracker.ceph.com/issues/46745
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit
0b5bc8fc2e11f1ec84be96e7a2bdbb884e1d0de3 )
Conflicts:
src/cephadm/cephadm
src/cephadm/tests/test_cephadm.py
Jan Fajerski [Wed, 3 Mar 2021 09:19:33 +0000 (10:19 +0100)]
Merge pull request #39220 from jan--f/wip-49093-octopus
Merge PR #39220 into octopus
* refs/pull/39220/head:
ceph-volume: Fix usage of is_lv
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
Reviewed-by: Dimitri Savineau <savineau.dimitri@gmail.com>
Jan Fajerski [Wed, 3 Mar 2021 09:11:06 +0000 (10:11 +0100)]
Merge pull request #39523 from jan--f/wip-49332-octopus
Merge PR #39523 into octopus
* refs/pull/39523/head:
ceph-volume: pass --filter-for-batch from drive-group subcommand
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Jan Fajerski [Wed, 3 Mar 2021 09:10:31 +0000 (10:10 +0100)]
Merge pull request #39469 from jan--f/wip-49289-octopus
Merge PR #39469 into octopus
* refs/pull/39469/head:
Update batch.py
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Yuri Weinstein [Tue, 2 Mar 2021 20:11:34 +0000 (12:11 -0800)]
Merge pull request #39662 from pponnuvel/wip-49441-octopus
octopus: rgw: radosgw-admin: clarify error when email address already in use
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Tue, 2 Mar 2021 20:10:47 +0000 (12:10 -0800)]
Merge pull request #39577 from dillaman/wip-49252-octopus
octopus: librbd: correct incremental deep-copy object-map inconsistencies
Reviewed-by: Mykola Golub <mgolub@mirantis.com>