]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoqa: drop get_blocklisted_instances in TestMirroring 46469/head
Jos Collin [Fri, 6 May 2022 10:58:23 +0000 (16:28 +0530)]
qa: drop get_blocklisted_instances in TestMirroring

drop get_blocklisted_instances in TestMirroring and use
is_addr_blocklisted instead.

Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 0e66107c89a127bec4f1a3c83894ff858919c8f3)

3 years agoqa: fix is_addr_blocklisted() to get blocklisted clients from 'osd dump'
Jos Collin [Wed, 4 May 2022 13:03:12 +0000 (18:33 +0530)]
qa: fix is_addr_blocklisted() to get blocklisted clients from 'osd dump'

By the introduction of range blocklist, the 'blocklist ls' command outputs
two lists. It's also straightforward to get the blocklisted clients directly
from 'osd dump' to avoid regression.

Fixes: https://tracker.ceph.com/issues/55516
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 47de5d79b8190458847072aae1c29db7d6a9b66b)

3 years agotest: use the same address input format as output will generate
Greg Farnum [Sat, 23 Apr 2022 00:00:59 +0000 (00:00 +0000)]
test: use the same address input format as output will generate

Otherwise, our grep fails!

Fixes: https://tracker.ceph.com/issues/55419
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 63db714890c083c90e3adf12bf498dcb64d90fc9)

3 years agotest: osd: add a /0 cidr test for 32-bit...
Greg Farnum [Thu, 21 Apr 2022 00:16:22 +0000 (00:16 +0000)]
test: osd: add a /0 cidr test for 32-bit...

...and make the OSDMap handle it.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit c454d0d1d3f6d4ea4962a746cbed20d1aa003f6e)

3 years agotest: add a /0 cidr test that blocklists EVERYTHING
Greg Farnum [Wed, 20 Apr 2022 15:59:01 +0000 (15:59 +0000)]
test: add a /0 cidr test that blocklists EVERYTHING

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 8244586cf57426fe4f493d855ba3dd95126ae0e7)

3 years agotest: add a 128-bit range blocklist test
Greg Farnum [Wed, 20 Apr 2022 15:06:33 +0000 (15:06 +0000)]
test: add a 128-bit range blocklist test

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 138daff1dcb35510c7444f803be7a55c62532f67)

3 years agotest: add 32-bit ipv4 and 64-bit ipv6 blocklist testing
Greg Farnum [Wed, 20 Apr 2022 14:51:09 +0000 (14:51 +0000)]
test: add 32-bit ipv4 and 64-bit ipv6 blocklist testing

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 6a997da13dd40d512a903036a487c8e0c4c59148)

3 years agotest: add a 30-bit range mask to ipv6 blocklisting tests
Greg Farnum [Wed, 20 Apr 2022 01:50:46 +0000 (01:50 +0000)]
test: add a 30-bit range mask to ipv6 blocklisting tests

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit f107f2124d94c35261f752d1f04f95875a7d05da)

3 years agotest: split up ip- and range-based blocklisting tests
Greg Farnum [Wed, 20 Apr 2022 00:38:21 +0000 (00:38 +0000)]
test: split up ip- and range-based blocklisting tests

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 42910b432d8a2f77f6443c99314b8a47fd2c87db)

3 years agotest: check range blocklist in cephtool/test.sh
Greg Farnum [Wed, 1 Dec 2021 16:18:50 +0000 (16:18 +0000)]
test: check range blocklist in cephtool/test.sh

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 1ca89ca76dbbae355831dc81065f22e6eb7e37ca)

3 years agotest: fix negative blocklist tests
Greg Farnum [Wed, 1 Dec 2021 16:16:18 +0000 (16:16 +0000)]
test: fix negative blocklist tests

These tests are supposed to be validating we don't accept invalid IPs,
but they left out the "add" subcommand so they're all failing on that!

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 824689217248128cec67317d1410624fd94d276c)

3 years agodoc: update blocklist doc for ranges and up-to-date-ness
Greg Farnum [Wed, 1 Dec 2021 16:10:03 +0000 (16:10 +0000)]
doc: update blocklist doc for ranges and up-to-date-ness

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit e15cfa7ecded4a43df9c127abbc79a0e19c6adc6)

3 years agotest: test OSDMap::is_blocklisted in unit tests
Greg Farnum [Tue, 30 Nov 2021 18:27:54 +0000 (18:27 +0000)]
test: test OSDMap::is_blocklisted in unit tests

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 952af3388466d530c6268ff9b98bcdd725cce738)

3 years agoosd: Check range_blocklist in is_blocklisted(): we actually blocklist ranges
Greg Farnum [Tue, 30 Nov 2021 18:29:46 +0000 (18:29 +0000)]
osd: Check range_blocklist in is_blocklisted(): we actually blocklist ranges

Carry a parallel map from cidr addresses to a new
range_bits class (stored entirely as ephemeral state) so that we
don't need to re-compute masks and bit mappings too often, and to
separate out the unpleasant ipv6 bit mapping logic. Then check
against those with range_bits::matches() the same way we check
for equality on specific-entity matches. Nice and simple loops!

Fixes: https://tracker.ceph.com/issues/53050
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 3e26209cbc61cb7fbd4e3f310a28c4cd0f6bb287)

