]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 months agocrimson/common/shared_lru: rename Deleter::cache 61213/head
Matan Breizman [Thu, 2 Jan 2025 15:12:31 +0000 (15:12 +0000)]
crimson/common/shared_lru: rename Deleter::cache

to not be confused with SharedLRU::cache

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
6 months agocrimson/common/shared_lru: invalidate Deleter's cache
Matan Breizman [Tue, 24 Dec 2024 11:22:58 +0000 (11:22 +0000)]
crimson/common/shared_lru: invalidate Deleter's cache

Once we destruct SharedLRU, SharedLRU::weak_refs map is destroyed.
As a weak refernce might outlive the SharedLRU itself, when destroying
the object via the custom Deleter, we try to access the already
destroyed SharedLRU instance's weak ref map.

Instead, invalidate the custom Deleter (Deleter::cache), when
destructing the SharedLRU.

Fixes: https://tracker.ceph.com/issues/66478
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
7 months agoMerge pull request #60873 from rhcs-dashboard/fix-69074-main
afreen23 [Mon, 16 Dec 2024 11:04:22 +0000 (16:34 +0530)]
Merge pull request #60873 from rhcs-dashboard/fix-69074-main

mgr/dashboard: Add ceph_daemon filter to rgw overview grafana panel queries

Reviewed-by: Afreen Misbah <afreen@ibm.com>
7 months agoMerge pull request #61012 from rhcs-dashboard/fix-69172-main
afreen23 [Mon, 16 Dec 2024 11:02:38 +0000 (16:32 +0530)]
Merge pull request #61012 from rhcs-dashboard/fix-69172-main

mgr/dashboard: Show correct token expiration date in Manage Clusters page

Reviewed-by: Afreen Misbah <afreen@ibm.com>
7 months agoMerge pull request #60796 from rhcs-dashboard/fix-69016-main
afreen23 [Mon, 16 Dec 2024 11:00:57 +0000 (16:30 +0530)]
Merge pull request #60796 from rhcs-dashboard/fix-69016-main

mgr/dashboard: Display bucket's number of shards on the ceph dashboard

Reviewed-by: Afreen Misbah <afreen@ibm.com>
7 months agoMerge pull request #60635 from cah-hbaum/fix-subuser-creation-via-dashboard
afreen23 [Mon, 16 Dec 2024 08:37:25 +0000 (14:07 +0530)]
Merge pull request #60635 from cah-hbaum/fix-subuser-creation-via-dashboard

mgr: fix subuser creation via dashboard

Reviewed-by: Afreen Misbah <afreen@ibm.com>
7 months agoMerge PR #60667 into main
Venky Shankar [Mon, 16 Dec 2024 06:06:07 +0000 (11:36 +0530)]
Merge PR #60667 into main

* refs/pull/60667/head:
cephfs-mirror: remove redundant ceph_close() calls.
cephfs/client: dir_reset_t::reset() - add missing fd reset.

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 months agoMerge pull request #61079 from idryomov/wip-69178
Ilya Dryomov [Sun, 15 Dec 2024 20:57:48 +0000 (21:57 +0100)]
Merge pull request #61079 from idryomov/wip-69178

librbd/migration/HttpClient: avoid reusing ssl_stream after shut down

Reviewed-by: Ramana Raja <rraja@redhat.com>
7 months agoMerge pull request #60964 from cyx1231st/wip-crimson-msgr-debug
Matan Breizman [Sun, 15 Dec 2024 10:32:12 +0000 (12:32 +0200)]
Merge pull request #60964 from cyx1231st/wip-crimson-msgr-debug

crimson/net: log adjustment / enable ms debug

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
7 months agoMerge pull request #61034 from aclamk/wip-aclamk-jenkins-reduced-unittest-bluefs
Adam Kupczyk [Fri, 13 Dec 2024 16:57:31 +0000 (17:57 +0100)]
Merge pull request #61034 from aclamk/wip-aclamk-jenkins-reduced-unittest-bluefs

os/bluestore: Make some unittest_bluefs runs lighter on jenkins

7 months agoMerge pull request #61077 from zdover23/wip-doc-2024-12-13-mount-using-kernel-driver...
Zac Dover [Fri, 13 Dec 2024 15:02:16 +0000 (01:02 +1000)]
Merge pull request #61077 from zdover23/wip-doc-2024-12-13-mount-using-kernel-driver-main-3

doc/cephfs: edit 3rd 3rd of mount-using-kernel-driver

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
7 months agodoc/cephfs: edit 3rd 3rd of mount-using-kernel-driver 61077/head
Zac Dover [Fri, 13 Dec 2024 06:12:49 +0000 (16:12 +1000)]
doc/cephfs: edit 3rd 3rd of mount-using-kernel-driver

Edit the third third of doc/cephfs/mount-using-kernel-driver.rst in
preparation for correcting mount commands that may not work in Reef as
described in this documentation.

This commit edits only English-language strings in
doc/cephfs/mount-using-kernel-driver.rst. No technical content (that is,
no commands and no settings) have been altered in this commit.

Technical alterations to this file will be made only after the English
is unambiguous.

