]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
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 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 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>
2 years agorgw/main: AppMain
Matt Benjamin [Sat, 27 Aug 2022 14:35:45 +0000 (10:35 -0400)]
rgw/main: AppMain

s/rgw::InitHelper/rgw::AppMain/;

Move program state from RGWLib into AppMain, preparing it to
manage program state for all RGW instances (e.g., main()).

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agolibrgw: add ability to conditionally export HTTP frontends/apis
Matt Benjamin [Thu, 18 Aug 2022 21:25:09 +0000 (17:25 -0400)]
librgw: add ability to conditionally export HTTP frontends/apis

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agoMerge pull request #47700 from s0nea/wip-rgw-overview-labels
Nizamudeen A [Fri, 9 Sep 2022 12:06:40 +0000 (17:36 +0530)]
Merge pull request #47700 from s0nea/wip-rgw-overview-labels

monitoring/ceph-mixin: add RGW host to label info

Reviewed-by: MrFreezeex <NOT@FOUND>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agostop.sh: kill cephfs-top 48033/head
Jos Collin [Fri, 9 Sep 2022 11:38:09 +0000 (17:08 +0530)]
stop.sh: kill cephfs-top

Signed-off-by: Jos Collin <jcollin@redhat.com>
2 years agomgr/dashboard: osd form preselect db/wal device filters 47574/head
Nizamudeen A [Fri, 12 Aug 2022 15:34:23 +0000 (21:04 +0530)]
mgr/dashboard: osd form preselect db/wal device filters

If the hostname is selected for the primary devices, then we can
preselect the hostname filter for the db/wal devices because osds will
be deployed only on the hostname of the primary device. If preselected
it'll be clear that only this devices will be used to deploy.

Addition to this, usually ssd devices are used for db/wal devices. So I
am preselecting these too in the filters.

Fixes: https://tracker.ceph.com/issues/57118
Signed-off-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #47784 from rhcs-dashboard/ingress-unmanaged
Nizamudeen A [Fri, 9 Sep 2022 05:14:35 +0000 (10:44 +0530)]
Merge pull request #47784 from rhcs-dashboard/ingress-unmanaged

mgr/dashboard: fix unmanaged service creation

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoMerge pull request #47959 from rhcs-dashboard/service-id-filter-undefined
Nizamudeen A [Fri, 9 Sep 2022 03:57:14 +0000 (09:27 +0530)]
Merge pull request #47959 from rhcs-dashboard/service-id-filter-undefined

mgr/dashboard: fix Cannot read properties of undefined (reading 'filter')

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoauth/Crypto: add clear()
Sage Weil [Fri, 22 Oct 2021 19:52:18 +0000 (14:52 -0500)]
auth/Crypto: add clear()

Signed-off-by: Sage Weil <sage@newdream.net>
2 years agoMerge pull request #48014 from idryomov/wip-57116-cont
Ilya Dryomov [Thu, 8 Sep 2022 18:52:28 +0000 (20:52 +0200)]
Merge pull request #48014 from idryomov/wip-57116-cont

test/{librbd, rgw}: increase delay between and number of bind attempts

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
2 years agoMerge pull request #48003 from dang/wip-dang-zipper-admin-api
Daniel Gryniewicz [Thu, 8 Sep 2022 18:36:46 +0000 (14:36 -0400)]
Merge pull request #48003 from dang/wip-dang-zipper-admin-api

RGW - Zipper - Allow per-store admin APIs

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #48009 from ljflores/wip-install-deps-focal-bionic
Ilya Dryomov [Thu, 8 Sep 2022 18:05:15 +0000 (20:05 +0200)]
Merge pull request #48009 from ljflores/wip-install-deps-focal-bionic

install-deps.sh: fix install-deps script for focal and bionic

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoRGW - Zipper - Allow per-store admin APIs 48003/head
Daniel Gryniewicz [Thu, 1 Sep 2022 17:52:26 +0000 (13:52 -0400)]
RGW - Zipper - Allow per-store admin APIs

Some of the existing admin APIs are rados-specific, and other stores
will want to add specific APIs.  Allow this by having a function to add
store-specific APIs.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoPendingReleaseNotes: document online and offline trimming of PG Log's dups 47770/head
Radoslaw Zarzynski [Tue, 23 Aug 2022 19:50:48 +0000 (19:50 +0000)]
PendingReleaseNotes: document online and offline trimming of PG Log's dups

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agomgr/cephadm: Adding --storage.tsdb.retention.size prometheus option 48006/head
Redouane Kachach [Wed, 7 Sep 2022 12:51:10 +0000 (14:51 +0200)]
mgr/cephadm: Adding --storage.tsdb.retention.size prometheus option
fixes: https://tracker.ceph.com/issues/57422

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
2 years agotest/{librbd, rgw}: increase delay between and number of bind attempts 48014/head
Ilya Dryomov [Thu, 8 Sep 2022 09:36:34 +0000 (11:36 +0200)]
test/{librbd, rgw}: increase delay between and number of bind attempts