3 years agomon: dump range blocklist when dumping regular blocklist
Greg Farnum [Tue, 16 Nov 2021 18:41:08 +0000 (18:41 +0000)]
mon: dump range blocklist when dumping regular blocklist

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit dc09905f1e95201ba8257b70c60c9985eee6ffdb)

3 years agoosdmap: convert get_blocklist() to provide the entity/IP and range blocklists
Greg Farnum [Tue, 2 Nov 2021 00:38:50 +0000 (00:38 +0000)]
osdmap: convert get_blocklist() to provide the entity/IP and range blocklists

Providing a non-range-aware blocklist accessor would just be
asking for trouble, so don't.

The ugly part of this is how the Objecter is currently just
throwing the range blocklist on the end of its own list. The in-tree
callers are okay with this, and I'd like to look at removing the
blocklist events API from librados entirely -- it exposes "OSD-only"
state to clients and, as evidenced by this patch series, is not
particularly stable.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 9c5e21a685b58e4be0360279d9d22efd513edab2)

3 years agomon: take blocklist ranges as a subcommand, not implicitly from address format
Greg Farnum [Wed, 8 Dec 2021 21:32:58 +0000 (21:32 +0000)]
mon: take blocklist ranges as a subcommand, not implicitly from address format

I discovered in testing with CephFS that this tends to interpret client IPs
(which don't have ports, but do have nonces) as invalid ranges. So give it
a separate input keyword that has to be applied first.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 73a1f1b51e586ff7476ff4f4c1682abd0a317074)

3 years agomon: check 'nonce' validity for cidr ranges
Greg Farnum [Mon, 15 Nov 2021 20:06:50 +0000 (20:06 +0000)]
mon: check 'nonce' validity for cidr ranges

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 5c903e5b0a48f60dcf644f83478f97136d7dc56c)

3 years agomon: trim range_blocklist alongside the regular one
Greg Farnum [Mon, 15 Nov 2021 20:42:35 +0000 (20:42 +0000)]
mon: trim range_blocklist alongside the regular one

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 4b08448131ff63213f65ac2c2454d53158663ca2)

3 years agomon: osdmon: simplify maybe_rm_from_pending_blocklists
Greg Farnum [Thu, 28 Oct 2021 23:04:23 +0000 (23:04 +0000)]
mon: osdmon: simplify maybe_rm_from_pending_blocklists

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 871427881a60f7a203d08373a1ae1e6db9e2976b)

3 years agomon: osdmon: allow users to enter range blocklists.
Greg Farnum [Thu, 28 Oct 2021 22:34:40 +0000 (22:34 +0000)]
mon: osdmon: allow users to enter range blocklists.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 93617f7f4c6ba3463ab4c6e2df3cc2df9b00fc12)

3 years agomon: osdmon: don't overwrite type for entity_addr_t which is a cidr range
Greg Farnum [Wed, 27 Oct 2021 21:06:37 +0000 (21:06 +0000)]
mon: osdmon: don't overwrite type for entity_addr_t which is a cidr range

Doing so makes it no longer a cidr range entity_addr_t.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 9a1a01f8814df175d2d2c7a81f701d161cb4bab8)

3 years agomon: osdmon: extract blocklist manipulation functions into lambdas
Greg Farnum [Thu, 28 Oct 2021 20:44:49 +0000 (20:44 +0000)]
mon: osdmon: extract blocklist manipulation functions into lambdas

I'm about to add new range blocklists that match the existing IP/entity
ones, and don't want to have separate update logic.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 37fbf121fa6ee76387f07b766bccab5e2b82bbc1)

3 years agoosdmap: store new range_blocklist, updated as we do the existing blocklist
Greg Farnum [Thu, 28 Oct 2021 22:00:27 +0000 (22:00 +0000)]
osdmap: store new range_blocklist, updated as we do the existing blocklist

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit c0b87d9aca6f61ffe726ce3407059c527b319cbe)

3 years agomsg: common: allow entity_addr_t to store a CIDR address range
Greg Farnum [Mon, 25 Oct 2021 19:53:04 +0000 (19:53 +0000)]
msg: common: allow entity_addr_t to store a CIDR address range

This required very little change to the existing code. Use with care, because
existing code expects an IP address instead of a range, but it saves on
writing a new parser.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 8941450ff17336b0ed60947e365a8bffcc4a32b0)

3 years agomds: Server: Simplify apply_blocklist and usage of the OSDMap's blocklist
Greg Farnum [Tue, 2 Nov 2021 00:34:34 +0000 (00:34 +0000)]
mds: Server: Simplify apply_blocklist and usage of the OSDMap's blocklist

This previoulsly re-implemented a bunch of the OSDMap::is_blocklisted()
function, and wasn't actually any faster to run -- the list of new blocklists
may be smaller than the full set, but OSDMap::blocklist is an unordered_map
of constant lookup time so it shouldn't slow things down. More importantly,
this is much simpler, less likely to be buggy from duplicate code, and lets
the MDS off the hook for dealing with range blocklisting.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 79f7576401cc9d857f84396314d7476336c0e271)

3 years agoclient: Simplify blocklist tracking and interface
Greg Farnum [Mon, 1 Nov 2021 23:52:53 +0000 (23:52 +0000)]
client: Simplify blocklist tracking and interface