This PR follows the following two PRs:
https://github.com/ceph/ceph/pull/61048 - 1st 3rd
https://github.com/ceph/ceph/pull/61049 - 2nd 3rd

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
7 months agolibrbd/migration/HttpClient: socket isn't shut down on some state transitions 61079/head
Ilya Dryomov [Thu, 12 Dec 2024 20:32:39 +0000 (21:32 +0100)]
librbd/migration/HttpClient: socket isn't shut down on some state transitions

If shut_down() gets delayed until a) the state transition from
STATE_RESET_CONNECTING completes and the reconnect is unsuccessful or
b) the state transition from STATE_RESET_DISCONNECTING completes (i.e.
next_state is STATE_UNINITIALIZED or STATE_RESET_CONNECTING), the
socket needs to be shut down before m_on_shutdown is invoked.  The line
of thought here is the same as for the corresponding state transitions
that don't involve STATE_SHUTTING_DOWN.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: avoid hitting an assert in advance_state()
Ilya Dryomov [Wed, 11 Dec 2024 15:25:13 +0000 (16:25 +0100)]
librbd/migration/HttpClient: avoid hitting an assert in advance_state()

If the shutdown gets delayed until the state transition from
STATE_RESET_CONNECTING completes and the reconnect is successful
(i.e. next_state is STATE_READY), we eventually hit "unexpected
state transition" assert in advance_state().  The reason is that
advance_state() would update m_state and call disconnect() under
STATE_READY instead of STATE_SHUTTING_DOWN.  After the disconnect
maybe_finalize_shutdown() would enter advance_state() again with
STATE_SHUTDOWN as next_state, but the transition to that from
STATE_READY is invalid.

Plug this by not transitioning to next_state if current_state is
STATE_SHUTTING_DOWN.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: ignore stream_truncated when shutting down SSL
Ilya Dryomov [Mon, 9 Dec 2024 10:19:57 +0000 (11:19 +0100)]
librbd/migration/HttpClient: ignore stream_truncated when shutting down SSL

Propagate ec to handle_disconnect() and use it to suppress
stream_truncated errors.  Here is a quote from Beast documentation [1]:

  // Gracefully shutdown the SSL/TLS connection
  error_code ec;
  stream.shutdown(ec);
  // Non-compliant servers don't participate in the SSL/TLS shutdown process and
  // close the underlying transport layer. This causes the shutdown operation to
  // complete with a `stream_truncated` error. One might decide not to log such
  // errors as there are many non-compliant servers in the wild.
  if(ec != net::ssl::error::stream_truncated)
      log(ec);

... and a commit that made ignoring stream_truncated safe [2]:

  // ssl::error::stream_truncated, also known as an SSL "short read",
  // indicates the peer closed the connection without performing the
  // required closing handshake
  // [...]
  // When a short read would cut off the end of an HTTP message,
  // Beast returns the error beast::http::error::partial_message.
  // Therefore, if we see a short read here, it has occurred
  // after the message has been completed, so it is safe to ignore it.

[1] https://www.boost.org/doc/libs/develop/libs/beast/doc/html/beast/using_io/ssl_tls_shutdown.html
[2] https://github.com/boostorg/beast/commit/094f5ec5cb3be1c3ce2d985564f1f39e9bed74ff

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: propagate ec to handle_handshake()
Ilya Dryomov [Sat, 7 Dec 2024 11:37:29 +0000 (12:37 +0100)]
librbd/migration/HttpClient: propagate ec to handle_handshake()

Get rid of get_callback_adapter() which only obfuscates the error:

  handle_handshake: failed to complete SSL handshake: (337047686) Unknown error 337047686

vs

  handle_handshake: failed to complete SSL handshake: certificate verify failed (SSL routines, tls_process_server_certificate)

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: drop SslHttpSession::m_ssl_enabled
Ilya Dryomov [Sat, 7 Dec 2024 12:52:41 +0000 (13:52 +0100)]
librbd/migration/HttpClient: drop SslHttpSession::m_ssl_enabled

The remaining callers of disconnect() call it only when m_ssl_enabled
is set to true (i.e. after the handshake is completed):

- shut_down(), in STATE_READY
- maybe_finalize_reset(), very shortly after transitioning out of
  STATE_READY as part of performing a reset
- advance_state(), on a transition to STATE_READY that is intercepted
  by a previously delayed shut down

m_ssl_enabled isn't used outside of disconnect() and on top of that
is never cleared.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: don't call disconnect() in handle_handshake()
Ilya Dryomov [Sat, 7 Dec 2024 11:22:52 +0000 (12:22 +0100)]
librbd/migration/HttpClient: don't call disconnect() in handle_handshake()

With m_ssl_enabled set to false, disconnect() is a no-op.  Since
m_ssl_enabled is flipped to true only when the handshake succeeds,
calling disconnect() on "failed to complete handshake" error is bogus
(as would be attempting to shut down SSL there).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: avoid reusing ssl_stream after shut down
Ilya Dryomov [Fri, 6 Dec 2024 15:51:51 +0000 (16:51 +0100)]
librbd/migration/HttpClient: avoid reusing ssl_stream after shut down

ssl_stream objects can't be reused after shut down: despite
a successful reconnect and handshake, any attempt to read or write
fails with "end of stream" (beast.http:1) or "protocol is shutdown"
(asio.ssl:337690831) error respectively.  This doesn't appear to be
documented, but Beast and ASIO authors both mention that the stream
must be destroyed and recreated [1][2].

