Commit Graph
9915 Commits
Author SHA1 Message Date
subhamkrai 58e825cf72 ci: fix github action free disk space
Since `google-cloud-sdk` is renamed with `google-cloud-cli`,
the github action is failing to remove the older name and this
is causing ci issues. Applying changes suggested by community to
manually remove some packages to resolve the issue.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 3267576307)
2023-09-28 14:26:18 +00:00
Travis Nielsen be8e33420a Merge pull request #12907 from travisn/release-1.11.11
build: Update the release version to v1.11.11
v1.11.11
2023-09-14 16:42:56 -06:00
travisn 3ab900a645 build: update the release version to v1.11.11
For the patch release, update the docs and examples to
v1.11.11

Signed-off-by: travisn <tnielsen@redhat.com>
2023-09-14 15:58:59 -06:00
Travis Nielsen 6be1ec413c Merge pull request #12891 from rook/mergify/bp/release-1.11/pr-12884
object: unique username for OBC even when preceding OBC was retained (backport #12884)
2023-09-12 16:20:00 -06:00
Sebastian Hasler 944b7fc064 object: unique username for OBC even when preceding OBC was retained
For an OBC's name we cannot simply use the OBC's namespace and name,
because they can be reused, while the preceding bucket might be
retained by reclaimPolicy. (Commit 2733375ca4 also didn't solve
this issue, as it is an intra-cluster issue.) Therefore we instead
use the OBC's UID which should be unique within the cluster and
across clusters.

Signed-off-by: Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de>
(cherry picked from commit 041fc1a71c)
2023-09-12 16:11:06 +00:00
Travis Nielsen 65a956c488 Merge pull request #12826 from rook/mergify/bp/release-1.11/pr-12804
object: avoid creating same bucket for two different OBC (backport #12804)
2023-08-31 15:57:39 -06:00
Jiffin Tony Thottan f52ee379ef object: avoid creating same bucket for two different OBC
If bucket exists for Provision(), then check whether user in the OBC and
owner of bucket are same.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit b39e813290)
2023-08-31 21:10:53 +00:00
Travis Nielsen 09688685ab Merge pull request #12701 from subhamkrai/fix-all-canary-ci
ci: fix all the canary test (backport)
2023-08-11 14:08:49 -06:00
subhamkrai b8880be365 multus: use right interface in ci validation
runner version `2.306` had the interface `net`
but somehow version `2.307.1` which is latest
doesn't have `net` it has `eth0*` so using that.

```
cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
 tunl0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth0:     446       5    0    0    0     0          0         0        0       0    0    0    0     0       0          0
sh-4.4# grep etho /proc/net/dev
sh-4.4# grep eth0 /proc/net/dev
  eth0:     446       5    0    0    0     0          0         0        0       0    0    0    0     0       0          0
sh-4.4# exit
```

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 4502ea8ee1)
2023-08-11 08:22:19 +05:30
subhamkrai 3e9f8517f6 ci: same ceph version in toolbox and cluster-test
Let's use same ceph version(latest Reef) in both
cluster-test and toolbox.yaml so that we don't need
to pull image twice. Alos, github action helper script
was calling `deploy_manifest_with_local_build` which
is required for operator.yaml and not for toolbox.yaml.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit b9c41fd548)
2023-08-11 08:22:08 +05:30
subhamkrai 343c26d5e9 ci: add github action to free space in runner
adding github action to free space in runner
which will help us avoiding mon low space error

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 334a632ecd)
2023-08-11 08:21:53 +05:30
subhamkrai b035c5d18b ci: add detached mode in tmate
with detached mode, we don't need to wait for the
tests to complete. Now, we can get inside tmate before
the tests start and we can monitor the tests.

By default, this mode will wait at the end of the job for
a user to connect and then to terminate the tmate session.
If no user has connected within 10 minutes after the post-job step started,
it will terminate the tmate session and quit gracefully.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit f171e1c037)
2023-08-11 08:20:19 +05:30
Travis Nielsen 19d19ee3ab Merge pull request #12684 from rook/mergify/bp/release-1.11/pr-12681
csi: add mode csi pods to the list to force delete pod (backport #12681)
2023-08-09 10:25:27 -06:00
Madhu Rajanna a6e7d6118b csi: add nfs pods to the list to delete pod
Add nfs pods label to the list so that Rook
can get all the pods on the failed node and
force delete the pods stuck in terminating state.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 29faca9032)
2023-08-08 11:20:06 -06:00
Madhu Rajanna b6901397ad csi: add holder pods to the list to delete pod
Add holder pods label to the list so that Rook
can get all the pods on the failed node and
force delete the pods stuck in terminating state.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 22bfc9de3d)

