]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agoMerge pull request #47817 from rkachach/fix_issue_57304
Adam King [Thu, 1 Sep 2022 18:17:31 +0000 (14:17 -0400)]
Merge pull request #47817 from rkachach/fix_issue_57304

mgr/cephadm: allow binding to loopback for rgw daemons

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #47098 from rkachach/fix_issue_56508
Adam King [Thu, 1 Sep 2022 18:15:29 +0000 (14:15 -0400)]
Merge pull request #47098 from rkachach/fix_issue_56508

mgr/cephadm: Adding logic to store grafana cert/key per node

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Francesco Pantano <fpantano@redhat.com>
3 years agoMerge pull request #47884 from dang/wip-dang-zipper-invalidate
Daniel Gryniewicz [Thu, 1 Sep 2022 18:12:53 +0000 (14:12 -0400)]
Merge pull request #47884 from dang/wip-dang-zipper-invalidate

RGW - Zipper - Pass invaliate down from RadosStore

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #47631 from guits/bz2112730
Adam King [Thu, 1 Sep 2022 18:02:43 +0000 (14:02 -0400)]
Merge pull request #47631 from guits/bz2112730

ceph-volume: add a retry in util.disk.remove_partition

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
3 years agoMerge pull request #47665 from adk3798/apply-spec-error-code
Adam King [Thu, 1 Sep 2022 18:00:00 +0000 (14:00 -0400)]
Merge pull request #47665 from adk3798/apply-spec-error-code

cephadm: return nonzero exit code when applying spec fails in bootstrap

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47666 from adk3798/offline-no-check
Adam King [Thu, 1 Sep 2022 17:58:29 +0000 (13:58 -0400)]
Merge pull request #47666 from adk3798/offline-no-check

mgr/cephadm: don't try to write client/os tuning profiles to known offline hosts

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47763 from phlogistonjohn/jjm-object-format-fixes
Adam King [Thu, 1 Sep 2022 17:54:13 +0000 (13:54 -0400)]
Merge pull request #47763 from phlogistonjohn/jjm-object-format-fixes

pybind/mgr: object_format.py decorator updates & docs

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47804 from p-se/wip-7294-pse-custom-prometheus-alerts
Adam King [Thu, 1 Sep 2022 17:44:16 +0000 (13:44 -0400)]
Merge pull request #47804 from p-se/wip-7294-pse-custom-prometheus-alerts

mgr/dashboard: enable addition of custom Prometheus alerts

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #47788 from dang/wip-dang-zipper-admin
Daniel Gryniewicz [Thu, 1 Sep 2022 16:57:35 +0000 (12:57 -0400)]
Merge pull request #47788 from dang/wip-dang-zipper-admin

RGW - Zipper - Remove a number of casts from rgw_admin

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #47719 from yuvalif/wip-yuval-lua-filter2
Casey Bodley [Thu, 1 Sep 2022 15:31:31 +0000 (11:31 -0400)]
Merge pull request #47719 from yuvalif/wip-yuval-lua-filter2

rgw/lua: allow read access to object data

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #47184 from ljflores/wip-telemetry-memory-stats
Yuri Weinstein [Thu, 1 Sep 2022 15:29:25 +0000 (08:29 -0700)]
Merge pull request #47184 from ljflores/wip-telemetry-memory-stats

mgr/telemetry: add `perf_memory_metrics` collection to telemetry

Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
Reviewed-by: Kamoltat (Junior) Sirivadhna <ksirivad@redhat.com>
3 years agoMerge pull request #47885 from ceph/boost-focal
David Galloway [Thu, 1 Sep 2022 14:02:07 +0000 (10:02 -0400)]
Merge pull request #47885 from ceph/boost-focal

install-deps: Actually install libboost we built for Jammy

3 years agoMerge pull request #47886 from ceph/chillout
Ernesto Puerta [Thu, 1 Sep 2022 09:18:43 +0000 (11:18 +0200)]
Merge pull request #47886 from ceph/chillout

.github: Give folks 30 seconds to fill out the checklist

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #47816 from cyx1231st/wip-seastore-split-trimmer
Yingxin [Thu, 1 Sep 2022 01:45:51 +0000 (09:45 +0800)]
Merge pull request #47816 from cyx1231st/wip-seastore-split-trimmer

crimson/os/seastore/async_cleaner: factor out journal trimming implementation

Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
Reviewed-by: Zhang Song <zhangsong325@gmail.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #47880 from ionutbalutoiu/qa-update-branch-name
David Galloway [Wed, 31 Aug 2022 18:38:34 +0000 (14:38 -0400)]
Merge pull request #47880 from ionutbalutoiu/qa-update-branch-name

qa: update branch name for Windows job