This was missed because the only integration test with a big enough
image used http instead of https.

[1] https://github.com/boostorg/beast/issues/821#issuecomment-338354949
[2] https://github.com/chriskohlhoff/asio/issues/804#issuecomment-872746894

Fixes: https://tracker.ceph.com/issues/69178
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: don't shut down socket in resolve_host()
Ilya Dryomov [Fri, 6 Dec 2024 13:42:55 +0000 (14:42 +0100)]
librbd/migration/HttpClient: don't shut down socket in resolve_host()

resolve_host() is called from init() and issue() when transitioning out
of STATE_UNINITIALIZED and from advance_state() right after the call to
shutdown_socket().  In all three cases the socket should get closed, so
drop the redundant call and place asserts in connect() implementations
instead.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: fix some error messages in handle_receive()
Ilya Dryomov [Tue, 3 Dec 2024 15:20:16 +0000 (16:20 +0100)]
librbd/migration/HttpClient: fix some error messages in handle_receive()

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agolibrbd/migration/HttpClient: log ec details in handle_{issue,receive}()
Ilya Dryomov [Tue, 3 Dec 2024 15:16:39 +0000 (16:16 +0100)]
librbd/migration/HttpClient: log ec details in handle_{issue,receive}()

Logging just the (negated) value makes tracking down the error category
and message unnecessarily hard.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agoqa/suites/rados: Add ceph_test_bluefs 61034/head
Adam Kupczyk [Wed, 11 Dec 2024 17:33:53 +0000 (17:33 +0000)]
qa/suites/rados: Add ceph_test_bluefs

unittest_bluefs was difficult for jenkins make check.
On jenkins disable the most resource hungry tests.
Make test on teuthology that tests everything.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
7 months agoos/bluestore: duplicate unittest_bluefs -> ceph_test_bluefs
Adam Kupczyk [Wed, 11 Dec 2024 17:21:26 +0000 (17:21 +0000)]
os/bluestore: duplicate unittest_bluefs -> ceph_test_bluefs

This change has 2 rationales:
1) The test outgrew initial unittest framework and now executes
   component testing
2) We still need to run most of unittest_blues as part of jenkins make check
3) We want to run tests on teuthology. Build process excludes unit
   tests, so ceph_test_bluefs was created.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
7 months agoMerge PR #58376 into main
Venky Shankar [Fri, 13 Dec 2024 07:54:05 +0000 (13:24 +0530)]
Merge PR #58376 into main

* refs/pull/58376/head:
Temporarily change the libcephfs dependencies
proxy: Add the design document
proxy: Add the proxy to the deb builds
proxy: Add the proxy to the rpm builds
Initial version of the libcephfs proxy

Reviewed-by: Sachin Prabhu <sp@spui.uk>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
7 months agoqa/config/crimson_qa_overrides: enable ms debug 60964/head
Yingxin Cheng [Thu, 5 Dec 2024 08:54:37 +0000 (16:54 +0800)]
qa/config/crimson_qa_overrides: enable ms debug

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
7 months agocrimson/net/io_handler: minor adjustments to logs
Yingxin Cheng [Thu, 5 Dec 2024 08:52:42 +0000 (16:52 +0800)]
crimson/net/io_handler: minor adjustments to logs

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
7 months agoMerge pull request #60770 from Matan-B/wip-matanb-crimson-enable-alienstore-debug
Yingxin Cheng [Fri, 13 Dec 2024 02:58:54 +0000 (10:58 +0800)]
Merge pull request #60770 from Matan-B/wip-matanb-crimson-enable-alienstore-debug

qa/config/crimson_qa_overrides: enable alienstore debug

Reviewed-by: Aishwarya Mathuria <amathuri@redhat.com>
7 months agoMerge pull request #61008 from MaxKellermann/crimson__includes
Yingxin Cheng [Fri, 13 Dec 2024 02:55:55 +0000 (10:55 +0800)]
Merge pull request #61008 from MaxKellermann/crimson__includes

crimson: add missing includes

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
7 months agoMerge pull request #61050 from gbregman/main
Gil Bregman [Thu, 12 Dec 2024 23:44:38 +0000 (01:44 +0200)]
Merge pull request #61050 from gbregman/main

 mgr/cephadm/nvmeof: Add auto rebalance fields to NVMeOF configuration and rewrite validation

7 months agomgr/cephadm/nvmeof: Rewrite NVMEoF fields validation. 61050/head
Gil Bregman [Wed, 11 Dec 2024 21:48:21 +0000 (23:48 +0200)]
mgr/cephadm/nvmeof: Rewrite NVMEoF fields validation.
Fixes https://tracker.ceph.com/issues/69176

Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
7 months agoMerge pull request #60841 from rhcs-dashboard/fix-69052-main
Pedro Gonzalez Gomez [Thu, 12 Dec 2024 10:03:27 +0000 (11:03 +0100)]
Merge pull request #60841 from rhcs-dashboard/fix-69052-main

