Commit Graph
10145 Commits
Author SHA1 Message Date
subhamkrai b4e94f75cd ci: fix golangCI lint remove k8s.io/utils/pointer
golangci linter was throughing error `k8s.io/utils/pointer`
package is deprecated. So, I have removed that.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit a25071ac29)
2023-08-16 17:12:02 +00:00
subhamkrai 00b941be28 build: update vault and other indirect imports
update vault and other indirect imports. Also,
updating k8s package to `v0.28.0-rc.0` since with
v0.27.4 it was through build error.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit ab3763767f)
2023-08-16 17:12:01 +00:00
Travis Nielsen 0d11f5a906 Merge pull request #12729 from rook/mergify/bp/release-1.12/pr-12643
ci: Disable tmate for build actions (backport #12643)
2023-08-15 15:45:31 -06:00
travisn d4215f25b0 ci: disable tmate for build actions
The build and release actions will rarely ever need to be
debugged. To make them more efficient and reduce their
runtime, we remove the tmate action so it won't add 10
unnecessary minutes to the end of the action.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 90a95ce57d)
2023-08-15 21:07:35 +00:00
Travis Nielsen 86f26fa119 Merge pull request #12728 from travisn/release-1.12.2
build: Update patch version to v1.12.2
v1.12.2
2023-08-15 14:10:18 -06:00
travisn e81bc1b5b6 build: update patch version to v1.12.2
For the patch release the examples and the docs are updated
to v1.12.2.

