]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
19 months agodebian: add missing bcrypt to manager .requires 53290/head
Thomas Lamprecht [Tue, 5 Sep 2023 11:28:07 +0000 (13:28 +0200)]
debian: add missing bcrypt to manager .requires

The `ceph-mgr` package lost its dependency on `python3-bcrypt` when
the dependencies got moved from d/control to a dh_python3 compatible
requires file. Add it again as the bcrypt module is still used there.

Otherwise one gets errors when, e.g., calling `ceph -s` after a fresh
installation:

> 13 mgr modules have failed dependencies
> Module 'balancer' has failed dependency: No module named 'bcrypt'
> Module 'crash' has failed dependency: No module named 'bcrypt'
> Module 'devicehealth' has failed dependency: No module named 'bcrypt'
> Module 'iostat' has failed dependency: No module named 'bcrypt'
> Module 'nfs' has failed dependency: No module named 'bcrypt'
> Module 'orchestrator' has failed dependency: No module named 'bcrypt'
> Module 'pg_autoscaler' has failed dependency: No module named 'bcrypt'
> Module 'progress' has failed dependency: No module named 'bcrypt'
> Module 'rbd_support' has failed dependency: No module named 'bcrypt'
> Module 'restful' has failed dependency: No module named 'bcrypt'
> Module 'status' has failed dependency: No module named 'bcrypt'
> Module 'telemetry' has failed dependency: No module named 'bcrypt'
> Module 'volumes' has failed dependency: No module named 'bcrypt'

Fixes: https://tracker.ceph.com/issues/63637
Fixes: ef19547e83e ("debian: add .requires for specifying python3 deps")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
22 months agoMerge pull request #52956 from aclamk/wip-aclamk-testing-variable-workload
Adam Kupczyk [Tue, 5 Sep 2023 13:48:13 +0000 (15:48 +0200)]
Merge pull request #52956 from aclamk/wip-aclamk-testing-variable-workload

tools: Add generator of variable workload

22 months agoMerge pull request #52877 from guits/bz2064498
Guillaume Abrioux [Tue, 5 Sep 2023 12:41:48 +0000 (14:41 +0200)]
Merge pull request #52877 from guits/bz2064498

ceph-volume/cephadm: support lv devices in inventory

22 months agoMerge pull request #53037 from batrick/i62482
Venky Shankar [Mon, 4 Sep 2023 14:18:05 +0000 (19:48 +0530)]
Merge pull request #53037 from batrick/i62482

qa: do not create rbd pool for CephFS QA

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
22 months agoMerge pull request #52964 from AliMasarweh/wip-alimasa-persistant-q-enhance
Ali Masarwa [Mon, 4 Sep 2023 12:25:44 +0000 (15:25 +0300)]
Merge pull request #52964 from AliMasarweh/wip-alimasa-persistant-q-enhance

RGW: added a per topic configuration to control the notification persistency
Adding the configuration of persistency per topic that will override the global settings

Reviewed-by: yuvalif <ylifshit@redhat.com>
22 months agoMerge pull request #53251 from idryomov/wip-61707
Ilya Dryomov [Mon, 4 Sep 2023 11:25:03 +0000 (13:25 +0200)]
Merge pull request #53251 from idryomov/wip-61707

librbd: make CreatePrimaryRequest remove any unlinked mirror snapshots

Reviewed-by: Ramana Raja <rraja@redhat.com>
22 months agoMerge pull request #52990 from ajarr/fix-61607
Ilya Dryomov [Mon, 4 Sep 2023 11:07:29 +0000 (13:07 +0200)]
Merge pull request #52990 from ajarr/fix-61607

librbd: kick ExclusiveLock state machine on client being blocklisted when waiting for lock

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
22 months agoRGW: added a per topic configuration to control the notification persistency 52964/head
Ali Masarwa [Wed, 9 Aug 2023 11:53:04 +0000 (14:53 +0300)]
RGW: added a per topic configuration to control the notification persistency

Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
22 months agoMerge pull request #53264 from anthonyeleven/anthonyeleven/improve-radosgw-admin...
zdover23 [Sun, 3 Sep 2023 21:49:03 +0000 (07:49 +1000)]
Merge pull request #53264 from anthonyeleven/anthonyeleven/improve-radosgw-admin-usage

doc/man/8: improve radosgw-admin.rst

Reviewed-by: Zac Dover <zac.dover@proton.me>
22 months agodoc/man/8: improve radosgw-admin.rst 53264/head
Anthony D'Atri [Sun, 3 Sep 2023 13:56:44 +0000 (09:56 -0400)]
doc/man/8: improve radosgw-admin.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
22 months agoMerge pull request #50360 from tgfree7/wip-doc-2023-03-03-multisite-migrating-a-singl...
Anthony D'Atri [Sun, 3 Sep 2023 12:05:17 +0000 (08:05 -0400)]
Merge pull request #50360 from tgfree7/wip-doc-2023-03-03-multisite-migrating-a-single-site

doc/radosgw: multisite - edit "migrating a single-site"

22 months agoMerge pull request #53166 from Matan-B/wip-matanb-crimson-ignore-pool-app
Matan Breizman [Sun, 3 Sep 2023 09:57:08 +0000 (12:57 +0300)]
Merge pull request #53166 from Matan-B/wip-matanb-crimson-ignore-pool-app

