]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 weeks agopybind/mgr/dashboard/frontend: add NPM_CACHEDIR envvar, use in bwc 65055/head
Dan Mick [Wed, 13 Aug 2025 19:16:45 +0000 (12:16 -0700)]
pybind/mgr/dashboard/frontend: add NPM_CACHEDIR envvar, use in bwc

Add an optional NPM_CACHEDIR environment variable to serve as the
cache parameter for npm in the dashboard frontend build.  The idea
is to allow it to persist across builds so that we decrease the load
on registry.npmjs.org, which has been throttling our requests when
using build-with-container.py, and also hopefully improve the time
of the frontend npm operations.

build-with-container.py also grows a --npm-cache-path option to allow
setting it for container builds and passing the envvar to the build.

Fixes: https://tracker.ceph.com/issues/72298
Signed-off-by: Dan Mick <dan.mick@redhat.com>
3 weeks agoMerge pull request #64804 from soumyakoduri/wip-skoduri-restore-expdate
Soumya Koduri [Sat, 16 Aug 2025 17:48:59 +0000 (23:18 +0530)]
Merge pull request #64804 from soumyakoduri/wip-skoduri-restore-expdate

rgw/restore: Update expiry-date of restored copies

Reviewed-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 weeks agorgw/restore: Update expiry-date of restored copies 64804/head
Soumya Koduri [Thu, 31 Jul 2025 19:19:44 +0000 (00:49 +0530)]
rgw/restore: Update expiry-date of restored copies

As per AWS spec (https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html),
if a `restore-object` request is re-issued on already restored copy, server needs to
update restoration period relative to the current time. These changes handles the same.

Note: this applies to only temporary restored copies

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 weeks agoMerge pull request #64372 from phlogistonjohn/jjm-smb-remotectl
Adam King [Fri, 15 Aug 2025 16:03:42 +0000 (12:03 -0400)]
Merge pull request #64372 from phlogistonjohn/jjm-smb-remotectl

smb: add remote control server

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
3 weeks agoMerge pull request #64787 from vshankar/wip-improve-cephfs-dr-doc
Zac Dover [Fri, 15 Aug 2025 02:12:25 +0000 (12:12 +1000)]
Merge pull request #64787 from vshankar/wip-improve-cephfs-dr-doc

doc/cephfs: update cephfs disaster recovery documentation

Reviewed-by: Zac Dover <zac.dover@proton.me>
4 weeks agoMerge pull request #64981 from zdover23/wip-doc-2025-08-12-cephfs-troubleshooting
Zac Dover [Thu, 14 Aug 2025 13:45:16 +0000 (23:45 +1000)]
Merge pull request #64981 from zdover23/wip-doc-2025-08-12-cephfs-troubleshooting

doc/cephfs: edit troubleshooting.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
4 weeks agoMerge pull request #64930 from zdover23/wip-doc-2025-08-10-cephfs-troubleshooting-3
Zac Dover [Thu, 14 Aug 2025 13:40:22 +0000 (23:40 +1000)]
Merge pull request #64930 from zdover23/wip-doc-2025-08-10-cephfs-troubleshooting-3

doc/cephfs: edit troubleshooting.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
4 weeks agoMerge pull request #64923 from zdover23/wip-doc-2025-08-09-cephfs-troubleshooting-3
Zac Dover [Thu, 14 Aug 2025 13:35:30 +0000 (23:35 +1000)]
Merge pull request #64923 from zdover23/wip-doc-2025-08-09-cephfs-troubleshooting-3

doc/cephfs: edit troubleshooting.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
4 weeks agoMerge pull request #64922 from zdover23/wip-doc-2025-08-09-cephfs-troubleshooting-2
Zac Dover [Thu, 14 Aug 2025 13:12:39 +0000 (23:12 +1000)]
Merge pull request #64922 from zdover23/wip-doc-2025-08-09-cephfs-troubleshooting-2

doc/cephfs: edit troubleshooting.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
4 weeks agoMerge pull request #64811 from ceph/fix-dependabot_dashboard_upgrades-main
Ernesto Puerta [Thu, 14 Aug 2025 12:09:31 +0000 (14:09 +0200)]
Merge pull request #64811 from ceph/fix-dependabot_dashboard_upgrades-main

dependabot: stop dashboard npm upgrade PRs

4 weeks agodoc/cephfs: edit troubleshooting.rst 64981/head
Zac Dover [Tue, 12 Aug 2025 06:44:05 +0000 (16:44 +1000)]
doc/cephfs: edit troubleshooting.rst

Edit the "Mount 5 Error" and "Mount 12 Error" sections of
doc/cephfs/troubleshooting.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
4 weeks agoMerge pull request #64982 from zdover23/wip-doc-2025-08-12-cephfs-troubleshooting-2
Zac Dover [Thu, 14 Aug 2025 08:32:36 +0000 (18:32 +1000)]
Merge pull request #64982 from zdover23/wip-doc-2025-08-12-cephfs-troubleshooting-2

