]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agoosd: drop includes of messages that are not longer used in OSD.cc 50056/head
Radosław Zarzyński [Thu, 9 Feb 2023 15:38:50 +0000 (16:38 +0100)]
osd: drop includes of messages that are not longer used in OSD.cc

Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
2 years agoMerge pull request #47849 from torchiaf/fix/37327
Nizamudeen A [Fri, 16 Sep 2022 15:19:48 +0000 (20:49 +0530)]
Merge pull request #47849 from torchiaf/fix/37327

mgr/dashboard: Add details to the modal which displays the `safe-to-d…

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2 years agoMerge pull request #47958 from rhcs-dashboard/edit-host-labels-fix
Nizamudeen A [Fri, 16 Sep 2022 15:17:50 +0000 (20:47 +0530)]
Merge pull request #47958 from rhcs-dashboard/edit-host-labels-fix

mgr/dashboard: fix Expected to find element: `cd-modal .badge but never found it

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
2 years agoMerge pull request #45148 from guits/revert-ceph-crash-changes
Adam King [Fri, 16 Sep 2022 14:27:10 +0000 (10:27 -0400)]
Merge pull request #45148 from guits/revert-ceph-crash-changes

Revert "src/ceph-crash.in: remove unused frame in handler()"

Reviewed-by: Teoman ONAY <tonay@redhat.com>
2 years agoMerge pull request #47965 from cbodley/wip-rgw-drain-cb-capture-error
Casey Bodley [Fri, 16 Sep 2022 14:02:14 +0000 (10:02 -0400)]
Merge pull request #47965 from cbodley/wip-rgw-drain-cb-capture-error

Revert "rgw: add coroutine drain callback capture_error()"

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
2 years agomgr/dashboard: Add details to the modal which displays the `safe-to-destroy` result 47849/head
Francesco Torchia [Fri, 26 Aug 2022 15:39:43 +0000 (17:39 +0200)]
mgr/dashboard: Add details to the modal which displays the `safe-to-destroy` result

- Add warnings type information in the case of the OSDs are not safe to destroy
- Add info type information in the case of the OSDs are safe to destroy

Fixes: https://tracker.ceph.com/issues/37327
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2 years agoMerge pull request #47878 from xxhdx1985126/wip-pin_set-cpu
Yingxin [Fri, 16 Sep 2022 01:41:20 +0000 (09:41 +0800)]
Merge pull request #47878 from xxhdx1985126/wip-pin_set-cpu

crimson/os/seastore/btree: reduce the avg number of queries of pin sets' parent/child lookup

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #47090 from lxbsz/wip-56553
Venky Shankar [Thu, 15 Sep 2022 16:15:00 +0000 (21:45 +0530)]
Merge pull request #47090 from lxbsz/wip-56553

client: do not uninline data for read

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
2 years agoMerge pull request #48037 from guits/fix_57085
Guillaume Abrioux [Thu, 15 Sep 2022 14:58:14 +0000 (16:58 +0200)]
Merge pull request #48037 from guits/fix_57085

ceph-volume: fix inventory with device arg

2 years agoMerge pull request #48117 from guits/fix-cv-func-test-filestore-create
Guillaume Abrioux [Thu, 15 Sep 2022 14:43:11 +0000 (16:43 +0200)]
Merge pull request #48117 from guits/fix-cv-func-test-filestore-create

ceph-volume/tests: fix lvm centos8-filestore-create job

2 years agoMerge pull request #48054 from yuvalif/wip-yuval-fix-56572
Casey Bodley [Thu, 15 Sep 2022 14:04:39 +0000 (10:04 -0400)]
Merge pull request #48054 from yuvalif/wip-yuval-fix-56572

tests: remove pubsub tests from multisite

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kalpesh Pandya <kapandya@redhat.com>
2 years agoMerge pull request #47516 from nmshelke/fix-56632
Venky Shankar [Thu, 15 Sep 2022 09:25:26 +0000 (14:55 +0530)]
Merge pull request #47516 from nmshelke/fix-56632