qa/config/crimson_qa_overrides: ignore POOL_APP_NOT_ENABLED

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: chunmei-liu <chunmei.liu@intel.com>
22 months agoMerge pull request #53247 from zdover23/wip-doc-2023-09-01-readme-md-running-test...
zdover23 [Fri, 1 Sep 2023 18:31:18 +0000 (04:31 +1000)]
Merge pull request #53247 from zdover23/wip-doc-2023-09-01-readme-md-running-test-cluster

doc/README.md - improve "Running a test cluster"

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
22 months agoMerge pull request #53249 from krafZLorG/fix_abc_table
zdover23 [Fri, 1 Sep 2023 18:08:17 +0000 (04:08 +1000)]
Merge pull request #53249 from krafZLorG/fix_abc_table

doc/start: correct ABC test chart

Reviewed-by: Zac Dover <zac.dover@proton.me>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
22 months agoqa: add "failover / failback loop" test for rbd-mirror 53251/head
Ilya Dryomov [Fri, 1 Sep 2023 12:53:33 +0000 (14:53 +0200)]
qa: add "failover / failback loop" test for rbd-mirror

For snapshot-based mirroring, check that demote (or other mirror
snapshots) don't pile up.  Nothing in particular to assert on for
journal-based mirroring but the test is still useful.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
22 months agolibrbd: make CreatePrimaryRequest remove any unlinked mirror snapshots
Ilya Dryomov [Sat, 26 Aug 2023 11:04:52 +0000 (13:04 +0200)]
librbd: make CreatePrimaryRequest remove any unlinked mirror snapshots

After commit ac552c9b4d65 ("librbd: localize snap_remove op for mirror
snapshots"), rbd-mirror daemon no longer removes mirror snapshots when
it's done syncing them -- instead it only unlinks from them.  However,
CreatePrimaryRequest state machine was not adjusted to compensate and
hence two cases were missed:

- primary demotion snapshot (rbd-mirror daemon unlinks from primary
  demotion snapshots just like it does from regular primary snapshots);
  this comes up when an image is demoted but then promoted on the same
  cluster

- non-primary demotion snapshot (unlike regular non-primary snapshots,
  non-primary demotion snapshots store peer uuids and rbd-mirror daemon
  does unlinking just like in the case of primary snapshots); this
  comes up when an image is demoted and promoted on the other cluster

Related is the case of orphan snapshots.  Since they are dummy to begin
with, CreatePrimaryRequest would now clean up the orphan snapshot after
the creation of the force promote snapshot.

Fixes: https://tracker.ceph.com/issues/61707
Co-authored-by: Christopher Hoffman <choffman@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
22 months agolibrbd: don't attempt to remove image state on orphan snapshots
Ilya Dryomov [Tue, 22 Aug 2023 15:27:50 +0000 (17:27 +0200)]
librbd: don't attempt to remove image state on orphan snapshots

Despite being mirror snapshots, orphan snapshots don't have image
state: see CreateNonPrimaryRequest::write_image_state() for a similar
is_orphan() check.  Attempting to remove image state generates bogus
"failed to read image state object" and "failed to remove image state"
errors.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
22 months agoMerge pull request #43217 from k0ste/fix_52656
Kefu Chai [Fri, 1 Sep 2023 14:51:01 +0000 (22:51 +0800)]
Merge pull request #43217 from k0ste/fix_52656

mgr: prometheus: use nsec unit in desc for RBD _read_latency and _write_latency metrics

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
22 months agoMerge pull request #51197 from petrutlucian94/mingw-llvm
Ilya Dryomov [Fri, 1 Sep 2023 14:21:35 +0000 (16:21 +0200)]
Merge pull request #51197 from petrutlucian94/mingw-llvm

windows: use mingw-llvm

Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
22 months agodoc/start: correct ABC test chart 53249/head
Dmitry Kvashnin [Fri, 1 Sep 2023 10:53:18 +0000 (10:53 +0000)]
doc/start: correct ABC test chart

Signed-off-by: Dmitry Kvashnin <dm.kvashnin@gmail.com>
22 months agodoc/README.md - improve "Running a test cluster" 53247/head
Zac Dover [Fri, 1 Sep 2023 00:19:58 +0000 (10:19 +1000)]
doc/README.md - improve "Running a test cluster"

Improve the English in the section "Running a test cluster in the
ceph/README.md file.

Signed-off-by: Zac Dover <zac.dover@proton.me>
22 months agoMerge pull request #53237 from idryomov/wip-16.2.14-notes-followup
Ilya Dryomov [Thu, 31 Aug 2023 15:30:05 +0000 (17:30 +0200)]
Merge pull request #53237 from idryomov/wip-16.2.14-notes-followup

doc: 16.2.14 release notes follow-up

Reviewed-by: Laura Flores <lflores@redhat.com>
22 months agoMerge PR #52522 into main
Venky Shankar [Thu, 31 Aug 2023 11:55:03 +0000 (17:25 +0530)]
Merge PR #52522 into main

* refs/pull/52522/head:
mds: drop locks and retry when lock set changes

Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agotools/variable_load: Improvements 52956/head
Adam Kupczyk [Thu, 31 Aug 2023 09:27:47 +0000 (09:27 +0000)]
tools/variable_load: Improvements

Added pool parameters.
Added WORKLOAD definition documentation
Added examples.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
22 months agotools/variable_load: Improve load generation
Adam Kupczyk [Tue, 29 Aug 2023 13:50:01 +0000 (13:50 +0000)]
tools/variable_load: Improve load generation

Improve generation of workloads.
Add options. Add useful help.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
22 months agotools/variable_load: Add generator of variable workload
Adam Kupczyk [Fri, 11 Aug 2023 14:24:57 +0000 (14:24 +0000)]
tools/variable_load: Add generator of variable workload

The tool is dedicated to create highly variable workloads.
The intended audience is
1) scraper testing - tool to sniff on OSD ops
2) CoDel testing - bandwidth/latency optimization algorithm in BS
Initial commit.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
22 months agoMerge PR #52409 into main
Venky Shankar [Thu, 31 Aug 2023 09:33:18 +0000 (15:03 +0530)]
Merge PR #52409 into main