doc/cephfs: edit troubleshooting.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
4 weeks agoMerge pull request #65008 from chanyoung/omap-fast-check-mappings
Matan Breizman [Thu, 14 Aug 2025 07:12:09 +0000 (10:12 +0300)]
Merge pull request #65008 from chanyoung/omap-fast-check-mappings

test/crimson/seastore/test_omap_manager: faster check mappings

Reviewed-by: Samuel Just <sjust@redhat.com>
4 weeks agoMerge pull request #65013 from Naveenaidu/wip-naveen-update-cephadm-docs 64991/head
Naveen Naidu [Thu, 14 Aug 2025 03:44:39 +0000 (09:14 +0530)]
Merge pull request #65013 from Naveenaidu/wip-naveen-update-cephadm-docs

doc/man/cephadm: update `--orphan-initial-daemons` argument description

4 weeks agoMerge pull request #63938 from tchaikov/wip-osd-recalc-decode
Kefu Chai [Thu, 14 Aug 2025 01:04:07 +0000 (09:04 +0800)]
Merge pull request #63938 from tchaikov/wip-osd-recalc-decode

osd: recalculate coll_t::_str during decode() to fix stale values

Reviewed-by: Samuel Just <sjust@redhat.com>
4 weeks agoMerge pull request #61770 from rkachach/fix_issue_69484
Redouane Kachach [Wed, 13 Aug 2025 17:05:08 +0000 (19:05 +0200)]
Merge pull request #61770 from rkachach/fix_issue_69484

Prometheus configuration generation improvements

Reviewed-by: nizamial09 <nia@redhat.com>
4 weeks agodoc/man/cephadm: update --orphan-initial-daemons argument description 65013/head
Naveen Naidu [Wed, 13 Aug 2025 12:16:09 +0000 (17:46 +0530)]
doc/man/cephadm: update --orphan-initial-daemons argument description

Signed-off-by: Naveen Naidu <naveen.naidu@ibm.com>
4 weeks agotest/crimson/seastore/test_omap_manager: faster check mappings 65008/head
Chanyoung Park [Fri, 8 Aug 2025 16:54:41 +0000 (16:54 +0000)]
test/crimson/seastore/test_omap_manager: faster check mappings

Signed-off-by: Chanyoung Park <chaney.p@kakaoenterprise.com>
4 weeks agoMerge pull request #64998 from chanyoung/monotonic
Matan Breizman [Wed, 13 Aug 2025 07:44:50 +0000 (10:44 +0300)]
Merge pull request #64998 from chanyoung/monotonic

test/crimson/seastore/test_omap_manager: add monotonic inc UT

Reviewed-by: Samuel Just <sjust@redhat.com>
4 weeks agodoc/cephfs: edit troubleshooting.rst 64982/head
Zac Dover [Tue, 12 Aug 2025 06:46:12 +0000 (16:46 +1000)]
doc/cephfs: edit troubleshooting.rst

Edit the "Dynamic Debugging" section of doc/cephfs/troubleshooting.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
doc/cephfs: improve dynamic debugging section

Signed-off-by: Venky Shankar <vshankar@redhat.com>
4 weeks agoMerge pull request #64976 from phlogistonjohn/jjm-container-pkgs
Dan Mick [Wed, 13 Aug 2025 00:51:52 +0000 (17:51 -0700)]
Merge pull request #64976 from phlogistonjohn/jjm-container-pkgs

container: support building a container image with custom packages

4 weeks agoMerge pull request #64942 from chanyoung/redesign_depth3_split
Samuel Just [Tue, 12 Aug 2025 20:19:25 +0000 (13:19 -0700)]
Merge pull request #64942 from chanyoung/redesign_depth3_split

test/crimson/seastore/test_omap_manager: redesign depth3 split

Reviewed-by: Samuel Just <sjust@redhat.com>
4 weeks agoMerge pull request #64964 from edwinzrodriguez/ceph-wip-72454
Ilya Dryomov [Tue, 12 Aug 2025 19:09:28 +0000 (21:09 +0200)]
Merge pull request #64964 from edwinzrodriguez/ceph-wip-72454

test/librbd/fsx: initialize effective_size variable

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
4 weeks agoMerge PR #64821 into main
Patrick Donnelly [Tue, 12 Aug 2025 18:43:43 +0000 (14:43 -0400)]
Merge PR #64821 into main

