]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agorgw: Document `RGWOvjVersionTracker` 47615/head
Adam C. Emerson [Mon, 15 Aug 2022 21:19:06 +0000 (17:19 -0400)]
rgw: Document `RGWOvjVersionTracker`

Give some guidelines as to what it's for and how to use it.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2 years agoMerge pull request #46523 from alvistack/pg_autoscaler-module.py
Kefu Chai [Fri, 12 Aug 2022 01:14:57 +0000 (09:14 +0800)]
Merge pull request #46523 from alvistack/pg_autoscaler-module.py

pybind/mgr: maximum recursion depth exceeded in comparison

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47366 from adk3798/quoted-networks
Adam King [Thu, 11 Aug 2022 12:46:12 +0000 (08:46 -0400)]
Merge pull request #47366 from adk3798/quoted-networks

cephadm: support quotes around public/cluster network in config passed to bootstrap

Reviewed-by: Francesco Pantano <fpantano@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #47346 from rhcs-dashboard/remove-grafana-loki-dependency
Adam King [Thu, 11 Aug 2022 12:44:38 +0000 (08:44 -0400)]
Merge pull request #47346 from rhcs-dashboard/remove-grafana-loki-dependency

mgr/dashboard: add flag to automatically deploy loki/promtail service at bootstrap

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #47489 from cyx1231st/wip-seastore-trimmer
Yingxin [Thu, 11 Aug 2022 06:14:36 +0000 (14:14 +0800)]
Merge pull request #47489 from cyx1231st/wip-seastore-trimmer

crimson/os/seastore: introduce JournalTrimmer with refactors

Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Reviewed-by: Zhang Song <zhangsong325@gmail.com>
2 years agocrimson/os/seastore: introduce JournalTrimmer 47489/head
Yingxin Cheng [Mon, 8 Aug 2022 01:49:35 +0000 (09:49 +0800)]
crimson/os/seastore: introduce JournalTrimmer

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore/cache: decouple prepare_record() from segment_provider
Yingxin Cheng [Sun, 7 Aug 2022 13:34:24 +0000 (21:34 +0800)]
crimson/os/seastore/cache: decouple prepare_record() from segment_provider

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore: be explicit about detecting out-dated delta using segment info
Yingxin Cheng [Sun, 7 Aug 2022 13:08:49 +0000 (21:08 +0800)]
crimson/os/seastore: be explicit about detecting out-dated delta using segment info

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore: decouple segment release from transaction manager
Yingxin Cheng [Sun, 7 Aug 2022 12:12:07 +0000 (20:12 +0800)]
crimson/os/seastore: decouple segment release from transaction manager

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore: construct TransactionManager classes after device mount
Yingxin Cheng [Sun, 7 Aug 2022 08:05:42 +0000 (16:05 +0800)]
crimson/os/seastore: construct TransactionManager classes after device mount

To construct TransactionManager after all the devices are discoverred.

Also, it makes the following cleanups possible:
* Cleanup SeaStore and TransactionManager factory methods.
* Decouple TransactionManager from SegmentManagerGroup.
* Drop the unnecessary tm_make_config_t.
* Drop the unnecessary add_device() methods.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore/epm: configure prefer_ool through the primary_device
Yingxin Cheng [Sun, 7 Aug 2022 08:00:23 +0000 (16:00 +0800)]
crimson/os/seastore/epm: configure prefer_ool through the primary_device

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #47548 from cbodley/wip-57073
Kefu Chai [Thu, 11 Aug 2022 00:14:11 +0000 (08:14 +0800)]
Merge pull request #47548 from cbodley/wip-57073

install-deps: fix centos 8's use of gcc-toolset-11

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47544 from ceph/pmem-c9
Kefu Chai [Wed, 10 Aug 2022 23:53:10 +0000 (07:53 +0800)]
Merge pull request #47544 from ceph/pmem-c9

ceph.spec.in: disable system_pmdk on aarch64

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2 years agoMerge pull request #47543 from cbodley/wip-cmake-cxx20-compiler-versions
Kefu Chai [Wed, 10 Aug 2022 23:50:44 +0000 (07:50 +0800)]
Merge pull request #47543 from cbodley/wip-cmake-cxx20-compiler-versions

cmake: enforce minimum compiler versions for c++20

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47534 from tchaikov/wip-cmake-motr
Kefu Chai [Wed, 10 Aug 2022 23:39:49 +0000 (07:39 +0800)]
Merge pull request #47534 from tchaikov/wip-cmake-motr

cmake: find motr libraries and header before using them

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agocephadm: unit test for parsing networks from config 47366/head
Adam King [Fri, 29 Jul 2022 22:21:55 +0000 (18:21 -0400)]
cephadm: unit test for parsing networks from config