I'm not sure if the blocklist events tracking in Client.cc was ever
the simplest way to track that state, but it definitely isn't now. We
can just hand our addr_vec to the OSDMap and ask it -- it handles
version compatibility issues and, happily, means the Client doesn't
need to learn to deal with ranges directly.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 5f57daedc9550aaeb8b55e2c8dc71b6f27372e84)

3 years agoMerge pull request #46447 from ceph/fix-triage-quincy
Ernesto Puerta [Tue, 31 May 2022 17:51:56 +0000 (19:51 +0200)]
Merge pull request #46447 from ceph/fix-triage-quincy

quincy: .github: continue on error and reorder milestone step

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46203 from rhcs-dashboard/wip-55569-quincy
Ernesto Puerta [Tue, 31 May 2022 17:15:29 +0000 (19:15 +0200)]
Merge pull request #46203 from rhcs-dashboard/wip-55569-quincy

quincy: mgr/dashboard: fix ssl cert validation for ingress service creation

Reviewed-by: Sarthak Gupta <sarthak.dev.0702@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #45879 from dparmar18/backport_mdsdocs_quincy
Yuri Weinstein [Tue, 31 May 2022 16:37:37 +0000 (09:37 -0700)]
Merge pull request #45879 from dparmar18/backport_mdsdocs_quincy

quincy: doc/cephfs/add-remove-mds: added cephadm note, refined "Adding an MDS"

Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #46300 from dparmar18/quincy_put_get_backport
Yuri Weinstein [Tue, 31 May 2022 14:55:08 +0000 (07:55 -0700)]
Merge pull request #46300 from dparmar18/quincy_put_get_backport

quincy: cephfs-shell: fix put and get cmd

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46181 from lxbsz/wip-55342
Yuri Weinstein [Tue, 31 May 2022 14:54:34 +0000 (07:54 -0700)]
Merge pull request #46181 from lxbsz/wip-55342

quincy: mds: reset heartbeat when fetching or committing entries

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46178 from lxbsz/wip-55345
Yuri Weinstein [Tue, 31 May 2022 14:51:30 +0000 (07:51 -0700)]
Merge pull request #46178 from lxbsz/wip-55345

Quincy: client: stop forwarding the request when exceeding 256 times

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
3 years ago.github/pr-triage: reorder milestone step 46447/head
Ernesto Puerta [Mon, 18 Apr 2022 16:50:52 +0000 (18:50 +0200)]
.github/pr-triage: reorder milestone step

In `master` the milestone step exits and causes remaining tasks not to be run. I previously tried with the `continue-on-error` flag, but it didn't work, so let's try putting that steps at the end.

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit d8c0229b90cc20e89f7037a72af8b5d41b6b0861)

3 years ago.github: continue on error
Ernesto Puerta [Thu, 17 Mar 2022 19:53:31 +0000 (20:53 +0100)]
.github: continue on error

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit b6791ee09a49398cdef39faae5f2e72f43061d64)

3 years agoMerge pull request #45724 from rhcs-dashboard/wip-54996-quincy
Ernesto Puerta [Tue, 31 May 2022 12:40:31 +0000 (14:40 +0200)]
Merge pull request #45724 from rhcs-dashboard/wip-54996-quincy

quincy: mgr/dashboard: Table columns hiding fix

Reviewed-by: Sarthak Gupta <sarthak.dev.0702@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: kalaspuffar <NOT@FOUND>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46342 from rhcs-dashboard/wip-55717-quincy
Ernesto Puerta [Tue, 31 May 2022 12:39:47 +0000 (14:39 +0200)]
Merge pull request #46342 from rhcs-dashboard/wip-55717-quincy

quincy: mgr/dashboard: customizable log-in page text/banner

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #46323 from rhcs-dashboard/wip-55691-quincy
Ernesto Puerta [Tue, 31 May 2022 12:39:02 +0000 (14:39 +0200)]
Merge pull request #46323 from rhcs-dashboard/wip-55691-quincy

quincy: mgr/dashboard: unselect rows in datatables

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #45722 from rhcs-dashboard/wip-55105-quincy
Ernesto Puerta [Tue, 31 May 2022 11:21:01 +0000 (13:21 +0200)]
Merge pull request #45722 from rhcs-dashboard/wip-55105-quincy

quincy: mgr/dashboard: extend daemon actions to host details

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agomgr/dashboard: fix linting errors and add test 45722/head
Aashish Sharma [Fri, 8 Apr 2022 05:19:04 +0000 (10:49 +0530)]
mgr/dashboard: fix linting errors and add test

Fixes: https://tracker.ceph.com/issues/55218
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit b496f5837803a915daac98b0fad56eac3174db85)

Conflicts:
   src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-daemon-list/service-daemon-list.component.html

 - ignore the change

3 years agoMerge pull request #46377 from tchaikov/quincy-pr-46355
Yuri Weinstein [Fri, 27 May 2022 17:05:50 +0000 (10:05 -0700)]
Merge pull request #46377 from tchaikov/quincy-pr-46355

