Commit Graph
8852 Commits
Author SHA1 Message Date
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
Blaine Gardner 67c744bf9c Merge pull request #10711 from rook/mergify/bp/release-1.9/pr-10708
rgw: update lib-bucket-provisioner version (backport #10708)
2022-08-16 09:07:52 -06:00
Denis Egorenko 4c3368cb77 rgw: update lib-bucket-provisioner version
Update version of lib-bucket-provisioner to fix issue with updating objectbuckets config.

related-issue: https://github.com/rook/rook/issues/10679
Signed-off-by: Denis Egorenko <degorenko@mirantis.com>
(cherry picked from commit a553d2f52d)

# Conflicts:
#	go.mod
2022-08-11 16:02:24 -06:00
Travis Nielsen 0480a11548 Merge pull request #10707 from travisn/release-1.9.9
build: Update the release version to v1.9.9
v1.9.9
2022-08-11 14:30:24 -06:00
Travis Nielsen b5bfa6f7f3 build: update the release version to v1.9.9
For the patch release update the examples and docs to
v1.9.9

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 13:49:09 -06:00
Travis Nielsen dac7bb1255 Merge pull request #10705 from rook/mergify/bp/release-1.9/pr-10701
core: skip ceph upgrade check in external cluster (backport #10701)
2022-08-11 12:51:13 -06:00
Joseph Lee 190017f6d0 core: skip ceph upgrade check in external cluster
Closes: rook#10688
Signed-off-by: Joseph Lee <joseph@jc-lab.net>
(cherry picked from commit 9639b60fc4)
2022-08-11 17:36:23 +00:00
Travis Nielsen 78444d21e3 Merge pull request #10704 from rook/mergify/bp/release-1.9/pr-10456
docs: rename Rook-Ceph to Rook Ceph (backport #10456)
2022-08-11 11:26:42 -06:00
Alexander Trost 380e4dbcbf docs: add ci configuration page
This page contains initial information on Rook's CI setup, such as
environment variables.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit 9872b3f7d6)
2022-08-11 16:53:37 +00:00
Alexander Trost 89518a9bd3 docs: rename Rook-Ceph to Rook Ceph
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit fe2000e6d8)
2022-08-11 16:53:37 +00:00
parth-gr f4aea652a1 external: fix cluster id naming in import-external-cluster script
Cluster_ID variable that we export from python script was different
from what we going to use in import script so changed it

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 62fec90c19)
2022-08-11 16:53:34 +00:00
Travis Nielsen f484db2ffe Merge pull request #10690 from rook/mergify/bp/release-1.9/pr-10585
core: Operator to skip reconcile of mons and osds in debug mode (backport #10585)
2022-08-09 17:00:14 -06:00
Travis Nielsen f34c940518 core: operator skips reconcile of mons and osds in debug
During certain maintenance tasks the admin will own running
operations on the ceph mons and osds, and the operator should
not interfere with those operations. If the operator sees
any mon in debug mode, every reconcile and mon health check
will be skipped. Thus, mons will not be updated while any
one of them is in maintenance. During OSD reconcile, individual
OSD deployment updates will only be skipped for OSDs that are
actively being debugged.

The debug mode for osd and mon deployments is signaled by
creating the ceph.rook.io/do-not-reconcile label.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7c56b9328a)
2022-08-09 22:24:09 +00:00
parth-gr a21b2f9deb external: fix cluster id naming in import-external-cluster script
Cluster_ID variable that we export from python script was different
from what we going to use in import script so changed it

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit c1a16d300e)
2022-08-05 17:33:38 +00:00