Signed-off-by: Adam King <adking@redhat.com>
2 years agocephadm: support quotes around public/cluster network in config passed to bootstrap
Adam King [Fri, 29 Jul 2022 21:26:58 +0000 (17:26 -0400)]
cephadm: support quotes around public/cluster network in config passed to bootstrap

Fixes: https://tracker.ceph.com/issues/56973
Signed-off-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #47421 from adk3798/conf-osd-reconfig
Adam King [Wed, 10 Aug 2022 22:50:44 +0000 (18:50 -0400)]
Merge pull request #47421 from adk3798/conf-osd-reconfig

mgr/cephadm: recreate osd config when redeploy/reconfiguring

Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #47464 from michaelalang/master
Adam King [Wed, 10 Aug 2022 22:48:40 +0000 (18:48 -0400)]
Merge pull request #47464 from michaelalang/master

mgr/cephadm: provide an additional hint when running into I/O closed exception

Reviewed-by: Adam King <adking@redhat.com>
2 years agoceph.spec.in: install gcc-toolset-11-libatomic-devel in x86_64 also 47548/head
Casey Bodley [Wed, 10 Aug 2022 22:23:34 +0000 (18:23 -0400)]
ceph.spec.in: install gcc-toolset-11-libatomic-devel in x86_64 also

otherwise after enabling gcc-toolset-11, cmake fails with:

- Performing Test HAVE_LIBATOMIC - Failed
CMake Error at cmake/modules/CheckCxxAtomic.cmake:66 (message):
  Host compiler /opt/rh/gcc-toolset-11/root/usr/bin/g++ requires libatomic,
  but it is not found

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoinstall-deps: bump gcc-toolset version to 11
Casey Bodley [Wed, 10 Aug 2022 20:36:11 +0000 (16:36 -0400)]
install-deps: bump gcc-toolset version to 11

match the toolset versions installed from ceph.spec.in

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoinstall-deps: update ensure_decent_gcc_on_rh for gcc-toolset
Casey Bodley [Wed, 10 Aug 2022 20:35:01 +0000 (16:35 -0400)]
install-deps: update ensure_decent_gcc_on_rh for gcc-toolset

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoinstall-deps: centos8 doesn't have or need centos-release-scl
Casey Bodley [Wed, 10 Aug 2022 20:04:57 +0000 (16:04 -0400)]
install-deps: centos8 doesn't have or need centos-release-scl

Fixes: https://tracker.ceph.com/issues/57073
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #46378 from pritha-srivastava/wip-rgw-sts-modify-session-duration
Matt Benjamin [Wed, 10 Aug 2022 18:59:25 +0000 (14:59 -0400)]
Merge pull request #46378 from pritha-srivastava/wip-rgw-sts-modify-session-duration

rgw/sts: modify max_session_duration using update role REST API/ radosgw-admin command.

2 years agoceph.spec.in: disable system_pmdk on aarch64 47544/head
David Galloway [Wed, 10 Aug 2022 18:36:43 +0000 (14:36 -0400)]
ceph.spec.in: disable system_pmdk on aarch64

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #47538 from tchaikov/wip-enable-gts
David Galloway [Wed, 10 Aug 2022 18:22:27 +0000 (14:22 -0400)]
Merge pull request #47538 from tchaikov/wip-enable-gts

ceph.spec.in: %enable_devtoolset11 only if the macro is defined

2 years agocmake: enforce minimum compiler versions for c++20 47543/head
Casey Bodley [Wed, 10 Aug 2022 17:59:56 +0000 (13:59 -0400)]
cmake: enforce minimum compiler versions for c++20

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #47541 from ceph/1723
David Galloway [Wed, 10 Aug 2022 17:23:20 +0000 (13:23 -0400)]
Merge pull request #47541 from ceph/1723

doc: Add missing index links for 17.2.3

2 years agodoc: Add missing index links for 17.2.3 47541/head
David Galloway [Wed, 10 Aug 2022 16:29:23 +0000 (12:29 -0400)]
doc: Add missing index links for 17.2.3

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoceph.spec.in: always use stock compiler on el9 el92 47538/head
Kefu Chai [Wed, 10 Aug 2022 14:52:12 +0000 (22:52 +0800)]
ceph.spec.in: always use stock compiler on el9

as RHEL/CentOS 9, we have the access to GCC-11, which is good enough for
compiling main HEAD even with WITH_SEASTAR=ON.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #46400 from rkachach/fix_issue_55733
Adam King [Wed, 10 Aug 2022 15:44:55 +0000 (11:44 -0400)]
Merge pull request #46400 from rkachach/fix_issue_55733

mgr/cephadm: adding dynamic prometheus configuration based on http_sd_config

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoceph.spec.in: define %gts_prefix
Kefu Chai [Wed, 10 Aug 2022 14:44:59 +0000 (22:44 +0800)]
ceph.spec.in: define %gts_prefix

