Commit Graph
8865 Commits
Author SHA1 Message Date
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
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
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
Travis Nielsen aad1fc4654 Merge pull request #10825 from travisn/release-1.9.10
build: Update release version to 1.9.10
v1.9.10
2022-08-29 15:37:13 -06:00
Travis Nielsen 62a848b12c build: update release version to 1.9.10
Update the docs and manifests to release version v1.9.10

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-29 15:05:09 -06:00
mergify[bot] ae111ded26 Merge pull request #10823 from rook/mergify/bp/release-1.9/pr-10822
core: Only log errors with v1beta1 cron job deletion (backport #10822)
2022-08-29 20:31:16 +00:00
Travis Nielsen 7414188afc core: only log errors with v1beta1 cron job
v1beta1 cron jobs have not been created by rook since k8s 1.21
and now are fully removed in 1.25. As long as we still support
older than 1.21 we still need to attempt to delete the v1beta1
cron jobs in case they had been created before an upgrade.
If the deletion fails, now we just log a debug statement since
it is a normal condition, and continue with the v1 cron job
creation.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 538025111a)
2022-08-29 20:00:09 +00:00
mergify[bot] 82c208d92e Merge pull request #10818 from rook/mergify/bp/release-1.9/pr-10816
build: remove psp from common.yaml generation (backport #10816)
2022-08-29 18:08:30 +00:00
Blaine Gardner cd1baf0efe build: remove psp from common.yaml generation
Due to an oversight, PSP resources were left in generation of
common.yaml from #10797. Resolve that by setting
pspEnable=false when generating common.yaml.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 6c8f2e414f)
2022-08-29 17:17:16 +00:00
Satoru Takeuchi e30204bf50 Merge pull request #10801 from rook/mergify/bp/release-1.9/pr-10797
docs: move PSPs from common.yaml to psp.yaml (backport #10797)
2022-08-28 07:45:36 +09:00
Blaine Gardner 5d33ba6a18 docs: move PSPs from common.yaml to psp.yaml
Also update docs. Use `make gen-rbac` to generate psp.yaml.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 1e9bbae583)
2022-08-26 11:24:50 -06:00
parth-gr e4752ce15a docs: add debug mode steps to troubleshooting docs
Debug mode spport is added in the krew plugin
So adding it in the docs so user can use it

Closes: https://github.com/rook/rook/issues/5709
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit f59374b7a8)
2022-08-25 15:21:39 +00:00
parth-gr 28c785c790 docs: add krew plugin to the troubleshooting docs
It's been a while we have the krew plugin capability for
troubleshooting that makes it easier but not added to rook
docs.
So adding it to rook docs and bug template

Closes: https://github.com/rook/rook/issues/10765
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 13f916df7d)
2022-08-25 15:21:38 +00:00
mergify[bot] c8409edf47 Merge pull request #10785 from rook/mergify/bp/release-1.9/pr-10717
mon: Improve mon failover reliability to better handle failure and topology (backport #10717)
2022-08-24 15:23:21 +00:00
Travis Nielsen 3212876f2c mon: improve mon failover reliability
Mon failover reliability is improved in two scenarios with these changes.
First, if the failover is aborted because of failing to start the new mon
and wait for it to join quorum, the new mon will be fully removed and
the failover rolled back. Previously, the operator would leave the new
mon pod running even if it never joined quorum. Now the timeout for the failover
is increased to wait longer for the new mon, but if it times out, there
are no leftovers from the cancelled failover.

Second, if the operator is failed in the middle of a failover
before the old mon is removed, the operator needs to remove an extra
mon. The operator was only selecting a random mon for removal instead
of honoring the stretch cluster topology or looking for mons
on the same node that could be removed to restore the correct
desired number of mons.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 72a4245fbf)
2022-08-24 14:54:59 +00:00
Travis Nielsen fad2dda15b Merge pull request #10760 from rook/mergify/bp/release-1.9/pr-10751
core: fix logrotate bash check and periodicity logic (backport #10751)
2022-08-22 22:22:02 -06:00
subhamkrai f2d15c1f62 core: fix logrotate bash check and periodicity logic
we need use `!=` for string comparision in bash instead of
`-ne`. Also, need to correct periodicity if condition to
make it work as expected.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 9d4d5bc702)
2022-08-23 03:24:37 +00:00
mergify[bot] b468db897c Merge pull request #10756 from rook/mergify/bp/release-1.9/pr-10750
object: hostNetwork setting should be under spec.gateway instead of spec in the ObjectStore CRD (backport #10750)
2022-08-22 20:06:59 +00:00
zhucan e8a93eab2a object: hostNetwork setting should be under spec.gateway instead of spec in the ObjectStore CRD
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
(cherry picked from commit 2011d9104d)
2022-08-22 13:40:52 -06:00
Travis Nielsen 7fbfcc6ed1 Merge pull request #10680 from rook/mergify/bp/release-1.9/pr-10677
external: fix cluster id naming in import-external-cluster script (backport #10677)
2022-08-22 13:40:31 -06:00
Travis Nielsen 5298bb0f51 Merge pull request #10754 from rook/mergify/bp/release-1.9/pr-10752
ci: fix multus depment cr link (backport #10752)
2022-08-22 13:32:51 -06:00
zhucan fe420e679d object: generated code
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
(cherry picked from commit 1da927e40e)
2022-08-22 17:59:12 +00:00
subhamkrai 9b3fee5ed6 ci: fix multus depment cr link
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 4a05115aef)
2022-08-22 17:30:25 +00:00
Blaine Gardner 0d8fde8bd1 Merge pull request #10740 from rook/mergify/bp/release-1.9/pr-10737
ci: update codespell config (backport #10737)
2022-08-18 09:40:17 -06:00
Blaine Gardner ed6cea3b05 ci: update codespell config
Codespell had its first release in a year yesterday and added some
dictionary rules that are now being flagged in our code. Only one
issue required changes to our code, so modify the codespell config to
allow the words we want to allow.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 5b0a22ca46)

# Conflicts:
#	pkg/operator/ceph/object/objectstore_test.go
2022-08-18 09:30:49 -06:00
mergify[bot] 97e8185dd8 Merge pull request #10727 from rook/mergify/bp/release-1.9/pr-10726
core: no need to delete v1beta cronJob during v1 deletion (backport #10726)
2022-08-17 17:10:01 +00:00
subhamkrai 64cad381cc core: no need to delete v1beta cronJob during v1 deletion
we are already deleting v1beta1 cronJob while creating v1 cronJob,
so no need to delete v1beta while v1 cronJob deltion.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit e1a585e55f)
2022-08-17 16:40:09 +00:00