mgr/dashboard: Automate system user creation and restart of rgw daemons on Migrate to Multisite

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Naman Munet <namanmunet@li-ff83bccc-26af-11b2-a85c-a4b04bfb1003.ibm.com>
7 months agoMerge pull request #60959 from rhcs-dashboard/fix-69121-main
Pedro Gonzalez Gomez [Thu, 12 Dec 2024 10:01:37 +0000 (11:01 +0100)]
Merge pull request #60959 from rhcs-dashboard/fix-69121-main

mgr/dashboard: Update and correct zonegroup delete notification

Reviewed-by: Naman Munet <namanmunet@li-ff83bccc-26af-11b2-a85c-a4b04bfb1003.ibm.com>
Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
7 months agomgr: fix subuser creation via dashboard 60635/head
Hannes Baum [Wed, 6 Nov 2024 08:46:09 +0000 (09:46 +0100)]
mgr: fix subuser creation via dashboard

Subusers couldn't be created through the dashboard, because the get call was overwritten with Python magic due to it being the function under the HTTP call.
The get function was therefore split into an "external" and "internal" function, whereas one
can be used by functions without triggering the magic. Since the user object was then returned correctly, json.loads could be removed.

Signed-off-by: Hannes Baum <hannes.baum@cloudandheat.com>
7 months agoMerge pull request #60955 from zdover23/wip-doc-2024-12-04-dev-development-workflow...
Zac Dover [Thu, 12 Dec 2024 06:09:00 +0000 (07:09 +0100)]
Merge pull request #60955 from zdover23/wip-doc-2024-12-04-dev-development-workflow-backporter-manual-2

doc/dev: instruct devs to backport

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
7 months agodoc/dev: instruct devs to backport 60955/head
Zac Dover [Wed, 4 Dec 2024 20:43:12 +0000 (21:43 +0100)]
doc/dev: instruct devs to backport

Add a note to doc/dec/development-workflow.rst that instructs developers
to do their own backports. This change was requested by Laura Flores on
04 Dec 2024.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
7 months agoMerge pull request #61049 from zdover23/wip-doc-2024-12-12-mount-using-kernel-driver...
Zac Dover [Thu, 12 Dec 2024 02:23:04 +0000 (03:23 +0100)]
Merge pull request #61049 from zdover23/wip-doc-2024-12-12-mount-using-kernel-driver-main-2

doc/cephfs: edit 2nd 3rd of mount-using-kernel-driver

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
7 months agoMerge pull request #61048 from zdover23/wip-doc-2024-12-12-mount-using-kernel-driver...
Zac Dover [Thu, 12 Dec 2024 02:14:51 +0000 (03:14 +0100)]
Merge pull request #61048 from zdover23/wip-doc-2024-12-12-mount-using-kernel-driver-main

doc/cephfs: edit first 3rd of mount-using-kernel-driver

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
7 months agodoc/cephfs: edit 2nd 3rd of mount-using-kernel-driver 61049/head
Zac Dover [Wed, 11 Dec 2024 21:17:40 +0000 (07:17 +1000)]
doc/cephfs: edit 2nd 3rd of mount-using-kernel-driver

Edit the second third of doc/cephfs/mount-using-kernel-driver.rst in
preparation for correcting mount commands that may not work in Reef as
described in this documentation.

This commit edits only English-language strings in
doc/cephfs/mount-using-kernel-driver.rst. No technical content (that is,
no commands and no settings) have been altered in this commit.

Technical alterations to this file will be made only after the English
is unambiguous.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
7 months agoMerge pull request #60907 from shashalu/wip-fix-stale-bucket-indexes
J. Eric Ivancich [Wed, 11 Dec 2024 22:58:28 +0000 (17:58 -0500)]
Merge pull request #60907 from shashalu/wip-fix-stale-bucket-indexes

rgw: Delete stale entries in bucket indexes while deleting obj

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agoMerge pull request #60916 from shashalu/fix-data-corruption-ETIMEDOUT
J. Eric Ivancich [Wed, 11 Dec 2024 22:57:03 +0000 (17:57 -0500)]
Merge pull request #60916 from shashalu/fix-data-corruption-ETIMEDOUT

rgw: fix data corruption when rados op return ETIMEDOUT

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agoMerge pull request #60845 from yehudasa/wip-69060
Casey Bodley [Wed, 11 Dec 2024 21:49:03 +0000 (16:49 -0500)]
Merge pull request #60845 from yehudasa/wip-69060

rgw: fix bucket link operation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agomgr/cephadm/nvmeof: Add auto rebalance fields to NVMeOF configuration
Gil Bregman [Wed, 11 Dec 2024 21:47:07 +0000 (23:47 +0200)]
mgr/cephadm/nvmeof: Add auto rebalance fields to NVMeOF configuration
Fixes https://tracker.ceph.com/issues/69176

Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
7 months agodoc/cephfs: edit first 3rd of mount-using-kernel-driver 61048/head
Zac Dover [Wed, 11 Dec 2024 14:15:14 +0000 (15:15 +0100)]
doc/cephfs: edit first 3rd of mount-using-kernel-driver

Edit the first third of doc/cephfs/mount-using-kernel-driver.rst in
preparation for correcting mount commands that may not work in Reef as
described in this documentation.

This commit is a cherry-pick from a branch that targeted the Reef
release branch. After some thought I realized that there was no reason
that the Engliish grammar shouldn't be clean in this branch too.