quincy: ceph.spec.in: disable annobin plugin if compile with gcc-toolset

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46409 from adk3798/quincy-deb-fix
Yuri Weinstein [Fri, 27 May 2022 15:51:33 +0000 (08:51 -0700)]
Merge pull request #46409 from adk3798/quincy-deb-fix

quincy: debian: include the new object_format.py file

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46374 from vumrao/wip-vumrao-55742
Yuri Weinstein [Fri, 27 May 2022 15:49:39 +0000 (08:49 -0700)]
Merge pull request #46374 from vumrao/wip-vumrao-55742

quincy: mon/LogMonitor: reopen log files on SIGHUP

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #45697 from tserong/wip-55098-quincy
Yuri Weinstein [Fri, 27 May 2022 15:48:50 +0000 (08:48 -0700)]
Merge pull request #45697 from tserong/wip-55098-quincy

quincy: ceph.spec.in: remove build directory at end of %install

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #46278 from votdev/wip-55643-quincy
Ernesto Puerta [Fri, 27 May 2022 10:53:56 +0000 (12:53 +0200)]
Merge pull request #46278 from votdev/wip-55643-quincy

quincy: mgr/dashboard: Creating and editing Prometheus AlertManager silences is buggy

Reviewed-by: Sarthak Gupta <sarthak.dev.0702@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46380 from rhcs-dashboard/wip-55739-quincy
Ernesto Puerta [Fri, 27 May 2022 10:43:27 +0000 (12:43 +0200)]
Merge pull request #46380 from rhcs-dashboard/wip-55739-quincy

quincy: mgr/dashboard: form field validation icons overlap with other icons

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agodebian: include the new object_format.py file 46409/head
John Mulligan [Thu, 26 May 2022 14:56:44 +0000 (10:56 -0400)]
debian: include the new object_format.py file

This was missed when adding object_format.py to the RPM packaging.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit b66ec8159557163a5c5a20918d1ec399a53f0604)

3 years agoMerge pull request #46184 from vshankar/tr-55428
Yuri Weinstein [Thu, 26 May 2022 15:37:37 +0000 (08:37 -0700)]
Merge pull request #46184 from vshankar/tr-55428

quincy: mds: include encoded stray inode when sending dentry unlink message to replicas

Reviewed-by: Kotresh HR <khiremat@redhat.com>
3 years agoMerge pull request #46140 from kotreshhr/wip-55336-quincy
Yuri Weinstein [Thu, 26 May 2022 15:36:43 +0000 (08:36 -0700)]
Merge pull request #46140 from kotreshhr/wip-55336-quincy

quincy: mgr/volumes: Fix idempotent subvolume rm

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
3 years agoMerge pull request #46384 from ljflores/wip-55744-quincy
Laura Flores [Wed, 25 May 2022 15:10:27 +0000 (10:10 -0500)]
Merge pull request #46384 from ljflores/wip-55744-quincy

quincy: qa/suites/rados/thrash-erasure-code-big/thrashers: add `osd max backfills` setting to mapgap and pggrow

3 years agoMerge pull request #46381 from zdover23/wip-doc-backport-quincy-release-notes-to...
zdover23 [Tue, 24 May 2022 20:14:49 +0000 (06:14 +1000)]
Merge pull request #46381 from zdover23/wip-doc-backport-quincy-release-notes-to-quincy-branch-2022-05-24

Quincy: Wip doc backport quincy release notes to quincy branch 2022 05 24

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoqa/suites/rados/thrash-erasure-code-big/thrashers: add `osd max backfills` setting... 46384/head
Laura Flores [Mon, 16 May 2022 22:59:42 +0000 (17:59 -0500)]
qa/suites/rados/thrash-erasure-code-big/thrashers: add `osd max backfills` setting to mapgap and pggrow

All `rados/thrash-erasure-code-big` tests that die due to the “wait_for_recovery” timeout have one thing in common: They contain either `thrashers/pggrow` or `thrashers/mapgap`.

The difference between pggrow and mapgap vs. all other non-offending thrashers (default, careful, fastread, and morepggrow) is that they lack an override setting for `osd max backfills`. `osd max backfills` is the max number of backfill operations allowed to/from an OSD. The higher the number, the quicker the recovery. By default, this value is 1. On all of the non-offending thrashers (default, careful, fastread, and morepggrow), the default 1 value gets overridden in their .yaml files with a value > 1. This is not the case for pggrow and mapgap, however, as they lack an `osd max backfills` override setting.

The mclock op scheduler is known to override `osd max backfills` with a high value, but all of the thrash-erasure-code-big thrashers have their op queue set to “debug_random”, which chooses randomly between op queues (the debug_random op queue is set to override the default mclock_scheduler in qa/config/rados.yaml). So, coupled with the “debug_random” op queue, the low `osd max backfill` setting is causing some tests to time out in recovery.

WITHOUT `osd max backfills`, as they are now, “mapgap” and “pggrow” tests die due to timed-out recovery about 17/100 times, as seen here with a pggrow test: http://pulpito.front.sepia.ceph.com/lflores-2022-05-18_14:24:29-rados:thrash-erasure-code-big-master-distro-default-smithi/

WITH `osd max backfills` specified, as I have suggested in this PR, 99/100 tests passed, with one test failing for a different reason:
http://pulpito.front.sepia.ceph.com/lflores-2022-05-17_22:40:27-rados:thrash-erasure-code-big-master-distro-default-smithi/

