]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 months agocephadm: remove restriction for crush device classes 56087/head
Seena Fallah [Sun, 11 Feb 2024 21:50:05 +0000 (22:50 +0100)]
cephadm: remove restriction for crush device classes

A restriction has been introduced here (https://github.com/ceph/ceph/commit/6c6cb2f5130dbcf8e42cf03666173948411fc92b) which doesn't let OSDs be created with custom crush device classes.
Crush Device Class is the key that helps the crush distinguish between multiple storage classes, so it must accept any custom names.

Fixes: https://tracker.ceph.com/issues/64382
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 5999196f37bc5cb12de26d5f0aa077229e3ffc42)

Conflicts:
src/python-common/ceph/deployment/translate.py

16 months agoMerge pull request #55975 from adk3798/wip-62800-quincy
Adam King [Sun, 10 Mar 2024 18:34:45 +0000 (14:34 -0400)]
Merge pull request #55975 from adk3798/wip-62800-quincy

quincy: cephadm: run tcmu-runner through script to do restart on failure

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55974 from adk3798/wip-62796-quincy
Adam King [Sun, 10 Mar 2024 18:26:47 +0000 (14:26 -0400)]
Merge pull request #55974 from adk3798/wip-62796-quincy

quincy: mgr/cephadm: don't use image tag in orch upgrade ls

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55966 from adk3798/wip-62468-quincy
Adam King [Sun, 10 Mar 2024 18:22:13 +0000 (14:22 -0400)]
Merge pull request #55966 from adk3798/wip-62468-quincy

quincy: cephadm: add tcmu-runner to logrotate config

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55965 from adk3798/wip-62461-quincy
Adam King [Sun, 10 Mar 2024 18:21:13 +0000 (14:21 -0400)]
Merge pull request #55965 from adk3798/wip-62461-quincy

quincy: cephadm: support for CA signed keys

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55964 from adk3798/wip-61965-quincy
Adam King [Sun, 10 Mar 2024 18:19:36 +0000 (14:19 -0400)]
Merge pull request #55964 from adk3798/wip-61965-quincy

quincy: mgr/cephadm: add is_host_<status> functions to HostCache

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55962 from adk3798/wip-61685-quincy
Adam King [Sun, 10 Mar 2024 18:18:13 +0000 (14:18 -0400)]
Merge pull request #55962 from adk3798/wip-61685-quincy

quincy: python-common/drive_group: handle fields outside of 'spec' even when 'spec' is provided

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55961 from adk3798/wip-61682-quincy
Adam King [Sun, 10 Mar 2024 18:00:02 +0000 (14:00 -0400)]
Merge pull request #55961 from adk3798/wip-61682-quincy

quincy: python-common/drive_selection: lower log level of limit policy message

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55959 from adk3798/wip-61543-quincy
Adam King [Sun, 10 Mar 2024 17:58:49 +0000 (13:58 -0400)]
Merge pull request #55959 from adk3798/wip-61543-quincy

quincy: cephadm: Adding support to configure public_network cfg section

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #55958 from adk3798/quincy-test-custom-config
Adam King [Sun, 10 Mar 2024 17:57:56 +0000 (13:57 -0400)]
Merge pull request #55958 from adk3798/quincy-test-custom-config

quincy: qa/cephadm: testing for extra daemon/container features

Reviewed-by: John Mulligan <jmulligan@redhat.com>
16 months agoMerge pull request #56074 from zdover23/wip-doc-2024-03-09-backport-56068-to-quincy
zdover23 [Sat, 9 Mar 2024 13:39:11 +0000 (23:39 +1000)]
Merge pull request #56074 from zdover23/wip-doc-2024-03-09-backport-56068-to-quincy

quincy: doc/glossary: add "Crimson" entry

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
16 months agodoc/glossary: add "Crimson" entry 56074/head
Zac Dover [Fri, 8 Mar 2024 17:17:59 +0000 (03:17 +1000)]
doc/glossary: add "Crimson" entry

Add a "Crimson" entry to the glossary.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit b31e061cc087b31a7e9e841dd21e7403a2197378)

16 months agoMerge pull request #56042 from zdover23/wip-doc-2024-03-08-backport-56010-to-quincy
zdover23 [Sat, 9 Mar 2024 04:32:14 +0000 (14:32 +1000)]
Merge pull request #56042 from zdover23/wip-doc-2024-03-08-backport-56010-to-quincy

quincy: doc/start: add Slack invite link

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
16 months agoMerge pull request #56058 from zdover23/wip-doc-2024-03-08-backport-56045-to-quincy
Anthony D'Atri [Fri, 8 Mar 2024 16:00:09 +0000 (11:00 -0500)]
Merge pull request #56058 from zdover23/wip-doc-2024-03-08-backport-56045-to-quincy

quincy: doc/rados: restore PGcalc tool

16 months agodoc/rados: restore PGcalc tool 56058/head
Zac Dover [Thu, 7 Mar 2024 17:29:50 +0000 (03:29 +1000)]
doc/rados: restore PGcalc tool

Restore the PGcalc tool to the documentation suite.

Co-authored-by: Josh Durgin <jdurgin@redhat.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit eaaf72253123de1a66f163f651046817faa97a1a)

16 months agodoc/start: add Slack invite link 56042/head
Zac Dover [Thu, 7 Mar 2024 03:01:47 +0000 (13:01 +1000)]
doc/start: add Slack invite link

Add a link to the ceph-storage Slack invitation page. Previously the
link went to a plain old "this is the ceph-storage Slack" page that did
not direct the reader to sign up.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit dee319e61204b2ee9ac13562c2c7075ef0f2ea4b)