Signed-off-by: Zac Dover <zac.dover@proton.me>
7 months agoMerge pull request #60851 from ivancich/wip-optimize-listing-over-namespaces
J. Eric Ivancich [Wed, 11 Dec 2024 20:32:10 +0000 (15:32 -0500)]
Merge pull request #60851 from ivancich/wip-optimize-listing-over-namespaces

rgw: optimize bucket listing to skip past regions of namespaced entries

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agoMerge pull request #61010 from ivancich/wip-fix-s3java
J. Eric Ivancich [Wed, 11 Dec 2024 20:30:15 +0000 (15:30 -0500)]
Merge pull request #61010 from ivancich/wip-fix-s3java

qa/rgw: fix s3 java tests by forcing gradle to run on Java 8

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agoos/bluestore: Reduce unittest_bluefs for jenkins
Adam Kupczyk [Wed, 11 Dec 2024 17:17:13 +0000 (17:17 +0000)]
os/bluestore: Reduce unittest_bluefs for jenkins

When run on jenkins make "very_large_write" tests smaller.
Its intention is to make it easier on make check target.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
7 months agoMerge pull request #61002 from ebocchi/ebocchi-fix-text-for-17.2.8-release 61044/head
Laura Flores [Wed, 11 Dec 2024 16:31:34 +0000 (10:31 -0600)]
Merge pull request #61002 from ebocchi/ebocchi-fix-text-for-17.2.8-release

doc/releases: fix formatting for the 17.2.8 release (el8 CERN)

7 months agoqa/rgw: force s3 java tests to run gradle on Java 8 61010/head
J. Eric Ivancich [Mon, 9 Dec 2024 22:23:59 +0000 (17:23 -0500)]
qa/rgw: force s3 java tests to run gradle on Java 8

Previously gradle would run using the default Java version. This looks
for Java 8 using `alternatives` and sets JAVA_HOME to the
corresponding directory prior to launching gradle.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
7 months agoMerge pull request #60749 from rhcs-dashboard/warn_feature_toggle
afreen23 [Wed, 11 Dec 2024 09:23:43 +0000 (14:53 +0530)]
Merge pull request #60749 from rhcs-dashboard/warn_feature_toggle

mgr/dashboard: add a custom warning message when enabling feature

Reviewed-by: Afreen Misbah <afreen@ibm.com>
7 months agomgr/dashboard: add a custom warning message when enabling feature 60749/head
Nizamudeen A [Fri, 15 Nov 2024 07:20:07 +0000 (12:50 +0530)]
mgr/dashboard: add a custom warning message when enabling feature

would be helpful if we want to notify user about certain issues when
enabling something.

```
[root@ceph ceph]# ceph dashboard feature enable iscsi

WARNING: iscsi warning message
Feature 'iscsi': enabled
```

Fixes: https://tracker.ceph.com/issues/68969
Signed-off-by: Nizamudeen A <nia@redhat.com>
7 months agoMerge pull request #60928 from adk3798/fix-nvme-loop-parsing
Adam King [Tue, 10 Dec 2024 20:09:26 +0000 (15:09 -0500)]
Merge pull request #60928 from adk3798/fix-nvme-loop-parsing

qa/tasks/nvme_loop: update task to work with new nvme list format

Reviewed-by: Laura Flores <lflores@ibm.com>
7 months agoMerge pull request #60992 from MaxKellermann/test__includes
Casey Bodley [Tue, 10 Dec 2024 18:00:20 +0000 (13:00 -0500)]
Merge pull request #60992 from MaxKellermann/test__includes

test: add missing includes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agoMerge pull request #60773 from pritha-srivastava/wip-rgw-revert-auth-code
Casey Bodley [Tue, 10 Dec 2024 17:07:40 +0000 (12:07 -0500)]
Merge pull request #60773 from pritha-srivastava/wip-rgw-revert-auth-code

Revert "rgw/auth: Fix the return code returned by AuthStrategy,"

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agoMerge pull request #60968 from cbodley/wip-69134
Casey Bodley [Tue, 10 Dec 2024 16:31:04 +0000 (11:31 -0500)]
Merge pull request #60968 from cbodley/wip-69134

qa/rgw: bump keystone/barbican from 2023.1 to 2024.1

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
7 months agoMerge pull request #59808 from yuvalif/wip-yuval-bucket-logging3
Yuval Lifshitz [Tue, 10 Dec 2024 16:08:31 +0000 (18:08 +0200)]
Merge pull request #59808 from yuvalif/wip-yuval-bucket-logging3

rgw/logging: add support for GetBucketLogging and PutBucketLogging

Reviewed-By: Anthony D'Atri <anthony.datri@gmail.com>, Adam Emerson <aemerson@ibm.com>, Casey Bodley <cbodley@ibm.com>
7 months agoMerge pull request #61016 from idryomov/wip-p-snapname-type
Ilya Dryomov [Tue, 10 Dec 2024 13:56:21 +0000 (14:56 +0100)]
Merge pull request #61016 from idryomov/wip-p-snapname-type

pybind/rbd: fix a type comment for p_snapshot of clone()

