Commit Graph
8579 Commits
Author SHA1 Message Date
subhamkrai 5b822cc280 ci: add webhook to commitlint title
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 99420ad779)
2022-05-10 14:14:03 +00:00
Satoru Takeuchi 131e2a3381 Merge pull request #10236 from rook/mergify/bp/release-1.9/pr-10230
core: append filesystem property on disk (backport #10230)
2022-05-10 11:33:14 +09:00
Sébastien Han 891a56e752 core: add mountpoint detection to the prepare pod
Amount various filters let's add a mountpoint property and skip the
device if its filesystem is mounted.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 8328ec6d31)
2022-05-10 00:07:58 +00:00
Sébastien Han c2f7e85126 core: add more debug info to the prepare pod
When running the device property commands, let's also log their results
for better debugging/visibility.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 77b2e10c14)
2022-05-10 00:07:58 +00:00
Sébastien Han b75364f19e core: append filesystem property on disk
When detecting the device property the filesystem was not passed but
used later to validate if the device should be taken or not. Now we read
the filesystem info from "lsblk" and populate it in the device type.

Closes: https://github.com/rook/rook/issues/9470
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 8c1bf0f3f0)
2022-05-10 00:07:58 +00:00
mergify[bot] 1c9f760cd3 Merge pull request #10229 from rook/mergify/bp/release-1.9/pr-10212
osd: fix disk uuid management (backport #10212)
2022-05-09 11:07:00 +00:00
Satoru Takeuchi 573b4dfe62 osd: fix disk uuid management
- disk UUID should only be got for "disk" type device.
- It's not necessary to fail prepare job when failing to get disk UUID
- We should consider that `sgdisk` reports UUID even if there is no GPT.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 4c46dd1abd)
2022-05-09 10:05:38 +00:00
mergify[bot] 600e5363f7 Merge pull request #10218 from rook/mergify/bp/release-1.9/pr-9931
test: add canary integration tests for osd on device (backport #9931)
2022-05-06 07:52:04 +00:00
Satoru Takeuchi c42e8b537f test: add canary integration tests for osd on device
OSD on PVC is tested in many patterns but OSD on device is not.
It's preferable to add the following patterns for OSD on device.

- An OSD on a raw disk
- Two OSDs on a device

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 805163e2e2)
2022-05-05 20:26:37 +00:00
Satoru Takeuchi 78da35410d test: avoid to create a corrupted GPT headers
The following steps in CI scripts create corrupted GPT headers.

```console
$ sudo sgdisk --zap-all --clear --mbrtogpt -g -- "$DISK"
$ sudo dd if=/dev/zero of="$DISK" bs=1M count=10
```

It results in the failure of the succeeding `sgdisk --print "$DISK".

Here is an example.

```console
$ sudo parted /dev/sdb mklabel msdos
...
$ sudo sgdisk --zap-all --clear --mbrtogpt -g -- /dev/sdb
...
$ sudo dd if=/dev/zero of=/dev/sdb bs=1M count=10
...
$ sudo sgdisk --print /dev/sdb
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!

Warning: Invalid CRC on main header data; loaded backup partition table.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: ERROR
Backup header: OK
Main partition table: OK
Backup partition table: OK