less repeatings this way, also  allow maintainer to use other version of GTS.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoceph.spec.in: %enable_devtoolset11 only if the macro is defined
Kefu Chai [Wed, 10 Aug 2022 14:35:14 +0000 (22:35 +0800)]
ceph.spec.in: %enable_devtoolset11 only if the macro is defined

there is chance that we are using `yum-builddep` to prepare the
build dependencies. in that case, gcc-toolset-11-build is not
installed. it's like a chicken-egg dilemma, but the point is
`yum-builddep` is able to pull in the gcc-toolset-11-build. once
gcc-toolset-11-build is installed, we will have the %enable_devtoolset11
rpm macro.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #43155 from ljflores/wip-install-deps-fix
Kefu Chai [Wed, 10 Aug 2022 14:06:12 +0000 (22:06 +0800)]
Merge pull request #43155 from ljflores/wip-install-deps-fix

install-deps.sh: ensure that pip ugrades to most recent version within virtualenv

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47278 from rzarzynski/wip-cephx-verify_auth_cleanups
Kefu Chai [Wed, 10 Aug 2022 14:02:22 +0000 (22:02 +0800)]
Merge pull request #47278 from rzarzynski/wip-cephx-verify_auth_cleanups

monc, cephx: improve debugs and slightly clean invalidate_ticket() up

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2 years agoMerge pull request #47092 from dparmar18/wip-dparmar-cephadm-simple-1
Adam King [Wed, 10 Aug 2022 13:57:22 +0000 (09:57 -0400)]
Merge pull request #47092 from dparmar18/wip-dparmar-cephadm-simple-1

pybind/mgr/cephadm/upgrade: allow upgrades without reducing max_mds

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agomgr/cephadm: setting version field to a 17.2.3 46400/head
Redouane Kachach [Wed, 10 Aug 2022 11:30:42 +0000 (13:30 +0200)]
mgr/cephadm: setting version field to a 17.2.3

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
2 years agomgr/cephadm: adding dynamic prometheus config based on http_sd
Redouane Kachach [Wed, 25 May 2022 10:27:23 +0000 (12:27 +0200)]
mgr/cephadm: adding dynamic prometheus config based on http_sd

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
2 years agocmake: find motr libraries and header before using them 47534/head
Kefu Chai [Wed, 10 Aug 2022 12:10:42 +0000 (20:10 +0800)]
cmake: find motr libraries and header before using them

cmake should fail when generating the building system, if the necessary
development libraries or the header files are missing.

in this change, Findmotr.cmake is added to detect the motr library
and header so that we can use it to find the motr package before using
it.

See-also: https://tracker.ceph.com/issues/57079
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47479 from ceph/wip-backportbot_script-main
Ernesto Puerta [Wed, 10 Aug 2022 12:40:18 +0000 (14:40 +0200)]
Merge pull request #47479 from ceph/wip-backportbot_script-main

.github/workflows: add create-backport action

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: David Galloway <dgallowa@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
2 years ago.github/workflows: add create-backport action 47479/head
Ernesto Puerta [Fri, 5 Aug 2022 08:56:36 +0000 (10:56 +0200)]
.github/workflows: add create-backport action

Currently there's a cron job in a teuthology VM running a script to find all trackers in needs-backports and to create their corresponding backport trackers. This is done through the [Backport Bot](https://tracker.ceph.com/users/12172) Redmine account.

This PR intends to run this cron job task as a periodic Github Action.

Signed-off-by: Ernesto Puerta <37327689+epuertat@users.noreply.github.com>
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoMerge pull request #47514 from guits/c-v-thread-inventory-2
Guillaume Abrioux [Wed, 10 Aug 2022 11:08:20 +0000 (13:08 +0200)]
Merge pull request #47514 from guits/c-v-thread-inventory-2

ceph-volume: system.get_mounts() refactor

2 years agoMerge pull request #47198 from ceph/wip-yuriw-release-15.2.17-main
Ilya Dryomov [Wed, 10 Aug 2022 10:39:03 +0000 (12:39 +0200)]
Merge pull request #47198 from ceph/wip-yuriw-release-15.2.17-main

doc: 15.2.17 Release Notes

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agodoc/releases/octopus.rst: add note for CVE-2022-0670 47198/head
Ilya Dryomov [Wed, 10 Aug 2022 09:09:55 +0000 (11:09 +0200)]
doc/releases/octopus.rst: add note for CVE-2022-0670

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2 years agodoc/releases/octopus.rst: add note for rbd perf image iostat/iotop
Ilya Dryomov [Fri, 29 Jul 2022 15:56:10 +0000 (17:56 +0200)]
doc/releases/octopus.rst: add note for rbd perf image iostat/iotop

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2 years agodoc/releases/octopus.rst: add release note for rados
Matan Breizman [Thu, 21 Jul 2022 17:47:05 +0000 (17:47 +0000)]
doc/releases/octopus.rst: add release note for rados

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agodoc: 15.2.17 Release Notes
Yuri Weinstein [Wed, 20 Jul 2022 21:25:45 +0000 (14:25 -0700)]
doc: 15.2.17 Release Notes

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2 years agoMerge pull request #47179 from rhcs-dashboard/service-id-info
Pere Diaz Bou [Wed, 10 Aug 2022 08:39:38 +0000 (10:39 +0200)]
Merge pull request #47179 from rhcs-dashboard/service-id-info

