Commit Graph

162079 Commits

Author SHA1 Message Date
Rabinarayan Panigrahi
f02b985bd8 python-common/ceph/smb: Add smb features constants for SSL
Add smb constants to support for ca_certificate validation and string
alteration

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
2026-06-18 21:09:36 +05:30
Rabinarayan Panigrahi
6f598d7513 mgr/cephadm: Registering smb features for ssl certificate with certmgr
Here we are registering smb features such remote_control and keybridge
with certificate manager and can be list with ceph orch certmgr bindings
ls

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
2026-06-18 21:09:36 +05:30
Rabinarayan Panigrahi
dbf3221479 mgr/cephadm/services: Add supported function for ssl certificates
Added function for get smb features TLSCredentials using _get_feature_certs

Added function _get_certificates_from_spec_ssl_certificates to get the
certificates for ssl_certificates

Updating features ssl certificates to default path of containers

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
2026-06-18 21:04:46 +05:30
Rabinarayan Panigrahi
a3aa693987 mgr/cephadm: add ca_cert_required parameter to get_certificates mock in test
Add the ca_cert_required parameter to the lambda function mocking
CephadmService.get_certificates in test_prometheus_config_security_enabled
to match the updated method signature.

This ensures the test mock properly handles the new parameter that was
added to the get_certificates method.

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
33c9e66cea doc/cephadm: Add SMB TLS/SSL configuration and examples
Add SMB TLS/SSL configuration with example for SMB features
remote_control and keybridge

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
035b96985e mgr/cephadm: Add test case from smb spec and validating functionality
with test

Here we have added a test case to test_smb.py to validate functionality
of certificate manager after apply certificates.

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
38105f7015 mgr/cephadm: Test case are updated to validate for ssl certificate for
smb services

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
66fc26d43b mgr/smb: Add ssl_certificates buffer for smb features
Add ssl_certificates buffer for smb features like remote_control
and keybridge. when certificate applied it stores as a feature
name and SSLParameters as value where SSLParameters holds cert,
key and ca-cert.

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
362580714d mgr/smb: Add is_feature_enabled function to resource class
This funality added to find if feature like remote_control
and keybride is enable.

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
ee6fd847b0 mgr/cephadm: Add function to get ssl certificate from ssl_certificates
A function is added _get_certificates_from_spec_ssl_certificates to get
certificates from ssl_certificates buffer. it returns TLSCredentials from
SSLParameters of ssl_certificates[feature]

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
8202dae834 ceph/deployment: Adding smb to REQUIRES_CERTIFICATES list
Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
16553bfa23 mgr/cephadm: Add function all to get ssl certificates
A function call added to get ssl certificates from ssl_certificates
buffer. it returns TLSCredentials:

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
2026-06-18 19:20:17 +05:30
Rabinarayan Panigrahi
176de7b903 ceph/deployment: Adding class SSLParameters for storing cert, key
and ca-cert for ssl and other features

Signed-off-by: Rabinarayan Panigrahi <rapanigr@redhat.com>
2026-06-18 19:18:02 +05:30
Kefu Chai
4cd080d6f3
Merge pull request #69515 from tchaikov/wip-rocksdb-fix-ftbfs-gcc-16
rocksdb: update submodule to fix FTBFS due to missing <cstdint>

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2026-06-17 11:17:35 +08:00
Kefu Chai
1999afb8e5
Merge pull request #69509 from sunyuechi/wip-fix-unused-warnings
crimson,mgr,test: fix unused variable/function warnings