qa: ignore disk quota exceeded failure in test

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoceph-volume/tests: fix lvm centos8-filestore-create job 48117/head
Guillaume Abrioux [Thu, 15 Sep 2022 09:07:33 +0000 (11:07 +0200)]
ceph-volume/tests: fix lvm centos8-filestore-create job

/dev/vdc1 can't be zapped if it still holds an lv mapper.
let's use --destroy in the lvm zap command in order to remove
the held lv mapper before zapping the partition and recreate the partition after.

Fixes: https://tracker.ceph.com/issues/57553
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agocrimson/os/seastore/btree: reduce the avg number of queries of pin sets' parent/child... 47878/head
Xuehan Xu [Tue, 30 Aug 2022 10:54:29 +0000 (18:54 +0800)]
crimson/os/seastore/btree: reduce the avg number of queries of pin sets' parent/child lookup

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
2 years agoMerge pull request #47966 from cyx1231st/wip-seastore-move-gcprocess
Yingxin [Thu, 15 Sep 2022 06:02:41 +0000 (14:02 +0800)]
Merge pull request #47966 from cyx1231st/wip-seastore-move-gcprocess

crimson/os/seastore: move AsyncCleaner::GCProcess to EPM::BackgroundProcess

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
2 years agoMerge pull request #48105 from athanatos/sjust/wip-57530
Yingxin [Thu, 15 Sep 2022 01:26:18 +0000 (09:26 +0800)]
Merge pull request #48105 from athanatos/sjust/wip-57530

crimson/.../node.cc: fix Node initialization argument passing

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/.../node.cc: fix Node initialization argument passing 48105/head
Samuel Just [Wed, 14 Sep 2022 23:32:42 +0000 (16:32 -0700)]
crimson/.../node.cc: fix Node initialization argument passing

Argument evaluation order is unspecified, clang seems to be choosing
to execute the std::unique_ptr move constructor before the call to
get(), causing the first argument to be passed as null.

https://tracker.ceph.com/issues/57530
Signed-off-by: Samuel Just <sjust@redhat.com>
2 years agoMerge pull request #48002 from nSedrickm/accessibility-documentation
Laura Flores [Wed, 14 Sep 2022 21:43:34 +0000 (16:43 -0500)]
Merge pull request #48002 from nSedrickm/accessibility-documentation

doc/dashboard: update documentation with accessibility development pr…

2 years agoMerge pull request #46723 from nSedrickm/dashboard-health-accessibility-update
Pere Diaz Bou [Wed, 14 Sep 2022 20:02:58 +0000 (22:02 +0200)]
Merge pull request #46723 from nSedrickm/dashboard-health-accessibility-update

mgr/dashboard: Improve accessibility for dashboard health page

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #47668 from NitzanMordhai/wip-nitzan-test-rados-watch-notify-callbacks
Neha Ojha [Wed, 14 Sep 2022 19:11:39 +0000 (12:11 -0700)]
Merge pull request #47668 from NitzanMordhai/wip-nitzan-test-rados-watch-notify-callbacks

pybind/rados: notify callback reconnect

Reviewed-by: Laura Flores <lflores@redhat.com>
2 years agoMerge pull request #47937 from adk3798/tp-add-rm-settings-docs
Adam King [Wed, 14 Sep 2022 17:36:45 +0000 (13:36 -0400)]
Merge pull request #47937 from adk3798/tp-add-rm-settings-docs

doc/cephadm: fix tuned-profile add/rm-setting syntax example

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agoMerge pull request #47709 from zalsader/add-daos
Casey Bodley [Wed, 14 Sep 2022 17:12:03 +0000 (13:12 -0400)]
Merge pull request #47709 from zalsader/add-daos

rgw: add DAOS SAL implementation

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #48066 from yuvalif/wip-yuval-fix-57518
Yuval Lifshitz [Wed, 14 Sep 2022 15:00:37 +0000 (18:00 +0300)]
Merge pull request #48066 from yuvalif/wip-yuval-fix-57518

