Commit Graph
8889 Commits
Author SHA1 Message Date
mergify[bot] 2c8dbaed30 Merge pull request #11002 from rook/mergify/bp/release-1.9/pr-10991
build: Fix intermittent gen-rbac failure (backport #10991)
2022-09-15 20:35:19 +00:00
mergify[bot] 1b0ff1cab1 Merge pull request #11000 from rook/mergify/bp/release-1.9/pr-10990
ci: add mon_data_avail_warn to canary ci test (backport #10990)
2022-09-15 20:28:03 +00:00
Travis Nielsen 41922e38bf build: fix intermittent gen-rbac failure
The crds generation for the helm crds is intermittently hitting a build
error due to multiple builds generating the crds at the same time.
We avoid this race condition by first writing the crds to a temp file
then move the file to the helm crd resources file.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7863d3161c)
2022-09-15 16:14:09 +00:00
parth-gr a7ba7020ec ci: add mon_data_avail_warn to canary ci test
ceph cluster on ci mostly have health error
mon disk low on size,
so overriding the min aval capacity to 0 from 30% default so this
error can be removed

Closes: rook#10971

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit df8493d77b)
2022-09-15 16:10:13 +00:00
Satoru Takeuchi 326be2f07a Merge pull request #10996 from rook/mergify/bp/release-1.9/pr-10992
docs: add logical volume to storage options (backport #10992)
2022-09-15 23:26:16 +09:00
Satoru Takeuchi 0cabc1c295 docs: add logical volume to storage options
Rook supports osd on logical volume in host-based clusters. Let's add it
to the list of valid device types.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit b52e6a0da8)
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-09-15 14:16:20 +00:00
Satoru Takeuchi 5c3b9d9a1f Merge pull request #10998 from rook/mergify/bp/release-1.9/pr-10951
docs: Clarify storage prereqs in quickstart guide (backport #10951)
2022-09-15 22:20:29 +09:00
Travis Nielsen 7bf96fd39f docs: clarify storage prereqs in quickstart guide
The quickstart guide prerequisites have diverged from the storage
requirements on the prereqs doc page, now they are in sync again.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit d5f100def1)
2022-09-15 13:16:09 +00:00
Travis Nielsen cecbbfdecd Merge pull request #10981 from rook/mergify/bp/release-1.9/pr-10968
osd: disallow to create encrypted osd on partition (backport #10968)
2022-09-13 14:10:29 -06:00
mergify[bot] 12e08f9087 Merge pull request #10978 from rook/mergify/bp/release-1.9/pr-10969
ci:  disallow to create encrypted osd on lv and osd on lv with metadata device (backport #10969)
2022-09-13 20:04:40 +00:00
Satoru Takeuchi 176c2cb0fa osd: disallow to create encrypted osd on partition
Rook doesn't support encrypted osd on partition. So we should
skip partitions as candidates of the new encrypted osds.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 591fc5f68b)
2022-09-13 19:27:16 +00:00
mergify[bot] 6177720355 Merge pull request #10976 from rook/mergify/bp/release-1.9/pr-10700
monitoring: fix pool growth warning grouping (backport #10700)
2022-09-13 18:01:16 +00:00
Satoru Takeuchi eabb8dad50 ci: disallow to create osd on lv with metadata by accident
OSD on LV with metadata device is not supported. So we once we made
a fix to disallow this configuration. However, it's insuffucient
because we forgot to reset `matched` flag.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 39cc6059f1)
2022-09-13 17:36:47 +00:00
Satoru Takeuchi 06498701e3 ci: disallow to create encrypted osd on lv
Rook doesn't support encrypted OSD on LV. Without disallowing
this configuration, ceph-volume results in failure.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 7969450589)
2022-09-13 17:36:47 +00:00
Jamison Lofthouse 318f4c535b monitoring: fix pool growth warning grouping
Predict linear will continue to predict on exporter data from old pods.
We can take the max value for every hour in the 2 day window before we
linearly predict to get the most conservative estimate. This will only
affect the hour in which a new mgr pod is started.

Fixes #10691