# Conflicts:
#	pkg/operator/ceph/cluster/cephstatus_test.go
2023-08-08 17:11:35 +00:00
Travis Nielsen c4f7e5aa4b Merge pull request #12668 from rook/mergify/bp/release-1.11/pr-12666
operator: fix formatting of some logger methods (backport #12666)
2023-08-04 10:51:22 -06:00
Lucas Henry 0e7b1a295b operator: fix formatting of some logger methods
Some logging instructions use formatting syntax `%q`, but the logging method is
`Info` or `Debug` instead of `Debugf` and `Infof`. As a result, the arguments of
the method were concatenated instead of formatted properly.

Signed-off-by: Lucas Henry <polyedre@disroot.org>
(cherry picked from commit c948183c0e)
2023-08-04 14:56:45 +00:00
Blaine Gardner dafdaac44e Merge pull request #12581 from rook/mergify/bp/release-1.11/pr-12574
doc: update the external doc format (backport #12574)
2023-07-25 14:46:06 -06:00
parth-gr 33ff5e8d2d docs: update the external doc format
Cephobjectstore is not formated correctly
https://rook.io/docs/rook/v1.12/CRDs/Cluster/external-cluster/#connect-to-an-external-object-store

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 8a445ef0cb)
2023-07-25 16:19:30 +00:00
Blaine Gardner 4d40c2197b Merge pull request #12553 from rook/mergify/bp/release-1.11/pr-12508
external: create ceph cluster namespace (backport #12508)
2023-07-19 11:02:35 -06:00
parth-gr 60c9b87c13 external: create ceph cluster namespace
We need to create the namespace with the import script,
As per the documentation

The import script creates the secrets and
cm which is later used by the operator for cluster creation.

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit f9f880e528)
2023-07-18 22:46:09 +00:00
Travis Nielsen cec23885dc Merge pull request #12549 from travisn/release-1.11.10
build: Update release version to v1.11.10
v1.11.10
2023-07-18 15:15:25 -06:00
travisn b82105e2d6 build: update release version to v1.11.10
For the patch release update the docs and example manifests
to v1.11.10

Signed-off-by: travisn <tnielsen@redhat.com>
2023-07-18 14:42:21 -06:00
Travis Nielsen 3128500704 Merge pull request #12541 from rook/mergify/bp/release-1.11/pr-12460
object: align spelling of user admin capabilities with ceph (backport #12460)
2023-07-18 14:39:30 -06:00
Peter Goron 9f88a62a06 object: align spelling of user admin capabilities with ceph
users & buckets admin capabilities aren't spelled the same
way between rook crd (singular) and ceph (plural). It's a bit
misleading when comparing ceph admin cap and rook users.

Signed-off-by: Peter Goron <peter.goron@gmail.com>
(cherry picked from commit 40eed236cf)
2023-07-18 19:23:54 +00:00
Travis Nielsen 814bded944 Merge pull request #12538 from rook/mergify/bp/release-1.11/pr-12502
external: support custom ceph keyring file (backport #12502)
2023-07-18 13:21:09 -06:00
Angelos Kolaitis 06a2acf255 external: support custom ceph keyring file
When the ceph.conf is not in a well-known location, it is typical
for a custom ceph.keyring to be required as well. Currently, the
create-external-cluster-resources.py only tries to load the keyring
from well-known paths, and fails.

This commit adds a new optional argument `--keyring` to help in this
situation. When specified, create-external-cluster-resources.py will
attempt to use this as the keyring to authenticate with Ceph.

Signed-off-by: Angelos Kolaitis <neoaggelos@gmail.com>
(cherry picked from commit c021256e96)
2023-07-18 17:20:12 +00:00
Blaine Gardner 8094c42282 Merge pull request #12509 from rook/mergify/bp/release-1.11/pr-12477
external: pin the default csi subvolume (backport #12477)
2023-07-13 12:35:54 -06:00
parth-gr f4e7b0ef1c external: pin the default csi subvolume
set the csi subvolume to pin type distributed and pin setting 1
So to statically balance the PVs across all MDS ranks

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 53413e5a24)
2023-07-13 15:40:35 +00:00
Travis Nielsen be3143258d Merge pull request #12481 from rook/mergify/bp/release-1.11/pr-12143
external: add support for IPV6 ceph daemons (backport #12143)
2023-07-07 11:55:14 -06:00
Travis Nielsen bf61d56d09 Merge pull request #12485 from rook/mergify/bp/release-1.11/pr-12462
csi: update csi holder daemonset template (backport #12462)
2023-07-07 11:54:56 -06:00
Madhu Rajanna aaa0d8dffb csi: update csi holder daemonset template
Currently the holder daemonset is never updated
which will leaves the images the daemonset also
not updated. we should update the daemonset
template but not restart the csi holder pods
which causes the CSI volume access problem,
set the updateStrategy to OnDelete (already set in
yaml files) which allow us to update the holder
daemonset but not restart/update the pods, when a
pod is deleted or node is rebooted
the new changes will take effect.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 1ba3aa4d19)
2023-07-07 14:32:41 +00:00
parth-gr ccb363972d external: add support for IPV6 ceph daemons
updated some function which were strictly used for IPV4

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit de61187eb4)
2023-07-06 21:39:40 +00:00
Travis Nielsen 9a2bb9dc13 Merge pull request #12475 from rook/mergify/bp/release-1.11/pr-12455
core: Remove vault server module dependencies (backport #12455)
2023-07-05 18:42:07 -06:00
travisn c23e2303d2 core: remove vault server module dependencies
The vault server dependencies were pulling a lot of indirect modules
that are not necessary for Rook. The modules were only used
for testing. The vault github explicitly indicates that:

"Some other projects have made a practice of doing so in order to
take advantage of testing tooling that was developed for testing Vault itself.
This is not, and has never been, a supported way to use the Vault project."

When attempting to update to vault v1.13.3, we are hitting
such an unsupported configuration with go modules
that are impossible to satisfy. By removing the tests
that were using the vault server project, we can remove
this large set of dependencies, enable updating to v1.13.3,
and also reduce the modules pulled in by vault.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-07-05 17:23:12 -06:00
Travis Nielsen 6dfbf05878 Merge pull request #12473 from rook/mergify/bp/release-1.11/pr-12457
external: Fix import script for idempotent (backport #12457)
2023-07-05 12:14:39 -06:00
mysiki b9a498a309 external: fix import-external-cluster.sh and documentation
fix import-external-cluster.sh in order to work with set -e bash directive, see issue https://github.com/rook/rook/issues/12412
fix documentation mispell in namespace word

Closes: https://github.com/rook/rook/issues/12412

Signed-off-by: mysiki <hoaxboy@wanadoo.fr>
(cherry picked from commit b5d0d80444)
2023-07-05 17:29:46 +00:00
Travis Nielsen f08d331af4 Merge pull request #12469 from rook/mergify/bp/release-1.11/pr-12467
ci: fix ci test encryption-pvc-kms-vault-token-auth (backport #12467)
2023-07-05 08:15:38 -06:00
subhamkrai 20f962fc00 ci: fix ci test encryption-pvc-kms-vault-token-auth
we need to wait for the rgw pod to be delete and not
only the cephobjectsore, sometime the pod could be in
terminating state. Also, in some place it require proper
command to wait for pod to be ready/delete and get the
pod name only.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 70f29be748)
2023-07-05 13:30:08 +00:00
Blaine Gardner 483b15e238 Merge pull request #12454 from BlaineEXE/update-release-ver-to-1.11.9
build: Update release version to v1.11.9
v1.11.9
2023-06-29 15:20:37 -06:00
Blaine Gardner 5540351d4f build: update release version to v1.11.9
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2023-06-29 12:17:57 -06:00
Travis Nielsen 6572b27d6f Merge pull request #12453 from rook/mergify/bp/release-1.11/pr-12437
Multus Validation : Added verbs "deletecollection"  (backport #12437)
2023-06-29 10:25:43 -06:00
Travis Nielsen bbd24bc4f3 Merge pull request #12452 from rook/mergify/bp/release-1.11/pr-12418
Remove deprecated annotation (backport #12418)
2023-06-29 09:48:05 -06:00
Sud d7dabfd567 multus: add deletecollection capability for validation tool
Without deletecollection capability the image pullers won't be deleted, causing multus validation to fail.
    Added deletecollection verbs to the daemonsets resource in role rook-ceph-system
    This is fix for Issue: https://github.com/rook/rook/issues/12435

    Signed-off-by: Sudharsan Omprakash <sudharsan.omprakash@yahoo.com>

(cherry picked from commit 2547372527)
2023-06-29 15:47:11 +00:00
Marcel Lautenbach ab66e24320 docs: replace deprecated ingress.class annotation
Documentation and examples used a deprecated annotation to set the Ingress class name. This commit replaces it with the correct version using spec.ingressClassName .

Signed-off-by: Marcel Lautenbach <mlautenb@gmail.com>
(cherry picked from commit 9d335ad814)
2023-06-29 14:39:20 +00:00
Travis Nielsen b5382ccc71 Merge pull request #12447 from rook/mergify/bp/release-1.11/pr-12417
external: make import script idempotent (backport #12417)
2023-06-28 16:30:54 -06:00
parth-gr 4dd900cf35 external: make import script idempotent
import script may be need a re-run if other
resources need to be configured
for ex: if rbd is configured and later on point
someone want to also configure rgw, it will have
a choice

Closes: https://github.com/rook/rook/issues/12412

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 483c432b26)
2023-06-28 20:31:52 +00:00
Travis Nielsen 48c2f842b6 Merge pull request #12444 from rook/mergify/bp/release-1.11/pr-12430
exporter: Ignore failed deletion of service monitor (backport #12430)
2023-06-28 14:27:01 -06:00
travisn 2f96fcd504 ci: add exporter to commit prefixes
Add the exporter to the list of commit prefixes

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 96ff80f8b0)
2023-06-28 14:20:42 +00:00
travisn feb0a80c74 exporter: ignore failed deletion of service monitor
If the ceph version does not suppport the exporter, the operator
will attempt to delete the service monitor related to the exporter
to ensure it does not exist for a node. If the expected rbac does
not exist, this will cause unnecessary errors since there would anyway
be no service monitor to delete. So we ignore the error of deleting
the service monitor for the exporter.

The context is also passed to the exporter so a new kubeconfig does
not need to be initiated and cause unnecessary logging about
invalid options for the config.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 417f05311f)
2023-06-28 14:20:41 +00:00