16 months agoMerge pull request #56013 from zdover23/wip-doc-2024-03-07-backport-55995-to-quincy
Anthony D'Atri [Thu, 7 Mar 2024 15:35:06 +0000 (10:35 -0500)]
Merge pull request #56013 from zdover23/wip-doc-2024-03-07-backport-55995-to-quincy

quincy: doc/architecture: correct typo

16 months agodoc/architecture: correct typo 56013/head
Zac Dover [Wed, 6 Mar 2024 11:40:10 +0000 (21:40 +1000)]
doc/architecture: correct typo

s/client/clients/ where necessary, and add a link to the glossary.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit ae08855cf870173dce2a47a28f3bbb22e7ae0ca2)

16 months agocephadm: run tcmu-runner through script to do restart on failure 55975/head
Adam King [Tue, 13 Jun 2023 23:54:30 +0000 (19:54 -0400)]
cephadm: run tcmu-runner through script to do restart on failure

Currently, cephadm runs tcmu-runner as a background
process inside the unit file deployed for iscsi
(rbd-target-api is the primary process). This means
if tcmu-runner crashes for whatever reason, systemd
will not attempt to restart it. This commits sets
up a script to serve as the container entrypoint
for the tcmu-runner container that will run
tcmu-runner and also restart it on failure
(unless there are too many failures in a short
period, at which point it gives up).

The hope is to eventually drop use of this script
for a better solution in squid onward, but this
should be helpful on older releases (quincy and
pacific at least) where we won't be able to
bring that better solution

Fixes: https://tracker.ceph.com/issues/61667
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 47eb6b3f62afe993073429b02051ae0343d7aea3)

Conflicts:
src/cephadm/tests/test_cephadm.py

16 months agocephadm: Fix extra_container_args for iSCSI
Raimund Sacherer [Fri, 26 May 2023 15:52:57 +0000 (17:52 +0200)]
cephadm: Fix extra_container_args for iSCSI

extra_container_args where only applied for rbd_target_api container and not for
tcmu-runner container.

Signed-off-by: Raimund Sacherer <rsachere@redhat.com>
(cherry picked from commit ad60fc3db644b8bf44a582e79888e2fb15d7ce3a)

Conflicts:
src/cephadm/cephadm

16 months agoModify how Iscsi tcmu-runner container is started within systemd
Teoman ONAY [Tue, 31 May 2022 08:34:05 +0000 (10:34 +0200)]
Modify how Iscsi tcmu-runner container is started within systemd

Modify Iscsi tcmu-runner container to be run demonized in the same
systemd slice as all other ceph processes

Signed-off-by: Teoman ONAY <tonay@redhat.com>
(cherry picked from commit 79c51938e88dc903f03faa42a94070ff8874a7fa)

16 months agoqa: test_iscsi_pids_limit.sh: increase sleep time
Ilya Dryomov [Mon, 11 Apr 2022 10:45:02 +0000 (12:45 +0200)]
qa: test_iscsi_pids_limit.sh: increase sleep time

It could take longer than 30 seconds to fork off 40000 processes on
a busy system.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit a23b9c99387858fb5299a42e7b79f319ece03641)

16 months agomgr/cephadm: don't use image tag in orch upgrade ls 55974/head
Adam King [Fri, 1 Sep 2023 13:05:04 +0000 (09:05 -0400)]
mgr/cephadm: don't use image tag in orch upgrade ls

Using the tag seems to screw up the auth URL generated
and is unnecessary since we're trying to get a list
of tags for the image anyway.

Fixes: https://tracker.ceph.com/issues/62679
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 0f4426d3a085fc2f5137593029469c3b20ace77e)

16 months agocephadm: add tcmu-runner to logrotate config 55966/head
Adam King [Fri, 2 Jun 2023 00:06:35 +0000 (20:06 -0400)]
cephadm: add tcmu-runner to logrotate config

This process could be used to set up the tcmu-runner
to log to a file much like other ceph daemons

- create /etc/tcmu directory
- create /etc/tcmu/tcmu.conf directory with default options
- change dir to /var/log
- change log level to 4
- add -v /etc/tcmu:/etc/tcmu to tcmu-runner container podman line in unit.run

In order to support this (mostly for debugging) we should
add tcmu-runner to the logrotate config

Fixes: https://tracker.ceph.com/issues/61571
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit d5d40e07cae8a1d6a94029c4354d146b0baa3971)

16 months agoqa/cephadm: add test for ca signed keys 55965/head
Adam King [Fri, 7 Jul 2023 15:03:56 +0000 (11:03 -0400)]
qa/cephadm: add test for ca signed keys

Test that bootstraps with a CA signed key using
the use_ca_signed_key cephadm override. Then follows
up by doing a check-host on each host which verifies
the cephadm mgr module can reach and authenticate with
the nodes using the new key setup.

This probably should really be a workunit, but
I didn't want to create a full new section for
this test and I needed a section that didn't
already run the cephadm task for every test. I could
see this being moved into some sort of
"test_special_deployment_scenarios" section in the future

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

16 months agoqa/cephadm: add ca signed key to cephadm task
Adam King [Fri, 7 Jul 2023 14:36:39 +0000 (10:36 -0400)]
qa/cephadm: add ca signed key to cephadm task

To allow bootstrapping a cluster using a CA signed
key instead of the standard pubkey authentication.
Will allow explicit testing of this as we add support
for it

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

Conflicts:
qa/tasks/cephadm.py

16 months agodoc/cephadm: document setting up CA signed keys in running cluster
Adam King [Sat, 3 Jun 2023 19:42:19 +0000 (15:42 -0400)]
doc/cephadm: document setting up CA signed keys in running cluster

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