Reviewed-by: Kefu Chai <k.chai@proxmox.com>
2026-06-17 10:07:27 +08:00
John Mulligan
1f70d69341
Merge pull request #69419 from Sodani/shsodani_mac_support
mgr/smb: Added a Mac client support for samba cluster

Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Sachin Prabhu <sp@spui.uk>
2026-06-16 18:50:31 -04:00
Hezko
38ef9bc6b9
Merge pull request #69339 from Hezko/clis-alignment
mgr/dashboard: align nvmeof cli with missing parameters and commands from the old nvmeof cli
2026-06-17 00:11:23 +03:00
Oguzhan Ozmen
29e0d6104f
Merge pull request #69132 from BBoozmen/wip-sync-err-log-76950
rgw/multisite: do not log transient per-object EBUSY/EAGAIN errors in sync error log
2026-06-16 15:11:24 -04:00
Patrick Donnelly
bfff14c222
Merge PR #69498 into main
* refs/pull/69498/head:
	doc/releases/tentacle: scope wording to package installs
	doc/releases/tentacle: remove bogus notable changes
	doc/releases/tentacle: add more v20.2.2 blocker fixes
	doc: tentacle 20.2.2 release notes

Reviewed-by: Adam King <adking@redhat.com>
2026-06-16 14:51:39 -04:00
Patrick Donnelly
1578756c74
doc/releases/tentacle: scope wording to package installs
Resolves: https://tracker.ceph.com/issues/77357
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
2026-06-16 14:16:32 -04:00
Patrick Donnelly
f78b44aba3
doc/releases/tentacle: remove bogus notable changes
Resolves: https://tracker.ceph.com/issues/77357
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
2026-06-16 14:16:32 -04:00
Oguzhan Ozmen
63b7f7430b
Merge pull request #68881 from jacquesh/fix-rgw-log-merging
rgw: Fix ops logs sometimes having several entries per line.
2026-06-16 13:37:14 -04:00
Shweta Sodani
23c910f52a doc/mgr/smb: document client compatibility mode
Add documentation for --client-compat parameter in 'cluster create'
command and new 'cluster update client-compat' command. This feature
enables macOS-specific SMB optimizations (fruit VFS, streams_xattr)
and can be set during cluster creation or updated for existing clusters.

Signed-off-by: Shweta Sodani <shsodani@redhat.com>
2026-06-16 22:20:37 +05:30
Sridhar Seshasayee
2ccd861d04
Merge pull request #69366 from sseshasa/wip-fix-ok-to-upgrade-osd-sort-order
mgr/DaemonServer: Aggregate and globally sort OSDs for ok-to-upgrade

Reviewed-by: Radoslaw Zarzynski <rzarzynski@redhat.com>
Reviewed-by: Nitzan Mordechai <nmordech@ibm.com>
2026-06-16 21:46:13 +05:30
Adam Kupczyk
daf1e89117
Merge pull request #69395 from aclamk/aclamk-doc-bs-fast-recovery
doc, bluestore: Documentation for Fast Onode Recovery feature
2026-06-16 15:03:31 +02:00
Shweta Sodani
6f59987690 mgr/smb: add tests for client compatibility mode
Add comprehensive test coverage for the new client compatibility
feature that enables macOS-specific SMB optimizations:

- test_enums.py: Add tests for ClientSupportMode enum values
  (DEFAULT and MACOS) and string representation
- test_resources.py: Add tests for cluster client_compat field,
  effective_client_compat property, and is_macos_compatibility_enabled
  property with different mode configurations
- test_smb.py: Add integration tests for cluster_update_client_compat
  CLI command including successful updates and error handling for
  non-existent clusters

These tests ensure the client compatibility mode can be properly
set, retrieved, and updated at the cluster level.

Signed-off-by: Shweta Sodani <shsodani@redhat.com>
2026-06-16 15:58:05 +05:30
Shweta Sodani
45f943ddb8 mgr/smb: Add client support mode for macOS-specific SMB features
This commit introduces a new cluster-level configuration option to enable
client-specific SMB optimizations, starting with macOS support.

Usage:
  ceph smb cluster create <cluster-id> --client-compat macos
  ceph smb cluster update client-compat macos <cluster-id>