* refs/pull/64821/head:
.github: only run redmine-upkeep actions from ceph/ceph.git
script/redmine-upkeep: add transform to resolve merged issue
script/redmine-upkeep: set default filter name/priority
script/redmine-upkeep: raise exception for PUT failures
script/redmine-upkeep: finish transform after application
script/redmine-upkeep: indicate log location in comments
script/redmine-upkeep: check envvar to see if running as action
script/redmine-upkeep: bullet issue list
script/redmine-upkeep: add stronger note on upkeep-failed tag in failure message
script/redmine-upkeep: do not raise commennt if upkeep-failed already present
script/redmine-upkeep: correct filter out of upkeep-failed
.github/workflows: allow redmine-upkeep to write comments

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 weeks agodoc/mgr: more consistent capitalization in smb.rst 64372/head
John Mulligan [Tue, 12 Aug 2025 14:34:37 +0000 (10:34 -0400)]
doc/mgr: more consistent capitalization in smb.rst

When not referring to a code object or field value or module name, try
to spell ID and SMB in all caps everywhere in the document.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agodoc: document remote control in the mgr smb file
John Mulligan [Fri, 4 Jul 2025 13:20:47 +0000 (09:20 -0400)]
doc: document remote control in the mgr smb file

It covers the remote control configuration object and the tls credential
resource and source object created to support it and future tls needs.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks ago.github: only run redmine-upkeep actions from ceph/ceph.git 64821/head
Patrick Donnelly [Tue, 12 Aug 2025 15:55:04 +0000 (11:55 -0400)]
.github: only run redmine-upkeep actions from ceph/ceph.git

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: add transform to resolve merged issue
Patrick Donnelly [Wed, 16 Jul 2025 18:28:59 +0000 (14:28 -0400)]
script/redmine-upkeep: add transform to resolve merged issue

Few things:

- Add priority to transforms. Largely this is to have the "merged"
  transformation run first to update the "Merge Commit" field of the ticket
  before any other transform intends to look at that field. This avoids
  duplicating logic to set the Merge Commit field.

- Fix a bug where the github API cannot be trusted to indicate the Merge Commit
  for a PR. When the branch is rename or changed, the github backend clearly
  gets confused and gives the "HEAD" commit instead.

- Add new transform to resolve tickets that are merged to either Resolved or
  Pending Backport status.

* Note: filters on TAGS cannot be combined. There is some restructuring to deal with that.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoMerge pull request #64938 from chanyoung/omap-binary-search
Matan Breizman [Tue, 12 Aug 2025 16:50:00 +0000 (19:50 +0300)]
Merge pull request #64938 from chanyoung/omap-binary-search

crimson/.../string_kv_node_layout: switch linear to binary search

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
4 weeks agoscript/redmine-upkeep: set default filter name/priority
Patrick Donnelly [Mon, 4 Aug 2025 14:55:20 +0000 (10:55 -0400)]
script/redmine-upkeep: set default filter name/priority

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: raise exception for PUT failures
Patrick Donnelly [Wed, 16 Jul 2025 18:28:44 +0000 (14:28 -0400)]
script/redmine-upkeep: raise exception for PUT failures

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: finish transform after application
Patrick Donnelly [Wed, 16 Jul 2025 18:26:50 +0000 (14:26 -0400)]
script/redmine-upkeep: finish transform after application

Doing this at the end makes confusing error messages.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: indicate log location in comments
Patrick Donnelly [Wed, 16 Jul 2025 18:19:43 +0000 (14:19 -0400)]
script/redmine-upkeep: indicate log location in comments

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: check envvar to see if running as action
Patrick Donnelly [Wed, 16 Jul 2025 14:10:30 +0000 (10:10 -0400)]
script/redmine-upkeep: check envvar to see if running as action

This obviates --github-action in the workflow.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: bullet issue list
Patrick Donnelly [Wed, 16 Jul 2025 21:00:06 +0000 (17:00 -0400)]
script/redmine-upkeep: bullet issue list

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: add stronger note on upkeep-failed tag in failure message
Patrick Donnelly [Mon, 4 Aug 2025 14:53:28 +0000 (10:53 -0400)]
script/redmine-upkeep: add stronger note on upkeep-failed tag in failure message

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: do not raise commennt if upkeep-failed already present
Patrick Donnelly [Mon, 4 Aug 2025 14:48:48 +0000 (10:48 -0400)]
script/redmine-upkeep: do not raise commennt if upkeep-failed already present

If the script is run manually on an issue, don't leave a new comment if we
already have the issue tagged with upkeep-failed.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoscript/redmine-upkeep: correct filter out of upkeep-failed
Patrick Donnelly [Mon, 4 Aug 2025 14:48:00 +0000 (10:48 -0400)]
script/redmine-upkeep: correct filter out of upkeep-failed

"!~" is the proper filter for "does not contain".

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks ago.github/workflows: allow redmine-upkeep to write comments
Patrick Donnelly [Wed, 16 Jul 2025 18:18:00 +0000 (14:18 -0400)]
.github/workflows: allow redmine-upkeep to write comments