3 years ago.github: Give folks 30 seconds to fill out the checklist 47886/head
David Galloway [Wed, 31 Aug 2022 18:21:16 +0000 (14:21 -0400)]
.github: Give folks 30 seconds to fill out the checklist

Otherwise GitHub sends an annoying e-mail right away when you file a PR that doesn't have the checklist filled out.  It's easier IMO to create the PR, then check the boxes instead of putting Xes in brackets while filling out the PR comment.

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoinstall-deps: Actually install libboost we built for Jammy 47885/head
David Galloway [Wed, 31 Aug 2022 18:02:36 +0000 (14:02 -0400)]
install-deps: Actually install libboost we built for Jammy

Follow up to https://github.com/ceph/ceph/commit/947ac23979b6c4ba2617090f2d9a36e1f40f60c8

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #47856 from idryomov/wip-56154
Ilya Dryomov [Wed, 31 Aug 2022 16:57:40 +0000 (18:57 +0200)]
Merge pull request #47856 from idryomov/wip-56154

rbd-mirror: resume pending shutdown on error in snapshot replayer

Reviewed-by: Mykola Golub <mgolub@suse.com>
3 years agoMerge pull request #47835 from idryomov/wip-57317
Ilya Dryomov [Wed, 31 Aug 2022 16:56:17 +0000 (18:56 +0200)]
Merge pull request #47835 from idryomov/wip-57317

librbd: use actual monitor addresses when creating a peer bootstrap token

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Christopher Hoffman <choffman@redhat.com>
3 years agoRGW - Zipper - Pass invaliate down from RadosStore 47884/head
Daniel Gryniewicz [Tue, 30 Aug 2022 19:53:13 +0000 (15:53 -0400)]
RGW - Zipper - Pass invaliate down from RadosStore

When we invalidate the state of a RadosObject, we need to also
invalidate it in the ctx for that object.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #47641 from rhcs-dashboard/value-error-centos
Ernesto Puerta [Wed, 31 Aug 2022 13:59:03 +0000 (15:59 +0200)]
Merge pull request #47641 from rhcs-dashboard/value-error-centos

install-deps: script exit on "/ValueError" in centos_stream8

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
3 years agoRGW - Zipper - Remove a number of casts from rgw_admin 47788/head
Daniel Gryniewicz [Wed, 17 Aug 2022 16:25:45 +0000 (12:25 -0400)]
RGW - Zipper - Remove a number of casts from rgw_admin

There are still a ton of casts to RadosStore in rgw_admin.  Remove the
easy ones.  Many of the rest represent actual operations that are
specific to RadosStore, and need to be split out.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #47673 from rhcs-dashboard/test_rbd_list
Pedro Gonzalez Gomez [Wed, 31 Aug 2022 13:08:19 +0000 (15:08 +0200)]
Merge pull request #47673 from rhcs-dashboard/test_rbd_list

mgr/dashboard: ensure rbd image limit 0 returns 0 images

Reviewed-by: Pegonzal <pegonzal@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoqa: update branch name for Windows job 47880/head
Ionut Balutoiu [Wed, 31 Aug 2022 07:32:18 +0000 (07:32 +0000)]
qa: update branch name for Windows job

Use `main` instead of `master` in the workunit scripts for the
Windows Teuthology job.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
3 years agoMerge pull request #47802 from NitzanMordhai/wip-nitzan-leak-some-memory-with-memory...
Kefu Chai [Wed, 31 Aug 2022 09:55:05 +0000 (17:55 +0800)]
Merge pull request #47802 from NitzanMordhai/wip-nitzan-leak-some-memory-with-memory-optimization

common/ceph_context: leak some memory fail to show in valgrind

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #47829 from tchaikov/wip-cmake-CMP0135
Kefu Chai [Wed, 31 Aug 2022 09:51:44 +0000 (17:51 +0800)]
Merge pull request #47829 from tchaikov/wip-cmake-CMP0135

cmake: set CMP0135 policy

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agomgr/cephadm: allow binding to loopback for rgw daemons 47817/head
Redouane Kachach [Fri, 26 Aug 2022 12:00:05 +0000 (14:00 +0200)]
mgr/cephadm: allow binding to loopback for rgw daemons
Fixes: https://tracker.ceph.com/issues/57304
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47772 from ivancich/wip-dout_subsys-header
J. Eric Ivancich [Tue, 30 Aug 2022 22:11:00 +0000 (18:11 -0400)]
Merge pull request #47772 from ivancich/wip-dout_subsys-header

rgw: remove dout_subsys defs from header files

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
3 years agorgw: remove dout_subsys defs from header files 47772/head
J. Eric Ivancich [Tue, 23 Aug 2022 20:44:24 +0000 (16:44 -0400)]
rgw: remove dout_subsys defs from header files