mgr/dashboard: validate mds service_id and helper text for service_id

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #47517 from tchaikov/wip-cortx-motr-jammy
Kefu Chai [Wed, 10 Aug 2022 06:50:20 +0000 (14:50 +0800)]
Merge pull request #47517 from tchaikov/wip-cortx-motr-jammy

install-deps: install cortx-motr from chacra on jammy

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agopybind/mgr: maximum recursion depth exceeded in comparison 46523/head
Wong Hoi Sing Edison [Sun, 5 Jun 2022 12:57:34 +0000 (20:57 +0800)]
pybind/mgr: maximum recursion depth exceeded in comparison

Original issue from https://github.com/python/typing_extensions/issues/10

In case typing-extensions is upgrade to 4.1.1
(https://pypi.org/project/typing-extensions/4.1.1/, the final Python 3.6
supported version), Ceph MGR will failed with pg_autoscaler as below:

    [root@cp-nightsky ~]# pip list | grep typing-extensions
    typing-extensions      4.1.1

    [root@cp-nightsky ~]# systemctl restart ceph-mgr@cp-nightsky.service

    [root@cp-nightsky ~]# journalctl -xef -u ceph-mgr@cp-nightsky.service
    May 12 06:16:39 cp-nightsky.novalocal systemd[1]: Started Ceph cluster manager daemon.
    -- Subject: Unit ceph-mgr@cp-nightsky.service has finished start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit ceph-mgr@cp-nightsky.service has finished starting up.
    --
    -- The start-up result is done.
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: 2022-05-12T06:16:51.181+0000 7fe3eb521700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'pg_autoscaler' while running on mgr.cp-nightsky: maximum recursion depth exceeded in comparison
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: 2022-05-12T06:16:51.182+0000 7fe3eb521700 -1 pg_autoscaler.serve:
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: 2022-05-12T06:16:51.182+0000 7fe3eb521700 -1 Traceback (most recent call last):
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/usr/share/ceph/mgr/pg_autoscaler/module.py", line 206, in serve
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: self._maybe_adjust()
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/usr/share/ceph/mgr/pg_autoscaler/module.py", line 423, in _maybe_adjust
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: ps, root_map, pool_root = self._get_pool_status(osdmap, pools)
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/usr/share/ceph/mgr/pg_autoscaler/module.py", line 325, in _get_pool_status
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: self.log.debug('skipping empty subtree %s', cr_name)
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/logging/__init__.py", line 1296, in debug
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: self._log(DEBUG, msg, args, **kwargs)
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/logging/__init__.py", line 1443, in _log
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: exc_info, func, extra, sinfo)
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/logging/__init__.py", line 1413, in makeRecord
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: sinfo)
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/logging/__init__.py", line 277, in __init__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: if (args and len(args) == 1 and isinstance(args[0], collections.Mapping)
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/abc.py", line 193, in __instancecheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: return cls.__subclasscheck__(subclass)
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/abc.py", line 228, in __subclasscheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: if issubclass(subclass, scls):
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/abc.py", line 228, in __subclasscheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: if issubclass(subclass, scls):
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/typing.py", line 1154, in __subclasscheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: return super().__subclasscheck__(cls)
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib64/python3.6/abc.py", line 228, in __subclasscheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: if issubclass(subclass, scls):
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib/python3.6/site-packages/typing_extensions.py", line 426, in __subclasscheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: if issubclass(subclass, scls):
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib/python3.6/site-packages/typing_extensions.py", line 426, in __subclasscheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: if issubclass(subclass, scls):
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib/python3.6/site-packages/typing_extensions.py", line 426, in __subclasscheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: if issubclass(subclass, scls):
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: [Previous line repeated 239 more times]
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: File "/lib/python3.6/site-packages/typing_extensions.py", line 421, in __subclasscheck__
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: if self.__extra__ in subclass.__mro__:
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: RecursionError: maximum recursion depth exceeded in comparison
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: 2022-05-12T06:16:51.291+0000 7fe3de3c7700 -1 client.0 error registering admin socket command: (17) File exists
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: 2022-05-12T06:16:51.291+0000 7fe3de3c7700 -1 client.0 error registering admin socket command: (17) File exists
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: 2022-05-12T06:16:51.291+0000 7fe3de3c7700 -1 client.0 error registering admin socket command: (17) File exists
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: 2022-05-12T06:16:51.291+0000 7fe3de3c7700 -1 client.0 error registering admin socket command: (17) File exists
    May 12 06:16:51 cp-nightsky.novalocal ceph-mgr[1719]: 2022-05-12T06:16:51.291+0000 7fe3de3c7700 -1 client.0 error registering admin socket command: (17) File exists