rgw/lua: create lua background manager before the frontends

Reviwed-by: dang, cbodley, mattbenjamin
2 years agoRevert "rgw: add coroutine drain callback capture_error()" 47965/head
Casey Bodley [Tue, 6 Sep 2022 11:56:21 +0000 (07:56 -0400)]
Revert "rgw: add coroutine drain callback capture_error()"

This reverts commit d75ea8757d96a82df692a9476ed40b3206cba47e.

Fixes: https://tracker.ceph.com/issues/57400
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #43655 from liewegas/auth-rotate
Laura Flores [Wed, 14 Sep 2022 14:18:46 +0000 (09:18 -0500)]
Merge pull request #43655 from liewegas/auth-rotate

mon,auth,cephadm: support auth key rotation

2 years agoMerge pull request #47967 from yangxiaolaing/cephadm_doc
Adam King [Wed, 14 Sep 2022 12:37:46 +0000 (08:37 -0400)]
Merge pull request #47967 from yangxiaolaing/cephadm_doc

doc/cephadm: Add creation method of OSD

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agoMerge pull request #47521 from adk3798/iscsi-ip-list
Adam King [Tue, 13 Sep 2022 16:01:19 +0000 (12:01 -0400)]
Merge pull request #47521 from adk3798/iscsi-ip-list

mgr/cephadm: reconfig iscsi daemons if trusted_ip_list changes

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #47640 from adk3798/no-cgroups
Adam King [Tue, 13 Sep 2022 15:59:13 +0000 (11:59 -0400)]
Merge pull request #47640 from adk3798/no-cgroups

mgr/cephadm: make setting --cgroups=split configurable

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #47936 from adk3798/tuned-profile-dashes
Adam King [Tue, 13 Sep 2022 15:58:00 +0000 (11:58 -0400)]
Merge pull request #47936 from adk3798/tuned-profile-dashes

mgr/cephadm: fix tuned profiles getting removed if name has dashes

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #47786 from rkachach/fix_issue_57192
Adam King [Tue, 13 Sep 2022 15:55:57 +0000 (11:55 -0400)]
Merge pull request #47786 from rkachach/fix_issue_57192

mgr/cephadm: validating tuned profile specification

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #48008 from adk3798/docs-extra-container-mounts
Adam King [Tue, 13 Sep 2022 14:38:32 +0000 (10:38 -0400)]
Merge pull request #48008 from adk3798/docs-extra-container-mounts

doc/cephadm: document recommended syntax for mounting files with ECA

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agomgr/cephadm: validating tuned profile specification 47786/head
Redouane Kachach [Wed, 24 Aug 2022 11:57:50 +0000 (13:57 +0200)]
mgr/cephadm: validating tuned profile specification
fixes: https://tracker.ceph.com/issues/57192
fixes: https://tracker.ceph.com/issues/57191

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
2 years agomgr/cephadm: reconfig iscsi daemons if trusted_ip_list changes 47521/head
Adam King [Tue, 9 Aug 2022 20:13:38 +0000 (16:13 -0400)]
mgr/cephadm: reconfig iscsi daemons if trusted_ip_list changes

This is necessary as iscsi daemons expect the iscsi-gateway.cfg
which includes this list to match across the iscsi daemons

Fixes: https://tracker.ceph.com/issues/57078
Signed-off-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #47898 from adk3798/no-sudo-true
Adam King [Tue, 13 Sep 2022 12:56:18 +0000 (08:56 -0400)]
Merge pull request #47898 from adk3798/no-sudo-true

mgr/cephadm: don't use "sudo" in commands if user is root

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agomgr/cephadm: fix tuned profiles getting removed if name has dashes 47936/head
Adam King [Thu, 1 Sep 2022 17:08:13 +0000 (13:08 -0400)]
mgr/cephadm: fix tuned profiles getting removed if name has dashes

Previously, due to the way it was just splitting the file name on
dashes to try and get the profile name, any profile name with dashes
was not getting properly matched and would therefore get marked
stray and removed. This new strategy instead tries to match the actual
expected file name.