I also scheduled 145 tests WITH `osd max backfills` that are a mix of pggrow and mapgap thrashers. 144/145 tests passed, with one test failing for a different reason. http://pulpito.front.sepia.ceph.com/lflores-2022-05-17_15:27:54-rados:thrash-erasure-code-big-master-distro-default-smithi/

Fixes: https://tracker.ceph.com/issues/51076
Signed-off-by: Laura Flores <lflores@redhat.com>
(cherry picked from commit 40062676c2ceed49b9fa147127ffa83ba6118e2a)

3 years agoMerge pull request #46254 from tserong/wip-55615-quincy
Yuri Weinstein [Tue, 24 May 2022 15:06:14 +0000 (08:06 -0700)]
Merge pull request #46254 from tserong/wip-55615-quincy

quincy: test: No direct use of nose

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46251 from rzarzynski/wip-45529-quincy
Yuri Weinstein [Tue, 24 May 2022 15:05:36 +0000 (08:05 -0700)]
Merge pull request #46251 from rzarzynski/wip-45529-quincy

quincy: osd/PGLog.cc: Trim duplicates by number of entries

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #46234 from vumrao/wip-vumrao-54277
Yuri Weinstein [Tue, 24 May 2022 15:04:47 +0000 (08:04 -0700)]
Merge pull request #46234 from vumrao/wip-vumrao-54277

quincy: rgw: remove rgw_rados_pool_pg_num_min and its use on pool creation use the cluster defaults for pg_num_min

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/releases/quincy.rst: mention log_to_journald 46381/head
Neha Ojha [Wed, 20 Apr 2022 00:45:49 +0000 (00:45 +0000)]
doc/releases/quincy.rst: mention log_to_journald

Details about https://tracker.ceph.com/issues/55383

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc: Typo and indentation fix
David Galloway [Wed, 20 Apr 2022 00:20:44 +0000 (20:20 -0400)]
doc: Typo and indentation fix

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agodoc: No changelog for first release
David Galloway [Tue, 19 Apr 2022 18:32:39 +0000 (14:32 -0400)]
doc: No changelog for first release

The diff between origin/pacific..origin/quincy is definitely not what we want listed.  There is no Changelog for the first major release.

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agodoc/releases: additional clarification, release date
Neha Ojha [Tue, 19 Apr 2022 16:59:06 +0000 (16:59 +0000)]
doc/releases: additional clarification, release date

- address review comments
- emphasize LevelDB removal
- update release date

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/releases/releases.yml: update release date
Josh Durgin [Thu, 14 Apr 2022 06:51:26 +0000 (02:51 -0400)]
doc/releases/releases.yml: update release date

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: add new cephadm features
Josh Durgin [Thu, 14 Apr 2022 06:50:33 +0000 (02:50 -0400)]
doc/releases/quincy: add new cephadm features

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: link to quincy versions of the docs
Josh Durgin [Thu, 14 Apr 2022 06:43:23 +0000 (02:43 -0400)]
doc/releases/quincy: link to quincy versions of the docs

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: add rbd release notes
Josh Durgin [Thu, 14 Apr 2022 06:42:46 +0000 (02:42 -0400)]
doc/releases/quincy: add rbd release notes

[ idryomov: mention notrim option, minor nits ]

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agodoc/releases/quincy.rst: add more rados notes
Neha Ojha [Tue, 12 Apr 2022 18:55:44 +0000 (18:55 +0000)]
doc/releases/quincy.rst: add more rados notes

and reorder

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/releases/quincy.rst: condense pg_autoscaler notes
Neha Ojha [Tue, 12 Apr 2022 18:33:02 +0000 (18:33 +0000)]
doc/releases/quincy.rst: condense pg_autoscaler notes

remove scale-down mode and talk about the bulk flag

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/dashboard: Dashboard quincy release notes
Ernesto Puerta [Fri, 8 Apr 2022 16:00:09 +0000 (18:00 +0200)]
doc/dashboard: Dashboard quincy release notes

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
3 years agodoc/releases/quincy: Update 'mclock_scheduler' release note.
Sridhar Seshasayee [Thu, 7 Apr 2022 17:44:29 +0000 (23:14 +0530)]
doc/releases/quincy: Update 'mclock_scheduler' release note.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
3 years agodoc/releases/quincy: remove old release notes
Josh Durgin [Tue, 29 Mar 2022 00:26:34 +0000 (20:26 -0400)]
doc/releases/quincy: remove old release notes

libcephsqlite was part of pacific and mentioned in 16.2.0 release notes.
The bluestore bug was never present in quincy, so no need to mention it here.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: link to quincy versions of the docs
Josh Durgin [Tue, 29 Mar 2022 00:24:16 +0000 (20:24 -0400)]
doc/releases/quincy: link to quincy versions of the docs

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases/quincy: update upgrade procedure
Josh Durgin [Tue, 29 Mar 2022 00:16:58 +0000 (20:16 -0400)]
doc/releases/quincy: update upgrade procedure

