Commit Graph
8599 Commits
Author SHA1 Message Date
mergify[bot] fd13e4ac39 Merge pull request #10262 from rook/mergify/bp/release-1.9/pr-10232
rgw: support FQDN for RGW endpoint (backport #10232)
2022-05-12 18:30:20 +00:00
mergify[bot] 71570f5871 Merge pull request #10261 from rook/mergify/bp/release-1.9/pr-10246
osd: exit immediately if pvc block has not changed (backport #10246)
2022-05-12 18:22:11 +00:00
mergify[bot] efaee7da68 Merge pull request #10260 from rook/mergify/bp/release-1.9/pr-10161
operator: set 'rook-version' in mon k/v store (backport #10161)
2022-05-12 18:13:55 +00:00
parth-gr d641bbb867 rgw: support FQDN for RGW endpoint
Now rgw can be pass by FQDN too,
to avoid problems where it is required
The format should be similar to
Ip(<IP>:<PORT> format), <FQDN>:<PORT> format

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 624400ff93)
2022-05-12 17:52:31 +00:00
Sébastien Han 8b4d6c6709 osd: exit immediately if pvc block has not changed
We don't need to run any `cp` command since a destination path already
exists. Using `--no-clobber` is not needed and it results in a noop
anyways.
Instead, let's print the reason why we exit the container.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 4234216db8)
2022-05-12 17:52:19 +00:00
Travis Nielsen b948123b12 Merge pull request #10255 from rook/mergify/bp/release-1.9/pr-10253
csi: add the option to disable hostNetwork (backport #10253)
2022-05-12 11:48:42 -06:00
mergify[bot] 2eeeba8616 Merge pull request #10258 from rook/mergify/bp/release-1.9/pr-10242
docs: update tolerations name from controlplane to control-plane (backport #10242)
2022-05-12 17:04:02 +00:00
mergify[bot] 70823bfac6 Merge pull request #10257 from rook/mergify/bp/release-1.9/pr-10250
osd: Allow the osd to take a long time to start (backport #10250)
2022-05-12 16:55:21 +00:00
Blaine Gardner 53330e4934 operator: set 'rook-version' in mon k/v store
Ceph upstream telemetry (which Rook users could optionally enable via
Ceph CLI or Dashboard) does not easily identify if a cluster is managed
by Rook. Identifying Rook clusters is possible only if users also enable
the rook mgr module, which is optional and not often used.

To get better upstream insights into Ceph clusters managed by Rook, set
a new 'rook-version' field in Ceph's generic k/v store. This field can
be used to determine if a cluster is managed by Rook by its presence.
It additionally provides information about the Rook version used to
manage the cluster, which is another piece of potentially useful
information.

Regarding Ceph cluster identification via telemetry:
Ceph telemetry is anonymous and uses a different ID from the Ceph
cluster ID. Identifying the Rook version in telemetry does not add
directly identifying information. Therefore, there should be little
risk that adding the Rook version field will decrease anonymity of Ceph
clusters via telemetry.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 94b622c302)
2022-05-12 16:49:33 +00:00
Sean Johnson efffc9d5df docs: update tolerations name from controlplane to control-plane
Signed-off-by: ttyS0 <sean@skj.dev>
(cherry picked from commit 30667157ab)
2022-05-12 16:31:23 +00:00
Travis Nielsen 07e42b789e osd: allow the osd to take a long time to start
The startup probe for the OSD has been too aggressive to kill the OSD
in case the OSD is taking some time to start. The OSD may be self-optimizing,
scrubbing, or some other internal operation before it is ready to start.
Rather than disable the startup probe completely, the default is now
to retry for two hours in case the OSD is performing those operations.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 28e721d877)
2022-05-12 16:25:30 +00:00
Yuval Manor ea428d8402 csi: add the option to disable hostNetwork
currently, it is not possible to disable hostNetwork. This pr fix this issue.

Signed-off-by: Yuval Manor <yuvalman958@gmail.com>
(cherry picked from commit 504e78a5ba)
2022-05-12 16:24:27 +00:00
mergify[bot] c12571745d Merge pull request #10205 from rook/mergify/bp/release-1.9/pr-10172
mon: quorumStatus.MonMap.Mons changed to quorumStatus.Quorum (backport #10172)
2022-05-12 14:19:35 +00:00
mergify[bot] 309ab513d8 Merge pull request #10221 from rook/mergify/bp/release-1.9/pr-10217
docs: Add prometheus doc link to pick up rook service monitor (backport #10217)
2022-05-12 14:15:23 +00:00
mergify[bot] 1253f1efdf Merge pull request #10248 from rook/mergify/bp/release-1.9/pr-10244
build: add psp for missing roles (backport #10244)
2022-05-11 18:28:23 +00:00
Yuichiro Ueno afa94d0b2d build: add psp for missing roles
This commit adds psp RoleBindings to rook-ceph-rgw role and
rook-ceph-purge-osd role. Without this commit, I cannot perform
rook-ceph-purge-osd job on PSP-enabled cluster.

Signed-off-by: Yuichiro Ueno <ueno@preferred.jp>
(cherry picked from commit 1ccc185a79)
2022-05-11 17:56:14 +00:00
mergify[bot] a58d1a8c26 Merge pull request #10241 from rook/mergify/bp/release-1.9/pr-10226
webhook: update the check-in cluster spec validation (backport #10226)
2022-05-10 14:43:26 +00:00
subhamkrai e582035c88 webhook: update the check-in cluster spec validation
we should iterate older clusters spec instead of
new cluster spec since in case of new storageClassdeviceset
added in spec. The total count of the new clusters and older
spec cluster is will not be the same and we'll get panic.

Closes: https://github.com/rook/rook/issues/10222
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 0c593d5420)
2022-05-10 14:14:03 +00:00
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
Travis Nielsen b504424d86 docs: add prometheus doc link to pick up rook service monitor
If prometheus is already installed in a cluster, it may not be configured
to watch for third-party service monitors such as for Rook.
To help with this configuration, a link is added to the doc for
enabling the third-party service monitors.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 91a8011a61)
2022-05-06 13:34:30 +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
FengJiankui f9620ad594 mon: quorumStatus.MonMap.Mons changed to quorumStatus.Quorum
The path use quorum instead of monMap to determine if there is enough mon. (bug #10165).

Signed-off-by: FengJiankui <fengjiankui@inspur.com>
(cherry picked from commit d335dc59eb)
2022-05-04 15:26:23 +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