16 months agodoc/cephadm: document bootstrapping with CA signed keys
Adam King [Sat, 3 Jun 2023 19:28:05 +0000 (15:28 -0400)]
doc/cephadm: document bootstrapping with CA signed keys

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

16 months agodoc/cephadm: document how to pass self made SSH key pairs to bootstrap
Adam King [Sat, 3 Jun 2023 18:39:05 +0000 (14:39 -0400)]
doc/cephadm: document how to pass self made SSH key pairs to bootstrap

This didn't seem to exist in the install section of
the cephadm docs. Wanted to add it in before adding
documentation for bootstrapping with CA signed keys.

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

16 months agomgr/cephadm: add support for CA signed SSH keys setups
Adam King [Sat, 3 Jun 2023 17:31:58 +0000 (13:31 -0400)]
mgr/cephadm: add support for CA signed SSH keys setups

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

16 months agomgr/cephadm: add is_host_<status> functions to HostCache 55964/head
Adam King [Thu, 1 Jun 2023 23:23:45 +0000 (19:23 -0400)]
mgr/cephadm: add is_host_<status> functions to HostCache

A bunch of places were doing list compression to see if a host
was unreachable/draining/schedulable by hostname. This is meant to
replace all those instances of list compression with a function
call that does the same

Fixes: https://tracker.ceph.com/issues/61548
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit b4002529b6ec4fae83ae3958f9fc288b22106f90)

16 months agopython-common/drive_group: handle fields outside of 'spec' even when 'spec' is provided 55962/head
Adam King [Wed, 31 May 2023 17:08:35 +0000 (13:08 -0400)]
python-common/drive_group: handle fields outside of 'spec' even when 'spec' is provided

Otherwise certain specs such as

service_type: osd
service_id: xxx
service_name: osd.xxx
placement:
  hosts:
  - vm-00
spec:
  osds_per_device: 2
data_devices:
  paths:
  - /dev/vde

fail to apply with

Error EINVAL: ServiceSpec: 'dict' object has no attribute 'validate'

which is not a useful error message. This is caused by the
spec assuming all osd specific fields are either defined
in the 'spec' section or outside of it, but not mixed in.
We could also just consider these specs to be invalid
and just raise a better error message, but it seems easier
to make the minor adjustment for it to work, given there doesn't
seem to be an issue with mixing the styles for specs for
other service types.

Fixes: https://tracker.ceph.com/issues/61533
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 12901f617d9f21dcc4de9b039b7ab6484fbc99ca)

16 months agopython-common/drive_selection: lower log level of limit policy message 55961/head
Adam King [Mon, 5 Jun 2023 17:18:06 +0000 (13:18 -0400)]
python-common/drive_selection: lower log level of limit policy message

This gets logged every time cephadm tries to apply a
relevant OSD spec and ends up spamming the logs. There's no reason
we really need this to be at info rather than debug level,
so let's lower it.

Fixes: https://tracker.ceph.com/issues/61592
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 20478025696b4ef39ca3e50c7cbfdb1250f85cfd)

16 months agocephadm: Adding support to configure public_network cfg section 55959/head
Redouane Kachach [Mon, 22 May 2023 09:15:07 +0000 (11:15 +0200)]
cephadm: Adding support to configure public_network cfg section
Fixes: https://tracker.ceph.com/issues/61330
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 50811d114ec91a3e5e340f6845870597ea498b35)

16 months agoqa/cephadm: test for extra daemon features 55958/head
Adam King [Mon, 19 Jun 2023 18:24:23 +0000 (14:24 -0400)]
qa/cephadm: test for extra daemon features

Specifically, extra_container_args, extra_entrypoint_args,
and custom_configs.

This also provides testing for the CustomContainer
class which previously had no usage in any
of the teuthology tests

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

16 months agomgr/cephadm: add extra_entrypoint_args to mon spec
Adam King [Mon, 19 Jun 2023 20:07:31 +0000 (16:07 -0400)]
mgr/cephadm: add extra_entrypoint_args to mon spec

There was no reason for the mon spec to not include
this option. I believe this was just an oversight caused
by the addition of the mon spec and extra_entrypoint_args
in separate PRs around the same time.

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

Conflicts:
src/python-common/ceph/deployment/service_spec.py

16 months agomgr/cephadm: add extra_container_args and custom_configs to CustomContainer
Adam King [Mon, 19 Jun 2023 19:46:45 +0000 (15:46 -0400)]
mgr/cephadm: add extra_container_args and custom_configs to CustomContainer

CustomContainer was skipped previously for the extra_container_args
and custom_configs feature as these could already be done
using other fields within the custom container service spec
(the "args" and "files" fields respectively). It seems
desirable for us to allow setting these things for custom
containers the same as for other services for uniformity sake
and this allows us to use custom containers to test
these features.

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

Conflicts:
src/python-common/ceph/deployment/service_spec.py

16 months agoMerge pull request #55516 from afreen23/wip-64368-quincy
Nizamudeen A [Tue, 5 Mar 2024 08:08:44 +0000 (13:38 +0530)]
Merge pull request #55516 from afreen23/wip-64368-quincy

quincy: mgr/dashboard: fix error while accessing roles tab when policy attached

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
16 months agoMerge pull request #55937 from zdover23/wip-doc-2024-03-05-backport-55918-to-quincy
Anthony D'Atri [Tue, 5 Mar 2024 00:57:25 +0000 (19:57 -0500)]
Merge pull request #55937 from zdover23/wip-doc-2024-03-05-backport-55918-to-quincy