Solution provided by
https://github.com/python/typing_extensions/issues/10#issuecomment-1131767191
not working:

    self.log.debug('skipping empty subtree %s', str(cr_name))

But implement with `.format` could help:

    self.log.debug("skipping empty subtree {0}".format(cr_name))

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
2 years agoMerge pull request #47488 from cbodley/wip-rgw-lc-shuffle
Casey Bodley [Tue, 9 Aug 2022 21:13:16 +0000 (17:13 -0400)]
Merge pull request #47488 from cbodley/wip-rgw-lc-shuffle

rgw/lc: random_sequence() uses default_random_engine

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2 years agoMerge pull request #47504 from cbodley/wip-57050
Casey Bodley [Tue, 9 Aug 2022 21:12:03 +0000 (17:12 -0400)]
Merge pull request #47504 from cbodley/wip-57050

rgw/cmake: stop building all of radosgw a shared lib

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #47503 from ceph/infosec
David Galloway [Tue, 9 Aug 2022 19:53:51 +0000 (15:53 -0400)]
Merge pull request #47503 from ceph/infosec

.gitleaks.toml: Allowlist cephadm test

2 years agoqa/suites/fs/upgrade: added upgrade_without_reducing_max_mds for testing the fail_fs... 47092/head
dparmar18 [Thu, 23 Jun 2022 17:23:52 +0000 (22:53 +0530)]
qa/suites/fs/upgrade: added upgrade_without_reducing_max_mds for testing the fail_fs option

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoqa/tasks/fs: add cases in post_upgrade_checks() for fail_fs
dparmar18 [Thu, 16 Jun 2022 13:03:31 +0000 (18:33 +0530)]
qa/tasks/fs: add cases in post_upgrade_checks() for fail_fs

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agodoc/cephadm/upgrade: Add doc for mds upgrade without reducing mds_mds to 1.
dparmar18 [Tue, 14 Jun 2022 10:16:37 +0000 (15:46 +0530)]
doc/cephadm/upgrade: Add doc for mds upgrade without reducing mds_mds to 1.

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoPendingReleaseNotes: added note related to new mds upgrade option using cephadm
dparmar18 [Mon, 13 Jun 2022 14:11:40 +0000 (19:41 +0530)]
PendingReleaseNotes: added note related to new mds upgrade option using cephadm

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agopybind/mgr/cephadm/upgrade: allow upgrades without reducing max_mds
dparmar18 [Mon, 6 Jun 2022 12:26:08 +0000 (17:56 +0530)]
pybind/mgr/cephadm/upgrade: allow upgrades without reducing max_mds

Fixes: https://tracker.ceph.com/issues/55715
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge pull request #46101 from myoungwon/wip-dedup-tool-update
Kefu Chai [Tue, 9 Aug 2022 16:17:00 +0000 (00:17 +0800)]
Merge pull request #46101 from myoungwon/wip-dedup-tool-update

tool: modify object-dedup command to run on manifest object

Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agoMerge pull request #46242 from kamoltat/wip-ksirivad-fix-overlapping-message
Kefu Chai [Tue, 9 Aug 2022 16:15:28 +0000 (00:15 +0800)]
Merge pull request #46242 from kamoltat/wip-ksirivad-fix-overlapping-message

pybind/mgr/pg_autoscaler: change overlapping roots to warning

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2 years agoMerge pull request #47408 from ronen-fr/wip-rf-snprefix
Kefu Chai [Tue, 9 Aug 2022 16:13:45 +0000 (00:13 +0800)]
Merge pull request #47408 from ronen-fr/wip-rf-snprefix

osd: a faster version of SnapMapper::get_prefix()

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #46573 from aclamk/wip-one-cmdparse
Kefu Chai [Tue, 9 Aug 2022 16:07:08 +0000 (00:07 +0800)]
Merge pull request #46573 from aclamk/wip-one-cmdparse

common/cmdparse: Unsplit crimson/classic

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #47379 from NitzanMordhai/wip-nitzan-valgrind-handle-recovery...
Kefu Chai [Tue, 9 Aug 2022 16:05:55 +0000 (00:05 +0800)]
Merge pull request #47379 from NitzanMordhai/wip-nitzan-valgrind-handle-recovery-delete

osd: remove invalid put on message

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2 years agoMerge pull request #47500 from tchaikov/wip-no-more-distutils
Kefu Chai [Tue, 9 Aug 2022 15:02:07 +0000 (23:02 +0800)]
Merge pull request #47500 from tchaikov/wip-no-more-distutils

pybind/mgr/dashboard: do not use distutils.version.StrictVersion

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoinstall-deps: install cortx-motr from chacra 47517/head
Kefu Chai [Tue, 9 Aug 2022 14:51:37 +0000 (22:51 +0800)]
install-deps: install cortx-motr from chacra