Signed-off-by: Shweta Sodani <ssodani@redhat.com>
2026-06-16 15:58:05 +05:30
Kefu Chai
59afb3d661 rocksdb: update submodule to fix FTBFS due to missing <cstdint>
43dd4cbd37 bumped the rocksdb submodule to v7.10.2 for CVE-2022-23476,
dropping the <cstdint> includes the v7.9.2 pin carried.
db/blob/blob_file_meta.h uses uint64_t but no longer includes <cstdint>,
so it compiles only where another header pulls <cstdint> in transitively.
GCC with libstdc++ 16.1.0 no longer does, so the build fails:

    db/blob/blob_file_meta.h: error: 'uint64_t' has not been declared

our targeted distros still pull it in, so the failure went unnoticed
there: ubuntu jammy (GCC 11.2.0) and noble (GCC 13.2).

bump the submodule to a cherry-pick of upstream rocksdb 72c3887167,
which fixes the same FTBFS.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
2026-06-16 17:07:55 +08:00
Tomer Haskalovitch
e3d9ebb50e mgr/dashboard: align nvmeof cli with missing parameters and functions from the old nvmeof cli
fixes: https://tracker.ceph.com/issues/77108
Signed-off-by: Tomer Haskalovitch <tomer.haska@ibm.com>
2026-06-16 10:41:53 +03:00
Sun Yuechi
d3c8d3fc65 crimson,mgr: mark assert-only variables [[maybe_unused]]
These variables are only read inside assert(), which is compiled out
under NDEBUG. Mark them [[maybe_unused]] to silence the warnings while
keeping the debug-only assert() style used by the surrounding code:

  src/crimson/os/seastore/lba/btree_lba_manager.cc:1078: unused variable 'orig_len' [-Wunused-variable]
  src/crimson/os/seastore/omap_manager/log/log_manager.cc:73: variable 'ret' set but not used [-Wunused-but-set-variable]
  src/crimson/os/seastore/transaction_manager.cc:382: variable 'intermediate_key' set but not used [-Wunused-but-set-variable]
  src/mgr/PyModule.cc:166,186: unused variable 'r' [-Wunused-variable]

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
2026-06-16 15:24:26 +08:00
Sun Yuechi
1265c6b5cd test/crimson/seastore: use gtest assertion macros instead of assert()
Plain assert() is compiled out under NDEBUG, leaving the checked
variables unused. Use the always-evaluated gtest macros instead.

  src/test/crimson/seastore/test_cbjournal.cc:586: variable 'old_written_to' set but not used [-Wunused-but-set-variable]
  src/test/crimson/seastore/test_btree_lba_manager.cc:345: unused structured binding declaration [-Wunused-variable]

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
2026-06-16 15:24:26 +08:00
Sun Yuechi
0b8c738927 crimson,test: remove unused functions and dead variable
Fixing these warnings:

  src/crimson/os/seastore/seastore.cc:83: 'omaptree_initialize' defined but not used [-Wunused-function]
  src/crimson/osd/replicated_recovery_backend.cc:733: 'nullopt_if_empty' defined but not used [-Wunused-function]
  src/test/rgw/test_rgw_kms_cache.cc:63: 'rethrow' defined but not used [-Wunused-function]
  src/test/librados/test_cxx.cc:215: variable 'cmd' set but not used [-Wunused-but-set-variable]

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
2026-06-16 12:36:11 +08:00
SrinivasaBharathKanta
2286265c0a
Merge pull request #69106 from bigjust/upgrade-rocksdb-7.10.2-cve-2022-23476
rocksdb: upgrade submodule to v7.10.2 to address CVE-2022-23476
2026-06-16 09:54:11 +05:30
SrinivasaBharathKanta
958cd0bbb1
Merge pull request #68662 from kamoltat/wip-ksirivad-stretch-crush-experiment
src/script: init test_stretch_crush_collisions.sh
2026-06-16 09:53:01 +05:30
SrinivasaBharathKanta
7d8bada343
Merge pull request #68425 from dheart-joe/pretty-kvtool-output
tool/ceph-kvstore-tool: add --pretty-binary-key option
2026-06-16 09:52:07 +05:30
SrinivasaBharathKanta
e2c6862ce9
Merge pull request #67747 from indirasawant/wip-isawant-mgr-standby-details
mon/mgr: include standby manager details in ceph mgr stat
2026-06-16 09:51:26 +05:30
Patrick Donnelly
b52f7f53ae
doc/releases/tentacle: add more v20.2.2 blocker fixes
Resolves: https://tracker.ceph.com/issues/77357
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
2026-06-15 22:52:47 -04:00
Yuri Weinstein
35447386ba
doc: tentacle 20.2.2 release notes
Resolves: https://tracker.ceph.com/issues/77357
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2026-06-15 22:52:47 -04:00
Kotresh HR
fcf6891875
Merge pull request #69467 from kotreshhr/mirror-handle-dup-add-directory-notification
tools/cephfs_mirror: Ignore duplicate directory acquire notifications

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2026-06-16 08:18:44 +05:30
Patrick Donnelly
c580421359
Merge PR #69494 into main
* refs/pull/69494/head:
	doc: Document restarting failed release builds

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
2026-06-15 21:25:50 -04:00
Patrick Donnelly
854f5340ad
Merge PR #69492 into main
* refs/pull/69492/head:
	doc/dev/release-process: update according to supported releases

Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
2026-06-15 21:22:38 -04:00
Patrick Donnelly
8a2cbbd4f8
doc/dev/release-process: update according to supported releases
From: https://docs.ceph.com/en/latest/start/os-recommendations/

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
2026-06-15 18:41:25 -04:00
David Galloway
937ffe0d03 doc: Document restarting failed release builds
Signed-off-by: David Galloway <david.galloway@ibm.com>
2026-06-15 17:37:51 -04:00
Patrick Donnelly
cf5b149eec
Merge PR #69446 into main
* refs/pull/69446/head:
	python-common/cryptotools: stop using the removed X509Req API