Each compilation unit should be able to define its own dout_subsys
without generating a redefinition warning. When dout_subsys is defined
in header files, it complicates this matter. This commit removes
definitions and header files and makes sure definitions are added to
.cc files as needed.

Additionally, at Adam Emerson's suggestion, use "static constexpr"
rather than "#define" to set "dout_subsys" in a few places as a
reminder to ultimately do it more broadly.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #47761 from tchaikov/wip-intarith-bit
Kefu Chai [Tue, 30 Aug 2022 15:02:46 +0000 (23:02 +0800)]
Merge pull request #47761 from tchaikov/wip-intarith-bit

include, os: s/ctz/std::countr_zero/

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #47830 from tchaikov/wip-fmtlib-v9
Kefu Chai [Tue, 30 Aug 2022 14:19:27 +0000 (22:19 +0800)]
Merge pull request #47830 from tchaikov/wip-fmtlib-v9

common, include, osd: compile with fmt v9

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoMerge pull request #44993 from kamoltat/wip-ksirivad-fix-bug-50089
Kefu Chai [Tue, 30 Aug 2022 13:19:01 +0000 (21:19 +0800)]
Merge pull request #44993 from kamoltat/wip-ksirivad-fix-bug-50089

mon/Elector: Added sanity check when pinging a peer monitor

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
3 years agoMerge pull request #47843 from zdover23/wip-doc-2022-08-29-mgr-dashboard-includes...
zdover23 [Tue, 30 Aug 2022 11:14:17 +0000 (21:14 +1000)]
Merge pull request #47843 from zdover23/wip-doc-2022-08-29-mgr-dashboard-includes-prompt-update

doc/mgr: update prompts in dboard.rst includes

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #46962 from rhcs-dashboard/auto-coloring-badges-from-color-pool
Pere Diaz Bou [Tue, 30 Aug 2022 10:59:01 +0000 (12:59 +0200)]
Merge pull request #46962 from rhcs-dashboard/auto-coloring-badges-from-color-pool

mgr/dashboard: auto-coloring-badges-component

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: nSedrickm <NOT@FOUND>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #47707 from bosc0/fix_alert
Arthur Outhenin-Chalandre [Tue, 30 Aug 2022 10:49:23 +0000 (12:49 +0200)]
Merge pull request #47707 from bosc0/fix_alert

Ceph-mixin: Fix CephNodeNetworkPacket alerts

3 years agorbd-mirror: skip setting error code on snapshot replayer shutdown 47856/head
Ilya Dryomov [Tue, 30 Aug 2022 09:45:44 +0000 (11:45 +0200)]
rbd-mirror: skip setting error code on snapshot replayer shutdown