Invalid partition data!
$ echo $?
2
```

We can safely use the simple `sgdisk --zap-all "$DEVICE"` here.
It's not necessary to convert "mbr" to "gpt" because we'll make new GPT
labels just after this command.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit ab38c10c2d)
2022-05-05 20:26:36 +00:00
mergify[bot] ba4a2f4a77 Merge pull request #10206 from rook/mergify/bp/release-1.9/pr-10187
tweak rook-ceph-cluster dashboard values comments and fix indentation in commitlintrc config (backport #10187)
2022-05-05 07:31:21 +00:00
Alexander Trost 373c3ed37a ci: fix indentation in .commitlintrc.json
Fixes the tab/space indentation in .commitlintrc.json to be the same on
all lines.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit e418f91ed8)
2022-05-04 16:47:37 +00:00
Alexander Trost 026a74fbce helm: update rook-ceph-cluster dashboard values comments
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit 10f6d8449d)
2022-05-04 16:47:37 +00:00
mergify[bot] 2b6e6d6d9e Merge pull request #10200 from rook/mergify/bp/release-1.9/pr-10191
osd: close the encrypted disk after cleanup is done (backport #10191)
2022-05-04 10:10:26 +00:00
Sébastien Han e1e89d5df2 osd: close the encrypted disk after cleanup is done
Once we are done cleaning up the content of the encrypted osd, let's
close the main LUKS device.
This avoids having dm devices on the system after the cleanup.

Closes: https://github.com/rook/rook/issues/10181
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 6ef491d9fc)
2022-05-04 09:13:45 +02:00
mergify[bot] 7749f5e762 Merge pull request #10201 from rook/mergify/bp/release-1.9/pr-10199
operator: Increase memory limit of operator (backport #10199)
2022-05-03 16:29:57 +00:00
Travis Nielsen 529869c286 operator: increase memory limit of operator
The operator is very bursty and when starting up may need more memory
to reconcile all the CRs initially before it calms down.
The default of 256Mi was not sufficient for many clusters, so now
we bump up the limit to 512Mi.

This is a follow-up from the same change to the helm chart in
https://github.com/rook/rook/pull/10195.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 60b72b6d48)
2022-05-03 15:59:07 +00:00
mergify[bot] 827abfa913 Merge pull request #10197 from rook/mergify/bp/release-1.9/pr-10195
helm: Increase memory limit of operator (backport #10195)
2022-05-03 07:52:16 +00:00
Travis Nielsen 83b66b4155 helm: increase memory limit of operator
The operator is very bursty and when starting up may need more memory
to reconcile all the CRs initially before it calms down.
The default of 256Mi was not sufficient for many clusters, so now
we bump up the limit to 512Mi.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 8571db0c7f)
2022-05-02 18:41:11 +00:00
Travis Nielsen a32bc2d8f7 Merge pull request #10186 from travisn/release-1.9.2
build: Update release version to v1.9.2
v1.9.2
2022-04-28 12:58:06 -06:00
Travis Nielsen d75a6e769f build: update release version to v1.9.2
For the patch release we update the example manifests and docs
to v1.9.2

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-28 12:04:36 -06:00
mergify[bot] 5b82860d0c Merge pull request #10179 from rook/mergify/bp/release-1.9/pr-10137
rgw: fix dashboard admin creation for multiple object stores (backport #10137)
2022-04-28 17:55:54 +00:00
mergify[bot] 2be08bb047 Merge pull request #10185 from rook/mergify/bp/release-1.9/pr-9936
helm: add ingress annotations for ssl (backport #9936)
2022-04-28 16:23:01 +00:00
mergify[bot] 56ae31e64e Merge pull request #10184 from rook/mergify/bp/release-1.9/pr-10183
build: fix csi nfs rbac csv generation (backport #10183)
2022-04-28 15:21:00 +00:00
Erik Galajda 8c48916ee5 helm: add ingress annotations for ssl
Currently annotations are not set on the ingress resource

Signed-off-by: Erik Galajda <erik.galajda.sk@gmail.com>
(cherry picked from commit c422d40247)
2022-04-28 15:19:38 +00:00
Rakshith R 209617b18d build: fix csi nfs rbac csv generation
Added hack in generate-rook-csv for proper
generation of csi nfs rbac in csv.
Added placeholder clusterrole and binding for
nfs nodeplugin sa, since operator-sdk
does not include sa without rules.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit d0b67af23b)
2022-04-28 14:53:29 +00:00
Alexander Trost cf139d2fc8 rgw: fix dashboard admin creation for multiple object stores
Check the radosgw-admin realm user list per object store instead of relying
on the ceph dashboard get-rgw-api- command.

Resolves #9099

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit 5d03061d47)
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-04-27 20:08:26 +02:00
mergify[bot] 4fe80d39b2 Merge pull request #10175 from rook/mergify/bp/release-1.9/pr-9925
core: fix csi-cephfsplugin pod restart on non-hostnetworking env (backport #9925)
2022-04-27 10:40:56 +00:00
mergify[bot] c53564c3fb Merge pull request #10176 from rook/mergify/bp/release-1.9/pr-10173
ci: wait for cert while deploying vault (backport #10173)
2022-04-27 10:16:42 +00:00
subhamkrai 4522e11912 ci: wait for cert while deploying vault
sometimes, it take few seconds to fill certificate
after certificate approval. So, let's wait for few seconds.

Closes: https://github.com/rook/rook/issues/10158
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 86b3d466f6)
2022-04-27 09:51:12 +00:00
Sébastien Han 7503d1a558 core: fix csi-cephfsplugin pod restart on non-hostnetworking env
Implementation of the design proposed in
https://github.com/rook/rook/pull/9903.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 73b1347675)
2022-04-27 09:42:39 +00:00
Sébastien Han ac4ac3b487 ci: collect secrets and cms in the logs
The CI runs will now collect all the secrets and configmaps available.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 79dbb35302)
2022-04-27 09:42:39 +00:00
Sébastien Han 4079a66a8d core: move clusterInfo code to the controller package
The CSI package needs to load clusterInfo, today this code is in the mon
package which makes the call of LoadClusterInfo impossible without
having a circular import.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 583791c45c)
2022-04-27 09:42:39 +00:00
mergify[bot] d8667aca09 Merge pull request #10170 from rook/mergify/bp/release-1.9/pr-10125
build: update go-ceph version and remove ceph_preview (backport #10125)
2022-04-27 00:04:35 +00:00
Jiffin Tony Thottan 6edbd1bcb8 object: allocate keys for user after the creation
The access/secrets keys for the user struct need to allocate only if
ceph user creation succeeds.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 60da73a786)
2022-04-26 22:06:04 +00:00
subhamkrai c58c9ee356 build: update go-ceph version and remove ceph_preview
updating go ceph version to 0.15.0 will no longer require
`ceph_preview` during build. Also if added in VsCode workspace
we can remove that now.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 6de3e3d48d)
2022-04-26 22:06:04 +00:00
mergify[bot] 9c74e9bb30 Merge pull request #10168 from rook/mergify/bp/release-1.9/pr-10123
build: Update min version to k8s 1.17 (backport #10123)
2022-04-26 19:29:54 +00:00
Travis Nielsen e4cc14f70d build: update min version to k8s 1.17
Support is removed for k8s for various limitations such as
priority classes not working and csi driver feature
incompleteness and missing snapshots. Documentation is updated
with the new min version of k8s 1.17 and also the tests are
updated to run on the min version of 1.17.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit d26b6cf403)
2022-04-26 13:02:34 -06:00
mergify[bot] ebf2b6b250 Merge pull request #10159 from rook/mergify/bp/release-1.9/pr-10156
ci: use stringData instead of data for secret (backport #10156)
2022-04-25 16:46:21 +00:00
Sébastien Han f47115710d ci: use stringData instead of data for secret
The "data" field only accepts base64 strings and our env var is not. So
let's use stringData to prevent an error from the API server:

```
"v1" cannot be handled as a Secret: illegal base64 data at input byte 29
```

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit edfd120d6a)
2022-04-25 16:17:30 +00:00
mergify[bot] 89f8f1882d Merge pull request #10155 from rook/mergify/bp/release-1.9/pr-10139
core: RGW realm pull spec is optional (backport #10139)
2022-04-25 14:17:56 +00:00
mergify[bot] aba4ad8244 Merge pull request #10151 from rook/mergify/bp/release-1.9/pr-10150
csi: update cephcsi to v3.6.1 release (backport #10150)
2022-04-25 13:56:49 +00:00
Travis Nielsen 07ea7139eb core: rgw realm pull spec is optional
The endpoint on the rgw realm pull spec is causing a failure
if not specified even when it is not expected to be
required. Now the endpoint has the json property to be
ommitted if not specified.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7f709776b5)
2022-04-25 13:49:58 +00:00
Sébastien Han fbca65c738 csi: update cephcsi to v3.6.1 release
A new Ceph-CSI release is out so let's use it.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 1093b0a166)
2022-04-25 09:05:38 +00:00
mergify[bot] c2083af215 Merge pull request #10128 from rook/mergify/bp/release-1.9/pr-10127
build: add support for go 1.18 (backport #10127)
2022-04-25 08:25:52 +00:00
mergify[bot] 0d7b63d6a7 Merge pull request #10138 from rook/mergify/bp/release-1.9/pr-10124
csi: move setting csi param to setParams (backport #10124)
2022-04-24 12:12:47 +00:00
mergify[bot] 6b29dff4a0 Merge pull request #10146 from rook/mergify/bp/release-1.9/pr-10132
helm: ingressClassName should be available for networking.k8s.io/v1 (backport #10132)
2022-04-22 23:26:07 +00:00
Casper Biering 8be7141f69 helm: ingressClassName should be available for networking.k8s.io/v1
Allow defining ingressClassName on K8S clusters v1.20+ that uses networking.k8s.io/v1

Signed-off-by: Casper Biering <casper@biering.dk>
(cherry picked from commit 9aa16ac587)
2022-04-22 22:59:32 +00:00
mergify[bot] 24d31c49a0 Merge pull request #10144 from rook/mergify/bp/release-1.9/pr-10135
csi: add/remove mon IP from csi config (backport #10135)
2022-04-22 18:25:52 +00:00
Madhu Rajanna 2a3a90c34f csi: add/remove mon IP from csi config
If a mon is added or removed in a ceph
cluster all the CSI clusterID's belongs
to the ceph cluster should also gets updated.

Added a new cluster identifier to the csi configmap,
i.e ceph clusterNamespace which helps to identify
the clusterID's belongs to that ceph cluster.

Note:- to support the upgraded clusters,we
can ask users to update the mon IP's for the
problamatic clusterID as it wont be updated
by the operator.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 8ab17e3b83)
2022-04-22 17:57:11 +00:00