Signed-off-by: travisn <tnielsen@redhat.com>
2023-08-15 13:18:48 -06:00
Travis Nielsen 3de55e23f5 Merge pull request #12727 from rook/mergify/bp/release-1.12/pr-12725
file: ignore exit code 22 when addding datapool (backport #12725)
2023-08-15 13:14:45 -06:00
Madhu Rajanna 9260f4fe9f file: ignore exit code 22 when adding datapool
Ignore the exit code 22 when adding the
datapool to a filesystem.

updates: #12673

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit bd9b42d221)
2023-08-15 17:23:21 +00:00
Blaine Gardner bcd2fe8bd6 Merge pull request #12707 from rook/mergify/bp/release-1.12/pr-12698
nfs: run dbus-daemon sidecar as dbus user instead of root (backport #12698)
2023-08-11 17:41:43 -06:00
Blaine Gardner 660d43c94e Merge pull request #12705 from rook/mergify/bp/release-1.12/pr-12495
multus: Add sample job manifest for multus config validation (backport #12495)
2023-08-11 17:41:06 -06:00
Niels de Vos 6afe22a2f8 nfs: run dbus-daemon sidecar as dbus user instead of root
When the dbus-daemon in the sidecar is started as "root" user, it fails
with the following log entry:

Failed to start message bus: Failed to drop capabilities: Operation not permitted

By starting the sidecar as "dbus" user (uid=81), the executable does not
try to drop capabilities, and starts successfully.

Signed-off-by: Niels de Vos <ndevos@ibm.com>
(cherry picked from commit 320b112cc6)
2023-08-11 19:43:14 +00:00
Nikhil-Ladha afff610a06 multus: add sample job manifest for multus config validation
added a sample job manifest named `multus-validation` that
validates the multus configuration in the cluster.

Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
(cherry picked from commit 9fea9cd865)
2023-08-11 19:29:11 +00:00
Travis Nielsen a011151822 Merge pull request #12699 from rook/mergify/bp/release-1.12/pr-12659
ci: add free disk action to release/master ci (backport #12659)
2023-08-10 14:37:14 -06:00
subhamkrai f1f27ed70e ci: add free disk action to release/master ci
I missed adding the action which free some disk space
which may help with low resource issues.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 2eee0c7e1e)
2023-08-10 19:39:43 +00:00
Travis Nielsen dab1b06b00 Merge pull request #12696 from rook/mergify/bp/release-1.12/pr-12694
ci: update the objectsuite test timeout to 40m (backport #12694)
2023-08-09 12:00:39 -06:00
parth-gr 6d480aad0f ci: update the objectsuite test timeout to 40m
While running object test we need some more time
to run the cosi test completely so increasing the timeout

Also update timeout of ntegration-tests-on-release.yaml

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 8617e2e924)
2023-08-09 17:45:41 +00:00
Travis Nielsen 17ad5fb962 Merge pull request #12685 from rook/mergify/bp/release-1.12/pr-12681
csi: add mode csi pods to the list to force delete pod (backport #12681)
2023-08-09 10:24:51 -06:00
Travis Nielsen 2bdefcf80f Merge pull request #12686 from rook/mergify/bp/release-1.12/pr-12678
csi: add maxUnavailable for cephfs csi daemonset (backport #12678)
2023-08-09 10:24:27 -06:00
Travis Nielsen 95f0084bbd Merge pull request #12690 from rook/mergify/bp/release-1.12/pr-12677
ci: improve the canary toolbox operator pod check (backport #12677)
2023-08-09 10:24:09 -06:00
mergify[bot] cae026e1f2 Merge pull request #12692 from rook/mergify/bp/release-1.12/pr-12600
ci: fix testobjectsuite ci (backport #12600)
2023-08-09 16:09:08 +00:00
parth-gr eae3643ece ci: fix testobjectsuite ci
Current reason for failure
clients: "cephbuckettopic" "my-topic" exist, but ARN was not set

Added some more re-try as it might take some more time to
update the ARN in status

OBC bound status was failing and going into
race condition adding a seprate timeout
makes recover it from that state

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 715bd31a0a)
2023-08-09 15:05:56 +00:00
parth-gr f995cd1efa ci: improve the canary toolbox operator pod check
the wait command is provided by kubernetes so
instead of using manually shell hack using the wait
command

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 64d3df4fcd)
2023-08-09 14:20:47 +00:00
karthik-us cc819f00df csi: add maxUnavailable for cephfs csi daemonset
Adding maxUnavailable parameter to the cephfs csi daemonset. The
default value of maxUnavailable = 1 can make the upgrade process
slower in environments with large number of nodes.

Fixes: #12636
Signed-off-by: karthik-us <ksubrahm@redhat.com>
(cherry picked from commit 2675c976d5)
2023-08-08 17:12:41 +00:00
Madhu Rajanna bba3e43f3c 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 17:11:39 +00:00
Madhu Rajanna bec26312cc 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)
2023-08-08 17:11:38 +00:00
Travis Nielsen 927b628ed6 Merge pull request #12658 from rook/mergify/bp/release-1.12/pr-12561
mon: delete ParseMonEndpoints from mon package (backport #12561)
2023-08-04 10:54:25 -06:00
Travis Nielsen 340ddc0756 Merge pull request #12662 from rook/mergify/bp/release-1.12/pr-12605
helm: additional ServiceMonitor labels (backport #12605)
2023-08-04 10:54:09 -06:00
Travis Nielsen 27219da3ff Merge pull request #12669 from rook/mergify/bp/release-1.12/pr-12666
operator: fix formatting of some logger methods (backport #12666)
2023-08-04 10:53:56 -06:00
Travis Nielsen a41caaab2c Merge pull request #12667 from rook/mergify/bp/release-1.12/pr-12624
object: fix s5cmd for s3 endpoint verification (backport #12624)
2023-08-04 10:51:05 -06:00
Lucas Henry 9cb7a51fef 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:55 +00:00
parth-gr 0f1d90b0b6 object: fix s5cmd for s3 endpoint verification
add a new toolbox yaml manifest which will use the
rook image instead of ceph image
for running s5 cmd container needs to run with rook image

closes: https://github.com/rook/rook/issues/12227

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 8a3f058329)
2023-08-04 14:20:13 +00:00
Cyril Jouve 1e39cb650f helm: additional ServiceMonitor labels
add a value in rook-ceph chart to add additional labels to the
generated ServiceMonitor when monitoring is enabled

Signed-off-by: Cyril Jouve <jv.cyril@gmail.com>
(cherry picked from commit abd81e3c80)
2023-08-03 17:58:58 +00:00
Henry Davies 5ec9fb39b9 mon: delete ParseMonEndpoints from mon package
The function ParseMonEndpoints existed twice, once in the mon package
and once in the controller package. It has now been deleted from the
mon package. Usages in the mon package now reference the function
in the controller package.

Signed-off-by: Henry Davies <henrydavies@hotmail.co.uk>
(cherry picked from commit 2c8949e195)
2023-08-03 14:01:33 +00:00
Travis Nielsen 99ba8cd6b6 Merge pull request #12657 from rook/mergify/bp/release-1.12/pr-12656
ci: update the release test timeout to 40m (backport #12656)
2023-08-03 07:40:04 -06:00
subhamkrai 1df9dff8ce ci: update the release test timeout to 40m
recentally, upgrade tests are getting
longer than 30m to pass since reef upgrade.
So, increasing the timeout to 40m.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 07bb18feba)
2023-08-03 13:38:01 +00:00
Travis Nielsen 88a92ff77a Merge pull request #12648 from rook/mergify/bp/release-1.12/pr-12608
ci: skip mgr pod restart count upgrade 1.22.x suite (backport #12608)
2023-08-02 11:35:25 -06:00
Travis Nielsen 4e2f427df8 Merge pull request #12649 from rook/mergify/bp/release-1.12/pr-12634
ci:  fix all the canary test (backport #12634)
2023-08-02 11:35:12 -06:00
subhamkrai 1661f84179 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-02 16:16:17 +00:00
subhamkrai fa78cd72ba 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-02 16:16:16 +00:00
subhamkrai 6a3cad9a2d 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-02 16:16:16 +00:00
subhamkrai d55f8c853a ci: increase upgrade test timeout to 40m
with reef, we are now upgrading 2 ceph versions which
takes time to complete the ci.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit e139fd20be)
2023-08-02 16:03:46 +00:00
subhamkrai d29095421b ci: skip mgr pod restart count upgrade 1.22.x suite
for now, let's skip the mgr pod restart count
for upgrade suite 1.22.x to get the CI green
and so that we don't skip any other error in name
of mgr restart count.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 1bd4ab9d81)
2023-08-02 16:03:46 +00:00
Travis Nielsen 8ce4eea569 Merge pull request #12642 from travisn/release-1.12.1
build: Update release version to v1.12.1
v1.12.1
2023-08-01 15:10:09 -06:00
travisn dd0401e711 build: update release version to v1.12.1
For the patch release update the examples and docs

Signed-off-by: travisn <tnielsen@redhat.com>
2023-08-01 14:33:24 -06:00
Travis Nielsen 4ae7200669 Merge pull request #12641 from rook/mergify/bp/release-1.12/pr-12640
ci: Run object suite in master and release branches (backport #12640)
2023-08-01 12:25:04 -06:00
travisn 545568aa04 ci: run object suite in master and release branches
The object suite was being skipped in master and release
branches. Since the object suite was only running in PRs
it was not noticed if there were any issues in the master
branch or release branches. Now we run it in these branches
in addition to the PRs.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 8fd46a46d3)
2023-08-01 18:21:03 +00:00
Travis Nielsen 40b7568038 Merge pull request #12635 from rook/mergify/bp/release-1.12/pr-12615
docs: add note in upgrade guide about cephfs driver's breaking change (backport #12615)
2023-08-01 08:32:21 -06:00
Rakshith R 3d7b88f026 docs: add note in upgrade guide about cephfs driver's breaking change
CephCSI CephFS introduced a breaking change in v3.9.0.
This commit adds a note in upgrade guide regarding the same.

refer: https://github.com/ceph/ceph-csi/blob/v3.9.0/docs/ \
       ceph-csi-upgrade.md/#upgrading-cephfs

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit a2113684e4)
2023-08-01 14:16:48 +00:00
Travis Nielsen a63d8a2278 Merge pull request #12632 from rook/mergify/bp/release-1.12/pr-12631
tests: Multi cluster suite toolbox default version (backport #12631)
2023-07-31 18:32:09 -06:00
travisn e326dc7c07 tests: multi cluster suite toolbox version
The toolbox image tag was always being set from #12625
even when the image was not set in the test. If the image
is not set, skip replacing the image name to use the default
test version.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit c17724b536)
2023-07-31 23:11:48 +00:00