quincy: doc/rados: link to pg setting commands

16 months agoMerge pull request #55934 from zdover23/wip-doc-2024-03-05-backport-55924-to-quincy
Anthony D'Atri [Tue, 5 Mar 2024 00:52:29 +0000 (19:52 -0500)]
Merge pull request #55934 from zdover23/wip-doc-2024-03-05-backport-55924-to-quincy

quincy: doc/architecture: remove pleonasm

16 months agodoc/rados: link to pg setting commands 55937/head
Zac Dover [Mon, 4 Mar 2024 10:41:16 +0000 (20:41 +1000)]
doc/rados: link to pg setting commands

Link to the instructions for manually setting the number of PGs per
pool, from the mention of placement groups. These instructions are
included here in response to a request from Ronen Friedman on the
occasion of the removal of links to the PGcalc (see
https://github.com/ceph/ceph/pull/55899#pullrequestreview-1912940118).

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 9da81b87ca161370c869b49f5d4e6b50edd54a0e)

16 months agodoc/architecture: remove pleonasm 55934/head
Zac Dover [Mon, 4 Mar 2024 13:41:20 +0000 (23:41 +1000)]
doc/architecture: remove pleonasm

Remove the word "detailed" in a sentence immediately following a
sentence containing the word "detail".

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 7791509741d8c21e273a46374a087dcca53a2816)

16 months agoMerge pull request #55446 from zdover23/wip-doc-2024-02-05-backport-55434-to-quincy
zdover23 [Tue, 5 Mar 2024 00:33:01 +0000 (10:33 +1000)]
Merge pull request #55446 from zdover23/wip-doc-2024-02-05-backport-55434-to-quincy

quincy: src/common/options: Correct typo in rgw.yaml.in

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
16 months agoMerge pull request #55166 from kamoltat/wip-ksirivad-backport-quincy
Yuri Weinstein [Mon, 4 Mar 2024 20:46:12 +0000 (12:46 -0800)]
Merge pull request #55166 from kamoltat/wip-ksirivad-backport-quincy

quincy: mon/ConnectionTracker.cc: disregard connection scores from mon_rank = -1

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
16 months agoMerge pull request #55134 from ifed01/wip-ifed-fast-shutdown-assert-qui
Yuri Weinstein [Mon, 4 Mar 2024 20:45:10 +0000 (12:45 -0800)]
Merge pull request #55134 from ifed01/wip-ifed-fast-shutdown-assert-qui

quincy: osd: do not assert on fast shutdown timeout

Reviewed-by: Nitzan Mordechai <nmordech@redhat.com>
16 months agoMerge pull request #55117 from pdvian/wip-63986-quincy
Yuri Weinstein [Mon, 4 Mar 2024 20:44:26 +0000 (12:44 -0800)]
Merge pull request #55117 from pdvian/wip-63986-quincy

quincy: mon: add exception handling to ceph health mute

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
16 months agoMerge pull request #54877 from ifed01/wip-ifed-no-alloc-lba-align-qui
Yuri Weinstein [Mon, 4 Mar 2024 20:42:55 +0000 (12:42 -0800)]
Merge pull request #54877 from ifed01/wip-ifed-no-alloc-lba-align-qui

quincy: os/bluestore: get rid off resulting lba alignment in allocators

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
16 months agomgr/dashboard: fix roles page for roles without policies 55516/head
Nizamudeen A [Tue, 27 Feb 2024 07:18:56 +0000 (12:48 +0530)]
mgr/dashboard: fix roles page for roles without policies

If there is no permission policies attached to a role, it fails the
UI with an exception.

Fixes: https://tracker.ceph.com/issues/64588
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 5f3f31921c9f3ed909a94f287bfd4cc3f0987649)

16 months agomgr/dashboard: fix error while accessing roles tab when policy attached
Afreen [Tue, 6 Feb 2024 09:43:58 +0000 (15:13 +0530)]
mgr/dashboard: fix error while accessing roles tab when policy attached

Fixes https://tracker.ceph.com/issues/64270

Issue:
======
Accessing Object->Users-Roles tab causing 500 internal servor error.
This is due to the "PermissionPolicies" which are attached to role and
backend was not handling this field for rgw roles.

Fix:
====
Added "PermissionPolicies" as the valid field in backend and updated
frontend to render the attached policy in formatted JSON

Signed-off-by: Afreen <afreen23.git@gmail.com>
(cherry picked from commit 5247d7d19455a5ab7d1bb56b9586c6b08843b15d)

 Conflicts:
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/frontend/src/app/shared/models/crud-table-metadata.ts

16 months agoMerge pull request #55593 from afreen23/wip-update-mypy-ver-quincy
Laura Flores [Mon, 4 Mar 2024 00:21:32 +0000 (18:21 -0600)]
Merge pull request #55593 from afreen23/wip-update-mypy-ver-quincy

quincy: batch backport of #50743,  #55342, #48557

16 months agoMerge pull request #55902 from zdover23/wip-doc-2024-03-03-backport-55899-to-quincy
Anthony D'Atri [Sun, 3 Mar 2024 13:07:20 +0000 (08:07 -0500)]
Merge pull request #55902 from zdover23/wip-doc-2024-03-03-backport-55899-to-quincy

quincy: doc/rados: remove PGcalc from docs

16 months agodoc/rados: remove PGcalc from docs 55902/head
Zac Dover [Sun, 3 Mar 2024 10:28:00 +0000 (20:28 +1000)]
doc/rados: remove PGcalc from docs

Remove mention of the "PG calc" tool from the documentation. I have
removed all mention of this in one fell swoop to help posterity restore
mention of this tool if we decide we need to do so.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit ccb851d2a431647124754e1252df66ed11d0e900)