Fixes errors like:

    Posting a comment to GitHub PR #62992.
    GitHub API error posting comment to PR #62992: 401 Client Error: Unauthorized for url: https://api.github.com/repos/ceph/ceph/issues/62992/comments - Response: {"message":"Requires authentication","documentation_url":"https://docs.github.com/rest/issues/comments#create-an-issue-comment","status":"401"}

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agotest/crimson/seastore/test_omap_manager: add monotonic inc UT 64998/head
Chanyoung Park [Wed, 23 Jul 2025 12:51:45 +0000 (12:51 +0000)]
test/crimson/seastore/test_omap_manager: add monotonic inc UT

Signed-off-by: Chanyoung Park <chaney.p@kakaoenterprise.com>
4 weeks agoMerge pull request #64501 from aainscow/ec_fixpack2_pr
Alex Ainscow [Tue, 12 Aug 2025 15:05:51 +0000 (16:05 +0100)]
Merge pull request #64501 from aainscow/ec_fixpack2_pr

Optimized Erasure Coding - Fixpack 2

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 weeks agoMerge pull request #64926 from chanyoung/faster-seastore-eph-dev
Matan Breizman [Tue, 12 Aug 2025 14:55:23 +0000 (17:55 +0300)]
Merge pull request #64926 from chanyoung/faster-seastore-eph-dev

crimson/.../ephemeral: faster seastore eph dev

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
4 weeks agomgr/smb: add tests applying & showing tls credential resources
John Mulligan [Tue, 1 Jul 2025 21:15:24 +0000 (17:15 -0400)]
mgr/smb: add tests applying & showing tls credential resources

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a tls credential resource test case
John Mulligan [Tue, 1 Jul 2025 19:53:57 +0000 (15:53 -0400)]
mgr/smb: add a tls credential resource test case

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/cephadm: support tls creds via uri in service spec
John Mulligan [Tue, 1 Jul 2025 23:08:02 +0000 (19:08 -0400)]
mgr/cephadm: support tls creds via uri in service spec

Support populating the cert data sent to the cephadm binary using
special `URI:` prefixed strings instead of putting the cert data itself
in the smb service spec. This avoids having an extra copy of the cert
floating around but still matches the behavior of other services where
cephadm writes the certs into files.

In the future we may be able to avoid even putting the data in here as
sambacc can use rados apis - but for simplicity and matching other
services we will send the data this way for now.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: make tls credential types work in smb show
John Mulligan [Tue, 1 Jul 2025 21:44:01 +0000 (17:44 -0400)]
mgr/smb: make tls credential types work in smb show

Update the handler code needed to make tls credential types work
corrently for `ceph smb show` commands.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add tls credential and remote control support to handler
John Mulligan [Wed, 2 Jul 2025 23:48:38 +0000 (19:48 -0400)]
mgr/smb: add tls credential and remote control support to handler

Use the new tls credential resource and remote control cluster field
to configure the tls creds for the remote control sidecar in the
service spec.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: remove unused generate_smb_service_spec function
John Mulligan [Tue, 1 Jul 2025 21:13:34 +0000 (17:13 -0400)]
mgr/smb: remove unused generate_smb_service_spec function

Remove the generate_smb_service_spec as it was unused (it was used
early on for a debug dump command). Leaving it would have meant
keeping it up-to-date with the real spec generating function and
unnecessary extra work.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add tls credential support to staging
John Mulligan [Wed, 2 Jul 2025 21:27:45 +0000 (17:27 -0400)]
mgr/smb: add tls credential support to staging

Add the necessary cross-check functions to staging.py for tls credential
resources. Add prune function for tls resources because they support
linked_to_cluster.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add external store key func for tls credential resources
John Mulligan [Tue, 1 Jul 2025 21:11:41 +0000 (17:11 -0400)]
mgr/smb: add external store key func for tls credential resources

For getting keys for an external store.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a new entry class for tls credential resources
John Mulligan [Tue, 1 Jul 2025 15:28:02 +0000 (11:28 -0400)]
mgr/smb: add a new entry class for tls credential resources

Add a new entry class for the new tls credential resources. It should
work similarly to the join auth resources.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a uri lookup func to the MonKeyConfigStore
John Mulligan [Tue, 1 Jul 2025 23:08:24 +0000 (19:08 -0400)]
mgr/smb: add a uri lookup func to the MonKeyConfigStore

Add a new lookup_uri function to the MonKeyConfigStore - this allows the
store to return an entry given a URI. The URIs in the stores are
typically used to communicate to components outside the mgr module. But
there are occasions that we have a uri and want to look it up instead
of using a key.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: extend the mon key store to support raw data
John Mulligan [Tue, 1 Jul 2025 21:14:55 +0000 (17:14 -0400)]
mgr/smb: extend the mon key store to support raw data