this is an intermediate solution before cotx-motr upstream builds the
packages for jammy and upload them to github.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoinstall-deps: extract install_cortx_motr_on_ubuntu out
Kefu Chai [Tue, 9 Aug 2022 14:46:59 +0000 (22:46 +0800)]
install-deps: extract install_cortx_motr_on_ubuntu out

for better readability and maintainability

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47496 from tchaikov/wip-atomic-fc36
Kefu Chai [Tue, 9 Aug 2022 13:49:31 +0000 (21:49 +0800)]
Merge pull request #47496 from tchaikov/wip-atomic-fc36

ceph.spec.in: add libatomic to BuildRequires on fedora

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agopybind/mgr/dashboard: do not use distutils.version.StrictVersion 47500/head
Kefu Chai [Mon, 8 Aug 2022 14:41:17 +0000 (22:41 +0800)]
pybind/mgr/dashboard: do not use distutils.version.StrictVersion

replace `distutils.version.StrictVersion` with
`pkg_resources.parse_version()`

as the former is deprecated, see https://peps.python.org/pep-0632/.
let's use `pkg_resources` instead. this change also addresses
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010894.
we have this issue when testing with an ubuntu jammy test node.
see https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1967139

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47505 from ceph/dot
Kefu Chai [Tue, 9 Aug 2022 12:48:37 +0000 (20:48 +0800)]
Merge pull request #47505 from ceph/dot

doc: Install graphviz

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoceph-volume: system.get_mounts() refactor 47514/head
Guillaume Abrioux [Tue, 9 Aug 2022 06:27:30 +0000 (08:27 +0200)]
ceph-volume: system.get_mounts() refactor

When a network mount is present in `/proc/mounts` but for any reason
the corresponding server is down, this function hangs forever.
In a cluster deployed with cephadm, the consequence is that
it triggers `ceph-volume inventory` commands that hang and stay in D
state.

The idea here is to use a thread with a timeout to abort the call if the
timeout is reached.
`get_mounts()` is now a method of a class so we can exclude a path
altogether during the whole `inventory` execution (otherwise,
ceph-volume would try to access it as many devices there is on the
host which could slow down the inventory execution)

Fixes: https://tracker.ceph.com/issues/57070
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agoMerge pull request #47476 from rosinL/fix-enoent
Yingxin [Tue, 9 Aug 2022 01:26:32 +0000 (09:26 +0800)]
Merge pull request #47476 from rosinL/fix-enoent

crimson/os/seastore: return future when no element error tolerated

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #47425 from cyx1231st/wip-seastore-backref-cleanup
Yingxin [Tue, 9 Aug 2022 01:25:17 +0000 (09:25 +0800)]
Merge pull request #47425 from cyx1231st/wip-seastore-backref-cleanup

crimson/os/seastore: backref related cleanups

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
2 years agodoc: Install graphviz 47505/head
David Galloway [Mon, 8 Aug 2022 19:50:47 +0000 (15:50 -0400)]
doc: Install graphviz

Fixes `WARNING: dot command 'dot' cannot be run (needed for graphviz output), check the graphviz_dot setting`

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years ago- mgr/cephadm: provide an additional hint when running into I/O closed exception... 47464/head
Michaela Lang [Thu, 4 Aug 2022 17:14:49 +0000 (19:14 +0200)]
- mgr/cephadm: provide an additional hint when running into I/O closed exception from execnet seen as
               Error EINVAL: Can't communicate with remote host `127.0.0.1`, possibly because python3 is not installed there: cannot send (already closed?)

Signed-off-by: Michaela Lang <milang@redhat.com>
2 years agorgw/cmake: stop building all of radosgw a shared lib 47504/head
Casey Bodley [Mon, 8 Aug 2022 18:09:56 +0000 (11:09 -0700)]
rgw/cmake: stop building all of radosgw a shared lib

Fixes: https://tracker.ceph.com/issues/57050
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years ago.gitleaks.toml: Allowlist cephadm test 47503/head
David Galloway [Mon, 8 Aug 2022 17:57:36 +0000 (13:57 -0400)]
.gitleaks.toml: Allowlist cephadm test

I signed up for Red Hat's gitleaks scanning service.  The self-signed key is just for testing purposes.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #47475 from Huber-ming/stale_delete
Casey Bodley [Mon, 8 Aug 2022 14:11:09 +0000 (10:11 -0400)]
Merge pull request #47475 from Huber-ming/stale_delete

rgw: correct help message of 'reshard stale-instances delete'

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoceph.spec.in: add libatomic to BuildRequires on fedora 47496/head
Kefu Chai [Mon, 8 Aug 2022 12:40:52 +0000 (20:40 +0800)]
ceph.spec.in: add libatomic to BuildRequires on fedora

otherwise we'd have failures like