This is regarding failures in unregister_remote_update_watcher() and
unregister_local_update_watcher().  handle_replay_complete() can't be
called in these cases anymore as it would blindly attempt to unregister
watchers from scratch again.  Dropping handle_replay_complete() calls
there means that these failures would only be logged and would not be
surfaced by snapshot replayer.  But the only caller ignores them
anyway:

  void ImageReplayer<I>::shut_down(int r) {
    ...
    // close the replayer
    if (m_replayer != nullptr) {
      ctx = new LambdaContext([this, ctx](int r) {
        m_replayer->destroy();
        m_replayer = nullptr;
        ctx->complete(0);             <------
      });
      ctx = new LambdaContext([this, ctx](int r) {
        m_replayer->shut_down(ctx);
      });
    }

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agoinstall-deps: script exit on /ValueError: in centos_stream8 47641/head
Nizamudeen A [Tue, 16 Aug 2022 15:39:25 +0000 (21:09 +0530)]
install-deps: script exit on /ValueError: in centos_stream8

this is happening locally as well as in our ceph-dev runs too https://github.com/rhcs-dashboard/ceph-dev/runs/7850564011

Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #47669 from MrFreezeex/jb-path
Arthur Outhenin-Chalandre [Tue, 30 Aug 2022 06:35:04 +0000 (08:35 +0200)]
Merge pull request #47669 from MrFreezeex/jb-path

ceph-mixin: fix PATH issues with jsonnet-bundler

3 years agoMerge pull request #47808 from phlogistonjohn/jjm-remove-tox-env-lint
Adam King [Mon, 29 Aug 2022 19:52:17 +0000 (15:52 -0400)]
Merge pull request #47808 from phlogistonjohn/jjm-remove-tox-env-lint

pybind/mgr: tox.ini remove redundant `tox` env

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agorbd-mirror: resume pending shutdown on error in snapshot replayer
Ilya Dryomov [Wed, 24 Aug 2022 10:56:31 +0000 (12:56 +0200)]
rbd-mirror: resume pending shutdown on error in snapshot replayer

If a shutdown is requested, e.g. by update_pool_replayers() because
remote RADOS instance got blocklisted, and Replayer::shut_down() pends
it on completion of current snapshot sync, it gets stuck if replayer
encounters an error in the interim.  This is particularly likely in the
blocklist case: a higher layer may detect that client got blocklisted
and request a shutdown first, and then when replayer sees EBLOCKLISTED
in turn, it calls handle_replay_complete() -- which does not resume
a pending shutdown.  Because update_pool_replayers() blocks on shutdown
with Mirror::m_lock held, eventually the entire daemon hangs in
perpetuity.

Fixes: https://tracker.ceph.com/issues/56154
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agomgr/dashboard: auto-coloring-badges-component 46962/head
Pedro Gonzalez Gomez [Tue, 5 Jul 2022 09:40:01 +0000 (11:40 +0200)]
mgr/dashboard: auto-coloring-badges-component

Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
3 years agoMerge pull request #47834 from tchaikov/wip-56850
Kefu Chai [Mon, 29 Aug 2022 16:00:37 +0000 (00:00 +0800)]
Merge pull request #47834 from tchaikov/wip-56850

mon/MgrMonitor: do not propose again for "mgr fail"

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agomgr: Fix tox test issue due to PrettyTable update 47804/head
Patrick Seidensal [Mon, 29 Aug 2022 14:32:00 +0000 (16:32 +0200)]
mgr: Fix tox test issue due to PrettyTable update

Since the update of PrettyTable 3.3.0 to 3.4.0 on Aug 25, 2022, three
tests inside tox broke as the new version returns tables slightly
differently.

Alternatively, the tests could be adapted.

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
3 years agomgr/dashboard: enable addition custom Prometheus alerts
Patrick Seidensal [Thu, 25 Aug 2022 12:47:52 +0000 (14:47 +0200)]
mgr/dashboard: enable addition custom Prometheus alerts

Fixes: https://tracker.ceph.com/issues/57294
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
3 years agoMerge pull request #47441 from mkogan1/wip-WITH_BOOST_VALGRIND
Casey Bodley [Mon, 29 Aug 2022 13:51:21 +0000 (09:51 -0400)]
Merge pull request #47441 from mkogan1/wip-WITH_BOOST_VALGRIND

cmake: set WITH_BOOST_VALGRIND before building boost

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
3 years agoMerge pull request #47675 from bosc0/fix_multicluster
Arthur Outhenin-Chalandre [Mon, 29 Aug 2022 12:55:43 +0000 (14:55 +0200)]
Merge pull request #47675 from bosc0/fix_multicluster

ceph-mixin: fix config inheritance

3 years agodoc/mgr: update prompts in dboard.rst includes 47843/head
Zac Dover [Mon, 29 Aug 2022 00:39:51 +0000 (10:39 +1000)]
doc/mgr: update prompts in dboard.rst includes

This PR adds unselectable prompts to three files that are
transcluded in the doc/mgr/dashboard.rst file. These three
files are:

 1. debug.inc.rst
 2. feature_toggles.inc.rst
 3. motd.inc.rst

The addition of unselectable prompts to these three files
completes the work begun in PR#47810 (d8064b4), which sought
to bring dashboard.rst into line with the unselectable prompt
standard introduced by Kefu Chai in 2020.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #47681 from ronen-fr/wip-rf-delog1
Ronen Friedman [Sun, 28 Aug 2022 11:10:10 +0000 (14:10 +0300)]
Merge pull request #47681 from ronen-fr/wip-rf-delog1

osd/scrub: improving scrub logs
Reviewed-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoMerge pull request #47728 from yuvalif/wip-yuval-cont-lease
Yuval Lifshitz [Sun, 28 Aug 2022 07:44:07 +0000 (10:44 +0300)]
Merge pull request #47728 from yuvalif/wip-yuval-cont-lease

rgw/multisite: check for late lease renewals

reviewed-by: cbodley

3 years agoosd/scrub: reduce the amount of log lines 47681/head
Ronen Friedman [Tue, 16 Aug 2022 12:48:04 +0000 (15:48 +0300)]
osd/scrub: reduce the amount of log lines

Following call chains, and removing repeated data.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
3 years agocommon: improving fmtlib handling of ceph::utime_t
Ronen Friedman [Thu, 18 Aug 2022 15:27:47 +0000 (18:27 +0300)]
common: improving fmtlib handling of ceph::utime_t

1. fixing the output to show local-time instead of UTC format, matching
   operator<<() handling (and all the rest of our logs)
2. adding a 'short' mode (as {:s}) for when, e.g. in most scrub logs,
   we only need 3 digits for the sub-second, and do not need the
   trailing TZ designation.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoMerge pull request #47736 from ceph/release-docs
zdover23 [Sat, 27 Aug 2022 21:13:39 +0000 (07:13 +1000)]
Merge pull request #47736 from ceph/release-docs

doc: Update release process doc to accurately reflect current process

Reviewed-by: Zac Dover <zac.dover@gmail.com>
3 years agodoc: Update release process doc to accurately reflect current process 47736/head
David Galloway [Mon, 22 Aug 2022 20:12:36 +0000 (16:12 -0400)]
doc: Update release process doc to accurately reflect current process

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoinclude/object_fmt: mark fmt::formatter<>::format() const 47830/head
Kefu Chai [Sat, 27 Aug 2022 03:31:07 +0000 (11:31 +0800)]
include/object_fmt: mark fmt::formatter<>::format() const

so these formatters can be used in methods with `const` specifier.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agocommon/LogEntry: specialize fmt::formatter<LogEntry>
Kefu Chai [Sat, 27 Aug 2022 03:00:20 +0000 (11:00 +0800)]
common/LogEntry: specialize fmt::formatter<LogEntry>

so we can use the formatter defined for `LogEntry` in fmtlib v9.
in this new version of fmtlib, it is required to define a specialization
for the formatted type even when it comes to the types with an override of
operator<<(). since we already have an override for `LogEntry`, let's define
the specialization for `fmt::formatter<LogEntry>`.

this change should address the FTBFS when building with fmtlib v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agocommon/Journald: include msg/msg_fmt.h
Kefu Chai [Sat, 27 Aug 2022 02:27:01 +0000 (10:27 +0800)]
common/Journald: include msg/msg_fmt.h

so we can use the formatter defined for `entity_name_t`. in fmtlib v9,
it is required to define a specialization for the formatted type even
the type has an override of operator<<(). now that we already have a
formatter for `entity_name_t`, let's just use it.

this change should address the FTBFS when building with fmtlib v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agolibrbd: use actual monitor addresses when creating a peer bootstrap token 47835/head
Ilya Dryomov [Sat, 27 Aug 2022 09:09:00 +0000 (11:09 +0200)]
librbd: use actual monitor addresses when creating a peer bootstrap token

Relying on mon_host config option is fragile, as the user may confuse
v1 and v2 addresses, group them incorrectly, etc.  Get mon_host value
only as a fallback.

Fixes: https://tracker.ceph.com/issues/57317
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agomon/MgrMonitor: do not propse again for "mgr fail" 47834/head
Kefu Chai [Sat, 27 Aug 2022 15:46:00 +0000 (23:46 +0800)]
mon/MgrMonitor: do not propse again for "mgr fail"

in 23c3f76018b446fb77bbd71fdd33bddfbae9e06d, the change to fail the mgr
is proposed immediately. but `MgrMonitor::prepare_command()` method still
returns `true` in this case. its indirect caller of
`PaxosService::dispatch()` considers this as a sign that it needs to
propose the change with `propose_pending()`. but the pending change has
already been proposed by `MgrMonitor::prepare_command()`, and
`have_pending` is also cleared by this call. as we don't allow
consecutive paxos proposals, the second `propose_pending()` call is
delayed with a configured latency. but when the timer is fired, this
poseponed call would find itself trying to propose nothing. the change
to fail the mgr has been proposed. that's why we have
`ceph_assert(have_pending)` assertion failures.

in this change, the second proposal is not proposed anymore if the
proposal is proposed immediately. this should avoid the assertion
failure.

this change should address the regression introduced by
23c3f76018b446fb77bbd71fdd33bddfbae9e06d.

Fixes: https://tracker.ceph.com/issues/56850
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agocmake: set CMP0135 policy 47829/head
Kefu Chai [Sat, 27 Aug 2022 01:51:02 +0000 (09:51 +0800)]
cmake: set CMP0135 policy

so the `DOWNLOAD_EXTRACT_TIMESTAMP` property of
`ExternalProject_Add()` command is set by default on CMake v3.24 and up.
it helps to set the a more accurate timestamp for the downloaded
content, hence the targets depending on the extracted content can be
rebuilt if the URL changes.

see also https://cmake.org/cmake/help/latest/policy/CMP0135.html

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agocmake: use a loop for setting new policies
Kefu Chai [Sat, 27 Aug 2022 01:47:44 +0000 (09:47 +0800)]
cmake: use a loop for setting new policies

we were using a for loop for this purpose, but the for loop was unrolled
when we bumped up the required cmake version.

this change paves the road to setting "CMP0135" to "NEW". this policy
is a new one introduced by CMake v3.24.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #47810 from zdover23/wip-doc-2022-08-25-mgr-dashboard-prompt-correct
zdover23 [Fri, 26 Aug 2022 19:45:28 +0000 (05:45 +1000)]
Merge pull request #47810 from zdover23/wip-doc-2022-08-25-mgr-dashboard-prompt-correct

doc/mgr: add prompt directives to dashboard.rst

Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #47046 from rzarzynski/wip-dup-trimming-test2
Laura Flores [Fri, 26 Aug 2022 19:07:44 +0000 (14:07 -0500)]
Merge pull request #47046 from rzarzynski/wip-dup-trimming-test2

osd, tools, kv: non-aggressive, on-line trimming of accumulated dups

3 years agoMerge pull request #46994 from rishabh-d-dave/qa-caps-helper-upgrade
Rishabh Dave [Fri, 26 Aug 2022 13:13:52 +0000 (18:43 +0530)]
Merge pull request #46994 from rishabh-d-dave/qa-caps-helper-upgrade

qa/cephfs: upgrade caps_helper.py

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #47510 from nSedrickm/pagination-component-accesibility-update
Pere Diaz Bou [Fri, 26 Aug 2022 13:09:37 +0000 (15:09 +0200)]
Merge pull request #47510 from nSedrickm/pagination-component-accesibility-update

mgr/dashboard: Improve level A accessibility for pagination component

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46902 from lxbsz/wip-56414
Rishabh Dave [Fri, 26 Aug 2022 13:03:13 +0000 (18:33 +0530)]
Merge pull request #46902 from lxbsz/wip-56414

client: specify the quota type when finding the root quota realm

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
3 years agocrimson/os/seastore/async_cleaner: move the related stats to JournalTrimmerImpl 47816/head
Yingxin Cheng [Fri, 26 Aug 2022 09:46:20 +0000 (17:46 +0800)]
crimson/os/seastore/async_cleaner: move the related stats to JournalTrimmerImpl

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/async_cleaner: factor out JournalTrimmerImpl
Yingxin Cheng [Thu, 25 Aug 2022 13:36:27 +0000 (21:36 +0800)]
crimson/os/seastore/async_cleaner: factor out JournalTrimmerImpl

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/async_cleaner: introduce BackgroundListener callbacks
Yingxin Cheng [Thu, 25 Aug 2022 13:29:08 +0000 (21:29 +0800)]
crimson/os/seastore/async_cleaner: introduce BackgroundListener callbacks

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/async_cleaner: clean up ExtentCallbackInterface ertrs
Yingxin Cheng [Thu, 25 Aug 2022 14:26:14 +0000 (22:26 +0800)]
crimson/os/seastore/async_cleaner: clean up ExtentCallbackInterface ertrs

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/async_cleaner: move ExtentCallbackInterface out of the class
Yingxin Cheng [Thu, 25 Aug 2022 13:11:31 +0000 (21:11 +0800)]
crimson/os/seastore/async_cleaner: move ExtentCallbackInterface out of the class

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/async_cleaner: simplify GCProcess::run()
Yingxin Cheng [Wed, 24 Aug 2022 09:10:17 +0000 (17:10 +0800)]
crimson/os/seastore/async_cleaner: simplify GCProcess::run()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/async_cleaner: sort GCProcess interfaces
Yingxin Cheng [Wed, 24 Aug 2022 08:29:33 +0000 (16:29 +0800)]
crimson/os/seastore/async_cleaner: sort GCProcess interfaces

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #47698 from cyx1231st/wip-seastore-RBM-trim-2
Yingxin [Fri, 26 Aug 2022 06:55:41 +0000 (14:55 +0800)]
Merge pull request #47698 from cyx1231st/wip-seastore-RBM-trim-2

crimson/os/seastore: generalize journal tail calculations with CircularBoundedJournal

Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #47811 from adk3798/fix-tox-mgr
Adam King [Thu, 25 Aug 2022 23:05:44 +0000 (19:05 -0400)]
Merge pull request #47811 from adk3798/fix-tox-mgr

mgr/orchestrator/tests: don't match exact whitespace in table output

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #47686 from cbodley/wip-rgw-rm-zonegroupmap
Casey Bodley [Thu, 25 Aug 2022 18:17:25 +0000 (14:17 -0400)]
Merge pull request #47686 from cbodley/wip-rgw-rm-zonegroupmap

rgw: remove RGWRegionMap and RGWZoneGroupMap

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #47735 from cbodley/wip-57232
Casey Bodley [Thu, 25 Aug 2022 18:17:00 +0000 (14:17 -0400)]
Merge pull request #47735 from cbodley/wip-57232

cls/rgw: restore backward-compatible encoding of cls_rgw_bucket_instance_entry

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #46958 from nSedrickm/datatables-accessibility-update
Ernesto Puerta [Thu, 25 Aug 2022 17:31:09 +0000 (19:31 +0200)]
Merge pull request #46958 from nSedrickm/datatables-accessibility-update

mgr/dashboard: Improve accessibility for datatable component

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #43436 from yuvalif/wip-yuval-fix-50611
Yuval Lifshitz [Thu, 25 Aug 2022 16:38:27 +0000 (19:38 +0300)]
Merge pull request #43436 from yuvalif/wip-yuval-fix-50611

rgw/notification: allow sending bucket notifications secrets in cleartext

reviewed-by: cbodley, mattbenjamin

3 years agomgr/orchestrator/tests: don't match exact whitespace in table output 47811/head
Adam King [Thu, 25 Aug 2022 16:09:49 +0000 (12:09 -0400)]
mgr/orchestrator/tests: don't match exact whitespace in table output

It seems that the exact spacing may differ a bit between
python versions. Currently seeing py3 (which cooresponds to py 3.6
on my system) passing these tests and py37 (which is python 3.7
obviously) failing. I think verifying against the exact whitespace
is unnecessary anyhow. As long as it isn't egregious, we don't
really need to worry about exactly what the spacing is.

Signed-off-by: Adam King <adking@redhat.com>
3 years agodoc/mgr: add prompt directives to dashboard.rst 47810/head
Zac Dover [Thu, 25 Aug 2022 15:56:41 +0000 (01:56 +1000)]
doc/mgr: add prompt directives to dashboard.rst

This commit adds prompt directives (.. prompt:: bash $) to
the commands in dashboard.rst.

There are several ".. include::" directives in the dashboard.rst
file, which means that part of this page is sourced from elsewhere
than the dashboard.rst file. Because I have not yet added prompt
directives to those files, there is an inconsistency in the rendering
of this file. Most of the commands on this page have unselectable
prompts (unselectable prompts are the prompts that don't get added to
the buffer when you copy them to one of the clipboards). But the
commands on this page that come from those ".. include::" directives
do not yet have unselectable prompts.

This file is over 1600 lines long. It was perhaps not optimally wise
of me to have edited all of it in one fell swoop. It took many hours,
and carefully checking it will probably take at least one hour. I
suggest that whoever reviews this should not spend much time on it,
but should instead make a quick pass over the page and make sure that
it looks passable.

The English syntax on this page (and throughout the Dashboard doc-
umentation) will be tightened to remove ambiguity and to improve
readability in the near future, so hold all English-language-related
comments for a future pull request.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agocommon/ceph_context: leak some memory fail to show in valgrind 47802/head
NitzanMordhai [Thu, 25 Aug 2022 11:18:56 +0000 (11:18 +0000)]
common/ceph_context: leak some memory fail to show in valgrind

GCC 20 memory optimization broke the memory leak for testing.

Fixes:https://tracker.ceph.com/issues/57165
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
3 years agoMerge pull request #47674 from adk3798/distro-workunits
Adam King [Thu, 25 Aug 2022 15:21:35 +0000 (11:21 -0400)]
Merge pull request #47674 from adk3798/distro-workunits

qa/cephadm: specify using container host distros for workunits

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agorgw/multisite: check for late lease renewals 47728/head
Yuval Lifshitz [Mon, 22 Aug 2022 13:29:56 +0000 (13:29 +0000)]
rgw/multisite: check for late lease renewals

also make lease renewal logs more uniform

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
3 years agopybind/mgr: tox.ini remove redundant `tox` env 47808/head
John Mulligan [Thu, 25 Aug 2022 13:58:55 +0000 (09:58 -0400)]
pybind/mgr: tox.ini remove redundant `tox` env

Fixes: https://tracker.ceph.com/issues/57153
The envlist contained an environment named `lint`. There was no specific
customization of the lint testenv so it is essentially the same as
running the `py3` testenv.

This was probably a typo and was meant to be `pylint`. Unfortunately,
the pylint test env does not appear to work, probably because it was
never run as part of any automation. At the risk of leaving old stuff
behind I'm not removing the pylint testenv at the moment, only the
`lint` item in order to not run redundant tests.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #47792 from adk3798/rgw-bad-example
Adam King [Thu, 25 Aug 2022 13:11:30 +0000 (09:11 -0400)]
Merge pull request #47792 from adk3798/rgw-bad-example

doc/cephadm/services: fix example for specifying networks for rgw

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47599 from xxhdx1985126/wip-backref-minor-bug
Yingxin [Thu, 25 Aug 2022 02:36:09 +0000 (10:36 +0800)]
Merge pull request #47599 from xxhdx1985126/wip-backref-minor-bug

crimson/os/seastore/cache: set extent's state to INVALID when invalidating it

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
3 years agosrc/pybind/mgr/telemetry: parse `outb` instead of `outs` 47184/head
Laura Flores [Wed, 24 Aug 2022 22:23:45 +0000 (22:23 +0000)]
src/pybind/mgr/telemetry: parse `outb` instead of `outs`

Following the merge of https://github.com/ceph/ceph/pull/47650, which
fixes the confusion between std out and std err in admin socket
commands, we will need to reference the out stream (outb) instead
of the error stream (outs) when we parse heap stats.

Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agodoc/mgr: add `perf_memory_metrics` to the telemetry documentation
Laura Flores [Wed, 20 Jul 2022 05:24:25 +0000 (05:24 +0000)]
doc/mgr: add `perf_memory_metrics` to the telemetry documentation

Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agomgr/telemetry: change some debug logging to error logging
Laura Flores [Wed, 20 Jul 2022 05:12:50 +0000 (05:12 +0000)]
mgr/telemetry: change some debug logging to error logging

Some log messages here were classified as "debug" when they
really fit better as "error".

Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agomgr/dashboard: Improve level A accessibility for pagination component 47510/head
nsedrickm [Wed, 3 Aug 2022 11:14:27 +0000 (12:14 +0100)]
mgr/dashboard: Improve level A accessibility for pagination component

Add custom pagination component based on patternfly design

Fixes: https://tracker.ceph.com/issues/55876
Signed-off-by: nsedrickm <nsedrick101@gmail.com>
3 years agodoc/cephadm: fix example for specifying networks for rgw 47792/head
Adam King [Wed, 24 Aug 2022 14:36:53 +0000 (10:36 -0400)]
doc/cephadm: fix example for specifying networks for rgw

count_per_host must be used with underscores rather
than dashes to work, you need to pass service_id not
service_name and the option for the port is called
rgw_frontend_port not just "port"

Signed-off-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #47785 from rhcs-dashboard/doc-fix-monitoring
zdover23 [Wed, 24 Aug 2022 14:20:59 +0000 (00:20 +1000)]
Merge pull request #47785 from rhcs-dashboard/doc-fix-monitoring

docs: fix doc link pointing to master in dashboard.rst

Reviewed-by: Zac Dover <zac.dover@gmail.com>
3 years agodocs: fix doc link pointing to master in dashboard.rst 47785/head
Nizamudeen A [Wed, 24 Aug 2022 10:41:00 +0000 (16:11 +0530)]
docs: fix doc link pointing to master in dashboard.rst

Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoinclude/intarith: s/8/CHAR_BIT/ 47761/head
Kefu Chai [Tue, 23 Aug 2022 15:38:39 +0000 (23:38 +0800)]
include/intarith: s/8/CHAR_BIT/

less magic numbers

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoinclude/intarith: drop ctz()
Kefu Chai [Sun, 21 Aug 2022 16:52:13 +0000 (00:52 +0800)]
include/intarith: drop ctz()

it is not used anymore

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agodenc, os: s/ctz/std::countr_zero/
Kefu Chai [Sun, 21 Aug 2022 16:50:43 +0000 (00:50 +0800)]
denc, os: s/ctz/std::countr_zero/

prefer the facilities provided by standard library over the homebrew
ones for better readability and maintainability.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agostandalone/osd: Test adjust with new trimming function 47046/head
NitzanMordhai [Wed, 24 Aug 2022 05:46:15 +0000 (05:46 +0000)]
standalone/osd: Test adjust with new trimming function
Change the number of dups trimmied according to the new loop.

Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
3 years agoMerge pull request #47705 from xxhdx1985126/wip-skip-invalid-inline-extents
Yingxin [Wed, 24 Aug 2022 08:10:20 +0000 (16:10 +0800)]
Merge pull request #47705 from xxhdx1985126/wip-skip-invalid-inline-extents

crimson/os/seastore/cache: skip invalid inline extents when completing commits

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #47745 from liu-chunmei/seastore-empty-delta
Yingxin [Wed, 24 Aug 2022 08:08:29 +0000 (16:08 +0800)]
Merge pull request #47745 from liu-chunmei/seastore-empty-delta

crimson/seastore: fix omap empty delta buffer

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46072 from neesingh-rh/fix_54978
Venky Shankar [Wed, 24 Aug 2022 08:07:46 +0000 (13:37 +0530)]
Merge pull request #46072 from neesingh-rh/fix_54978

cephfs-top: adding filesystem menu option

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>