Include cephadm/manual upgrade procedures like pacific.
Update release names, and remove obsolete steps.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases: v17.2.0 will be the first release
Josh Durgin [Mon, 28 Mar 2022 23:41:54 +0000 (19:41 -0400)]
doc/releases: v17.2.0 will be the first release

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/releases: put release notes in proper places
Zac Dover [Mon, 28 Mar 2022 15:24:31 +0000 (01:24 +1000)]
doc/releases: put release notes in proper places

This PR moves release notes into their proper places
on the Quincy release notes page.

This PR supersedes (and includes) the work done in
PR#45610.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agodoc/releases: update telemetry commands
Yaarit Hatuka [Wed, 23 Mar 2022 17:08:59 +0000 (13:08 -0400)]
doc/releases: update telemetry commands

Telemetry is already an 'always-on' module, thus no need to enable it.
In Quincy, when telemetry is off, we use preview / preview-all to get a
sample report, and show / show-all to see what actually is being
reported.

Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
3 years agodoc: Add initial Quincy docs
David Galloway [Tue, 15 Feb 2022 21:41:59 +0000 (16:41 -0500)]
doc: Add initial Quincy docs

The changelog is the difference between origin/pacific..origin/quincy.

There are a number of `## TODO` comments that component devs will need to review and add input.

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agomgr/dashboard: form field validation icons overlap with other icons 46380/head
Sarthak0702 [Wed, 11 May 2022 18:57:47 +0000 (00:27 +0530)]
mgr/dashboard: form field validation icons overlap with other icons

Signed-off-by: Sarthak0702 <sarthak.dev.0702@gmail.com>
(cherry picked from commit 0bd2d023026af737b1894f74a545f039a6ec2428)

3 years agoceph.spec.in: disable annobin plugin if compile with gcc-toolset 46377/head
Kefu Chai [Fri, 20 May 2022 06:25:10 +0000 (14:25 +0800)]
ceph.spec.in: disable annobin plugin if compile with gcc-toolset

we are seeing FTBFS failures when compiling the packages with seastar
enabled, like:

Package gcc-toolset-9-annobin-9.08-4.el8.x86_64 is already installed.
...
Package redhat-rpm-config-130-1.el8.noarch is already installed.
...
CFLAGS=-O2 -g -pipe -Wall -Werror=format-security  -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
...
-- The CXX compiler identification is GNU 9.2.1
....
    Building CXX object CMakeFiles/cmTC_386fb.dir/testCXXCompiler.cxx.o
    /opt/rh/gcc-toolset-9/root/usr/bin/c++   -O2 -g -pipe -Wall -Werror=format-security  -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -o CMakeFiles/cmTC_386fb.dir/testCXXCompiler.cxx.o -c /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos8/DIST/centos8/MACHINE_SIZE/gigantic/release/17.2.0-209-g3e01cd41/rpm/el8/BUILD/ceph-17.2.0-209-g3e01cd41/x86_64-redhat-linux-gnu/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
    cc1plus: fatal error: inaccessible plugin file /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/gcc-annobin.so expanded from short plugin name gcc-annobin: No such file or directory

the root cause is that redhat-rpm-config expects gcc-annobin:

$ cat /usr/lib/rpm/redhat/redhat-annobin-cc1 *cc1_options: + %{!-fno-use-annobin:%{!iplugindir*:%:find-plugindir()} -fplugin=gcc-annobin}

while this plugin is not installed by gcc-toolset-9-annobin, which installs annobin.so though:

$ rpm -ql gcc-toolset-9-annobin| grep annobin.so /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/annobin.so /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/annobin.so.0 /opt/rh/gcc-toolset-9/root/usr/lib/gcc/x86_64-redhat-linux/9/plugin/annobin.so.0.0.0

but gcc-toolset-8-annobin provides this file. upgrading to
gcc-toolset-11 does not help. see https://centos.pkgs.org/8-stream/centos-appstream-x86_64/gcc-toolset-11-annobin-plugin-gcc-10.23-1.el8.x86_64.rpm.html
so, the intermediate solution would be to disable the plugin, if
we want to use gcc-toolset to build rpm packages.

in this change, _annotated_build is undefined to prevent the compiler
from adding extra information to the binary. in general this change
shuold be safe, without these information, it'd be hard to tell if
the binary is hardened or what ABI version it expects. see
also https://fedoraproject.org/wiki/Changes/Annobin

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 5a78fe176419e097c61e6596dafc39477d652280)

3 years agoMerge pull request #46353 from mgfritch/backport-46218-quincy
Adam King [Mon, 23 May 2022 22:52:47 +0000 (18:52 -0400)]
Merge pull request #46353 from mgfritch/backport-46218-quincy

quincy: cephadm: prometheus: The generatorURL in alerts is only using hostname

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
3 years agoMerge pull request #46360 from adk3798/quincy-batch-may1
Adam King [Mon, 23 May 2022 22:51:46 +0000 (18:51 -0400)]
Merge pull request #46360 from adk3798/quincy-batch-may1

quincy: Cephadm Batch Backport May

Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #46246 from ljflores/wip-55624-quincy
Laura Flores [Mon, 23 May 2022 21:36:48 +0000 (16:36 -0500)]
Merge pull request #46246 from ljflores/wip-55624-quincy

quincy: ceph.in: clarify the usage of `--format` in the ceph command