Previously, a new protocol for raw data entries was added. Extend the
MonKeyStoreEntry to meet this protocol so that it can be used to retain
raw text/data blobs.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add support for tls credential resoruces to sqlite store
John Mulligan [Tue, 1 Jul 2025 15:37:33 +0000 (11:37 -0400)]
mgr/smb: add support for tls credential resoruces to sqlite store

The sqlite store needs to be updated for each top-level resource type.
Update it for the newly added tls credential type. Configure it so that
it works similarly to the join auth resource such that the cert data is
not stored in the sqlite db - only in the layered mon store.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a RawConfigEntry protocol type
John Mulligan [Tue, 1 Jul 2025 21:15:10 +0000 (17:15 -0400)]
mgr/smb: add a RawConfigEntry protocol type

Previously, the ConfigEntry type was created to be general interface for
serializing structures to JSON and persist them in a store.
However, there are times we want to retain data in a store that is not
serialized JSON - but just raw data. Create a new protocol for that
purpose.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a remote control configuration to cluster resource
John Mulligan [Wed, 2 Jul 2025 22:15:16 +0000 (18:15 -0400)]
mgr/smb: add a remote control configuration to cluster resource

Add the remote control component to a field of the cluster resource.
A remote control side car can be explicitly enabled or implicitly
enabled by specifying the tls creds.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: create a new resource component for remote control
John Mulligan [Wed, 2 Jul 2025 22:15:03 +0000 (18:15 -0400)]
mgr/smb: create a new resource component for remote control

Remote control is a new optional feature of the samba-container. It runs
a small "sidecar" service that provides a (g)RPC interface that bridges
certain runtime operations, like disconnecting a particular client,
from the cloudy-gRPC world to samba's existing tooling.
Add a new type that can be used to configure this sidecar service.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a new tls source component resource
John Mulligan [Wed, 2 Jul 2025 21:45:42 +0000 (17:45 -0400)]
mgr/smb: add a new tls source component resource

Add a new resource component for referencing a tls credential resource.
This works pretty much like the join auth resource in that a cluster
refers to a tls credential resource by name - avoiding having to have
potentially sensitive info stored in the cluster resource.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a new tls credential resource type
John Mulligan [Wed, 2 Jul 2025 21:44:45 +0000 (17:44 -0400)]
mgr/smb: add a new tls credential resource type

Add a new TLS credential resource type that can currently store one
TLS certificate, TLS key, or TLS CA certificate. This is a new top-level
resource so that they can be use across clusters or managed
independently by different people and or private information can be kept
out a cluster resource stored in a file committed somewhere.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a new BigString helper type for serializing yaml
John Mulligan [Wed, 2 Jul 2025 21:41:26 +0000 (17:41 -0400)]
mgr/smb: add a new BigString helper type for serializing yaml

Add a new BigString type that serves to help serialize resources to
YAML, causing it to use the multi-line literal style. A BigString is
a string so it should be transparent to other serializations, but
note that it should only be used in "simplified" structures.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: use a private constant for hidden value indicator
John Mulligan [Wed, 2 Jul 2025 21:42:40 +0000 (17:42 -0400)]
mgr/smb: use a private constant for hidden value indicator

When the password filter hides a value we replace it with a string
of asterisks - indicating that there was a value here. Move it
to a constant so it can be reused later.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a new store namespace for tls_creds
John Mulligan [Wed, 2 Jul 2025 21:47:26 +0000 (17:47 -0400)]
mgr/smb: add a new store namespace for tls_creds

A new resource for tls credentials will be added soon. Prepare for
that by adding a store namespace for these resources.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a new generalized enum for source references
John Mulligan [Wed, 2 Jul 2025 22:06:30 +0000 (18:06 -0400)]
mgr/smb: add a new generalized enum for source references

The join auth and users and groups sources typically specify a
source as a reference to a (local) resource. Right now this is
really the only supported value. Since they're all basically the same
add a new generic SourceReferenceType enum for future source
resource components.

Note that python doesn't allow subclassing enums that have values
assigned. This is the reason for the copy paste here.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a new TLSCredentialType enum
John Mulligan [Wed, 2 Jul 2025 21:47:56 +0000 (17:47 -0400)]
mgr/smb: add a new TLSCredentialType enum

Add a new TLSCredentialType to enums.py. This will be used in the future
to support a new resource type that manages TLS/SSL credential objects (
certs, keys, etc).

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/cephadm: copy tls blobs from smb service spec to smb configuration
John Mulligan [Mon, 30 Jun 2025 23:11:47 +0000 (19:11 -0400)]
mgr/cephadm: copy tls blobs from smb service spec to smb configuration

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/cephadm: add a helper function for setting up smb config
John Mulligan [Mon, 30 Jun 2025 23:11:34 +0000 (19:11 -0400)]
mgr/cephadm: add a helper function for setting up smb config