Commit aa7885f7cc41 ("test/{librbd, rgw}: retry when bind fail with
port 0") reduced the frequency of sporadic unit test failures caused
by EADDRINUSE a lot, but not entirely.

Currently, it yields a cumulative sleep of ~9 seconds.  Let's increase
that to 1 minute.

Fixes: https://tracker.ceph.com/issues/57116
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge pull request #47274 from faithuniterh/Golang-Notification-creation
Yuval Lifshitz [Thu, 8 Sep 2022 09:31:24 +0000 (12:31 +0300)]
Merge pull request #47274 from faithuniterh/Golang-Notification-creation

examples/golang : Add put notification creation golang example code

reviewed-by: yuvalif

2 years agoMerge pull request #46757 from nSedrickm/navigation-component-accessibility-update
Nizamudeen A [Thu, 8 Sep 2022 04:11:29 +0000 (09:41 +0530)]
Merge pull request #46757 from nSedrickm/navigation-component-accessibility-update

mgr/dashboard: Improve accessibility for navigation components

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 agoinstall-deps.sh: fix install-deps script for focal and bionic 48009/head
Laura Flores [Wed, 7 Sep 2022 19:45:57 +0000 (19:45 +0000)]
install-deps.sh: fix install-deps script for focal and bionic

When run on focal and bionic, install-deps ends early
due to this extra debug message that was added to the
end of `ensure_decent_gcc_on_ubuntu`. The debug message
prints when the script is run in a jenkins environment.

When the script is not run in a jenkins environment, the
value returned there is "false" or "0", which acts as
an early return. This stops the script from completing.

We can remove this line, as `ensure_decent_gcc_on_ubuntu`
is only called for focal and bionic, and most of the jenkins
nodes are running jammy. Also, there is a debug message at the
beginning of the function that should suffice.

Fixes: https://tracker.ceph.com/issues/57466
Signed-off-by: Laura Flores <lflores@redhat.com>
2 years agodoc/cephadm: correct version staggered upgrade got in pacific 48007/head
Adam King [Wed, 7 Sep 2022 19:19:02 +0000 (15:19 -0400)]
doc/cephadm: correct version staggered upgrade got in pacific

This didn't end up making 16.2.10 so the first version
it will actually be available is 16.2.11

Signed-off-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #47091 from faithuniterh/Golang-Topic-creation
Yuval Lifshitz [Wed, 7 Sep 2022 18:15:52 +0000 (21:15 +0300)]
Merge pull request #47091 from faithuniterh/Golang-Topic-creation

Topic creation example and sorting Golang examples into different folders

reviewed-by: anthonyeleven, yuvalif

2 years agoMerge pull request #47864 from yuvalif/wip-yuval-fix-53186
Yuval Lifshitz [Wed, 7 Sep 2022 18:09:16 +0000 (21:09 +0300)]
Merge pull request #47864 from yuvalif/wip-yuval-fix-53186

rgw/notifications: add region to bucket ARN

reviewed-by: mattbenjamin, nthonyeleven

2 years agoMerge pull request #47924 from tchaikov/wip-57355
Casey Bodley [Wed, 7 Sep 2022 16:53:36 +0000 (12:53 -0400)]
Merge pull request #47924 from tchaikov/wip-57355

denc: support non-c++20 compliant C++ standard library

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #47935 from ivancich/wip-simplify-bucket-listing-logging
J. Eric Ivancich [Wed, 7 Sep 2022 15:30:21 +0000 (11:30 -0400)]
Merge pull request #47935 from ivancich/wip-simplify-bucket-listing-logging

rgw: simplify bucket listing logging

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2 years agoMerge pull request #47741 from ljflores/wip-python3-fix
Laura Flores [Wed, 7 Sep 2022 15:11:08 +0000 (10:11 -0500)]
Merge pull request #47741 from ljflores/wip-python3-fix

do_cmake.sh: build with python3.10 on ubuntu version >= 22.0

2 years agoMerge pull request #47857 from nSedrickm/duplicate-id-accessibility-update
Pere Diaz Bou [Wed, 7 Sep 2022 14:56:08 +0000 (16:56 +0200)]
Merge pull request #47857 from nSedrickm/duplicate-id-accessibility-update

mgr/dashboard: remove duplicate ids from table column filters

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agomgr/dashboard: fix snapshot creation with duplicate name 47976/head
Aashish Sharma [Mon, 5 Sep 2022 11:59:11 +0000 (17:29 +0530)]
mgr/dashboard: fix snapshot creation with duplicate name

Snapshot creation with same name on UI throwing 500 Internal Error, This PR intends to fix this issue.

Fixes: https://tracker.ceph.com/issues/57456
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
2 years agoMerge pull request #47981 from myoungwon/wip-rbm-cleanup2
Yingxin [Wed, 7 Sep 2022 10:54:27 +0000 (18:54 +0800)]
Merge pull request #47981 from myoungwon/wip-rbm-cleanup2

crimson/os/seastore: RBM cleanups (mkfs, open, unittest)

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>