Fixes: https://tracker.ceph.com/issues/57405
Signed-off-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #47469 from lxbsz/cleanup_C_MDC_EmptyImport
Venky Shankar [Tue, 13 Sep 2022 12:47:29 +0000 (18:17 +0530)]
Merge pull request #47469 from lxbsz/cleanup_C_MDC_EmptyImport

mds: remove the stale class C_MDC_EmptyImport code

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
2 years agoMerge pull request #48033 from joscollin/wip-kill-cephfs-top
Venky Shankar [Tue, 13 Sep 2022 12:46:20 +0000 (18:16 +0530)]
Merge pull request #48033 from joscollin/wip-kill-cephfs-top

stop.sh: kill cephfs-top

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #48006 from rkachach/fix_issue_57422
Adam King [Tue, 13 Sep 2022 12:22:49 +0000 (08:22 -0400)]
Merge pull request #48006 from rkachach/fix_issue_57422

mgr/cephadm: Adding --storage.tsdb.retention.size prometheus option

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agorgw/lua: create lua background manager before the frontends 48066/head
yuval Lifshitz [Tue, 13 Sep 2022 10:10:21 +0000 (13:10 +0300)]
rgw/lua: create lua background manager before the frontends

Fixes: https://tracker.ceph.com/issues/57518
issue was introduced in: d0424e842d283fb8309fcceb0a84effb16752e36

Signed-off-by: yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge pull request #47574 from rhcs-dashboard/osd-form-hostname-filter
Nizamudeen A [Tue, 13 Sep 2022 06:08:01 +0000 (11:38 +0530)]
Merge pull request #47574 from rhcs-dashboard/osd-form-hostname-filter

mgr/dashboard: osd form preselect db/wal device filters

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: sunilangadi2 <NOT@FOUND>
2 years agoMerge pull request #48001 from aisakaki/wip-omap-inclusive-fix
Liu-Chunmei [Tue, 13 Sep 2022 05:54:46 +0000 (22:54 -0700)]
Merge pull request #48001 from aisakaki/wip-omap-inclusive-fix

crimson/seastore: fixs on omap list open/closed range

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
2 years agoMerge pull request #47968 from rhcs-dashboard/add-alert-silence-button
Nizamudeen A [Tue, 13 Sep 2022 05:10:34 +0000 (10:40 +0530)]
Merge pull request #47968 from rhcs-dashboard/add-alert-silence-button

mgr/dashboard: Add a Silence button shortcut to alert notifications

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #47305 from zdover23/wip-doc-2022-07-25-pr4600-cleanup
zdover23 [Tue, 13 Sep 2022 03:44:43 +0000 (13:44 +1000)]
Merge pull request #47305 from zdover23/wip-doc-2022-07-25-pr4600-cleanup

doc/monitoring: add min vers of apps in mon stack

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoMerge pull request #47575 from zdover23/wip-doc-2022-08-13-rados-operations-pools...
zdover23 [Tue, 13 Sep 2022 02:45:18 +0000 (12:45 +1000)]
Merge pull request #47575 from zdover23/wip-doc-2022-08-13-rados-operations-pools-prompt-update

doc/rados: add prompts to pools.rst

Reviewed-by: Neha Ojha <nojha@redhat.com>
2 years agoMerge pull request #48042 from SUSE/wip-fix-57497
Tim Serong [Mon, 12 Sep 2022 22:55:40 +0000 (08:55 +1000)]
Merge pull request #48042 from SUSE/wip-fix-57497

ceph.spec.in: Use gcc11-c++ on openSUSE Leap 15.x

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #47771 from linuxbox2/wip-librgw-frontends
Matt Benjamin [Mon, 12 Sep 2022 22:46:35 +0000 (18:46 -0400)]
Merge pull request #47771 from linuxbox2/wip-librgw-frontends

librgw: add ability to conditionally export HTTP frontends/apis

2 years agorgw/main: if !nfs, register service map as "rgw" 47771/head
Matt Benjamin [Mon, 12 Sep 2022 21:00:49 +0000 (17:00 -0400)]
rgw/main: if !nfs, register service map as "rgw"