3 years agomon/LogMonitor: reopen log files on SIGHUP 46374/head
胡玮文 [Tue, 3 May 2022 09:35:48 +0000 (17:35 +0800)]
mon/LogMonitor: reopen log files on SIGHUP

Fixes: https://tracker.ceph.com/issues/55383
Signed-off-by: 胡玮文 <huww98@outlook.com>
(cherry picked from commit ee80f9fe766fe765d79051ff59a1bcc94fc1f9e7)

3 years agoMerge pull request #45846 from dvanders/wip-55251-quincy
Yuri Weinstein [Mon, 23 May 2022 15:50:53 +0000 (08:50 -0700)]
Merge pull request #45846 from dvanders/wip-55251-quincy

quincy: rgw_reshard: drop olh entries with empty name

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years ago.github: ensure object_format.py is labeled the same as mgr_util.py 46360/head
John Mulligan [Tue, 10 May 2022 14:31:34 +0000 (10:31 -0400)]
.github: ensure object_format.py is labeled the same as mgr_util.py

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 4904b02f9f042aa83ea4fd60ee112d2e06a487a5)

3 years agopybind/mgr: include object_format.py in CMakeLists.txt for build
John Mulligan [Tue, 10 May 2022 14:30:32 +0000 (10:30 -0400)]
pybind/mgr: include object_format.py in CMakeLists.txt for build

Because ceph uses CMake for building python packages too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 1ecbffbea5d6af96be4b360cd30332779e793efc)

3 years agopybind/mgr: add short guide to the object_format.py docstring
John Mulligan [Wed, 13 Apr 2022 14:47:53 +0000 (10:47 -0400)]
pybind/mgr: add short guide to the object_format.py docstring

Add a short-ish guide to the use of the object_format module's Responder
and other types.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit d6c31681cf086546a803990e58785b9285fc2587)

3 years agopybind/mgr: add test cases for ErrorResponse exception type
John Mulligan [Mon, 11 Apr 2022 19:33:01 +0000 (15:33 -0400)]
pybind/mgr: add test cases for ErrorResponse exception type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 55ee8a31631ac04629ffa2905d9a8ace9593599a)

3 years agopybind/mgr: add a wrapper exception for use with Responder
John Mulligan [Mon, 11 Apr 2022 19:32:42 +0000 (15:32 -0400)]
pybind/mgr: add a wrapper exception for use with Responder

In order to best get a "real" exception converted to something
that can be cleanly sent to the mgr response, this new exception
type can be invoked directly, or with the wrap method to automatically
pull as many properties as possibly from the original exception.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 777814d59429bc28eeee0b13201b60b672226753)

3 years agopybind/mgr: add tests to verify Responder decorator behavior
John Mulligan [Mon, 11 Apr 2022 19:16:48 +0000 (15:16 -0400)]
pybind/mgr: add tests to verify Responder decorator behavior

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 1800f30f04fcb24b3c02afb7122d7e1993c05cb3)

3 years agopybind/mgr: add format arg to Responder's extra args
John Mulligan [Mon, 11 Apr 2022 19:16:34 +0000 (15:16 -0400)]
pybind/mgr: add format arg to Responder's extra args

To ensure that the Responder can make use of a user provided `--format=`
parameter even if the programmer doesn't explicitly add one to the
args of an endpoint function we set the `extra_args` attribute on
our wrapper function so that CLICommand can later extract it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit efee0d7ebc5d990338eb6d256fe23717bafe128d)

3 years agopybind/mgr: enhance CLICommand to fetch extra args from wrapped funcs
John Mulligan [Mon, 11 Apr 2022 19:03:12 +0000 (15:03 -0400)]
pybind/mgr: enhance CLICommand to fetch extra args from wrapped funcs

Previously, the CLICommand decorator "assumed" that the decorator was
applied directly to a mgr module api endpoint function. Now that we plan
on adding the Responder decorator into the mix we need a way of
properly fetching the arguments of the endpoint function. In addition,
the decorator itself needs to provide extra arguments to the mgr
(in cases where the endpoint function doesn't explicitly ask for it).
Thus we add a helper function to find the endpoint function when
wrapped as well as extract extra arguments when "walking" the stack
of __wrapped__ functions.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 2b22297f5664a2c778f6591dd1e1f3822fc5a3c1)

3 years agopybind/mgr: change to private _load_func_metadata classmethod
John Mulligan [Mon, 11 Apr 2022 18:46:37 +0000 (14:46 -0400)]
pybind/mgr: change to private _load_func_metadata classmethod

The load_func_metadata had exactly one use in the codebase, the
store_func_metadata method. It was also a staticmethod that referred to
a property of it's class.

This change makes the function "private" by renaming it to
_load_func_metadata, removing it from the public "surface area" of the
type. It changes it to a classmethod so that it would work correctly
if used from a subclass of CLICommand.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 8c7876146bb7d579cd000049611ae999a8bc1963)

3 years agopybind/mgr: add test cases for Responder type
John Mulligan [Mon, 11 Apr 2022 18:38:52 +0000 (14:38 -0400)]
pybind/mgr: add test cases for Responder type

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 76492408dcf18197162bf9220300c2f70701528b)

3 years agopybind/mgr: add a Responder decorator type
John Mulligan [Sat, 9 Apr 2022 19:19:37 +0000 (15:19 -0400)]
pybind/mgr: add a Responder decorator type

