Commit Graph
12160 Commits
Author SHA1 Message Date
mergify[bot] 47be8beb36 Merge pull request #15664 from rook/mergify/bp/release-1.17/pr-15659
ci: update x/net version to fix snyk issue (backport #15659)
2025-04-07 13:58:29 +00:00
subhamkrai 71cb943956 ci: update x/net version to fix snyk issue
snyk ci failind due to older version of x/net, it's need to be in 0.38

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 4ae4741a82)
2025-04-07 13:14:37 +00:00
mergify[bot] a72f840d14 Merge pull request #15655 from rook/mergify/bp/release-1.17/pr-15652
nfs: set allow_set_io_flusher_fail=true in config (backport #15652)
2025-04-04 20:19:56 +00:00
Blaine Gardner 6dc5d6c9d8 nfs: set allow_set_io_flusher_fail=true in config
NFS-Ganesha 6.1 requires this config to be set to allow it to run in a
non-privileged container so it doesn't hit a permission failure. As long
as the ganesha.nfsd process isn't run with the `-x` option, earlier
versions of NFS-Ganesha that don't have this config won't complain.

Related cephadm PR: https://github.com/ceph/ceph/pull/60077

This may be necessary for supporting future Ceph Squid versions
according to discussions here:
https://github.com/ceph/ceph-container/issues/2246

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
(cherry picked from commit 947ca8b458)
2025-04-04 19:48:45 +00:00
Travis Nielsen fa78c3941e Merge pull request #15651 from rook/mergify/bp/release-1.17/pr-15445
Fixes for the govanish linter issues (backport #15445)
2025-04-04 12:50:17 -06:00
Travis Nielsen 962b995196 core: use filter only if its set to non empty string
Also check for the empty namespace instead of an
empty name which was incorrect.

Co-authored-by: Nikita Sivukhin <sivukhin@turso.tech>
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 71a4fce87b)
2025-04-04 18:12:06 +00:00
Blaine Gardner 88a12084d0 Merge pull request #15650 from rook/mergify/bp/release-1.17/pr-15563
core: typed watch handlers and predicates (backport #15563)
2025-04-04 12:04:49 -06:00
Joshua Hoblitt 5fb622e6d1 core: typed watch handlers and predicates
All existing controller runtime watches are converted to use "typed"
handlers and predicates instead of operating on `client.Object`.  The
intent is to be bug for bug equivalent with the existing logic while
replacing run time type assertions and switch statements with compile
time type constraints and type casts. In several cases, functions using
assertions were split up such that each function only handles a single
Kind at a time. It is hoped that this will improve readability and
maintainability while facilitating future refactoring such as migrating
some watches to using IndexFields.

Of particular note is that the massive switch statement in
`WatchControllerPredicate()`  from
`pkg/operator/ceph/controller/predicate.go` has been replaced with
generics, reflection, and splitting the obc logic into its own predicate
function. There are still many helper functions operating on
`client.Object`. These were not updated unless required by the compiler
in order to limit the size of this change. The type safety of these
funcs should be improved as followup work.

 It is strongly suggested that going forward, handlers and predicates
 only handle a single Kind (generic or not) and that switches / type
 assertions are heavily discouraged or forbidden. This PR removed all
 but a single switch statement in a predicate, which should be addressed
 in future work.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 9f1ed201db)
2025-04-04 17:18:33 +00:00
Travis Nielsen ada4d97813 Merge pull request #15646 from rook/mergify/bp/release-1.17/pr-15645
mon: fix mon rbac for endpoint slice (backport #15645)
2025-04-04 02:34:59 -06:00
Travis Nielsen a4e86ce655 Merge pull request #15644 from rook/mergify/bp/release-1.17/pr-15636
operator: decouple mon and mgr post-startup operations (backport #15636)
2025-04-04 02:34:42 -06:00
parth-gr b3fabab3bb mon: fix mon rbac for endpoint slice
a newly dynamic dns resolution code
was added by https://github.com/rook/rook/pull/15522
Fixing rbac of it, as current rbac needs
a sub resource `restricted`

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit e7dbab3513)
2025-04-04 07:09:12 +00:00
Patryk Rostkowski b02190290d operator: decouple mon and mgr post-startup operations
Fixes an ordering issue where spec.cephConfig settings failed to apply
because the manager wasn't yet running. Moved the config logic from
postMonStartupActions() to a new postMgrStartupActions() to ensure
the mgr is ready before applying config, allowing successful reconciliation.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
(cherry picked from commit 44a2eaf02f)
2025-04-03 20:32:35 +00:00
Blaine Gardner 85e231db02 Merge pull request #15642 from rook/mergify/bp/release-1.17/pr-15359
object: add CephObjectStoreUser.spec.keys (backport #15359)
2025-04-03 13:27:08 -06:00
Joshua Hoblitt 1a747d8a60 object: add CephObjectStoreUser.spec.keys
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 6b2c357871)
2025-04-03 18:57:57 +00:00
Blaine Gardner bd0974827e Merge pull request #15629 from rook/mergify/bp/release-1.17/pr-15554
rgw: Support Kafka auth mechanism parameter (backport #15554)
2025-04-02 10:21:56 -06:00
Blaine Gardner cf0444a73b Merge pull request #15631 from rook/mergify/bp/release-1.17/pr-15459
rbdmirror: mirroring b/w implicit and defined ns (backport #15459)
2025-04-02 10:21:24 -06:00
Blaine Gardner aba085d010 Merge pull request #15637 from rook/mergify/bp/release-1.17/pr-15624
object: updated cephobjectstore zone spec (backport #15624)
2025-04-02 10:20:05 -06:00
parth-gr 809ae1cfba object: updated cephobjectstore zone api
if no multisite is used, rook creates the zone,
in the same name as cephobjectstore cr,

But cephobjectstore zone spec
shows name as empty string("")

Which is confusing for the end user, so
to remove the confusion by updating the
api defination

Signed-off-by: parth-gr <partharora1010@gmail.com>
(cherry picked from commit c47c6c5072)
2025-04-02 15:48:33 +00:00
Travis Nielsen cadcb70a0f Merge pull request #15618 from rook/mergify/bp/release-1.17/pr-15522
mon: manage endpoints containing set of mon ip addresses (backport #15522)
2025-04-01 13:12:11 -06:00
subhamkrai f73f34bd51 rbdmirror: mirroring b/w implicit and defined ns
this commit add support for mirroring b/w implicit rados namespace and
defined rados namespace. To support this, rook will treat `<implicit>`
name on cephblockpool as `""` empty string. This will allow mirroring
b/w implicit and defined radosnamespace.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 420178fe3e)
2025-04-01 18:56:52 +00:00
Ragnar Dahlén 98777ece70 rgw: support kafka auth mechanism parameter
Ceph has support [1,2] for configuring which authentication
mechanism to use for bucket notifications using Kafka topics.

This commit adds the corresponding support to rook.

[1]: https://github.com/ceph/ceph/pull/48181/commits/d5dce601f65974a21c83c4b1add036030a75c3c4
[2]: https://tracker.ceph.com/issues/57608

Signed-off-by: Ragnar Dahlén <r.dahlen@gmail.com>
(cherry picked from commit 8bf7c679bb)
2025-04-01 16:45:31 +00:00
Blaine Gardner 5c1640a4af Merge pull request #15627 from rook/mergify/bp/release-1.17/pr-15622
tests: fix intermittent failure of TestWaitForDeploymentsToUpdate (backport #15622)
2025-04-01 10:42:03 -06:00
Michael Adam 27b96e196f tests: fix intermittent failure of TestWaitForDeploymentsToUpdate
The unit test TestWaitForDeploymentsToUpdate intermittently failed
in the CI. The suspected root cause is clow CPUs in github CI runners.

This fixes the intermittent CI failure by increasing the timings in the test
code.

Resolves: #15583

Co-Authored-By: Blaine Gardner <blaine.gardner@ibm.com>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 0c9e7a384b)
2025-04-01 14:48:38 +00:00
subham rai da47d689ba Merge pull request #15607 from rook/mergify/bp/release-1.17/pr-15598
tests: Upgrade from rook 1.16 to master (backport #15598)
2025-04-01 12:33:51 +05:30
Travis Nielsen fdde229150 Merge pull request #15620 from rook/mergify/bp/release-1.17/pr-15619
build: Append arch to tagged image name (backport #15619)
2025-03-31 13:25:54 -06:00
Travis Nielsen 017bba279e build: append arch to tagged image name
The release scripts expect the rook image to be tagged
with the arch in the suffix, reverting this change to
the tag that was a regression from the squid base image
changes.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 830b36ce97)
2025-03-31 18:09:02 +00:00
Blaine Gardner 4cde8b7ac1 Merge pull request #15608 from rook/mergify/bp/release-1.17/pr-14792
build: Update base operator image to squid (backport #14792)
2025-03-31 10:44:17 -06:00
Patryk Rostkowski 0c4bdf81a0 mon: manage endpoints containing set of mon ip addresses
The change creates and manages an Endpoints resource
with the current Ceph monitor (mon) IPs, allowing
clients to resolve mon IPs via DNS without relying
on the rook-ceph-mon-endpoints ConfigMap.

Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
(cherry picked from commit 08199b27c9)
2025-03-31 16:43:20 +00:00
Blaine Gardner 6478dbf8c5 Merge pull request #15617 from rook/mergify/bp/release-1.17/pr-15588
rgw: RGW read affinity for localized reads (backport #15588)
2025-03-31 10:25:34 -06:00
Santosh Pillai a5306b57d4 rgw: support read affinty for localized reads
allows selecting Read Affinity policy from the ObjectStore API
aets `--crush-location=host` for RGW daemons.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit deb010c32e)
2025-03-31 15:27:12 +00:00
Travis Nielsen a7b598e71a test: include rgw zone flags for endpoint validation
The rgw endpoint validation requires the zone flags to be passed
when the admin user is in a non-default zone.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 721fe4ff7d)
2025-03-28 20:15:16 +00:00
Travis Nielsen b705e57adf build: update base operator image to squid
With the stable release of v19.2.1, we update the Rook
operator base image to use this version to ensure
compatibility of ceph commands, in particular for
radosgw-admin.

Images pushed to the ceph quay repo are now manifested
so we can use the --platform flag when building the
docker image instead of pulling from separate repos.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit a6c4feb0af)
2025-03-28 20:15:15 +00:00
Blaine Gardner 9b9fc19952 Merge pull request #15606 from rook/mergify/bp/release-1.17/pr-15591
core: replace gofmt with golangci-lint (backport #15591)
2025-03-28 14:07:23 -06:00
Travis Nielsen a43c60de15 tests: upgrade from rook 1.16 to master
The upgrade tests in master have been upgrading from 1.15 to
master. In anticipation of the v1.17 release, we change
the upgrade tests to start from v1.16 to test if there
are any regressions in the supported upgrades.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit d3cb7271a7)
2025-03-28 20:06:10 +00:00
Joshua Hoblitt a8a012038c core: fix golangci-lint warn caused by comment in nolint directive
Resolves this warning:

    WARN [runner/nolint_filter] Found unknown linters in //nolint directives: just configuration keys., value not credential

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit b721c30dd1)
2025-03-28 18:37:50 +00:00
Joshua Hoblitt e4fa520a18 core: replace gofmt with golangci-lint
This has the effect of running gofmt and gofumpt at the same time.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit c5f59db859)
2025-03-28 18:37:50 +00:00
Travis Nielsen 9e37c33f32 Merge pull request #15596 from travisn/release-1.17.0-beta.0
build: Set the release version for the v1.17.0-beta.0 release
2025-03-27 13:22:10 -06:00
Travis Nielsen a06b89a0dd build: set the release version for the minor beta release
For the minor release update the docs and examples
to v1.17.0-beta.0

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-03-27 11:22:47 -06:00
Travis Nielsen 1b9f9aa7ff Merge pull request #15594 from BlaineEXE/gofumpt-vscode
build: add enable gofumpt in suggested vscode conf
v1.17.0-alpha.0
2025-03-27 11:07:06 -06:00
Blaine Gardner 58724cbe12 build: add enable gofumpt in suggested vscode conf
Enable gofumpt formatter in the recommended vscode settings.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2025-03-27 10:06:37 -06:00
Travis Nielsen 6189a7be90 Merge pull request #15531 from jhoblitt/plumbing/code-tidy
core: run gofumpt on all files
2025-03-26 13:49:52 -06:00
Joshua Hoblitt 3cb343f62a core: run gofumpt on all files
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
2025-03-26 10:41:48 -07:00
Santosh Pillai daa0dc1327 Merge pull request #15408 from sp98/redo-pdbs
osd: handle OSD PDBs when OSDs fail without affecting the cluster health
2025-03-26 21:34:17 +05:30
Travis Nielsen 2346af27e6 Merge pull request #15570 from rook/dependabot/go_modules/github-dependencies-d99d65495a
build(deps): bump github.com/k8snetworkplumbingwg/network-attachment-definition-client from 1.7.5 to 1.7.6 in the github-dependencies group
2025-03-26 07:44:03 -06:00
Santosh Pillai a816b4a971 osd: allow one healthy OSD to be drained
One ore more OSDs can be down and PGs can still be active+clean (data
was rebalanced to other available OSDs). This PR sets
maxunavailable=1+downOSDs to allow one healthy to be drained.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2025-03-26 10:40:46 +05:30
Travis Nielsen df681b190b Merge pull request #15553 from travisn/operator-host-network
operator: Set dns policy for host network if needed
2025-03-25 17:33:06 -06:00
Travis Nielsen 6cbcdb7c14 Merge pull request #15585 from a1994sc/hotfix/upload-chart
ci: fix push version mismatch
2025-03-25 15:27:12 -06:00
Allen Conlon 1291045c7f ci: fix push version mismatch
Signed-off-by: Allen Conlon <software@conlon.dev>
2025-03-25 17:04:48 -04:00
Travis Nielsen a72a2bfc75 Merge pull request #15580 from a1994sc/hotfix/upload-chart
ci: fix version of chart not existing
2025-03-25 14:10:02 -06:00
Allen Conlon 2cbcbffd52 ci: fix version of chart not existing
Signed-off-by: Allen Conlon <software@conlon.dev>
2025-03-25 15:50:13 -04:00