This was accidentally changed to "nfs"--which breaks various
ceph orchestration assumptions.

Found by Ernesto Puerta <epuertat@redhat.com>

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agoMerge pull request #47854 from phlogistonjohn/jjm-fix-57268
Adam King [Mon, 12 Sep 2022 19:56:43 +0000 (15:56 -0400)]
Merge pull request #47854 from phlogistonjohn/jjm-fix-57268

qa/tasks/kubeadm: set up tigera resources via kubectl create

Reviewed-by: Adam King <adking@redhat.com>
2 years agodoc/cephadm: document recommended syntax for mounting files with ECA 48008/head
Adam King [Wed, 7 Sep 2022 19:42:30 +0000 (15:42 -0400)]
doc/cephadm: document recommended syntax for mounting files with ECA

Mounting files with extra container args seems to not
work with some of the more intuitive syntaxes.
See https://tracker.ceph.com/issues/57338

Signed-off-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #48007 from adk3798/fix-staggered-pacific-version
Adam King [Mon, 12 Sep 2022 19:06:33 +0000 (15:06 -0400)]
Merge pull request #48007 from adk3798/fix-staggered-pacific-version

doc/cephadm: correct version staggered upgrade got in pacific

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agoMerge pull request #46344 from mjenglish/ceph-volume-multiple-actuator
Guillaume Abrioux [Mon, 12 Sep 2022 18:58:41 +0000 (20:58 +0200)]
Merge pull request #46344 from mjenglish/ceph-volume-multiple-actuator

ceph-volume/ceph_volume/util: ceph-volume multi-actuator drive attribute

2 years agoMerge pull request #47970 from soumyakoduri/wip-skoduri-coverity
Soumya Koduri [Mon, 12 Sep 2022 17:21:54 +0000 (22:51 +0530)]
Merge pull request #47970 from soumyakoduri/wip-skoduri-coverity

rgw/dbstore: Fix coverity issues #1510412, #1511420

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agomgr/cephadm: fix custom config unit test 43655/head
Adam King [Thu, 8 Sep 2022 20:13:08 +0000 (16:13 -0400)]
mgr/cephadm: fix custom config unit test

this test needs to be updated to account for the
new keyring information being introduced

Signed-off-by: Adam King <adking@redhat.com>
2 years agomgr/cephadm: execute conf update when rotating secret
Radoslaw Zarzynski [Thu, 18 Aug 2022 11:02:41 +0000 (11:02 +0000)]
mgr/cephadm: execute conf update when rotating secret

This is a fixup for: mgr/cephadm: add daemon 'rotate-key' action

The way we rotate mgr's secret require:

1) writing the new pending-key to mgr's file,
2) restarting the mgr via the `mgr fail` mon command.