16 months agoMerge pull request #55881 from zdover23/wip-doc-2024-03-02-backport-55869-to-quincy
Anthony D'Atri [Fri, 1 Mar 2024 23:59:34 +0000 (18:59 -0500)]
Merge pull request #55881 from zdover23/wip-doc-2024-03-02-backport-55869-to-quincy

quincy:doc/install: add manual RADOSGW install procedure

16 months agodoc/install: add manual RADOSGW install procedure 55881/head
Zac Dover [Fri, 1 Mar 2024 12:11:14 +0000 (22:11 +1000)]
doc/install: add manual RADOSGW install procedure

Add a manual RADOSGW installation procedure to
doc/install/manual-deployment.rst. This procedure was developed by Janne
Johansson and reported to the ceph-users mailing list on 29 Jan 2024
here: https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/message/LB3YRIKAPOHXYCW7MKLVUJPYWYRQVARU/

Co-authored-by: Janne Johansson <icepic.dz@gmail.com>
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 565bc9503838906995fa48f59debcd2843775b18)

16 months agoMerge pull request #55853 from zdover23/wip-doc-2024-03-01-backport-55834-to-quincy
Anthony D'Atri [Fri, 1 Mar 2024 01:34:38 +0000 (20:34 -0500)]
Merge pull request #55853 from zdover23/wip-doc-2024-03-01-backport-55834-to-quincy

quincy: doc/dev: edit internals.rst

16 months agodoc/dev: edit internals.rst 55853/head
Zac Dover [Thu, 29 Feb 2024 07:40:57 +0000 (17:40 +1000)]
doc/dev: edit internals.rst

Edit doc/dev/internals.rst. Make a few sentences pithier.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit e16ab1df72c3640db907e377da7ca97ce3eaa26e)

16 months agoMerge pull request #55850 from zdover23/wip-doc-2024-03-01-backport-55835-to-quincy
Anthony D'Atri [Thu, 29 Feb 2024 23:46:47 +0000 (18:46 -0500)]
Merge pull request #55850 from zdover23/wip-doc-2024-03-01-backport-55835-to-quincy

quincy: doc/glossary: improve "MDS" entry

16 months agodoc/glossary: improve "MDS" entry 55850/head
Zac Dover [Thu, 29 Feb 2024 08:08:10 +0000 (18:08 +1000)]
doc/glossary: improve "MDS" entry

Improve the entry for "MDS" in doc/glossary.rst by linking to the
"ceph-mds" man page and mentioning the relationship between clients and
MDS (or MDSes).

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 2c6983d8b4e841f2bfbc4e4f82bb0e41e10aec7e)

16 months agoMerge pull request #55800 from zdover23/wip-doc-2024-02-28-backport-55782-to-quincy
Anthony D'Atri [Tue, 27 Feb 2024 23:51:51 +0000 (18:51 -0500)]
Merge pull request #55800 from zdover23/wip-doc-2024-02-28-backport-55782-to-quincy

quincy: doc/rados: add "change public network" procedure

16 months agodoc/rados: add "change public network" procedure 55800/head
Zac Dover [Mon, 26 Feb 2024 10:03:48 +0000 (20:03 +1000)]
doc/rados: add "change public network" procedure

Add a procedure to /doc/rados/operations/add-or-rm-mons.rst that
explains how to change the public_network in a Ceph cluster deployed
with cephadm. This procedure was developed by Eugen Block, and can be
seen in its original form here:
https://heiterbiswolkig.blogs.nde.ag/2024/02/22/cephadm-change-public-network/

Co-authored-by: Eugen Block <eblock@nde.ag>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 0b6739a4aa2dd931d97b8af9b3a352969f8767c2)

16 months agocephadm: fix base class behavior on python3.6 55593/head
John Mulligan [Wed, 12 Oct 2022 18:15:59 +0000 (14:15 -0400)]
cephadm: fix base class behavior on python3.6

This fixes the cephadm test files when running tox/pytest on python3.6
(centos/rhel 8).
Long story short, combining classmethod and property on py3.6 behaves
differently from py3.7 and up. Since the classmethod is actually
unnecessary for the base class to behave as it does, we drop that
decorator.

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

16 months agocephadm: fix running test suite on python3.6
John Mulligan [Wed, 12 Oct 2022 18:06:40 +0000 (14:06 -0400)]
cephadm: fix running test suite on python3.6

While a new version of pyfakefs is available, version 5 is not available
for python 3.6. In order to run the test suite on centos 8 we will
continue to work with pyfakefs version 4.

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

16 months agomgr/dashboard: Add # type ignore to fix ci failure
Afreen [Thu, 15 Feb 2024 15:33:36 +0000 (21:03 +0530)]
mgr/dashboard: Add # type ignore to fix ci failure

issue:
=====
The run_tox py is failing :
dashboard/module.py:34: note: In module imported here,
dashboard/__init__.py:60: note: ... from here:
dashboard/services/rgw_client.py: note: In member "_is_system_user" of class "RgwClient":
dashboard/services/rgw_client.py:483: error: Incompatible return value type (got "Literal[0, 1]", expected "bool")
Found 1 error in 1 file (checked 32 source files)
mypy: exit 1 (82.29 seconds) /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> mypy --config-file=../../mypy.ini -m alerts -m balancer -m cephadm -m crash -m dashboard -m devicehealth -m diskprediction_local -m hello -m influx -m iostat -m localpool -m mds_autoscaler -m mgr_module -m mgr_util -m mirroring -m nfs -m orchestrator -m pg_autoscaler -m progress -m prometheus -m rbd_support -m rgw -m rook -m snap_schedule -m selftest -m stats -m status -m telegraf -m telemetry -m test_orchestrator -m volumes -m zabbix pid=235356
mypy: FAIL ✖ in 3 minutes 11.62 secondstake your time..you can postpone too