Add a private helper function for copying values into the config_blobs
and similar dictionaries that are serialized and passed to cephadm for
configuration of smb. The helper automates the familiar pattern of
```
if value:
    config_blobs[key] = value
```

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agopython-common/deployment: add remote control sidecar config params
John Mulligan [Mon, 9 Jun 2025 17:19:06 +0000 (13:19 -0400)]
python-common/deployment: add remote control sidecar config params

Add parameters to the smb service spec for configuring the remote
control sidecar. The feature always controls the deployment (or not) of
the sidecar and the ssl/tls config params will be used to set up (m)TLS
for the sidecar.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agocephadm/smb: add support for remote control sidecar
John Mulligan [Mon, 9 Jun 2025 17:18:49 +0000 (13:18 -0400)]
cephadm/smb: add support for remote control sidecar

Add support for the remote control sidecar. The remote control server
is provided by the sambacc project. It is a small grpc server that
allows remote systems to get live information about connected clients
and disconnect clients or shares from the servers. The gRPC server
requires being run in mTLS mode to make changes.

Adding sidecar required adding a bunch of support for TLS/SSL certificate
management. I copied some of what other ceph containers do, like map
in a dedicated dir having certs. I expect some more stuff in the smb
daemon will require TLS support so I tried to make it a little more
generic than would be strictly needed by just this sidecar.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agocephadm: update type of populate_files first argument
John Mulligan [Wed, 16 Jul 2025 20:17:07 +0000 (16:17 -0400)]
cephadm: update type of populate_files first argument

The populate_files function's first argument was typed as `str` but
all places that str is used in that function can also use a
pathlib.Path. Update the type of that argument to match.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: improve error handling when _customize_resource is wrong
John Mulligan [Mon, 30 Jun 2025 21:46:10 +0000 (17:46 -0400)]
mgr/smb: improve error handling when _customize_resource is wrong

While working on other changes I noticed that if _customize_resource
does not return a resource object (something fairly easy to do like
accidentally delete a line) the error it produces is somewhat hard
to debug. Check the return from the function returns a non-false
object to provide better error reporting.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agomgr/smb: add a wrapper_type attribute for resourcelib fields
John Mulligan [Mon, 30 Jun 2025 21:18:36 +0000 (17:18 -0400)]
mgr/smb: add a wrapper_type attribute for resourcelib fields

Add a new wrapper_type attribute for resourcelib fields that will be
used for better YAML representations in a future change. The
wrapper_type attribute will be applied during the simplification
phase to prep the resulting object for serialization. It can be set
using the special _customize_resource function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agoMerge pull request #64861 from ronen-fr/wip-rf-pgdict
Ronen Friedman [Tue, 12 Aug 2025 13:33:02 +0000 (16:33 +0300)]
Merge pull request #64861 from ronen-fr/wip-rf-pgdict

test/standalone/scrub: improve build_pg_dicts() performance

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 weeks agoMerge pull request #64253 from arm7star/rgw-openssl
Casey Bodley [Tue, 12 Aug 2025 13:04:39 +0000 (09:04 -0400)]
Merge pull request #64253 from arm7star/rgw-openssl

rgw, common: OpenSSL provider support

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 weeks agoMerge pull request #64675 from chanyoung/fix-omap-balance
Matan Breizman [Tue, 12 Aug 2025 11:01:09 +0000 (14:01 +0300)]
Merge pull request #64675 from chanyoung/fix-omap-balance

crimson/.../omap_btree_node_impl: pass pivot_idx for balancing

Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
4 weeks agoMerge pull request #64575 from chanyoung/add-test-omap-update
Matan Breizman [Tue, 12 Aug 2025 11:00:04 +0000 (14:00 +0300)]
Merge pull request #64575 from chanyoung/add-test-omap-update

test/crimson/seastore/test_omap_manager: add heavy update UT

Reviewed-by: Samuel Just <sjust@redhat.com>
4 weeks agoMerge pull request #64812 from Matan-B/wip-matanb-crimson-seastore-trans-intr
Matan Breizman [Tue, 12 Aug 2025 10:57:18 +0000 (13:57 +0300)]
Merge pull request #64812 from Matan-B/wip-matanb-crimson-seastore-trans-intr

crimson/os/seastore: introduce with_repeat_trans_intr

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
4 weeks agoMerge pull request #64911 from rhcs-dashboard/dashboard-loading-state
afreen23 [Tue, 12 Aug 2025 08:38:23 +0000 (14:08 +0530)]
Merge pull request #64911 from rhcs-dashboard/dashboard-loading-state

mgr/dashboard: loading state for inventory card