/opt/compiler-explorer/gcc-trunk-20220808/bin/../lib/gcc/x86_64-linux-gnu/13.0.0/../../../../x86_64-linux-gnu/bin/ld:
/tmp/ccVlMbVh.o: in function `std::atomic<tagged_ptr>::store(tagged_ptr,
std::memory_order)':
/opt/compiler-explorer/gcc-trunk-20220808/include/c++/13.0.0/atomic:273:
undefined reference to `__atomic_store_16'

when generating the building system using CMake on fedora 36.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47486 from tchaikov/wip-dashboard-newer-teuth
Kefu Chai [Mon, 8 Aug 2022 12:34:22 +0000 (20:34 +0800)]
Merge pull request #47486 from tchaikov/wip-dashboard-newer-teuth

mgr/dashboard: bump up teuthology

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #46972 from nSedrickm/button-name-accessibility-update
Ernesto Puerta [Mon, 8 Aug 2022 09:44:09 +0000 (11:44 +0200)]
Merge pull request #46972 from nSedrickm/button-name-accessibility-update

mgr/dashboard: Improve level A accessibility for buttons

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #46927 from nmshelke/fix-55762
Venky Shankar [Mon, 8 Aug 2022 08:54:27 +0000 (14:24 +0530)]
Merge pull request #46927 from nmshelke/fix-55762

mgr/volumes: filter internal directories in 'subvolumegroup ls' command

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Neeraj Pratap Singh <neesingh@redhat.com>
2 years agoMerge pull request #47436 from SUSE/wip-mib-snmp-dir
Tim Serong [Mon, 8 Aug 2022 05:46:20 +0000 (15:46 +1000)]
Merge pull request #47436 from SUSE/wip-mib-snmp-dir

ceph.spec.in: ceph-mib: require snmp-mibs on SUSE distros

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Justin Caratzas <jcaratza@redhat.com>
2 years agomgr/dashboard: add flag to automatically deploy loki/promtail service at bootstrap 47346/head
Aashish Sharma [Fri, 29 Jul 2022 07:05:47 +0000 (12:35 +0530)]
mgr/dashboard: add flag to automatically deploy loki/promtail service at bootstrap

Fixes: https://tracker.ceph.com/issues/56964
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
2 years agoMerge pull request #47423 from tchaikov/wip-crimson-cmp
Kefu Chai [Mon, 8 Aug 2022 05:15:50 +0000 (13:15 +0800)]
Merge pull request #47423 from tchaikov/wip-crimson-cmp

crimson/os: rewrite ordering using std::strong_ordering

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agorgw/lc: random_sequence() uses default_random_engine 47488/head
Casey Bodley [Sat, 6 Aug 2022 15:09:38 +0000 (11:09 -0400)]
rgw/lc: random_sequence() uses default_random_engine

we used random_device to seed a default_random_engine, but didn't use
the engine in our call to shuffle()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agocrimson, test: s/std::random_shuffle/std::shuffle/ 47423/head
Kefu Chai [Sat, 6 Aug 2022 10:30:45 +0000 (18:30 +0800)]
crimson, test: s/std::random_shuffle/std::shuffle/

to silence warnings like:

../src/test/crimson/seastore/onode_tree/test_staged_fltree.cc:371:10: warning: 'random_shuffle<__gnu_cxx::__normal_iterator<std::pair<ghobject_t, crimson::os::seastore::onode::test_item_t> *, std::vector<std::pair<ghobject_t, crimson::os::seastore::onode::test_item_t>>>>' is deprecated: use 'std::shuffle' instead [-Wdeprecated-declarations]
    std::random_shuffle(kvs.begin(), kvs.end());
         ^

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/os: rewrite ordering using std::strong_ordering
Kefu Chai [Sat, 6 Aug 2022 10:26:44 +0000 (18:26 +0800)]
crimson/os: rewrite ordering using std::strong_ordering

the goals are

1. to use std::strong_ordering mechinary for better readability
   and maintainbility
2. to remove unnecessary abstraction
3. use concept for better error message and readability.

changes:

* replace MatchKindCMP with std::strong_ordering
* replace compare_to() with operator<=>
* introduce a concept `IsFullKey` so we can use it when developing
  generic facilities to operate on both materialized key or view.
* use `IsFullKey` in place of `KeyT` when appropriate

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47485 from tchaikov/crimson-os-cleanups
Kefu Chai [Sat, 6 Aug 2022 07:52:44 +0000 (15:52 +0800)]
Merge pull request #47485 from tchaikov/crimson-os-cleanups

crimson/os: cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #47487 from snosratiershad/examples/add-allow-unordered-to-list...
Anthony D'Atri [Sat, 6 Aug 2022 05:56:36 +0000 (22:56 -0700)]
Merge pull request #47487 from snosratiershad/examples/add-allow-unordered-to-list-objects-v2-extention-support

