Commit Graph
9932 Commits
Author SHA1 Message Date
Travis Nielsen a8a9723920 Merge pull request #13152 from rook/mergify/bp/release-1.11/pr-13150
ci: fix mike deploy flags (backport #13150)
2023-11-03 10:51:16 -06:00
Alexander Trost 4f4536ef0c ci: fix mike deploy flags
This fixes the docs deploy issues caused by the mike 2.0.0 release that
removed/renamed some flags, see
https://github.com/jimporter/mike/releases/tag/v2.0.0

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit 4a48c14861)
2023-11-03 16:12:40 +00:00
Travis Nielsen 3bb7389765 Merge pull request #13130 from rook/mergify/bp/release-1.11/pr-13128
ci: Update helm linter to v2.6.0 (backport #13128)
2023-10-31 13:15:51 -06:00
travisn e4f6ccd47f ci: update helm linter to v2.6.0
The helm linter was failing with v2.4.0. Now to
update the version of the action to the latest
and greatest.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit dfa522d906)
2023-10-31 12:18:35 -06:00
Travis Nielsen bba7509b30 Merge pull request #13063 from rook/mergify/bp/release-1.11/pr-13057
ci: Fix docs-check ci with latest version of mkdocs (backport #13057)
2023-10-18 10:47:51 -06:00
subhamkrai ed4873404f ci: fix mkdocs deprecated imports
migrate to using mkdocs-material's material.extensions.emoji.twemoji
and material.extensions.emoji.to_svg in place of the respective
materialx.emoji.twemoji and materialx.emoji.to_svg. Also, this requires
latest version of mkdocs-material.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit b186150e1c)
2023-10-18 16:25:13 +00:00
Travis Nielsen b4b26d4a0a Merge pull request #12996 from rook/mergify/bp/release-1.11/pr-12988
docs: fixing some spelling issues (backport #12988)
2023-10-04 13:49:54 -06:00
Redouane Kachach 9698100b27 docs: fixing some spelling issues
closes: https://github.com/rook/rook/issues/12987

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit b3dd74ea20)
2023-10-04 12:48:05 -06:00
Travis Nielsen 7073a31d2c Merge pull request #12974 from rook/mergify/bp/release-1.11/pr-12971
ci: remove workaround for clean disk action (backport #12971)
2023-10-04 10:50:20 -06:00
Travis Nielsen 509ec06ee2 Merge pull request #12993 from rook/mergify/bp/release-1.11/pr-12986
ci: fixing linter error (using variable 'urllib' before assignment) (backport #12986)
2023-10-04 10:48:42 -06:00
Redouane Kachach 939770c0a9 ci: fixing linter error
Fixing linter error (using variable 'urllib' before assignment)
Adding logic to properly import urlencode depending on python version

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

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit aa59e3bb86)
2023-10-04 15:36:57 +00:00
subhamkrai dd8f52af97 ci: remove workaround for clean disk action
The issues are fixed from the clean disk action
repo and we shouldn't require any workaround. Also,
I'm not using git revert to revert the commit is earlier
clean disk action was mentioned in every CI which was
duplicate and now we have placed the action to composite yaml

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit e14f8c7710)
2023-09-29 15:58:13 +00:00
Travis Nielsen 78b29ff4db Merge pull request #12969 from rook/mergify/bp/release-1.11/pr-12965
Release 1.11: suppress  snyk warnings for MPL-2.0 (backport #12932, #12954, and #12956) (backport #12965)
2023-09-28 10:54:12 -06:00
travisn 7c1da60c61 ci: suppress mpl license from snyk
The Snyk scan was failing on a warning with the
MPL 2.0 license, which is compatible with Rook.
Now the warnings are suppressed.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit b718622919)
(cherry picked from commit e878caab41)
2023-09-28 15:49:56 +00:00
Michael Adam c8685a7a41 ci: fix the snyk policy to correctly ignore the MPL license issue
after  https://github.com/rook/rook/pull/12932 has been merged, we
continue to see MPL issues reported by the snyk CI runs:

https://github.com/rook/rook/actions/runs/6302663608/job/17110310884

This updates to the `.snyk` policy file to correctly ignore the MPL license issue
by using the  the proper snyk ID for this issue

According to the doc
https://docs.snyk.io/manage-risk/policies/the-.snyk-file,

the correct ID is `snyk:lic:npm:symbol:MPL-2.0`

The update to the file has been performed with the `snyk ignore`
command to ensure validity of the policy file.

Fixes: #12930

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 4a672c8c35)
(cherry picked from commit f4111f6286)
2023-09-28 15:49:56 +00:00
Michael Adam 95260b47b0 ci: suppress snyk MPL license warnings
Fixes: #12930

This patch introduces a  .snyk policy file that lets snyk suppress the warnings
 about  the MPL license in projects pulled in as dependencies.

Additinally, this  fixes a typo in the name of the snyk workflow
file

Signed-off-by: Michael Adam <obnox@samba.org>
Co-authored-by: Travis Nielsen <tnielsen@redhat.com>
Co-authored-by: Blaine Gardner <b.blaine.gardner@gmail.com>
(cherry picked from commit d3bc9aafee)
(cherry picked from commit 464e99a258)
2023-09-28 15:49:55 +00:00
Travis Nielsen abfa14b304 Merge pull request #12967 from rook/mergify/bp/release-1.11/pr-12959
ci: fix github action free disk space  (backport #12959)
2023-09-28 09:44:28 -06:00
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