Reviewed-by: Afreen Misbah <afreen@ibm.com>
4 weeks agoMerge pull request #64890 from cloudbehl/add-osd-ratio
afreen23 [Tue, 12 Aug 2025 07:08:36 +0000 (12:38 +0530)]
Merge pull request #64890 from cloudbehl/add-osd-ratio

prometheus: Add OSD full and nearfull ratio to prometheus

Reviewed-by: Afreen Misbah <afreen@ibm.com>
4 weeks agoMerge pull request #64753 from Hezko/nvmeof-cli-mtls-fix2
afreen23 [Tue, 12 Aug 2025 06:59:49 +0000 (12:29 +0530)]
Merge pull request #64753 from Hezko/nvmeof-cli-mtls-fix2

mgr/dashboard: fix nvmeof mtls

Reviewed-by: Nizamudeen A <nia@redhat.com>
4 weeks agoMerge pull request #64767 from bluikko/doc-notifications-fixes-cephadm
Zac Dover [Tue, 12 Aug 2025 06:59:07 +0000 (16:59 +1000)]
Merge pull request #64767 from bluikko/doc-notifications-fixes-cephadm

doc/radosgw: Small fixes and improvements in notifications.rst, part 1

Reviewed-by: Yuval Lifshitz <ylifshit@ibm.com>
Reviewed-by: Zac Dover <zac.dover@proton.me>
4 weeks agoMerge PR #64716 into main
Venky Shankar [Tue, 12 Aug 2025 05:36:33 +0000 (11:06 +0530)]
Merge PR #64716 into main

* refs/pull/64716/head:

Reviewed-by: Anoop C S <anoopcs@cryptolab.net>
Reviewed-by: Sachin Prabhu <sp@spui.uk>
4 weeks agocontainer: pass CUSTOM_CEPH_REPO_URL thru container build script 64976/head
John Mulligan [Thu, 10 Jul 2025 13:51:10 +0000 (09:51 -0400)]
container: pass CUSTOM_CEPH_REPO_URL thru container build script

Update the build.sh script such that the environment variable
CUSTOM_CEPH_REPO_URL is passed to the container build command
as a build argument. This allows a developer or system outside of the
ceph CI to build container images similar to those produced by the
CI but using custom RPM packages.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agocontainer: add CUSTOM_CEPH_REPO_URL build argument
John Mulligan [Thu, 10 Jul 2025 13:50:54 +0000 (09:50 -0400)]
container: add CUSTOM_CEPH_REPO_URL build argument

Add a CUSTOM_CEPH_REPO_URL build argument to the Containerfile.
This configures the container to consume ceph packages from the repo
file indicated by this URL. This allows constructing a container image
"the ceph way" without requiring the use of CI built packages.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
4 weeks agotest/librbd/fsx:: Initialize effective_size variable to prevent undefined behavior 64964/head
Edwin Rodriguez [Thu, 7 Aug 2025 15:31:18 +0000 (11:31 -0400)]
test/librbd/fsx:: Initialize effective_size variable to prevent undefined behavior

Fixes: https://tracker.ceph.com/issues/72454
Signed-off-by: Edwin Rodriguez <edwin.rodriguez1@ibm.com>
4 weeks agoMerge pull request #64952 from Matan-B/wip-matanb-rgw-fifo-ftbfs
Ilya Dryomov [Mon, 11 Aug 2025 17:13:30 +0000 (19:13 +0200)]
Merge pull request #64952 from Matan-B/wip-matanb-rgw-fifo-ftbfs

neorados/cls/fifo/detail/fifo: include strtol.h

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
4 weeks agoneorados/cls/fifo/detail/fifo: include strtol.h 64952/head
Matan Breizman [Mon, 11 Aug 2025 12:28:47 +0000 (12:28 +0000)]
neorados/cls/fifo/detail/fifo: include strtol.h

https://github.com/ceph/ceph/commit/a2d26647c011274b61805f8ac17c3422e9b9b63c

ftbfs:
```
/home/jenkins-build/build/workspace/ceph-pull-requests/src/neorados/cls/fifo/detail/fifo.h:630:14: error: no member named 'parse' in namespace 'ceph'; did you mean 'pause'?
  630 |     auto n = ceph::parse<decltype(m.num)>(num);
      |              ^~~~~~~~~~~
```

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
4 weeks agoMerge pull request #64773 from afreen23/freq-api-calls
afreen23 [Mon, 11 Aug 2025 11:44:43 +0000 (17:14 +0530)]
Merge pull request #64773 from afreen23/freq-api-calls

mgr/dashboard: Stop rules api being polled on every page

Reviewed-by: Afreen Misbah <afreen@ibm.com>
4 weeks agoMerge pull request #64905 from rhcs-dashboard/mem-leak
afreen23 [Mon, 11 Aug 2025 11:34:34 +0000 (17:04 +0530)]
Merge pull request #64905 from rhcs-dashboard/mem-leak