Fix:
===
Added "# type ignore" to ignore the type check to _is_system_user's
response

Signed-off-by: Afreen <afreen23.git@gmail.com>
Co-authored-by: Laura Flores <lflores@ibm.com>
Co-authored-by: Afreen <afreen23.git@gmail.com>
16 months agoMerge pull request #55755 from zdover23/wip-doc-2024-02-26-backport-55683-to-quincy
zdover23 [Mon, 26 Feb 2024 10:26:11 +0000 (20:26 +1000)]
Merge pull request #55755 from zdover23/wip-doc-2024-02-26-backport-55683-to-quincy

quincy: doc/man/8/mount.ceph.rst: add more mount options

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
16 months agodoc/man/8/mount.ceph.rst: add more mount options 55755/head
Xiubo Li [Wed, 22 Nov 2023 08:13:08 +0000 (16:13 +0800)]
doc/man/8/mount.ceph.rst: add more mount options

Fixes: https://tracker.ceph.com/issues/62837
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit d5639cc670d248da7c84e6f2eaf73ce40bd93db4)

16 months agoMerge pull request #55750 from zdover23/wip-doc-2024-02-26-backport-55739-to-quincy
Anthony D'Atri [Mon, 26 Feb 2024 06:08:50 +0000 (01:08 -0500)]
Merge pull request #55750 from zdover23/wip-doc-2024-02-26-backport-55739-to-quincy

quincy: doc/glossary: Add "OMAP" to glossary

16 months agodoc/glossary: Add "OMAP" to glossary 55750/head
Zac Dover [Sun, 25 Feb 2024 21:14:25 +0000 (07:14 +1000)]
doc/glossary: Add "OMAP" to glossary

Add an entry for "OMAP" to the glossary. This commit represents only the
first improvement to the documentation of OMAP in the Ceph docs suite.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 1d8baa1d4c3583f4a8dc0f46d81f198a3d027e4d)

16 months agosrc/common/options: Correct typo in rgw.yaml.in 55446/head
Anthony D'Atri [Sat, 3 Feb 2024 07:18:25 +0000 (02:18 -0500)]
src/common/options: Correct typo in rgw.yaml.in

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
(cherry picked from commit 1796022aa4778226c2d7e04c1cb989ab9d025272)

16 months agoMerge pull request #55738 from zdover23/wip-doc-2024-02-25-backport-55731-to-quincy
Anthony D'Atri [Sun, 25 Feb 2024 05:58:08 +0000 (00:58 -0500)]
Merge pull request #55738 from zdover23/wip-doc-2024-02-25-backport-55731-to-quincy

quincy: doc/dev: fix spelling in crimson.rst

16 months agodoc/dev: fix spelling in crimson.rst 55738/head
Zac Dover [Fri, 23 Feb 2024 16:21:54 +0000 (02:21 +1000)]
doc/dev: fix spelling in crimson.rst

Repair a confusing sentence in doc/dev/crimson.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit dfdb5e124a19e0c5ce1e7ba47e574e0504e7091f)

16 months agoMerge pull request #55649 from zdover23/wip-doc-2024-02-20-backport-55637-to-quincy
zdover23 [Wed, 21 Feb 2024 22:55:16 +0000 (08:55 +1000)]
Merge pull request #55649 from zdover23/wip-doc-2024-02-20-backport-55637-to-quincy

quincy: doc/cephfs: edit add-remove-mds

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
16 months agoMerge pull request #55681 from zdover23/wip-doc-2024-02-21-backport-55670-to-quincy
Anthony D'Atri [Wed, 21 Feb 2024 00:59:33 +0000 (19:59 -0500)]
Merge pull request #55681 from zdover23/wip-doc-2024-02-21-backport-55670-to-quincy

quincy: doc/rados: fix broken links

16 months agoMerge pull request #55679 from zdover23/wip-doc-2024-02-21-backport-55677-to-quincy
Anthony D'Atri [Tue, 20 Feb 2024 23:47:50 +0000 (18:47 -0500)]
Merge pull request #55679 from zdover23/wip-doc-2024-02-21-backport-55677-to-quincy

quincy: doc/rados/configuration/osd-config-ref: fix typo

16 months agodoc/rados: fix broken links 55681/head
Zac Dover [Tue, 20 Feb 2024 18:07:07 +0000 (04:07 +1000)]
doc/rados: fix broken links

Fix broken links in doc/rados/operations/add-or-rm-mons.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 2e2519367099461415248353d7c7725c0567511d)

16 months agodoc/rados/configuration/osd-config-ref: fix typo 55679/head
Pierre Riteau [Tue, 20 Feb 2024 21:54:01 +0000 (22:54 +0100)]
doc/rados/configuration/osd-config-ref: fix typo

Signed-off-by: Pierre Riteau <pierre@stackhpc.com>
(cherry picked from commit d25b6b9dd2cee81d33f2ad2f0718c6ccdeadbe2b)

17 months agoMerge pull request #55672 from zdover23/wip-doc-2024-02-21-backport-55667-to-quincy
Anthony D'Atri [Tue, 20 Feb 2024 19:03:37 +0000 (14:03 -0500)]
Merge pull request #55672 from zdover23/wip-doc-2024-02-21-backport-55667-to-quincy

quincy: doc/radosgw: edit multisite.rst