Reviewed-by: Vinay Bhaskar Varada <vvarada@redhat.com>
7 months agotest: add missing includes 60992/head
Max Kellermann [Mon, 14 Oct 2024 14:29:57 +0000 (16:29 +0200)]
test: add missing includes

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
7 months agocrimson: add missing includes 61008/head
Max Kellermann [Sun, 27 Oct 2024 16:58:52 +0000 (17:58 +0100)]
crimson: add missing includes

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
7 months agopybind/rbd: fix a type comment for p_snapshot of clone() 61016/head
Ilya Dryomov [Tue, 10 Dec 2024 10:48:42 +0000 (11:48 +0100)]
pybind/rbd: fix a type comment for p_snapshot of clone()

This was missed in commit d7fd66ec9944 ("librbd: add rbd_clone4() API
to take parent snapshot by ID").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 months agomgr/dashboard: Show correct token expiration date in Manage Clusters 61012/head
Aashish Sharma [Tue, 10 Dec 2024 07:03:47 +0000 (12:33 +0530)]
mgr/dashboard: Show correct token expiration date in Manage Clusters
page

Currently wrong date is being displayed if we hover of the Token Expires
filed in the Clusters list table in Manage Clusters page. This PR
intends to fix this issue.

Fixes: https://tracker.ceph.com/issues/69172
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
7 months agoMerge pull request #60997 from MaxKellermann/sstring__char8_t
Casey Bodley [Mon, 9 Dec 2024 21:44:16 +0000 (16:44 -0500)]
Merge pull request #60997 from MaxKellermann/sstring__char8_t

tools/ceph-dencoder/sstring.h: use `char8_t` instead of `unsigned char`

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agoMerge pull request #60831 from kamoltat/wip-ksirivad-fix-68338
Kamoltat (Junior) Sirivadhna [Mon, 9 Dec 2024 20:33:28 +0000 (15:33 -0500)]
Merge pull request #60831 from kamoltat/wip-ksirivad-fix-68338

doc/rados/operations/stretch-mode.rst: Added Limitations to stretch pool configurations
Reviewed-by: Zac Dover <zac.dover@proton.me>
7 months agodoc/releases: fix formatting for the 17.2.8 release with hyperlinks (el8 CERN) 61002/head
Enrico Bocchi [Mon, 9 Dec 2024 20:30:29 +0000 (21:30 +0100)]
doc/releases: fix formatting for the 17.2.8 release with hyperlinks (el8 CERN)

Co-authored-by: Laura Flores <lflores@redhat.com>
Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
7 months agoMerge pull request #60927 from ljflores/wip-tracker-69107
Kamoltat (Junior) Sirivadhna [Mon, 9 Dec 2024 19:32:07 +0000 (14:32 -0500)]
Merge pull request #60927 from ljflores/wip-tracker-69107

qa/workunits/mon: ensure election strategy is "connectivity" for stretch mode
Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
7 months agoMerge pull request #60998 from MaxKellermann/test_time__using_mono_clock
Casey Bodley [Mon, 9 Dec 2024 18:13:37 +0000 (13:13 -0500)]
Merge pull request #60998 from MaxKellermann/test_time__using_mono_clock

test/common/test_time: add missing `using ceph::mono_clock`

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 months agodoc/releases: fix formatting for the 17.2.8 release (el8 CERN)
Enrico Bocchi [Mon, 9 Dec 2024 12:46:29 +0000 (13:46 +0100)]
doc/releases: fix formatting for the 17.2.8 release (el8 CERN)

Signed-off-by: Enrico Bocchi <enrico.bocchi@cern.ch>
7 months agotest/common/test_time: add missing `using ceph::mono_clock` 60998/head
Max Kellermann [Tue, 5 Nov 2024 21:14:57 +0000 (22:14 +0100)]
test/common/test_time: add missing `using ceph::mono_clock`

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
7 months agotools/ceph-dencoder/sstring.h: use `char8_t` instead of `unsigned char` 60997/head
Max Kellermann [Sat, 2 Nov 2024 21:32:23 +0000 (22:32 +0100)]
tools/ceph-dencoder/sstring.h: use `char8_t` instead of `unsigned char`

This fixes a build failure with libc++ (clang/LLVM).  This build
failure is correct: there exists no specialization for
`std::char_traits<unsigned char>`.  The standards-compliant way to use
unsigned chars in strings is to use `char8_t`.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
7 months agotest/rgw/logging: add bucket logging test suite to teuthology 59808/head
Yuval Lifshitz [Mon, 11 Nov 2024 17:48:39 +0000 (17:48 +0000)]
test/rgw/logging: add bucket logging test suite to teuthology

this is depended with this s3test PR:
https://github.com/ceph/s3-tests/pull/576

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
7 months agorgw/logging: add support for GetBucketLogging and PutBucketLogging
Yuval Lifshitz [Wed, 6 Dec 2023 18:51:59 +0000 (18:51 +0000)]
rgw/logging: add support for GetBucketLogging and PutBucketLogging

this is based on AWS server access logs:
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html
- https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLogging.html
- https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLogging.html

however, a new mode was added called "journal" where:
- logs of PUT, COPY and MPU are guaranteed
- we have logs of DELETE and multi-DELETE operations (not guaranteed)
- log records hold only minimal amount of information

Fixes: https://tracker.ceph.com/issues/984
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
7 months agoMerge pull request #60812 from pecastro/improve-a-few-tests
Casey Bodley [Fri, 6 Dec 2024 18:23:47 +0000 (13:23 -0500)]
Merge pull request #60812 from pecastro/improve-a-few-tests

tests: Improve unittest_dbstore_tests and unittest_deferred to be suitable for reruns.

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
7 months agoMerge pull request #60829 from cbodley/wip-69042
Casey Bodley [Fri, 6 Dec 2024 16:26:12 +0000 (11:26 -0500)]
Merge pull request #60829 from cbodley/wip-69042

radosgw-admin: bucket link/unlink support accounts

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 months agoradosgw-admin: bucket link/unlink support accounts 60829/head
Casey Bodley [Mon, 25 Nov 2024 17:24:07 +0000 (12:24 -0500)]
radosgw-admin: bucket link/unlink support accounts

buckets are owned by accounts instead of their individual users

add support for --account-id to 'bucket link' and 'bucket unlink'

reject 'bucket link' when the requested --uid belongs to an account

Fixes: https://tracker.ceph.com/issues/69042
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 months agoMerge pull request #60129 from cbodley/wip-68396
Casey Bodley [Fri, 6 Dec 2024 14:08:56 +0000 (09:08 -0500)]
Merge pull request #60129 from cbodley/wip-68396

test/rgw/multisite: add meta checkpoint after bucket creation

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
7 months agoMerge pull request #60304 from cbodley/wip-async-completion-recycling
Casey Bodley [Fri, 6 Dec 2024 14:08:30 +0000 (09:08 -0500)]
Merge pull request #60304 from cbodley/wip-async-completion-recycling

common/async: Completion uses asio::recycling_allocator by default

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 months agoMerge pull request #60415 from cbodley/wip-68645
Casey Bodley [Fri, 6 Dec 2024 14:08:09 +0000 (09:08 -0500)]
Merge pull request #60415 from cbodley/wip-68645

radosgw-admin: allow 'sync group pipe modify' with existing user

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
7 months agoMerge pull request #60830 from cbodley/wip-69043
Casey Bodley [Fri, 6 Dec 2024 14:07:44 +0000 (09:07 -0500)]
Merge pull request #60830 from cbodley/wip-69043

radosgw-admin: 'user create' rejects uids matching the account id format

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 months agoMerge pull request #59383 from joscollin/wip-B67360-counters-set-on-mds-failed
Milind Changire [Fri, 6 Dec 2024 07:13:11 +0000 (12:43 +0530)]
Merge pull request #59383 from joscollin/wip-B67360-counters-set-on-mds-failed

qa: restrict 'perf dump' on active mds only

7 months agorgw: shouldn't call index_op.cancel() when rados op return ETIMEDOUT 60916/head
lu.shasha [Fri, 6 Dec 2024 04:40:27 +0000 (12:40 +0800)]
rgw: shouldn't call index_op.cancel() when rados op return ETIMEDOUT

when rados op return ETIMEOUT, rgw can't determine whether or not the rados op succeeded,
we shouldn't be calling index_op->cancel() in this case
Instead, we should leave that pending entry in the index so than bucket listing can recover with check_disk_state() and cls_rgw_suggest_changes()

Signed-off-by: Shasha Lu <lu.shasha@aishu.cn>
7 months agoMerge pull request #60929 from dmick/wip-release-docs
Zac Dover [Fri, 6 Dec 2024 04:04:52 +0000 (05:04 +0100)]
Merge pull request #60929 from dmick/wip-release-docs

doc/dev/release-process.rst: New container build/release process

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
7 months agoMerge pull request #60947 from idryomov/wip-67759
Ilya Dryomov [Thu, 5 Dec 2024 20:20:52 +0000 (21:20 +0100)]
Merge pull request #60947 from idryomov/wip-67759

qa/suites/upgrade/*-x: skip TestClsRbd.group_snap_{set,remove}

Reviewed-by: N Balachandran <nibalach@redhat.com>
Reviewed-by: Laura Flores <lflores@ibm.com>
7 months agoqa/rgw: bump keystone/barbican from 2023.1 to 2024.1 60968/head
Casey Bodley [Thu, 5 Dec 2024 19:57:14 +0000 (14:57 -0500)]
qa/rgw: bump keystone/barbican from 2023.1 to 2024.1

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 months agoMerge pull request #60966 from gbregman/main
Gil Bregman [Thu, 5 Dec 2024 18:44:06 +0000 (20:44 +0200)]
Merge pull request #60966 from gbregman/main

mgr/cephadm/nvmeof: Add encryption key file for nvmeof encryption

7 months agoMerge pull request #60948 from idryomov/wip-68588
Ilya Dryomov [Thu, 5 Dec 2024 13:53:40 +0000 (14:53 +0100)]
Merge pull request #60948 from idryomov/wip-68588

qa/suites/rados/thrash-old-clients: skip TestClsRbd.group_snap_{set,remove}

Reviewed-by: N Balachandran <nibalach@redhat.com>
7 months agomgr/cephadm/nvmeof: Add key encryption support to nvmeof configuration 60966/head
Gil Bregman [Thu, 5 Dec 2024 12:07:45 +0000 (14:07 +0200)]
mgr/cephadm/nvmeof: Add key encryption support to nvmeof configuration

Signed-off-by: Gil Bregman <gbregman@il.ibm.com>
7 months agoMerge pull request #60926 from ktdreyer/container-labeler
Dan Mick [Thu, 5 Dec 2024 11:49:07 +0000 (03:49 -0800)]
Merge pull request #60926 from ktdreyer/container-labeler

labeler: add container labelers

7 months agoMerge pull request #60946 from nbalacha/wip-nbalacha-69112
Ilya Dryomov [Thu, 5 Dec 2024 08:22:22 +0000 (09:22 +0100)]
Merge pull request #60946 from nbalacha/wip-nbalacha-69112

cls/rbd: fix mirror_image_map_list object

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
7 months agomgr/dashboard: Update and correct zonegroup delete notification 60959/head
Aashish Sharma [Thu, 5 Dec 2024 05:37:13 +0000 (11:07 +0530)]
mgr/dashboard: Update and correct zonegroup delete notification

while deleting zone group from dashboard, notification message says "zone <zg_name> deleted successfully" instead of "zone group <zg_name> deleted successfully"

Fixes: https://tracker.ceph.com/issues/69121
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
7 months agomgr/dashboard: Add ceph_daemon filter to rgw overview grafana panel 60873/head
Aashish Sharma [Thu, 28 Nov 2024 05:58:59 +0000 (11:28 +0530)]
mgr/dashboard: Add ceph_daemon filter to rgw overview grafana panel
queries

Currently rgw_servers filtering is not working in RGW Overview garfana graphs.
It is showing data of all the RGW services, even though filter set to single service.
This PR intends to solve this issue

Fixes: https://tracker.ceph.com/issues/69074
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
7 months agoMerge pull request #60913 from myoungwon/wip-fix-null-pointer-crimson
Yingxin [Thu, 5 Dec 2024 01:45:03 +0000 (09:45 +0800)]
Merge pull request #60913 from myoungwon/wip-fix-null-pointer-crimson

crimson/osd/ops_executer: prevent access to null pointers caused by gcc bug

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
7 months agotest/objectstore: Make test idempotent 60812/head
Paulo E. Castro [Sat, 16 Nov 2024 12:35:04 +0000 (12:35 +0000)]
test/objectstore: Make test idempotent

Give it a new DB name for each test so we don't get failures on rerun.

Signed-off-by: Paulo E. Castro <pecastro@wormholenet.com>
7 months agorgw: Make test idempotent.
Paulo E. Castro [Sat, 16 Nov 2024 11:32:20 +0000 (11:32 +0000)]
rgw: Make test idempotent.

Give it a new DB name for each test so we don't get failures on rerun.

Signed-off-by: Paulo E. Castro <pecastro@wormholenet.com>
7 months agorgw: Remove unnecessary whitespace.
Paulo E. Castro [Sat, 16 Nov 2024 11:30:42 +0000 (11:30 +0000)]
rgw: Remove unnecessary whitespace.

Signed-off-by: Paulo E. Castro <pecastro@wormholenet.com>
7 months agoMerge pull request #60944 from dalgaaf/dalgaaf-fix-doc-ec
Anthony D'Atri [Wed, 4 Dec 2024 21:49:18 +0000 (22:49 +0100)]
Merge pull request #60944 from dalgaaf/dalgaaf-fix-doc-ec

doc: fix EC overhead table m-numbering

7 months agoMerge pull request #60954 from zdover23/wip-doc-2024-12-04-dev-development-workflow...
Anthony D'Atri [Wed, 4 Dec 2024 21:04:39 +0000 (22:04 +0100)]
Merge pull request #60954 from zdover23/wip-doc-2024-12-04-dev-development-workflow-backporter-manual

doc/dev: update link to backporter manual

7 months agodoc/dev: update link to backporter manual 60954/head
Zac Dover [Wed, 4 Dec 2024 20:33:59 +0000 (21:33 +0100)]
doc/dev: update link to backporter manual

Update the link to the backporter manual, in
doc/dev/development-workflow.rst. Laura Flores requested this change on
04 Dec 2024.

Signed-off-by: Zac Dover <zac.dover@proton.me>
7 months agoMerge pull request #60924 from ktdreyer/containerfile-date-utc
Ken Dreyer [Wed, 4 Dec 2024 19:40:04 +0000 (14:40 -0500)]
Merge pull request #60924 from ktdreyer/containerfile-date-utc

container/build.sh: use UTC dates for tags

7 months agorgw: optimize bucket listing to skip past regions of namespaced entries 60851/head
J. Eric Ivancich [Fri, 22 Nov 2024 17:40:24 +0000 (12:40 -0500)]
rgw: optimize bucket listing to skip past regions of namespaced entries

When listing a bucket and the parameters are such that we're not
listing namespaced entries, this commit adds an optimization to
advance the marker such that we skip past a whole region of namespaced
entries rather than evaluating each entry one-by-one.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
7 months agoMerge pull request #60930 from zdover23/wip-doc-2024-12-03-rados-ops-health-checks-3
Zac Dover [Wed, 4 Dec 2024 14:02:49 +0000 (15:02 +0100)]
Merge pull request #60930 from zdover23/wip-doc-2024-12-03-rados-ops-health-checks-3

doc/rados: fix sentences in health-checks (3 of x)

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>