mgr/dashboard: fix memory leak in prometheus service

Reviewed-by: Afreen Misbah <afreen@ibm.com>
4 weeks agotest/crimson/seastore/test_omap_manager: refactor list UT 64942/head
Chanyoung Park [Mon, 11 Aug 2025 07:29:48 +0000 (07:29 +0000)]
test/crimson/seastore/test_omap_manager: refactor list UT

Signed-off-by: Chanyoung Park <chaney.p@kakaoenterprise.com>
4 weeks agotest/crimson/seastore/test_omap_manager: add innernode structural test
Chanyoung Park [Mon, 11 Aug 2025 06:56:35 +0000 (06:56 +0000)]
test/crimson/seastore/test_omap_manager: add innernode structural test

Signed-off-by: Chanyoung Park <chaney.p@kakaoenterprise.com>
4 weeks agoMerge pull request #62915 from MaxKellermann/common_includes
Ilya Dryomov [Mon, 11 Aug 2025 07:39:35 +0000 (09:39 +0200)]
Merge pull request #62915 from MaxKellermann/common_includes

common: include cleanup

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
4 weeks agoMerge PR #61116 into main
Venky Shankar [Mon, 11 Aug 2025 06:53:41 +0000 (12:23 +0530)]
Merge PR #61116 into main

* refs/pull/61116/head:

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
4 weeks agoMerge PR #64822 into main
Venky Shankar [Mon, 11 Aug 2025 06:52:16 +0000 (12:22 +0530)]
Merge PR #64822 into main

* refs/pull/64822/head:

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
4 weeks agomgr/dashboard: fix memory leak in prometheus service 64905/head
Nizamudeen A [Fri, 8 Aug 2025 06:42:20 +0000 (12:12 +0530)]
mgr/dashboard: fix memory leak in prometheus service

Prometheus API calls in the Cluster Utilization call is subscribed in
the for loop multiple times but this is not properly unsubscribed. As we
stay in the dashboard page for longer time, it produces a significant
memory leak which eventually lags the UI. Attempting to fix it by
properly handling the subscription

Fixes: https://tracker.ceph.com/issues/72511
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 weeks agomgr/dashboard: loading state for inventory card 64911/head
Nizamudeen A [Wed, 6 Aug 2025 09:23:22 +0000 (14:53 +0530)]
mgr/dashboard: loading state for inventory card

show loading state when inventory details are being loaded. also don't
block the UI when inventories are not loaded.

Fixes: https://tracker.ceph.com/issues/72494
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 weeks agoMerge pull request #62488 from dparmar18/i70553
Venky Shankar [Mon, 11 Aug 2025 03:17:08 +0000 (08:47 +0530)]
Merge pull request #62488 from dparmar18/i70553

client: fix unmount hang after lookups

Reviewed-by: Venky Shankar <vshankar@redhat.com>
4 weeks agocrimson/.../string_kv_node_layout: switch linear to binary search 64938/head
Chanyoung Park [Mon, 11 Aug 2025 03:02:04 +0000 (03:02 +0000)]
crimson/.../string_kv_node_layout: switch linear to binary search

Signed-off-by: Chanyoung Park <chaney.p@kakaoenterprise.com>
4 weeks agocrimson/os/seastore: mkfs_managers() into coroutines 64812/head
Matan Breizman [Wed, 30 Jul 2025 15:10:48 +0000 (15:10 +0000)]
crimson/os/seastore: mkfs_managers() into coroutines

* txn is now created only once and not in each repeated
  iteration as before, with_repeat_trans_intr will reset the txn
  if needed.

* in order for us to return a seastar::future, we would have to handle
  each and every errorator. Instead, change the return value to
  errorator and let the caller handle the error.

* The lambda which is passed to with_trans_intr returns mkfs_iertr
  since this is an extended version of base_iertr.
  Introduce a mkfs_ertr for the reason above. Future commits would
  unify the new mkfs_ertr with seastore_mkfs_ertr.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
4 weeks agocrimson/os/seastore: cleanup final base_ertr users
Matan Breizman [Sun, 10 Aug 2025 12:46:17 +0000 (12:46 +0000)]
crimson/os/seastore: cleanup final base_ertr users

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
4 weeks agocrimson/os/seastore: introduce with_repeat_trans_intr
Matan Breizman [Mon, 4 Aug 2025 10:54:34 +0000 (10:54 +0000)]
crimson/os/seastore: introduce with_repeat_trans_intr

Most of with_trans_intr use repeat_eagain so it makes sense to introduce
this wrapper and audit exisitng users (future PR).

Note: each repeated iteration should use a fresh txn if we failed
in-flight.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>