17 months agodoc/radosgw: edit multisite.rst 55672/head
Zac Dover [Tue, 20 Feb 2024 12:06:11 +0000 (22:06 +1000)]
doc/radosgw: edit multisite.rst

Edit "Varieties of Multi-Site Configuration" in
doc/radosgw/multisite.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 8af910f877d1c7b873c2a13cec5d4ea1a4de4a79)

17 months agodoc/cephfs: edit add-remove-mds 55649/head
Zac Dover [Mon, 19 Feb 2024 08:41:45 +0000 (18:41 +1000)]
doc/cephfs: edit add-remove-mds

Disambiguate a note in doc/cephfs/add-remove-mds.rst to help readers
distinguish between cases in which they might want to use an automated
tool such as cephadm to deploy MDSes and cases in which they might want
to manually deploy MDSes.

See: https://github.com/ceph/ceph/pull/45639

Tracker: https://tracker.ceph.com/issues/54551

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 39ad6264aa1c97b04974e04046033887325ed2b2)

17 months agoMerge pull request #55636 from zdover23/wip-doc-2024-02-19-backport-55633-to-quincy
Anthony D'Atri [Mon, 19 Feb 2024 12:57:37 +0000 (07:57 -0500)]
Merge pull request #55636 from zdover23/wip-doc-2024-02-19-backport-55633-to-quincy

quincy: doc/man: edit "manipulating the omap key"

17 months agodoc/man: edit "manipulating the omap key" 55636/head
Zac Dover [Sun, 18 Feb 2024 06:01:46 +0000 (16:01 +1000)]
doc/man: edit "manipulating the omap key"

Edit the section "Manipulating the Object Map Key" in
doc/man/8/ceph-objectstore-tool.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 44ec668d43951c2710271fb3ca1799c4c4ded940)

17 months agoMerge pull request #55631 from zdover23/wip-doc-2024-02-18-backport-55626-to-quincy
Anthony D'Atri [Sun, 18 Feb 2024 04:59:06 +0000 (23:59 -0500)]
Merge pull request #55631 from zdover23/wip-doc-2024-02-18-backport-55626-to-quincy

quincy: doc/rados: add PG definition

17 months agodoc/rados: add PG definition 55631/head
Zac Dover [Sat, 17 Feb 2024 05:28:24 +0000 (15:28 +1000)]
doc/rados: add PG definition

Add a definition of Placement Groups to
doc/rados/operations/placement-groups.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 39c809b33fe27064277292b721639cbb144fac6a)

17 months agoMerge pull request #55614 from zdover23/wip-doc-2024-02-16-backport-55539-to-quincy
Anthony D'Atri [Fri, 16 Feb 2024 14:58:54 +0000 (09:58 -0500)]
Merge pull request #55614 from zdover23/wip-doc-2024-02-16-backport-55539-to-quincy

quincy: doc/glossary: improve OSD definitions

17 months agoMerge pull request #55612 from zdover23/wip-doc-2024-02-16-backport-55585-to-quincy
Anthony D'Atri [Fri, 16 Feb 2024 14:58:14 +0000 (09:58 -0500)]
Merge pull request #55612 from zdover23/wip-doc-2024-02-16-backport-55585-to-quincy

quincy: doc/rados: add link to pg blog post

17 months agodoc/glossary: improve OSD definitions 55614/head
Zac Dover [Mon, 12 Feb 2024 13:08:27 +0000 (23:08 +1000)]
doc/glossary: improve OSD definitions

Remove expletive construction from three OSD-id-related terms.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit dec3d3730712bbc0994f5cbd1989761d64f93019)

17 months agodoc/rados: add link to pg blog post 55612/head
Zac Dover [Wed, 14 Feb 2024 15:32:40 +0000 (01:32 +1000)]
doc/rados: add link to pg blog post

Add a link in the "Placement Groups" section that links to Sage Weil's
April 5, 2019 blog post "New in Nautilus: PG merging and autotuning".

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 9344893e0857be8c6ae134f6d4d5e9057e2cb99e)

17 months agoMerge pull request #55604 from zdover23/wip-doc-2024-02-16-backport-55566-to-quincy
Anthony D'Atri [Thu, 15 Feb 2024 19:53:55 +0000 (14:53 -0500)]
Merge pull request #55604 from zdover23/wip-doc-2024-02-16-backport-55566-to-quincy

quincy: doc/cephadm: correct nfs config pool name

17 months agoMerge pull request #55558 from zdover23/wip-doc-2024-02-13-backport-55546-to-quincy
zdover23 [Thu, 15 Feb 2024 17:54:11 +0000 (03:54 +1000)]
Merge pull request #55558 from zdover23/wip-doc-2024-02-13-backport-55546-to-quincy

quincy: doc/glossary: Add link to CRUSH paper

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
17 months agodoc/cephadm: correct nfs config pool name 55604/head
Zac Dover [Tue, 13 Feb 2024 17:04:26 +0000 (03:04 +1000)]
doc/cephadm: correct nfs config pool name

s/nfs-ganesha/.nfs/ in doc/cephadm/services/nfs, in accordance with
information given to me by John Mulligan over Slack.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 574421aeec3bdd502c64e87102846e5181b18415)

17 months agomgr: pin pytest to version 7.4.4
Laura Flores [Mon, 29 Jan 2024 00:58:25 +0000 (00:58 +0000)]
mgr: pin pytest to version 7.4.4

On 2024-01-27, pytest updated to 8.0.0,
which broke run-tox-mgr.

https://docs.pytest.org/en/stable/changelog.html

