Commit Graph
8979 Commits
Author SHA1 Message Date
Satoru Takeuchi bd3bb52df9 Merge pull request #10836 from rook/mergify/bp/release-1.10/pr-10806
docs: change [null] to [] (backport #10806)
2022-08-31 18:33:56 +09:00
mergify[bot] 8eed159c18 Merge pull request #10839 from rook/mergify/bp/release-1.10/pr-10779
osd: fix osd detection logic for old lsblk (backport #10779)
2022-08-31 06:10:10 +00:00
taki-d 8815dae4ae 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:50 +00:00
Andrey Arapov c4cbd62e27 docs: change [null] to []
otherwise it will fail with the following message:

```
The CephCluster "rook-ceph" is invalid:
* metadata.finalizers: Invalid value: "": name part must be non-empty
* metadata.finalizers: Invalid value: "": name part must consist of alphanumeric characters, '-',
  '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',
  or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]')
* metadata.finalizers: Forbidden: no new finalizers can be added if the object is being deleted,
  found new finalizers []string{""}
```

Signed-off-by: Andrey Arapov <andrey.arapov@nixaid.com>
(cherry picked from commit ea36313270)
2022-08-30 22:26:30 +00:00
Travis Nielsen 338ea8b697 Merge pull request #10808 from rook/mergify/bp/release-1.10/pr-10807
build: Test upgrade from 1.9 to master (backport #10807)
2022-08-30 14:15:28 -06:00
Travis Nielsen 069c4f18c1 Merge pull request #10794 from rook/mergify/bp/release-1.10/pr-10768
docs: add krew plugin to the troubleshooting docs (backport #10768)
2022-08-30 07:58:02 -06:00
Travis Nielsen 50df56d599 Merge pull request #10824 from rook/mergify/bp/release-1.10/pr-10822
core: Only log errors with v1beta1 cron job deletion (backport #10822)
2022-08-29 14:57:28 -06:00
Travis Nielsen b39c2827f6 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:17 +00:00
mergify[bot] 959df0185d Merge pull request #10819 from rook/mergify/bp/release-1.10/pr-10816
build: remove psp from common.yaml generation (backport #10816)
2022-08-29 18:08:24 +00:00
Blaine Gardner 5cf947a243 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:23 +00:00
mergify[bot] d879b105e0 Merge pull request #10815 from rook/mergify/bp/release-1.10/pr-10699
ci: ubuntu 18.04 is deprecated upgrade to ubuntu 20.04 (backport #10699)
2022-08-29 16:35:26 +00:00
subhamkrai 8d6bee5d94 ci: update minikube version to 1.26.1
update minikube version to 1.26.1 for the
latest k8s version and using 1.24.0 for older
k8s version.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 9f68afaeef)
2022-08-29 16:09:16 +00:00
subhamkrai 99b6759364 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)
2022-08-29 16:09:16 +00:00
subhamkrai 278a2d4623 ci: ubuntu 18.04 is deprecated upgrade to ubuntu 22.04
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit aec9ac3060)
2022-08-29 16:09:15 +00:00
subhamkrai aa1f9e5cbd docs: update vscode setting
I have update vscode setting.json file
according to the uses.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 5a274b71e3)
2022-08-29 16:09:15 +00:00
subhamkrai ee7830bf18 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>
(cherry picked from commit 0ae55eb472)
2022-08-29 16:09:15 +00:00
Travis Nielsen 99f7275d29 build: test upgrade from 1.9 to master
With the pending release of 1.10, the upgrade tests
in master should be testing the upgrade from 1.9
to the master branch.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 3696a560d8)
2022-08-26 16:44:50 +00:00
mergify[bot] 5878c002c3 Merge pull request #10802 from rook/mergify/bp/release-1.10/pr-10797
docs: move PSPs from common.yaml to psp.yaml (backport #10797)
2022-08-26 01:40:16 +00:00
Blaine Gardner b950fd0e46 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 01:09:31 +00:00
parth-gr 9be315e8d7 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:45 +00:00
parth-gr 30006f958c 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:45 +00:00
Blaine Gardner 8fe1861748 Merge pull request #10787 from rook/mergify/bp/release-1.10/pr-10772
docs: update upgrade docs for v1.10 (backport #10772)
2022-08-24 15:28:10 -06:00
Blaine Gardner 3c1657d2e9 docs: update upgrade docs for v1.10
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit e768ebb1a2)
2022-08-24 15:26:52 -06:00
mergify[bot] 02ab753ce3 Merge pull request #10789 from rook/mergify/bp/release-1.10/pr-10735
docs: add steps to convert existing cephobjectstore into multisite (backport #10735)
2022-08-24 17:58:58 +00:00
Jiffin Tony Thottan 59d4ff3439 docs: add steps to convert existing cephobjectstore into multisite
Most of the users starts with single site, provide the steps to convert
existing cephobjectstore into multisite configurations.

Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
(cherry picked from commit d05bcc61f8)
2022-08-24 17:27:01 +00:00
mergify[bot] e188a988f6 Merge pull request #10778 from rook/mergify/bp/release-1.10/pr-10774
csi: make cephcsi 3.6.0 as minimum supported version (backport #10774)
2022-08-24 16:26:56 +00:00
mergify[bot] 6f5bbc5552 Merge pull request #10786 from rook/mergify/bp/release-1.10/pr-10717
mon: Improve mon failover reliability to better handle failure and topology (backport #10717)
2022-08-24 15:24:17 +00:00
Travis Nielsen cb0fa60ccb 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:55:06 +00:00
Madhu Rajanna 9c35bf17be csi: make cephcsi 3.6.0 as minimum supported version
Setting the min version to 3.7 will make upgrade
difficult. If someone is using any different/custom
version, this means they won't be able to upgrade to
rook v1.10 unless they also update their csi image
at the same time. If we set the min version to 3.6,
it will give some time buffer to allow them to
change the csi driver later.

ref: https://github.com/rook/rook/pull/10759#discussion_r953014295

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 6a650e1c9d)
2022-08-24 05:05:04 +00:00
mergify[bot] bcdc7eeb40 Merge pull request #10762 from rook/mergify/bp/release-1.10/pr-10759
csi: update cephcsi to v3.7.0 release (backport #10759)
2022-08-23 08:09:08 +00:00
Madhu Rajanna 02c4c5879c csi: update cephcsi to v3.7.0 release
As cephcsi v3.7.0 is released updating
CephCSI to v3.7.0 in Rook and defaulting
the minimum version to v3.7.0

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 52d410a99b)
2022-08-23 04:30:00 +00:00
Travis Nielsen 042377276a Merge pull request #10758 from rook/mergify/bp/release-1.10/pr-10725
docs: add examples for CephClient CRD use & libcephsqlite (backport #10725)
2022-08-22 22:22:25 -06:00
Travis Nielsen 8ef93ea379 Merge pull request #10761 from rook/mergify/bp/release-1.10/pr-10751
core: fix logrotate bash check and periodicity logic (backport #10751)
2022-08-22 22:22:06 -06:00
subhamkrai e5eb901b51 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:44 +00:00
vados 44a005e8db docs: add examples for CephClient CRD use & libcephsqlite
The documentation previously did not cover how to use the CephClient
CRD in a realistic use case. This commit improves the documentation
on the general usage and also specificallyw with libcephsqlite.

Closes: https://github.com/rook/rook/issues/10689
Signed-off-by: vados <vados@vadosware.io>
(cherry picked from commit 21566ab839)
2022-08-22 21:47:21 +00:00
Travis Nielsen 167f235d17 Merge pull request #10757 from rook/mergify/bp/release-1.10/pr-10750
object: hostNetwork setting should be under spec.gateway instead of spec in the ObjectStore CRD (backport #10750)
2022-08-22 13:32:29 -06:00
zhucan 57699ef95c 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 17:59:22 +00:00
zhucan 05fa7c815a object: generated code
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
(cherry picked from commit 1da927e40e)
2022-08-22 17:59:20 +00:00
mergify[bot] 80ce2a1006 Merge pull request #10755 from rook/mergify/bp/release-1.10/pr-10752
ci: fix multus depment cr link (backport #10752)
2022-08-22 17:59:00 +00:00
subhamkrai 60db69cfcf ci: fix multus depment cr link
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 4a05115aef)
2022-08-22 17:30:32 +00:00
Travis Nielsen 81eeffcce2 Merge pull request #10744 from travisn/release-1.10.0-beta.0
build: Update release version to v1.10.0-beta.0
v1.10.0-beta.0
2022-08-19 14:01:06 -06:00
Travis Nielsen bbbd709af9 build: update release version to v1.10.0-beta.0
With the beta release of v1.10 the release version in the examples
and docs is updated.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-19 12:43:57 -06:00
Blaine Gardner f2b3634f3b Merge pull request #10737 from BlaineEXE/update-codespell
ci: update codespell config
v1.10.0-alpha.0
2022-08-18 09:25:25 -06:00
Blaine Gardner 5b0a22ca46 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>
2022-08-18 09:07:52 -06:00
Travis Nielsen 1ff27e2fd6 Merge pull request #10716 from koor-tech/fix_tests_log_collection
test: fix test pod log collector
2022-08-17 12:26:35 -06:00
Travis Nielsen d7267ff9d2 Merge pull request #10726 from subhamkrai/handle-v1beta-cronjob
core: no need to delete v1beta cronJob during v1 deletion
2022-08-17 10:39:46 -06:00
Blaine Gardner 994a06c1dd Merge pull request #10629 from thotz/rgw-custom-zone-endpointlist
rgw: add custom endpoint list option for zone
2022-08-17 09:50:30 -06:00
subhamkrai e1a585e55f 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>
2022-08-17 19:53:59 +05:30
Jiffin Tony Thottan 8003e764f9 rgw: add custom endpoint list option for zone
User can define his desired endpoint list in Zone CR so that it will
overwrite the default service name for rgw.

Resolves #6432

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
2022-08-17 10:03:12 +05:30
Alexander Trost 154df5a21f Merge pull request #10722 from gauravsitlani/master 2022-08-16 16:02:04 +02:00