examples/boto3: add ListObjectsV2Request shape to boto3 sdk extras with AllowUnordered as member

2 years agoexamples/boto3: add ListObjectsV2Request shape to boto3 sdk extras with AllowUnordere... 47487/head
Salar Nosrati-Ershad [Sat, 6 Aug 2022 03:29:19 +0000 (07:59 +0430)]
examples/boto3: add ListObjectsV2Request shape to boto3 sdk extras with AllowUnordered as member

feat: add ListObjectsV2Request shape to boto3 sdk extras with AllowUnordered as member

feat: add list-objects-v2 unordered supports to doc

Signed-off-by: Salar Nosrati-Ershad <snosratiershad@gmail.com>
2 years agoMerge pull request #44772 from ybwang0211/Bucket-Operations-doc
Kefu Chai [Sat, 6 Aug 2022 03:57:49 +0000 (11:57 +0800)]
Merge pull request #44772 from ybwang0211/Bucket-Operations-doc

doc: Make the SYNTAX code writing of some interfaces of the api document consistent with others

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #46989 from petrutlucian94/boost_shared_mutex
Kefu Chai [Sat, 6 Aug 2022 03:00:27 +0000 (11:00 +0800)]
Merge pull request #46989 from petrutlucian94/boost_shared_mutex

common: use boost::shared_mutex on Windows

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47216 from sseshasa/wip-fix-high-cpu-util-in-process
Kefu Chai [Sat, 6 Aug 2022 02:58:37 +0000 (10:58 +0800)]
Merge pull request #47216 from sseshasa/wip-fix-high-cpu-util-in-process

osd: Handle oncommits and wait for future work items from mClock queue

Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agomgr/dashboard: bump up teuthology 47486/head
Kefu Chai [Sat, 6 Aug 2022 00:24:12 +0000 (08:24 +0800)]
mgr/dashboard: bump up teuthology

to include the fix of e7c5d67e10fe29da22180f9e09b8973ae166c8fc,
see https://github.com/ceph/teuthology/pull/1746.
to address the test failure on ubuntu jammy. where we have python3.10

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/osd: trade macro for type alias 47485/head
Kefu Chai [Fri, 5 Aug 2022 23:53:11 +0000 (07:53 +0800)]
crimson/osd: trade macro for type alias

for better readablity.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/os: drop unused function
Kefu Chai [Wed, 3 Aug 2022 05:44:54 +0000 (13:44 +0800)]
crimson/os: drop unused function

Btree::compare(const ghobject_t &l, const ghobject_t &r) is never used,
so let's drop it.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47309 from Thingee/update-foundation-mems-202207
Kefu Chai [Fri, 5 Aug 2022 23:06:45 +0000 (07:06 +0800)]
Merge pull request #47309 from Thingee/update-foundation-mems-202207

doc: Updating Ceph Foundation members for July

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2 years agoMerge pull request #47478 from tchaikov/wip-cmake-cython
Kefu Chai [Fri, 5 Aug 2022 22:51:23 +0000 (06:51 +0800)]
Merge pull request #47478 from tchaikov/wip-cmake-cython

cmake: remove spaces in macro used for compiling cython code

Reviewed-by: Tim Serong <tserong@suse.com>
2 years agoMerge pull request #47481 from ljflores/wip-github-actions
Laura Flores [Fri, 5 Aug 2022 19:14:17 +0000 (14:14 -0500)]
Merge pull request #47481 from ljflores/wip-github-actions

.github/workflows: increase operations-per-run to 100 in stale bot

2 years ago.github/workflows: increase operations-per-run to 100 in stale bot 47481/head
Laura Flores [Fri, 5 Aug 2022 16:34:20 +0000 (11:34 -0500)]
.github/workflows: increase operations-per-run to 100 in stale bot

The stale bot's `operations-per-run`
(https://github.com/actions/stale#operations-per-run) corresponds to the max
number of API calls it is allowed to make per hour. Currently,
`operations-per-run` is set to 30, which means that the stale bot
can make up to 30 API calls per hour.

With this limit in place, the stale bot is only able to process 400 PRs at a time.
Since there are 900+ PRs in the Ceph repository, we should increase the number of
operations to cover them all. This needs to be done with care though, since GitHub
has a rate limit
(https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting)
depending on business plan.

According to GitHub's documentation on GitHub action requests
(https://docs.github.com/en/rest/overview/resources-in-the-rest-api#requests-from-github-actions),
the rate limit is 1,000 requests per hour per repository when using `GITHUB_TOKEN` (which we are).
For enterprise accounts, GitHub Enterprise Cloud's rate limit applies, and the limit is 15,000
requests per hour per repository.

Based on this information, we should be fine to increase the max `operations-per-run`
to 100. This would cover a little over 1000 PRs, which should be enough
to process the 900-some-odd PRs in the Ceph repository.

Signed-off-by: Laura Flores <lflores@redhat.com>