==================================== ERRORS ====================================
_____________________ ERROR collecting alerts/__init__.py ______________________
alerts/__init__.py:2: in <module>
    from .module import Alerts
alerts/module.py:6: in <module>
    from mgr_module import CLIReadCommand, HandleCommandResult, MgrModule, Option
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
______________________ ERROR collecting alerts/module.py _______________________
alerts/module.py:6: in <module>
    from mgr_module import CLIReadCommand, HandleCommandResult, MgrModule, Option
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
____________________ ERROR collecting balancer/__init__.py _____________________
balancer/__init__.py:2: in <module>
    from .module import Module
balancer/module.py:12: in <module>
    from mgr_module import CLIReadCommand, CLICommand, CommandResult, MgrModule, Option, OSDMap, CephReleases
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'
_____________________ ERROR collecting balancer/module.py ______________________
balancer/module.py:12: in <module>
    from mgr_module import CLIReadCommand, CLICommand, CommandResult, MgrModule, Option, OSDMap, CephReleases
mgr_module.py:1: in <module>
    import ceph_module  # noqa
E   ModuleNotFoundError: No module named 'ceph_module'

Fixes: https://tracker.ceph.com/issues/64200
Signed-off-by: Laura Flores <lflores@ibm.com>
(cherry picked from commit 5554e565ca7ca9c9d6bc70e245be63d947722eda)

17 months agomgr/cephadm: add a type annotation to the ganesha conf template context
John Mulligan [Tue, 28 Mar 2023 17:49:21 +0000 (13:49 -0400)]
mgr/cephadm: add a type annotation to the ganesha conf template context

This change makes this file pass mypy checking on mypy 0.981.

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

17 months agomgr/dashboard: add an assertion for type narrowing
John Mulligan [Tue, 28 Mar 2023 21:06:51 +0000 (17:06 -0400)]
mgr/dashboard: add an assertion for type narrowing

This change makes this file pass mypy checking on mypy 0.981.

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

17 months agopybind/mgr: add a type annotation to the extra_args dict
John Mulligan [Tue, 28 Mar 2023 21:07:04 +0000 (17:07 -0400)]
pybind/mgr: add a type annotation to the extra_args dict

This change makes this file pass mypy checking on mypy 0.981.

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

17 months agomgr/dashboard: ignore type checking for exception handling module
John Mulligan [Tue, 28 Mar 2023 21:07:20 +0000 (17:07 -0400)]
mgr/dashboard: ignore type checking for exception handling module

Add a `# type: ignore` comment to the exception handling dashboard
module just like the instance to lines below. This module does not
already import typing, so I'm not going to add it.
This change is needed in order to run mypy 0.981.

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

17 months agomgr/dashboard: ignore type checking on mgr proxy object assignments
John Mulligan [Tue, 28 Mar 2023 21:09:30 +0000 (17:09 -0400)]
mgr/dashboard: ignore type checking on mgr proxy object assignments

Add `# type: ignore` comments to two dashboard functions that attempt
to set manager properties. There appear to be two approaches to fixing
the problem:

1. The _MgrProxy object that the dashboard uses has a __getattr__ method
for pulling value from the underlying mgr object. It does not have a
__setattr__ method. This means the setting values on _MgrProxy do not
propogate down to the original mgr.
mypy detects the fact that the object doesn't have __setattr__ and
complains. One could add a __setattr__ to the proxy type and mypy
is satisfied.

2. We can just suppress the type check with the comment.

Because I have no idea why the _MgrProxy exists or why it's implemented
the way it is, I feel that 2 is simpler. It is easy enough to go back
later and clean up the comments rather than me investing a lot of time
to understand the dashboard's approach just to bump up the version of
mypy.

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

17 months agocephadm: fix type annotation for list containing IP addresses
John Mulligan [Wed, 29 Mar 2023 14:14:33 +0000 (10:14 -0400)]
cephadm: fix type annotation for list containing IP addresses

This change makes this file pass mypy checking on mypy 0.981.

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

17 months agosrc/pybind: fix type annotations for signal handler function
John Mulligan [Wed, 29 Mar 2023 14:15:10 +0000 (10:15 -0400)]
src/pybind: fix type annotations for signal handler function

This change makes this file pass mypy checking on mypy 0.981.

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

17 months agopython-common: fix variable name reuse to make mypy happy
John Mulligan [Thu, 30 Mar 2023 20:48:02 +0000 (16:48 -0400)]
python-common: fix variable name reuse to make mypy happy

The variables high and low were being used as both `str`s and regex
match objects. Rename the vars in the if block to avoid this problem.
This change makes this file pass mypy checking on mypy 0.981.

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

17 months agomypy: update pinned mypy version to 0.981
John Mulligan [Tue, 28 Mar 2023 20:42:41 +0000 (16:42 -0400)]
mypy: update pinned mypy version to 0.981

mypy version 0.981 fixes a bug where on newer python versions mypy
doesn't properly load pyi files with keyword only arguments.
As noted in the src/mypy-constrains.txt mypy version needs to be
manually bumped periodically, and ceph is overdue for an update too.
It's never been updated since the file was added in June 2021.

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

17 months agopython-common: add a dedicated tox env to run mypy
John Mulligan [Thu, 30 Mar 2023 20:49:27 +0000 (16:49 -0400)]
python-common: add a dedicated tox env to run mypy

IMO it's not a good practice to overload a tox rule with multiple
different test tools. It forces the tools to share the same virtualenvs
and makes it impossible to run the tools individually. A separate mypy
env also better matches the other tox.ini files in the ceph tree.
Since the new 'mypy' env is in the default env list it will continue
to get run automatically when no specific envs are selected.

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