Reviewed-by: Patrick Donnelly <pdonnell@ibm.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
2026-06-15 16:14:23 -04:00
John Mulligan
d14e816a13
Merge pull request #69289 from anoopcs9/fix-run-samba-perms
cephadm/smb: Bind mount /run with 0755

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Xavi Hernandez <xhernandez@gmail.com>
2026-06-15 15:42:48 -04:00
Ericmzhang
69c30a7d54
Merge pull request #68532 from Ericmzhang/wip-overlapped-roots-autoscale
Mgr: Allow autoscaling for overlapped roots
2026-06-15 10:28:56 -07:00
Kefu Chai
3d0188f3c6
Merge pull request #68856 from tchaikov/wip-ceph-dencoder-dlclose
ceph-dencoder: skip dlclose under ASan so leaks symbolise

Reviewed-by: Nitzan Mordechai <nmordec@ibm.com>
2026-06-15 20:14:23 +08:00
Ronen Friedman
b77ff53605
Merge pull request #69415 from ronen-fr/wip-rf-clsrefcount
crimson/osd: fix PGBackend::remove() to return ENOENT on no-op deletes

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2026-06-15 14:31:57 +03:00
Kotresh HR
e74f11546a tools/cephfs_mirror: Ignore duplicate directory acquire notifications
Make PeerReplayer::add_directory() idempotent when the mgr re-sends
acquire for a directory already in the replayer list.

Fixes: https://tracker.ceph.com/issues/77398
Signed-off-by: Kotresh HR <khiremat@redhat.com>
2026-06-15 16:15:37 +05:30
Kotresh HR
28a2a2c882 qa/cephfs: Add test for duplicate directory acquire notify
Verify that reloading the mirroring module and removing a directory
does not leave a ghost replayer entry that keeps syncing snapshots.

Fixes: https://tracker.ceph.com/issues/77398
Signed-off-by: Kotresh HR <khiremat@redhat.com>
2026-06-15 16:15:33 +05:30