Commit Graph
12194 Commits
Author SHA1 Message Date
Travis Nielsen 08c97bc752 Merge pull request #15593 from prazumovsky/retry-pool-status
pool: retry status update on fail
2025-04-09 11:14:13 -06:00
Travis Nielsen efbcdb4fd6 Merge pull request #15641 from travisn/reconcile-with-finalizer
core: Reconcile CRs only after the finalizer is added by Rook
2025-04-09 10:40:47 -06:00
Travis Nielsen 5ec79d4f31 Merge pull request #15648 from parth-gr/rgw-ci-fix
ci: fix rgw flaky ci test
2025-04-09 10:21:46 -06:00
Travis Nielsen 89f32f5b67 Merge pull request #15677 from parth-gr/fix-goroutine
rbdmirror: fix the rados namespace health checkup
2025-04-09 09:56:12 -06:00
Peter Razumovsky d7c67fecee pool: retry status update on fail
In some cases, for example, kube-api nods, CephBlockPool's status
could be failed to update. In that case, rook-operator does not
tries to update status again. This fix requests for requeue if pool's
status update is failed.

Signed-off-by: Peter Razumovsky <prazumovsky@mirantis.com>
2025-04-09 18:47:38 +04:00
Santosh Pillai 9fed7e0ba0 Merge pull request #15635 from obnoxxx/Makefile-improvements
some Makefile improvements
2025-04-09 15:44:52 +05:30
parth-gr 0c5d3ee3a5 rbdmirror: fix the rados namespace health checkup
there was very edge case,a nd that result in nil
point exception
During osd upgrades if mirror health check is called
the mirror status cmd doesnt respond
So its important to check if the value exist
before getting its summary

Signed-off-by: parth-gr <partharora1010@gmail.com>
2025-04-09 14:57:55 +05:30
Travis Nielsen d4bebeac45 Merge pull request #15669 from travisn/ingress-port
helm: Allow specifying an ingress object store port to override default
2025-04-08 17:10:23 -06:00
Travis Nielsen f7fb1bc0f2 core: skip reconcile when adding the finalizers
When finalizers are added to the CRs, a follow-up reconcile
will be triggered due to the increased generation on the CR.
Therefore, abort the initial reconcile when adding the finalizer,
and allow the follow-up reconcile to complete the configuration.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-08 13:42:58 -06:00
parth-gr 1a296dccd5 ci: fix rgw flaky ci test
s3cmd can take more time to put the data
of 1M to the bucket as it waits for
connection to get established

currently ci fails with, Retrying failed
request: /test1-1mib-test.dat ([Errno 111]
Connection refused)

also increase the timeout for creating objectstore

Signed-off-by: parth-gr <partharora1010@gmail.com>
2025-04-08 21:15:59 +05:30
Blaine Gardner 916c0ab50e Merge pull request #15643 from BlaineEXE/upgrade-docs
doc: update release notes and upgrade docs
2025-04-08 09:20:48 -06:00
Travis Nielsen 5ad38cb579 helm: allow specifying an ingress object store port to override default
The default object store ingress port will be set to the
securePort (if set), or the gateway port field. To override
that default, a new port field can be set on the ingress.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-07 17:27:34 -06:00
Travis Nielsen c40477ccc2 helm: remove obsolete check for network v1 api
The networking.k8s.io/v1beta1 has been obsolete since
K8s 1.22, long out of the supported versions, so we
can remove those legacy checks and require the v1
networking api.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-07 17:27:34 -06:00
Santosh Pillai 7a44de0036 Merge pull request #15634 from sp98/fix-pdbs-1
osd: fix pdbs in case of node drain
2025-04-07 21:28:35 +05:30
Blaine Gardner deb9838324 doc: update release notes and upgrade docs
Update pending release notes and upgrade docs for v1.17.

Signed-off-by: Blaine Gardner <blaine.gardner@ibm.com>
2025-04-07 09:57:20 -06:00
subham rai cf5ec1f6fe Merge pull request #15662 from rook/dependabot/go_modules/golang.org/x/sync-0.13.0
build(deps): bump golang.org/x/sync from 0.12.0 to 0.13.0
2025-04-07 21:04:06 +05:30
subham rai a8fd14c550 Merge pull request #15661 from rook/dependabot/github_actions/github/codeql-action-3.28.14
build(deps): bump github/codeql-action from 3.28.13 to 3.28.14
2025-04-07 21:03:42 +05:30
Travis Nielsen 2c08be157f Merge pull request #15660 from Madhu-1/remove-dummy-code
csi: remove dummy code in csi driver creation
2025-04-07 08:12:29 -06:00
Travis Nielsen ea4cb43edf Merge pull request #15659 from subhamkrai/fix-cve-net
ci: update x/net version to fix snyk issue
2025-04-07 07:13:58 -06:00
dependabot[bot] 297328937e build(deps): bump golang.org/x/sync from 0.12.0 to 0.13.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/sync/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-version: 0.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 12:55:43 +00:00
dependabot[bot] fcf78778f3 build(deps): bump github/codeql-action from 3.28.13 to 3.28.14
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.13 to 3.28.14.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/1b549b9259bda1cb5ddde3b41741a82a2d15a841...fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.28.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 12:51:52 +00:00
Madhu Rajanna b08765f525 csi: remove dummy code in csi driver creation
EnableCSIDriverSeLinuxMount is always set to true
, This commit remove the extra variable as its a
introduced where we supported older kubernetes version.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2025-04-07 13:50:09 +02:00
subhamkrai 4ae4741a82 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>
2025-04-07 14:47:17 +05:30
Santosh Pillai e83ca35531 osd: fix pdbs in case of node drain
the maxunavailable count was getting reset back to 1 after 60 seconds.
This PR prevents resetting of the maxUnavailable OSD count.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2025-04-07 09:40:55 +05:30
Travis Nielsen 10137ab5ca Merge pull request #15653 from travisn/mergify-automerge
ci: Enable automerge for 1.17 backports
2025-04-04 13:53:53 -06:00
Blaine Gardner 43af49b429 Merge pull request #15652 from BlaineEXE/nfs-io-flusher-fail
nfs: set allow_set_io_flusher_fail=true in config
2025-04-04 13:47:37 -06:00
Travis Nielsen 276431d58b ci: enable automerge for 1.17 backports
Merify requires the exact names of the successful CI actions
for automerge. The linux-build actions had an incorrect version
so the 1.17 backports were not being automerged.