Unfortunately, we might be doing the first step wrongly.
`_create_daemoan()` is a coroutine (Python's `async def`)
while we don't `wait` for it. IIUC the underlying doc
correctly, this has no effect, and thus the mgr is restarted
with old key.

  "Note that simply calling a coroutine will not schedule
  it to be executed"

See: https://docs.python.org/3/library/asyncio-task.html#id1

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agomon/AuthMonitor: don't forget about caps on "auth get".
Radosław Zarzyński [Thu, 24 Mar 2022 14:13:01 +0000 (15:13 +0100)]
mon/AuthMonitor: don't forget about caps on "auth get".

The issue came in 98b89120321059397798170f7ae2bf7c64e4f4b2.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agomgr/cephadm: add crash keyring to unit test
Adam King [Tue, 8 Mar 2022 18:05:29 +0000 (13:05 -0500)]
mgr/cephadm: add crash keyring to unit test

Signed-off-by: Adam King <adking@redhat.com>
2 years agoauth: refactor KeyServer::get_used_pending_keys().
Radoslaw Zarzynski [Fri, 4 Mar 2022 15:57:30 +0000 (15:57 +0000)]
auth: refactor KeyServer::get_used_pending_keys().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoceph-crash: ping cluster with key on startup
Sage Weil [Tue, 2 Nov 2021 14:26:49 +0000 (10:26 -0400)]
ceph-crash: ping cluster with key on startup

This is mostly pointless, *except* that after a key rotation it ensures
that the new key is used immediately (and the pending_key is committed by
the mon).

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agodoc/cephadm/operations: document 'ceph orch daemon rotate-key'
Sage Weil [Tue, 2 Nov 2021 14:24:06 +0000 (10:24 -0400)]
doc/cephadm/operations: document 'ceph orch daemon rotate-key'

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agodoc/cephadm/operations: document daemon commands
Sage Weil [Tue, 2 Nov 2021 14:23:56 +0000 (10:23 -0400)]
doc/cephadm/operations: document daemon commands

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agoqa/suites/orch/cephadm/with-work: add key rotation test
Sage Weil [Wed, 27 Oct 2021 15:57:46 +0000 (11:57 -0400)]
qa/suites/orch/cephadm/with-work: add key rotation test

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomgr/cephadm: add rotate support for rgw, crash, nfs, rbd-mirror, iscsi
Sage Weil [Mon, 1 Nov 2021 22:03:00 +0000 (18:03 -0400)]
mgr/cephadm: add rotate support for rgw, crash, nfs, rbd-mirror, iscsi

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomgr/cephadm: add daemon 'rotate-key' action
Sage Weil [Tue, 26 Oct 2021 17:30:36 +0000 (13:30 -0400)]
mgr/cephadm: add daemon 'rotate-key' action

Caveats:
- only works with osd, mds, mgr so far
- sometimes we have to restart the daemon

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomgr/cephadm/service: factor out get_auth_entity()
Sage Weil [Mon, 1 Nov 2021 21:42:42 +0000 (17:42 -0400)]
mgr/cephadm/service: factor out get_auth_entity()

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomgr/cephadm: log exceptions in daemon actions
Sage Weil [Thu, 28 Oct 2021 21:36:53 +0000 (17:36 -0400)]
mgr/cephadm: log exceptions in daemon actions

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomon/AuthMonitor: no stderr output on success
Sage Weil [Tue, 26 Oct 2021 16:28:17 +0000 (12:28 -0400)]
mon/AuthMonitor: no stderr output on success

These messages are distracting.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoosd: add 'rotate-stored-key' asok command
Sage Weil [Mon, 25 Oct 2021 20:08:31 +0000 (16:08 -0400)]
osd: add 'rotate-stored-key' asok command

This writes the key to the osd_key in the block device label.

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomgr/cephadm: deploy pending_key when possible
Sage Weil [Mon, 25 Oct 2021 20:00:42 +0000 (16:00 -0400)]
mgr/cephadm: deploy pending_key when possible

Also, leave out the caps.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agomgr/cephadm: fix keyring when updating caps
Sage Weil [Mon, 25 Oct 2021 20:00:24 +0000 (16:00 -0400)]
mgr/cephadm: fix keyring when updating caps

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomon/AuthMonitor: include pending_key in 'auth get-or-create' result
Sage Weil [Mon, 25 Oct 2021 19:59:25 +0000 (15:59 -0400)]
mon/AuthMonitor: include pending_key in 'auth get-or-create' result

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomon/MonClient: add 'rotate-key' asok command
Sage Weil [Mon, 25 Oct 2021 18:26:05 +0000 (14:26 -0400)]
mon/MonClient: add 'rotate-key' asok command

Rotate the live auth key for a running daemon without restarting.

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agocommon/admin_socket: pass inbl to sync call() method
Sage Weil [Sat, 23 Oct 2021 22:32:11 +0000 (17:32 -0500)]
common/admin_socket: pass inbl to sync call() method

Only the async_call got this before.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoqa/workunits/mon/auth_key_rotation.sh: exercise pending key / rotation
Sage Weil [Fri, 22 Oct 2021 20:13:53 +0000 (15:13 -0500)]
qa/workunits/mon/auth_key_rotation.sh: exercise pending key / rotation

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomon: automatically commit used pending_keys
Sage Weil [Fri, 22 Oct 2021 17:22:29 +0000 (12:22 -0500)]
mon: automatically commit used pending_keys

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agoauth: keep track of used pending_keys
Sage Weil [Fri, 22 Oct 2021 17:06:17 +0000 (12:06 -0500)]
auth: keep track of used pending_keys

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agomon/AuthMonitor: 'auth {get-or-create,clear,commit}-pending'
Sage Weil [Fri, 22 Oct 2021 16:52:36 +0000 (11:52 -0500)]
mon/AuthMonitor: 'auth {get-or-create,clear,commit}-pending'

Add commands to create, clear, or commit pending_key.

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agoauth/cephx: authenticate with either key or pending_key
Sage Weil [Fri, 22 Oct 2021 16:38:36 +0000 (11:38 -0500)]
auth/cephx: authenticate with either key or pending_key

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agoauth: add PendingKey to EntityAuth
Sage Weil [Fri, 22 Oct 2021 16:38:20 +0000 (11:38 -0500)]
auth: add PendingKey to EntityAuth

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agodoc/dashboard: update documentation with accessibility development practices 48002/head
nsedrickm [Wed, 7 Sep 2022 12:00:32 +0000 (13:00 +0100)]
doc/dashboard: update documentation with accessibility development practices

Update documentation to include  tools and practice used when developing dashboard features

Fixes: https://tracker.ceph.com/issues/56453
Signed-off-by: nsedrickm <nsedrick101@gmail.com>
2 years agotests: remove pubsub tests from multisite 48054/head
Yuval Lifshitz [Mon, 12 Sep 2022 15:54:46 +0000 (18:54 +0300)]
tests: remove pubsub tests from multisite

Fixes: https://tracker.ceph.com/issues/56572
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agomgr/dashboard: Add a Silence button shortcut to alert notifications 47968/head
Aashish Sharma [Mon, 5 Sep 2022 05:51:40 +0000 (11:21 +0530)]
mgr/dashboard: Add a Silence button shortcut to alert notifications

Fixes: https://tracker.ceph.com/issues/57457
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
2 years agoMerge pull request #47976 from rhcs-dashboard/fix-duplicate-snapshot
Nizamudeen A [Mon, 12 Sep 2022 05:52:40 +0000 (11:22 +0530)]
Merge pull request #47976 from rhcs-dashboard/fix-duplicate-snapshot

mgr/dashboard: fix snapshot creation with duplicate name

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agorgw/dbstore: Fix coverity issues #1510412, #1511420 47970/head
Soumya Koduri [Mon, 5 Sep 2022 08:31:32 +0000 (14:01 +0530)]
rgw/dbstore: Fix coverity issues #1510412, #1511420

Fixes: https://tracker.ceph.com/issues/57322
Fixes: https://tracker.ceph.com/issues/57325
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2 years agoceph.spec.in: Use gcc11-c++ on openSUSE Leap 15.x 48042/head
Tim Serong [Mon, 12 Sep 2022 01:10:14 +0000 (11:10 +1000)]
ceph.spec.in: Use gcc11-c++ on openSUSE Leap 15.x

Fixes: 80949babab4aac86647ce9973f6b44adb92fae95
Fixes: https://tracker.ceph.com/issues/57497
Signed-off-by: Tim Serong <tserong@suse.com>
2 years agoMerge pull request #48032 from rhcs-dashboard/openapi-check-fix
Nizamudeen A [Sat, 10 Sep 2022 07:19:28 +0000 (12:49 +0530)]
Merge pull request #48032 from rhcs-dashboard/openapi-check-fix

mgr/dashboard: fix openapi-check

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agomgr/dashboard: docs gen tags sort 48032/head
Pere Diaz Bou [Fri, 9 Sep 2022 09:18:42 +0000 (11:18 +0200)]
mgr/dashboard: docs gen tags sort

When generating tags the order of endpoints wasn't taken into account.
Two endpoints with the same url prefix, for example `/api/cluster/` and
`/api/cluster/user`, have different docs and the tags is generated from
a doc of one of these two, and since the order of these endpoints might
vary it is imperative to sort them to have a deterministic output.

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #47770 from rzarzynski/wip-doc-dups-trimming-relnotes
Neha Ojha [Fri, 9 Sep 2022 17:00:41 +0000 (10:00 -0700)]
Merge pull request #47770 from rzarzynski/wip-doc-dups-trimming-relnotes

PendingReleaseNotes: document online and offline trimming of PG Log's…

Reviewed-By: Neha Ojha <nojha@redhat.com>
2 years agorgwlib: ensure AppMain is destructed before CephContext
Matt Benjamin [Fri, 9 Sep 2022 15:57:44 +0000 (11:57 -0400)]
rgwlib: ensure AppMain is destructed before CephContext

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw/main: cause ratelimiter to destruct in AppMain::shutdown()
Matt Benjamin [Thu, 8 Sep 2022 16:46:55 +0000 (12:46 -0400)]
rgw/main: cause ratelimiter to destruct in AppMain::shutdown()

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agolibrgw: fix mismatched register/unregister sigterm handler
Matt Benjamin [Wed, 7 Sep 2022 17:57:29 +0000 (13:57 -0400)]
librgw: fix mismatched register/unregister sigterm handler

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw/main: fix init order of rgw_main's init_storage()
Matt Benjamin [Wed, 7 Sep 2022 17:30:53 +0000 (13:30 -0400)]
rgw/main:  fix init order of rgw_main's init_storage()

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw/main: move service_map_meta into AppMain
Matt Benjamin [Wed, 7 Sep 2022 14:22:14 +0000 (10:22 -0400)]
rgw/main: move service_map_meta into AppMain

The RGWRealmReloader holds a reference on it.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw/main: move signal handler actions out of shutdown()
Matt Benjamin [Fri, 2 Sep 2022 21:54:45 +0000 (17:54 -0400)]
rgw/main: move signal handler actions out of shutdown()

AppMain::shutdown() had borrowed the unregister_async_signal_handler()
text from librgw, but of course, that's wrong.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgwlib: robustify non-default initialization
Matt Benjamin [Thu, 1 Sep 2022 15:33:31 +0000 (11:33 -0400)]
rgwlib: robustify non-default initialization

Don't rely on the conf-default value of rgw_nfs_frontends to
provide "rgw-nfs," as that's not optional when running under
librgw.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw_main: remove unused tracepoint decls
Matt Benjamin [Thu, 1 Sep 2022 12:57:38 +0000 (08:57 -0400)]
rgw_main: remove unused tracepoint decls

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgwlib: rework linkage
Matt Benjamin [Thu, 1 Sep 2022 12:53:50 +0000 (08:53 -0400)]
rgwlib: rework linkage

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw_a: build reorganization
Matt Benjamin [Tue, 30 Aug 2022 14:19:34 +0000 (10:19 -0400)]
rgw_a: build reorganization

Reorganize some dependencies shared by the librgw.so and radosgw
main units.  The librgw.so build no longer builds a main(...)
unit.

Build time should be slightly reduced, as several shared dependencies
have been moved into rgw_a.

There are some other cleanups, e.g., rgw_signal.{h,cc}.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw/main: remove friends, see_also
Matt Benjamin [Tue, 30 Aug 2022 13:42:31 +0000 (09:42 -0400)]
rgw/main: remove friends, see_also

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw/main: various doc and comment corrections by doc writers
Matt Benjamin [Mon, 29 Aug 2022 15:33:53 +0000 (11:33 -0400)]
rgw/main: various doc and comment corrections by doc writers

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agorgw/main: use AppMain in c++ main function
Matt Benjamin [Sat, 27 Aug 2022 17:11:30 +0000 (13:11 -0400)]
rgw/main: use AppMain in c++ main function

Consolidate standalone and library initialization into one
unit.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>