* refs/pull/52409/head:
mds: rework FSMap to avoid shared_ptrs

Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge pull request #53100 from rhcs-dashboard/fix-rbd-mirror-label
Nizamudeen A [Thu, 31 Aug 2023 09:17:14 +0000 (14:47 +0530)]
Merge pull request #53100 from rhcs-dashboard/fix-rbd-mirror-label

mgr/dashboard: fix image columns naming

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
22 months agodoc: 16.2.14 release notes follow-up 53237/head
Ilya Dryomov [Thu, 31 Aug 2023 08:48:25 +0000 (10:48 +0200)]
doc: 16.2.14 release notes follow-up

Address review comments that remained outstanding in
https://github.com/ceph/ceph/pull/53107:

- CephFS capitalization
- missing PR in the list of changes

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
22 months agoMerge pull request #53182 from rhcs-dashboard/fix-subvolume-rm-snapshots
Nizamudeen A [Thu, 31 Aug 2023 05:57:07 +0000 (11:27 +0530)]
Merge pull request #53182 from rhcs-dashboard/fix-subvolume-rm-snapshots

mgr/dashboard: subvolume rm with snapshots

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge pull request #53107 from ceph/wip-yuriw-release-16.2.14-main
Laura Flores [Wed, 30 Aug 2023 22:24:55 +0000 (17:24 -0500)]
Merge pull request #53107 from ceph/wip-yuriw-release-16.2.14-main

doc: 16.2.14 Release Notes

22 months agowin32_deps_build.sh: avoid duplicate boost definitions 51197/head
Lucian Petrut [Fri, 18 Aug 2023 13:10:59 +0000 (13:10 +0000)]
win32_deps_build.sh: avoid duplicate boost definitions