The Responder is the decorator that future endpoint functions in the mgr can
use to automatically handle conversions of returned types to serilaized
data (JSON, YAML, etc) as well as automatically convert exceptions into
error responses.

The Responder makes use of format and return-value adapter types,
previously added to the module, to convert a returned value into a mgr
response. This change adds some exception types to return error
responses to the clients.

Simple customizations can be done by passing an alternate format adapter
type when the Responder is being constructed. Additional customization
can be done by subclassing the Responder.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 6e234b190841204d076e1b622db543674d0c4b57)

3 years agopybind/mgr: add CommonFormatter type and valid_formats method
John Mulligan [Sat, 9 Apr 2022 19:13:41 +0000 (15:13 -0400)]
pybind/mgr: add CommonFormatter type and valid_formats method

A type that has a valid_formats method, and thus meets the
CommonFormatter protocol, supports distinguishing between formats
that are known but unsupported for a given API vs. unknown (possibly a typo).

To make working with the format names easier this also makes the Format
enum inherit from str.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 77573637cd78e50d1336680a23fd1044d626f855)

3 years agopybind/mgr: add a test case for the ReturnValueAdapter
John Mulligan [Sat, 9 Apr 2022 18:47:01 +0000 (14:47 -0400)]
pybind/mgr: add a test case for the ReturnValueAdapter

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 29d8be428c7aa0125ab5c6636cd4b8712e60f71b)

3 years agopybind/mgr: add a ReturnValueAdapter type to object_format.py
John Mulligan [Sat, 9 Apr 2022 18:46:50 +0000 (14:46 -0400)]
pybind/mgr: add a ReturnValueAdapter type to object_format.py

The ReturnValueAdapter type fulfills a similar role to the
ObjectFormatAdapter but instead of serializing data for the
body of a mgr response, extracts an return value (error code)
to reply with.

Most of the time it is totally unnecessary to provide an explicit
return value because if you have are returning a valid object (as
opposed to raising an exception) the return value will be zero
(success). However, in the off chance an type need to directly
communicate a return value for the mgr response it can provide
the `mgr_return_value` method and the adapater will discover
and use it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 27787a9905d4d2e1062f7f4977377530d7aa8c23)

3 years agopybind/mgr: add test cases for ObjectFormatAdapter
John Mulligan [Sat, 9 Apr 2022 18:29:50 +0000 (14:29 -0400)]
pybind/mgr: add test cases for ObjectFormatAdapter

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit f2e10b7f504a6aa63a72422320d38d2b6334295b)

3 years agopybind/mgr: add ObjectFormatAdapter type to object_format.py
John Mulligan [Sat, 9 Apr 2022 18:29:25 +0000 (14:29 -0400)]
pybind/mgr: add ObjectFormatAdapter type to object_format.py

The ObjectFormatAdapter fills the role for bridging between types
that can return a simplified representation of themselves and
actually formatting objects as JSON and YAML.

Note that we do not want generally want types that serialize themselves
to JSON/YAML strings. That approach makes it harder to standardize on
the final output formatting (indentation, multiple yaml docs, etc).
Additionally, we do not want the types to need to specialize between
JSON and YAML. So, by default, we try to use a method `to_simplified`
which is not specific to any serialization format.  However, for
backwards compatibility with types that already have methods *that
return dicts/lists/etc* under the names `to_json` or `to_yaml` we
support using the `compatible` flag to enable the use of those methods.
If the adaptor fails to find a conversion method on the object,
serialization of the object itself is attempted - this way return values
of simple lists, dicts, etc also works.

An earlier version of this patch tried to share the JSON/YAML
serialization logic found in src/pybind/mgr/orchestrator/module.py.
However, this approach was deemed too complicated and we also preferred
to use yaml safe dumping whenever possible.  This does lead to a level
of code duplication. Dealing with this duplication is a task left for
the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 5a3f2ae916146a13290695e141c789722dbd9ad9)

3 years agopybind/mgr: reformat quoting in format enum
John Mulligan [Fri, 8 Apr 2022 15:15:55 +0000 (11:15 -0400)]
pybind/mgr: reformat quoting in format enum

Whenever possible I use 'black' to reformat the python code.
It's strict and its formatting is superset of what ceph's
formatting tools require. This change updates the code that was
moved into this file so that future uses of 'black' don't
reformat this section too.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 05b76159b6a262b6bbdab3c0b41a80a85bf705e0)

3 years agopybind/mgr: start a new object_format.py for general formatting
John Mulligan [Mon, 14 Mar 2022 15:29:50 +0000 (11:29 -0400)]
pybind/mgr: start a new object_format.py for general formatting

Currently, there's some auto-formatting logic in the orchestrator
module and a lot of ad-hoc formatting scattered around the mgr modules.
This new module aims to bring some of that together in a central
location.
Start by moving the Format enum from the orchestrator.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 006c33895f4b7559219821bcfafbe82e789e9e41)

3 years agodoc/cephadm: staggered upgrade docs
Adam King [Tue, 19 Apr 2022 17:20:45 +0000 (13:20 -0400)]
doc/cephadm: staggered upgrade docs

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 6a68def64eb720ef0eeace7c0d19c48cb1f6e5bb)