Signed-off-by: Jamison Lofthouse <jamison.lofthouse@gmail.com>
(cherry picked from commit f553034351)
2022-09-13 17:32:19 +00:00
Travis Nielsen d284155647 Merge pull request #10959 from rook/mergify/bp/release-1.9/pr-10931
external: do not add info=read cap if ceph version doesn't support it (backport #10931)
2022-09-13 08:25:46 -06:00
parth-gr 32e4160971 external: do not add info=read cap if ceph version doesn't support it
The rgw ip validation feature was needing to update the rgw user
cap to add info=read permission, but this permission is only backported
till ceph pacific, so we added a check that only add this cap
when ceph version support it,
But this cap was also adding with the other caps, so removed it from there
Now it will only add this cap if ceph version support it

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 54425803b6)
2022-09-12 21:16:28 +00:00
Travis Nielsen fd5e0d57e5 Merge pull request #10876 from subhamkrai/mergify/bp/release-1.9/pr-10699
ci: ubuntu 18.04 is deprecated upgrade to ubuntu 22.04
2022-09-08 11:56:42 -06:00
mergify[bot] 2dad6e5869 Merge pull request #10940 from rook/mergify/bp/release-1.9/pr-10871
docs: Update the latest-release docs to 1.10 (backport #10871)
2022-09-08 17:30:04 +00:00
Travis Nielsen af41e4b32c docs: update the latest-release docs to 1.10
With the v1.10.0 release out, the latest-release docs need
to point to the 1.10 release. With each release we will
update to the next release branch when we have shipped.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit c4304e4b92)
2022-09-08 17:05:24 +00:00
Travis Nielsen e1495985fd Merge pull request #10920 from rook/mergify/bp/release-1.9/pr-10776
operator: improve ProbeHandler error message (backport #10776)
2022-09-07 15:30:57 -06:00
mergify[bot] 2e1514a048 Merge pull request #10922 from rook/mergify/bp/release-1.9/pr-10908
ci: improve the log on intermittent build failure (backport #10908)
2022-09-07 20:17:57 +00:00
Satoru Takeuchi ef1db292fd ci: improve the log on intermittent build failure
The build process sometimes fails with intermittent problems. Some of them
are known problems and then we retry build process. However, there still
are unknown problems. In this case, it's hard to find the reason because
the build process exits immediately.

ref.
https://github.com/rook/rook/runs/8225144002?check_suite_focus=true#step:3:926

```
+ case "$o" in
+ exit 1
Error: Process completed with exit code 1.
```

To make debugging easier, let's print the output of `make`. This log won't be
too long since `make` prints most messages to stderr.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 47f7aefa20)
2022-09-07 19:18:08 +00:00
motorailgun 43cdbeb99f operator: improve ProbeHandler error message
This commit implements more diagnostic error for unsccessful
Liveness- and Readiness-Probe of Pods.

Added codes are expected to catch failures of
`ceph status` and `ceph mon_status`, and report it.

Closes: https://github.com/rook/rook/issues/9846
Closes: https://github.com/rook/rook/issues/9852

Signed-off-by: motorailgun <motoi_public@mail.aria-on-the-planet.es>
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit ff0951738f)
2022-09-07 17:50:40 +00:00
mergify[bot] b61a217452 Merge pull request #10916 from rook/mergify/bp/release-1.9/pr-10904
helm: set OBC storageclass name to right namespace (backport #10904)
2022-09-07 16:32:51 +00:00
mergify[bot] 077bd820cf Merge pull request #10918 from rook/mergify/bp/release-1.9/pr-10906
csi: remove findCSIChange from predicate (backport #10906)
2022-09-07 15:43:01 +00:00
Madhu Rajanna 454c09b4a9 csi: remove findCSIChange from predicate
findCSIChange will work only for single
line values/configration in the configmap,
If the value is multiline the regex will not
be able to indentify the change because of this
one no configurations will be applied to the
csi driver. Removing this check so that if there
is any update on the configmap we will
reconcile the csi driver.

Note:- This might looks heavy but updating of config
map is not a frequent event.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 5b843a17a1)
2022-09-07 15:11:50 +00:00
Blaine Gardner c8820d551c helm: set OBC storageclass name to right namespace
OBC storageclasses should have their names based on the cluster
namespace and not the operator namespace. Fix the chart to reflect this.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 5f00d291c9)
2022-09-07 14:28:29 +00:00
subhamkrai 09a2f5a117 ci: fix golangci-lint
Signed-off-by: subhamkrai <srai@redhat.com>
2022-09-05 12:23:53 +05:30
mergify[bot] 5c8bf14bab Merge pull request #10885 from rook/mergify/bp/release-1.9/pr-10858
osd: refactor code (backport #10858)
2022-09-02 21:57:42 +00:00
Satoru Takeuchi 33e52648c2 osd: refactor code
Simplify osd management code.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 00b3d0f323)
2022-09-02 21:26:01 +00:00
mergify[bot] 24f6fdf67d Merge pull request #10883 from rook/mergify/bp/release-1.9/pr-10882
test: Wait for resource deletion during helm uninstall (backport #10882)
2022-09-02 16:46:34 +00:00
mergify[bot] 8ebe356396 Merge pull request #10879 from rook/mergify/bp/release-1.9/pr-10875
csi: fix holder pod creation in openshift multus cluster (backport #10875)
2022-09-02 16:16:59 +00:00
Travis Nielsen 7e46a796f8 test: wait for resource deletion during helm uninstall
The helm integration test was immediately removing both the cluster
and the operator charts, without waiting for any resource deletion
between the deletions. This causes intermittent failures in the
test since the cluster CR and mon secret and configmap to never
be deleted because the operator will be stopped before their
finalizers can be removed. Now we wait for their finalizers
to be removed before removing the operator chart.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 5c478e5e04)
2022-09-02 16:16:45 +00:00
Madhu Rajanna 8b6c26599e csi: add missing serviceAccoutName to holder
Add missing serviceAccountName for the holder
daemonset to create the pods with required
access.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 32943b64e3)
2022-09-02 14:13:57 +00:00
Madhu Rajanna fcefa30355 csi: set daemonset set name as template name
Currently daemonset template.metadata.name is
empty and the way we are setting is not correct
use the daemonset name as the template.metadata.name

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 2dae7f6778)
2022-09-02 14:13:57 +00:00
subhamkrai 17d54a78cd ci: update minikube setup action to 2.7.0
update minikube setup action to v2.7.0 for lastest
k8s version and for older k8s version still use v2.6.1

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit e825166075)
Signed-off-by: subhamkrai <srai@redhat.com>
2022-09-02 13:38:21 +05:30
subhamkrai 9bd83a0fab ci: ubuntu 18.04 is deprecated upgrade to ubuntu 22.04
Signed-off-by: subhamkrai <srai@redhat.com>
2022-09-02 12:33:01 +05:30
subhamkrai e72e7e07ef ci: add right indentation for ci yaml and sh files
these indenation where added by vscode extentions.
for yaml I have extention ` YAML` by Red Hat
for bash I have `shell-format` and `shellCheck`.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-09-02 12:21:07 +05:30
mergify[bot] 3d7cad205e Merge pull request #10866 from rook/mergify/bp/release-1.9/pr-10855
osd: disallow to create osd on lv with metadata device (backport #10855)
2022-09-01 18:07:50 +00:00
mergify[bot] bb996ae578 Merge pull request #10864 from rook/mergify/bp/release-1.9/pr-10857
ci: ignore body-max-line-length (backport #10857)
2022-09-01 15:54:44 +00:00
Satoru Takeuchi 8f8da98427 osd: disallow to create osd on lv with metadata device
OSD on logical volume is raw mode. This mode can'set metadata device.
We should not mark a logical volume as available in this case.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 8b513a4a74)
2022-09-01 15:31:19 +00:00
Satoru Takeuchi e11b300fa4 ci: ignore body-max-line-length
We don't care the line length of commit message.

ref.
https://github.com/rook/rook/pull/10445

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 2f66e7d15b)
2022-09-01 15:26:54 +00:00
Travis Nielsen 834e7cbf90 Merge pull request #10845 from rook/mergify/bp/release-1.9/pr-10804
object: gateway.port partially ignored when hostNetwork disabled (backport #10804)
2022-08-31 10:32:14 -06:00
zhucan 01576e5db4 object: gateway.port partially ignored when hostNetwork disabled
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
(cherry picked from commit b94f080548)
2022-08-31 15:27:21 +00:00
mergify[bot] 24153849dd Merge pull request #10838 from rook/mergify/bp/release-1.9/pr-10779
osd: fix osd detection logic for old lsblk (backport #10779)
2022-08-31 06:33:23 +00:00
taki-d b7ca5457bb osd: fix osd detection logic for old lsblk
Old lsblk can't detect bluestore signature.
So read the head of device and verify signature
as a workaround.

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

Signed-off-by: taki-d <mail@orangepla.net>
(cherry picked from commit ca73efa1e5)
2022-08-31 05:44:44 +00:00
mergify[bot] e4ab0b6dcc Merge pull request #10831 from rook/mergify/bp/release-1.9/pr-10821
rbdmirror: Rotate all rbd mirroring logs (backport #10821)
2022-08-30 15:50:33 +00:00
Travis Nielsen c2fc2425e7 rbdmirror: rotate logs for rbd mirroring
The rbd mirror daemon logs to two files, one for the
lodal mirror daemon and one log from the other cluster
where the mirroring is taking place. The log rotation
was only rotating one of the logs. Now we make the
log rotation more general to catch all of the rbd mirror
logs from different clusters.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 055c22f4c4)
2022-08-30 15:18:03 +00:00
Travis Nielsen 154e19f0d7 Merge pull request #10793 from rook/mergify/bp/release-1.9/pr-10768
docs: add krew plugin to the troubleshooting docs (backport #10768)
2022-08-30 07:58:14 -06:00