Boost stacktrace defines a few UUIDs that were recently added
to mingw as well [1], causing compilation errors [2]:

  In file included from libs/stacktrace/build/../src/windbg.cpp:9:
  ./boost/stacktrace/detail/frame_msvc.ipp:31:5: error: redefinition of
    '__mingw_uuidof_s<IDebugClient>'
    __CRT_UUID_DECL(IDebugClient,0x27fe5639,...

We'll apply a fix that hasn't merged upsteam yet [3].

[1] https://github.com/mirror/mingw-w64/commit/ce5a9f624dfc691082dad2ea2af7b1985e3476b5
[2] https://github.com/boostorg/stacktrace/issues/133
[3] https://github.com/boostorg/stacktrace/pull/140

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agocmake: fix mingw-llvm shared linking
Lucian Petrut [Wed, 23 Aug 2023 14:21:12 +0000 (14:21 +0000)]
cmake: fix mingw-llvm shared linking

mingw-llvm can't handle the '--exclude-libs' linker flag, so
we'll have to skip it.

At the same time, cmake can't locate the boost shared libs as the
import libs are not generated when using mingw-llvm due to boost's
clang-linux.jam file. For now, we'll patch the cmake files, using
the dlls as import libs (which is allowed by mingw).

While at it, we'll avoid linking the static AND dynamic boost libs,
speeding the build.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agocommon: skip boost shared_mutex with mingw-llvm
Lucian Petrut [Tue, 30 May 2023 13:46:54 +0000 (13:46 +0000)]
common: skip boost shared_mutex with mingw-llvm

Because of winpthreads issues, we had to use Boost's shared_mutex
implementation.

When using mingw-llvm, we can safely use libc++'s shared mutex
implementation.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agocommon: avoid <1ms waits on Windows
Lucian Petrut [Thu, 4 May 2023 14:27:56 +0000 (14:27 +0000)]
common: avoid <1ms waits on Windows

std::condition_variable::wait_for uses SleepConditionVariableSRW
on Windows, which has millisecond precision.

In order to avoid busy loops, we won't wait for less than one
millisecond on Windows.

Note that this situation is quite common since on Windows,
"wait_for" often returns ~1ms before the specified timeout.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agocommon: use signedspan for monotonic ceph clocks
Lucian Petrut [Mon, 8 May 2023 12:47:42 +0000 (12:47 +0000)]
common: use signedspan for monotonic ceph clocks

The monotonic clocks are commonly used for measuring time deltas,
which can be negative.

ceph::mono_clock and ceph::coarse_mono_clock currently use
unsigned duration types [1]. The difference operators are overloaded
in order to ensure that the result is signed [2][3].

However, we still have issues when unsigned timespans are compared.
For example, std::condition::wait_for can hang indefinitely due
to underflows [4][5]. It ends up using our unsigned type for a
negative timespan, which is then compared to
std::chrono::duration<Rep,Period>::zero.

In order to avoid such problems, we'll simply use a signed type
for monotonic clock durations.

With signed timespans, we can no longer assume that time_point::zero()
is equal to time_point::min(), so we're updating it accodingly.

[1] https://github.com/ceph/ceph/blob/4040f12347a5f48520f8ff2f83065b9ee3a36f68/src/common/ceph_time.h#L285
[2] https://github.com/ceph/ceph/blob/4040f12347a5f48520f8ff2f83065b9ee3a36f68/src/common/ceph_time.h#L345-L380
[3] https://github.com/ceph/ceph/blob/4040f12347a5f48520f8ff2f83065b9ee3a36f68/src/common/ceph_time.h#L466-L487
[4] https://github.com/llvm/llvm-project/blob/91cff8a71872cf49f0c5c9e5510f8065bfefa3c3/libcxx/include/__condition_variable/condition_variable.h#L178
[5] https://github.com/llvm/llvm-project/blob/91cff8a71872cf49f0c5c9e5510f8065bfefa3c3/libcxx/include/__condition_variable/condition_variable.h#L193

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agotest: add timer loop tests
Lucian Petrut [Thu, 4 May 2023 13:16:56 +0000 (13:16 +0000)]
test: add timer loop tests

We've been experiencing timer hangs with mingw-llvm.
std::condition_variable::wait_for was returning a few microseconds
before the requested time and then hanging when called with a
small interval (e.g. microseconds).

This was affecting the OSD periodic tick, which would hang after
a while (20m up to 2h).

The issue can be reproduced with a timer loop and a small interval
(e.g. 40us), in which case the timer is likely to hang after about
10s.

We're adding some tests, while the actual mingw-llvm issue will
be mitigated in a separate commit.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agowin32_build.sh: mingw-llvm support
Lucian Petrut [Fri, 7 Apr 2023 10:39:59 +0000 (10:39 +0000)]
win32_build.sh: mingw-llvm support

winpthreads is a library that emulates the pthreads API using
Windows primitives. It's also used by the mingw/gcc libstdc++
for std::thread.

The issue is that winpthreads isn't well maintained. There
have been numerous bugs that haven't been addressed in years.
Specifically, we've been hitting deadlocks because of the
winpthreads rw lock implementation.

This change will allow building Ceph for Windows using mingw/llvm,
which uses libc++ and doesn't rely on winpthreads.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agotest/dokan: avoid runtime dependent assertion
Lucian Petrut [Mon, 24 Apr 2023 14:36:43 +0000 (14:36 +0000)]
test/dokan: avoid runtime dependent assertion

We're checking a permission denied exception message that's
runtime specific:

  /mnt/data/workspace/ceph_mingw_clang/src/test/dokan/dokan.cc:252: Failure
  Expected equality of these values:
    e.what()
      Which is: "filesystem error: in remove: Permission denied
      [\"Z:\\ro_success_b76223c4-c590-45e0-ab78-4d281ac512b5\"]"
    exception_msg.c_str()
      Which is: "filesystem error: cannot remove: No such device
      [Z:\\ro_success_b76223c4-c590-45e0-ab78-4d281ac512b5]"

In order to support libc++, we'll drop the exception message
assertion and rely on the exception type.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agotest: link timer test against libceph-common
Lucian Petrut [Wed, 19 Apr 2023 13:11:36 +0000 (13:11 +0000)]
test: link timer test against libceph-common

This test currently failes to build for Windows using llvm
due to unresolved symbols.

We'll address the issue by explicitly specifying the ceph-common
dependency.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agocommon: avoid using pthread native handle if not available
Lucian Petrut [Tue, 18 Apr 2023 14:50:41 +0000 (14:50 +0000)]
common: avoid using pthread native handle if not available

Especially when targeting Windows, llvm may not necessarily
use pthreads for std::thread. In this case, we must not use the
"native" thread handle with the pthreads API.

We'll update the ceph_pthread_getname and ceph_pthread_setname
wrappers, adding a new one: ceph_pthread_kill.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agocmake: avoid -Bsymbolic on Windows
Lucian Petrut [Fri, 21 Apr 2023 13:10:23 +0000 (13:10 +0000)]
cmake: avoid -Bsymbolic on Windows

The "-Bsymbolic" and "-Bsymbolic-functions" flags only apply to ELF
binaries.

llvm errors out when targeting Windows, which is why we'll need
to skip those flags for Windows builds.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agosrc/common/win32: add missing casts
Lucian Petrut [Fri, 7 Apr 2023 11:48:34 +0000 (11:48 +0000)]
src/common/win32: add missing casts

clang errors out because of a few type mismatches that gcc
ignored through "-fpermissive".

We'll need to cast a few void pointers to the appropriate type.
There's also a function that doesn't have an explicit return type,
which was omitted by mistake.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agocmake: avoid duplicate symbols
Lucian Petrut [Tue, 11 Apr 2023 08:39:10 +0000 (08:39 +0000)]
cmake: avoid duplicate symbols

Some symbols from the crc32, arch and fmt libs
are re-exported by libceph-common:

  FAILED: bin/unittest_time.exe
  ld.lld: error: fmt::v9::format_error::~format_error() was replaced

llvm throws errors because of the duplicate symbols.
One workaround is to use objects instead of static libs
for the libs. For libfmt we'll use the header-only version.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agoMerge pull request #53211 from rhcs-dashboard/kill-rbd-mirror-leftovers
Nizamudeen A [Wed, 30 Aug 2023 11:35:25 +0000 (17:05 +0530)]
Merge pull request #53211 from rhcs-dashboard/kill-rbd-mirror-leftovers

mgr/dashboard: cleanup rbd-mirror process in dashboard e2e

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Zack Cerza <zack@redhat.com>
22 months agoMerge pull request #53208 from rhcs-dashboard/fs-volume-validator-fix
Nizamudeen A [Wed, 30 Aug 2023 08:23:44 +0000 (13:53 +0530)]
Merge pull request #53208 from rhcs-dashboard/fs-volume-validator-fix

mgr/dashboard: fix cephfs create form validator

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
22 months agomgr/dashboard: fix image columns naming 53100/head
Pedro Gonzalez Gomez [Wed, 23 Aug 2023 16:34:55 +0000 (18:34 +0200)]
mgr/dashboard: fix image columns naming

Fixes: https://tracker.ceph.com/issues/62551
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
22 months agomgr/dashboard: subvolume rm with snapshots 53182/head
Pedro Gonzalez Gomez [Mon, 28 Aug 2023 13:03:06 +0000 (15:03 +0200)]
mgr/dashboard: subvolume rm with snapshots

Fixes: https://tracker.ceph.com/issues/62452
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
22 months agomgr/dashboard: cleanup rbd-mirror process in dashboard e2e 53211/head
Nizamudeen A [Tue, 29 Aug 2023 19:48:03 +0000 (01:18 +0530)]
mgr/dashboard: cleanup rbd-mirror process in dashboard e2e

Fixes: https://tracker.ceph.com/issues/61703
Signed-off-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge pull request #53213 from zdover23/wip-doc-2023-08-30-cephadm-install-adding...
Anthony D'Atri [Tue, 29 Aug 2023 23:47:05 +0000 (19:47 -0400)]
Merge pull request #53213 from zdover23/wip-doc-2023-08-30-cephadm-install-adding-hosts-2

doc/cephadm: edit "Adding Hosts" in install.rst

22 months agodoc/cephadm: edit "Adding Hosts" in install.rst 53213/head
Zac Dover [Tue, 29 Aug 2023 22:33:09 +0000 (08:33 +1000)]
doc/cephadm: edit "Adding Hosts" in install.rst

Edit the English in the "Adding Hosts" section of
doc/cephadm/install.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
22 months agoMerge pull request #52655 from rzarzynski/wip-crimson-ertr-sassert-on-wrong-valuefunc
Liu-Chunmei [Tue, 29 Aug 2023 22:19:07 +0000 (15:19 -0700)]
Merge pull request #52655 from rzarzynski/wip-crimson-ertr-sassert-on-wrong-valuefunc

crimson/ertr: assert on invocability of func provided to safe_then()

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
22 months agoMerge pull request #53136 from petrutlucian94/rbd_tests
Ilya Dryomov [Tue, 29 Aug 2023 17:18:40 +0000 (19:18 +0200)]
Merge pull request #53136 from petrutlucian94/rbd_tests

rbd-wnbd: wait for disks to become available

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
22 months agoMerge pull request #53133 from rhcs-dashboard/rgw-addr-fix
Nizamudeen A [Tue, 29 Aug 2023 15:41:26 +0000 (21:11 +0530)]
Merge pull request #53133 from rhcs-dashboard/rgw-addr-fix

mgr/dashboard: fix rgw page issues when hostname not resolvable

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
22 months agodoc: 16.2.14 Release Notes 53107/head
Yuri Weinstein [Wed, 23 Aug 2023 19:52:43 +0000 (12:52 -0700)]
doc: 16.2.14 Release Notes

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
22 months agoMerge PR #52686 into main
Milind Changire [Tue, 29 Aug 2023 14:43:50 +0000 (20:13 +0530)]
Merge PR #52686 into main

* refs/pull/52686/head:
PendingReleaseNotes: note about mandatory fs argument
doc/cephfs: add note about mandatory --fs argument to snap-schedule
qa: add test for mandatory fs argument to snap-schedule commands
mgr/snap-schedule: tweaks to keep mypy happy
mgr/snap_schedule: validate fs before execution

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge pull request #53193 from rhcs-dashboard/progress-bar-color-fix
Nizamudeen A [Tue, 29 Aug 2023 14:23:04 +0000 (19:53 +0530)]
Merge pull request #53193 from rhcs-dashboard/progress-bar-color-fix

mgr/dashboard: fix progress bar color visibility

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
22 months agomgr/dashboard: fix cephfs create form validator 53208/head
Nizamudeen A [Tue, 29 Aug 2023 14:16:07 +0000 (19:46 +0530)]
mgr/dashboard: fix cephfs create form validator

dashboard was allowing to create a filesystem with / in its name but the
cli throws out error in doing so. And the created volume in dashboard
just gets ended up as a stale volume

Fixes: https://tracker.ceph.com/issues/62628
Signed-off-by: Nizamudeen A <nia@redhat.com>
22 months agomgr/dashboard: fix rgw page issues when hostname not resolvable 53133/head
Nizamudeen A [Thu, 24 Aug 2023 11:47:29 +0000 (17:17 +0530)]
mgr/dashboard: fix rgw page issues when hostname not resolvable

Fixes: https://tracker.ceph.com/issues/62396
Signed-off-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge pull request #51964 from idryomov/wip-doc-drop-journal-max-fetch-bytes
Ilya Dryomov [Tue, 29 Aug 2023 12:43:00 +0000 (14:43 +0200)]
Merge pull request #51964 from idryomov/wip-doc-drop-journal-max-fetch-bytes

doc: drop mention of rbd_mirror_journal_max_fetch_bytes option

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
22 months agodoc: drop mention of rbd_mirror_journal_max_fetch_bytes option 51964/head
Ilya Dryomov [Wed, 7 Jun 2023 19:34:07 +0000 (21:34 +0200)]
doc: drop mention of rbd_mirror_journal_max_fetch_bytes option

It was removed in commit 1ef12ea0d29f ("rbd-mirror: remove
rbd_mirror_journal_max_fetch_bytes option") in 2019.  Commit
32375cb789d7 ("doc: misc clarity and capitalization") added a "tip"
mentioning it in 2020 in an attempt to capture advice [1].

[1] https://lists.ceph.io/hyperkitty/list/ceph-users@ceph.io/thread/IHMGNFLWCD5E5R4W5S2BSSKEB5X3N4S4/

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
22 months agorbd-wnbd: wait for disks to become available 53136/head
Lucian Petrut [Thu, 24 Aug 2023 11:41:01 +0000 (11:41 +0000)]
rbd-wnbd: wait for disks to become available

After a WNBD mapping is created, the driver informs Storport that
the bus changed, expecting it to rescan the bus and expose the disk.
This is an asynchronous process and it usually takes a matter of
milliseconds, up to a few seconds under significant load.

The fsx librbd test ocasionally fails to open the disk as it isn't
ready yet. Unlike the Python rbd-wnbd test, it doesn't perform
any polling.

For convenience, WNBD now includes a helper function called
WnbdPollDiskNumber. We're going to use it to wait for the new
disk attachments to become available.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
22 months agoMerge pull request #53181 from joscollin/wip-stop-cephfs-mirror
Ilya Dryomov [Tue, 29 Aug 2023 09:26:34 +0000 (11:26 +0200)]
Merge pull request #53181 from joscollin/wip-stop-cephfs-mirror

stop.sh: kill cephfs-mirror, rbd-mirror

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
22 months agoMerge pull request #53192 from roysahar/nvmeof-bump-version-0.0.3
Roy Sahar [Tue, 29 Aug 2023 08:20:25 +0000 (11:20 +0300)]
Merge pull request #53192 from roysahar/nvmeof-bump-version-0.0.3

Update default nvmeof gw version to 0.0.3

22 months agoMerge pull request #53171 from rhcs-dashboard/unauthorized-resp-headers
Nizamudeen A [Tue, 29 Aug 2023 04:51:48 +0000 (10:21 +0530)]
Merge pull request #53171 from rhcs-dashboard/unauthorized-resp-headers

mgr/dashboard: set CORS header for unauthorized access

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
22 months agostop.sh: kill cephfs-mirror, rbd-mirror 53181/head
Jos Collin [Mon, 28 Aug 2023 12:52:31 +0000 (18:22 +0530)]
stop.sh: kill cephfs-mirror, rbd-mirror

kill cephfs-mirror/rbd-mirror daemon in vstart cluster stop,
instead of having multiple mirror daemons on restart.

Signed-off-by: Jos Collin <jcollin@redhat.com>
22 months agoMerge pull request #53198 from zdover23/wip-doc-2023-08-29-cephadm-install
zdover23 [Tue, 29 Aug 2023 00:20:20 +0000 (10:20 +1000)]
Merge pull request #53198 from zdover23/wip-doc-2023-08-29-cephadm-install

doc/cephadm: add ssh note to install.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
22 months agodoc: test 53198/head
Zac Dover [Mon, 28 Aug 2023 23:36:26 +0000 (09:36 +1000)]
doc: test

Signed-off-by: Zac Dover <zac.dover@proton.me>
22 months agodoc/cephadm: add ssh note to install.rst
Zac Dover [Mon, 28 Aug 2023 22:55:19 +0000 (08:55 +1000)]
doc/cephadm: add ssh note to install.rst

Add a note instructing the reader to have ssh running before the
"cephadm bootstrap" command is run.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
22 months agoMerge pull request #52204 from xxhdx1985126/wip-61825
Samuel Just [Mon, 28 Aug 2023 17:07:02 +0000 (10:07 -0700)]
Merge pull request #52204 from xxhdx1985126/wip-61825

crimson/osd/object_context: consider clones found as long as they're in SnapSet::clones

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com
22 months agoMerge pull request #53032 from xxhdx1985126/wip-crimson-rebuild-missing
Samuel Just [Mon, 28 Aug 2023 17:04:39 +0000 (10:04 -0700)]
Merge pull request #53032 from xxhdx1985126/wip-crimson-rebuild-missing

osd/PGLog: return a ready future when found missing objects

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agolibrbd/ImageWatcher: kick-start ExclusiveLock state machine 52990/head
Ramana Raja [Mon, 14 Aug 2023 15:27:13 +0000 (11:27 -0400)]
librbd/ImageWatcher: kick-start ExclusiveLock state machine

... that is stalled on waiting for lock and let it detect client
blocklisting. This would propagate the blocklist error to the caller
requesting an operation needing an exclusive lock.

When a caller requests a librbd operation that requires an exclusive
lock, the librbd client checks whether the exclusive lock is
held by another client. If the lock is held by another client, librbd
stalls its ExclusiveLock state machine and through its ImageWatcher
notifies the lock owner that it wants the exclusive lock. After
receiving the response from the lock owner, the ImageWatcher schedules
another lock request. Meanwhile if the client gets blocklisted, the
ImageWatcher fails to schedule another lock request and returns. The
ExclusiveLock state machine remains stalled and the blocklist error is
not propagated to the caller. Instead, when scheduling another lock
request, make the ImageWatcher call the ExclusiveLock state machine's
peer notification handler if the client is blocklisted. This allows
the Exclusive lock state machine to detect that the client has been
blocklisted in its send_acquire_lock() member function and propagate
the blocklist error to the caller.

Fixes: https://tracker.ceph.com/issues/61607
Signed-off-by: Ramana Raja <rraja@redhat.com>
22 months agomgr/dashboard: fix progress bar color visibility 53193/head
Nizamudeen A [Mon, 28 Aug 2023 15:33:48 +0000 (21:03 +0530)]
mgr/dashboard: fix progress bar color visibility

Side effect of a recent change https://github.com/ceph/ceph/pull/52915/files#diff-747a9554e053df3b4d3fcc144bfb5c002654dc0fd5aa59b0ec18db56d85d5b28R29

Fixes: https://tracker.ceph.com/issues/62614
Signed-off-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge pull request #52633 from kamoltat/wip-ksirivad-autoscale-performance-improve
Yuri Weinstein [Mon, 28 Aug 2023 15:13:25 +0000 (08:13 -0700)]
Merge pull request #52633 from kamoltat/wip-ksirivad-autoscale-performance-improve

pybind/mgr/pg_autoscaler: Cut back osdmap.get_pools calls

Reviewed-by: Nitzan Mordechai <nmordech@redhat.com>
22 months agomgr/dashboard: allow CORS for unauthorized access 53171/head
Nizamudeen A [Mon, 28 Aug 2023 05:15:28 +0000 (10:45 +0530)]
mgr/dashboard: allow CORS for unauthorized access

Fixes: https://tracker.ceph.com/issues/62612
Signed-off-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge PR #53144 into main
Patrick Donnelly [Mon, 28 Aug 2023 14:27:55 +0000 (10:27 -0400)]
Merge PR #53144 into main

* refs/pull/53144/head:
doc: reformat so note is not part of code

Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
22 months agoMerge PR #50502 into main
Patrick Donnelly [Mon, 28 Aug 2023 13:28:14 +0000 (09:28 -0400)]
Merge PR #50502 into main

* refs/pull/50502/head:
mon/OSDMonitor: do not propose on error in prepare_update

Reviewed-by: Laura Flores <lflores@redhat.com>
22 months agoMerge PR #52292 into main
Patrick Donnelly [Mon, 28 Aug 2023 13:26:17 +0000 (09:26 -0400)]
Merge PR #52292 into main

* refs/pull/52292/head:
mgr: register OSDs in ms_handle_accept
msg: indicate ms_handle_authentication is fast

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
22 months agoMerge pull request #51979 from rhcs-dashboard/angular-14
Nizamudeen A [Mon, 28 Aug 2023 13:21:39 +0000 (18:51 +0530)]
Merge pull request #51979 from rhcs-dashboard/angular-14

mgr/dashboard: update to angular 14

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
22 months agoqa: do not create rbd pool for CephFS QA 53037/head
Patrick Donnelly [Thu, 17 Aug 2023 13:27:45 +0000 (09:27 -0400)]
qa: do not create rbd pool for CephFS QA

Fixes: https://tracker.ceph.com/issues/62482
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
22 months agoRevert "Merge PR #53077 into main"
Patrick Donnelly [Mon, 28 Aug 2023 13:16:10 +0000 (09:16 -0400)]
Revert "Merge PR #53077 into main"

This reverts commit b8bf0c62b96cb76ae547d5d2f13d2a68417e79e9, reversing
changes made to fe07f64396e504c373bd1b621dda0b7893753fe8.

Silencing this health warning is unnecessary if we stop creating the rbd pool
in CephFS testing.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
22 months agoUpdate default nvmeof gw version to 0.0.3 53192/head
Roy Sahar [Mon, 28 Aug 2023 13:04:16 +0000 (16:04 +0300)]
Update default nvmeof gw version to 0.0.3

Signed-off-by: Roy Sahar <royswi@gmail.com>
22 months agoMerge pull request #53096 from zdover23/wip-doc-2023-08-24-start-os-recommendations...
zdover23 [Mon, 28 Aug 2023 12:27:58 +0000 (22:27 +1000)]
Merge pull request #53096 from zdover23/wip-doc-2023-08-24-start-os-recommendations-platforms

doc/start: edit os-recommendations.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
22 months agoMerge pull request #48052 from rzarzynski/wip-crimson-qa-backfill
Matan Breizman [Mon, 28 Aug 2023 12:12:00 +0000 (15:12 +0300)]
Merge pull request #48052 from rzarzynski/wip-crimson-qa-backfill

qa/suites/crimson-rados: bring backfill testing

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agodoc/start: edit os-recommendations.rst 53096/head
Zac Dover [Wed, 23 Aug 2023 15:15:54 +0000 (01:15 +1000)]
doc/start: edit os-recommendations.rst

Improve the grammar in one sentence of the "Platforms" section of
doc/start/os-recommendations.rst. Improving that grammar involved
splitting the sentence into two sentences, but that's life. Update:
Anthony substantially rewrote this, so credit for this should rightly
go to him.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
22 months agoMerge PR #52921 into main
Venky Shankar [Mon, 28 Aug 2023 06:22:42 +0000 (11:52 +0530)]
Merge PR #52921 into main

* refs/pull/52921/head:
pybind/mgr/volumes: log mutex locks to help debug deadlocks

Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge PR #52940 into main
Venky Shankar [Mon, 28 Aug 2023 06:21:11 +0000 (11:51 +0530)]
Merge PR #52940 into main

* refs/pull/52940/head:
qa: Wait for purge to complete in test_volume_info_pending_subvol_deletions

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
22 months agoMerge pull request #52005 from rhcs-dashboard/entries
Nizamudeen A [Mon, 28 Aug 2023 04:41:36 +0000 (10:11 +0530)]
Merge pull request #52005 from rhcs-dashboard/entries

mgr/dashboard: n/a entries behind primary snapshot mode

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge pull request #53015 from ceph/dependabot-npm_and_yarn-src-pybind-mgr-dashboard...
Nizamudeen A [Mon, 28 Aug 2023 04:40:17 +0000 (10:10 +0530)]
Merge pull request #53015 from ceph/dependabot-npm_and_yarn-src-pybind-mgr-dashboard-frontend-protobufjs-6.11.4

mgr/dashboard: bump protobufjs from 6.11.3 to 6.11.4 in /src/pybind/mgr/dashboard/frontend

Reviewed-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge pull request #53066 from rhcs-dashboard/fix-protect-option-rbd
Nizamudeen A [Mon, 28 Aug 2023 04:39:41 +0000 (10:09 +0530)]
Merge pull request #53066 from rhcs-dashboard/fix-protect-option-rbd

mgr/dashboard: disable protect if layering is not enabled on the image

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
22 months agoMerge pull request #53082 from Matan-B/wip-matanb-crimson-asock-cleanup
Matan Breizman [Sun, 27 Aug 2023 13:11:30 +0000 (16:11 +0300)]
Merge pull request #53082 from Matan-B/wip-matanb-crimson-asock-cleanup

crimson/admin/admin_socket: remove path file if it exists

Reviewed-by: Radosław Zarzyński <rzarzyns@redhat.com>
22 months agocrimson/admin/admin_socket: remove path file if it exists 53082/head
Matan Breizman [Wed, 23 Aug 2023 08:10:32 +0000 (08:10 +0000)]
crimson/admin/admin_socket: remove path file if it exists

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
22 months agoqa: bring backfill testing to crimson-rados 48052/head
Radoslaw Zarzynski [Fri, 9 Sep 2022 14:36:19 +0000 (14:36 +0000)]
qa: bring backfill testing to crimson-rados

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
22 months agoqa/config/crimson_qa_overrides: ignore POOL_APP_NOT_ENABLED 53166/head
Matan Breizman [Sun, 27 Aug 2023 08:24:40 +0000 (08:24 +0000)]
qa/config/crimson_qa_overrides: ignore POOL_APP_NOT_ENABLED

Fixes: https://tracker.ceph.com/issues/62595
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
22 months agoMerge pull request #53031 from xxhdx1985126/wip-crimson-backfill-state
Matan Breizman [Sun, 27 Aug 2023 08:12:14 +0000 (11:12 +0300)]
Merge pull request #53031 from xxhdx1985126/wip-crimson-backfill-state

crimson/osd/pg: check if backfill_state exists when judging objects'

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
22 months agoMerge pull request #53163 from zdover23/wip-doc-2023-08-27-cephadm-services-mgr
zdover23 [Sat, 26 Aug 2023 20:55:50 +0000 (06:55 +1000)]
Merge pull request #53163 from zdover23/wip-doc-2023-08-27-cephadm-services-mgr

doc/cephadm: edit sentence in mgr.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
22 months agodoc/cephadm: edit sentence in mgr.rst 53163/head
Zac Dover [Sat, 26 Aug 2023 20:31:12 +0000 (06:31 +1000)]
doc/cephadm: edit sentence in mgr.rst

Improve the grammar in the first sentence of
doc/cephadm/services/mgr.rst. This is a small change, but I could not
resist.

Signed-off-by: Zac Dover <zac.dover@proton.me>
22 months agoMerge pull request #52663 from ronen-fr/wip-rf-map-update
Ronen Friedman [Sat, 26 Aug 2023 13:26:10 +0000 (16:26 +0300)]
Merge pull request #52663 from ronen-fr/wip-rf-map-update

osd/scrub: reduce calls to on_scrub_schedule_input_change()

Reviewed-by: Samuel Just <sjust@redhat.com>
22 months agoMerge pull request #53161 from Svelar/doc_cephadm
zdover23 [Sat, 26 Aug 2023 07:00:29 +0000 (17:00 +1000)]
Merge pull request #53161 from Svelar/doc_cephadm

doc/cephadm: update cephadm reef version

Reviewed-by: Zac Dover <zac.dover@proton.me>
22 months agodoc/cephadm: update cephadm reef version 53161/head
Rongqi Sun [Sat, 26 Aug 2023 06:50:00 +0000 (14:50 +0800)]
doc/cephadm: update cephadm reef version

Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>