Also now the list of actions for automerge are alphabetized.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2025-04-04 19:57:54 +01:00
Blaine Gardner 947ca8b458 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>
2025-04-04 12:41:11 -06:00
Travis Nielsen e6142d8a4c Merge pull request #15445 from sivukhin/small-bug-fixes
Fixes for the govanish linter issues
2025-04-04 12:11:17 -06:00
Blaine Gardner f3645520b6 Merge pull request #15563 from jhoblitt/feature/generic-predicates
core: typed watch handlers and predicates
2025-04-04 11:17:09 -06:00
Travis NielsenandNikita Sivukhin 71a4fce87b 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>
2025-04-04 18:16:07 +01:00
Joshua Hoblitt 9f1ed201db 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>
2025-04-04 09:40:56 -07:00
Santosh Pillai 2dab3d3832 Merge pull request #15645 from parth-gr/fix-mon
mon: fix mon rbac for endpoint slice
2025-04-04 12:37:32 +05:30
parth-gr e7dbab3513 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>
2025-04-04 11:59:08 +05:30
Travis Nielsen a0e925dfdb Merge pull request #15636 from patrostkowski/feature/mgr-module-configs-15559
operator: decouple mon and mgr post-startup operations
2025-04-03 14:31:41 -06:00
Blaine Gardner 1f787d77cc Merge pull request #15359 from jhoblitt/feature/cephobjectstoreuser-creds
object: add CephObjectStoreUser.spec.keys
2025-04-03 12:57:26 -06:00
Joshua Hoblitt 6b2c357871 object: add CephObjectStoreUser.spec.keys
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
2025-04-03 09:09:01 -07:00
Michael Adam c14a3e8e2a build: various Makefile improvements
1. add target checkmake

checkmake can  used for linting the Makefile

2. disentangle messed-up check and test  targets

check was supposed to be an alias for test but the definition was messed up.
In particular, no help text for test was shown.
This fixes the mess by separating the test and check targets.
As a side-effect, the  help text for both is now shown correctly

3.  make target docs phony and add help text

checkmake complained that 'docs'should be phony, so fix that.
Add some help text while at it.

4. reword misleading line to silence checkmake

checkmake was complaining that target 'Options' should be phony.
but Options not a target. It was a line in the Help text.
Fix this by rewording this part of help text

Signed-off-by: Michael Adam <obnox@samba.org>
2025-04-03 09:41:46 +02:00
Blaine Gardner e349a81a17 Merge pull request #15624 from parth-gr/rgw-ex
object: updated cephobjectstore zone spec
2025-04-02 09:47:31 -06:00
subham rai 3e1302a472 Merge pull request #15610 from alingse/patch-1
fix call errors.Wrapf with a nil value error after check another err
2025-04-02 20:32:07 +05:30
Patryk Rostkowski 44a2eaf02f 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>
2025-04-02 14:35:06 +02:00
parth-gr c47c6c5072 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>
2025-04-02 16:50:57 +05:30
Blaine Gardner 2348ff689c Merge pull request #15459 from subhamkrai/implicit-ns
rbdmirror: mirroring b/w implicit and defined ns
2025-04-01 12:56:06 -06:00
Blaine Gardner 85440169dd Merge pull request #15554 from ragnard/kafka-topic-params
rgw: Support Kafka auth mechanism parameter
2025-04-01 10:44:36 -06:00
Blaine Gardner 25c343be1f Merge pull request #15622 from obnoxxx/fix-15583
tests: fix intermittent failure of TestWaitForDeploymentsToUpdate
2025-04-01 08:45:15 -06:00
Michael AdamandBlaine Gardner 0c9e7a384b 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>
2025-04-01 09:16:31 +02:00
subham rai e6e79d9e41 Merge pull request #15614 from rook/dependabot/github_actions/github/codeql-action-3.28.13
build(deps): bump github/codeql-action from 3.28.12 to 3.28.13
2025-04-01 11:31:46 +05:30
subham rai 174c86093f Merge pull request #15615 from rook/dependabot/github_actions/actions/setup-python-5.5.0
build(deps): bump actions/setup-python from 5.4.0 to 5.5.0
2025-04-01 11:31:22 +05:30
subham rai 7b554a9fc7 Merge pull request #15616 from rook/dependabot/github_actions/dcarbone/install-jq-action-3.1.1
build(deps): bump dcarbone/install-jq-action from 3.0.1 to 3.1.1
2025-04-01 11:30:50 +05:30
subhamkrai 420178fe3e 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>
2025-04-01 10:46:06 +05:30