Commit Graph
8996 Commits
Author SHA1 Message Date
Travis Nielsen 32d720f3ef Merge pull request #10806 from andy108369/fix-doc
docs: change [null] to []
2022-08-30 16:26:21 -06:00
Andrey Arapov ea36313270 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>
2022-08-30 22:44:06 +02:00
Travis Nielsen 9d47cd95fe Merge pull request #10821 from travisn/rbd-mirror-log-rotate
rbdmirror: Rotate all rbd mirroring logs
2022-08-30 09:17:42 -06:00
Alexander Trost 62d27cfc05 Merge pull request #10813 from koor-tech/docs_docs 2022-08-30 16:10:12 +02:00
Travis Nielsen 5bfbfc7ec6 Merge pull request #10803 from subhamkrai/update-k8s-version
ci: upgrade to latest k8s version v1.25.0 for ci test
2022-08-30 07:46:48 -06:00
Alexander Trost aade41a88f docs: improve documentation about documentation building
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-08-30 15:46:21 +02:00
Travis Nielsen 4028b50de5 test: remove obsolete gateway type setting
Long ago the gateway type for s3 was removed from the object
store CRD, and k8s 1.25 is now complaining about the obsolete
setting still included in the test.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-29 16:44:09 -06:00
Travis Nielsen 0cd9361b3e test: upgrade from v1.9.10 to pick up psp changes
K8s 1.25 is not capable of creating PSPs, so we need to pick
up v1.9.10 as the base for the upgrade test before upgrading
to master.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-29 15:50:42 -06:00
Travis Nielsen 055c22f4c4 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>
2022-08-29 14:45:44 -06:00
subhamkrai 4623087ef4 ci: upgrade to latest k8s version for ci test
integration test now run on the latest k8s v1.25.0.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-08-29 14:00:49 -06:00
Travis Nielsen 56bb1778d8 Merge pull request #10822 from travisn/avoid-cron-v1beta1
core: Only log errors with v1beta1 cron job deletion
2022-08-29 13:59:45 -06:00
Travis Nielsen 538025111a 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>
2022-08-29 13:31:24 -06:00
Travis Nielsen fa6002a6d9 Merge pull request #10816 from BlaineEXE/psp-fix
build: remove psp from common.yaml generation
2022-08-29 11:17:01 -06:00
Blaine Gardner 6c8f2e414f 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>
2022-08-29 10:41:41 -06:00
Travis Nielsen 44d62aaaaf Merge pull request #10699 from subhamkrai/upgrade-to-ubuntu22.04
ci: ubuntu 18.04 is deprecated upgrade to ubuntu 20.04
2022-08-29 09:51:25 -06:00
Travis Nielsen a61a9e4126 Merge pull request #10807 from travisn/upgrade-1.9
build: Test upgrade from 1.9 to master
2022-08-26 10:44:25 -06:00
Travis Nielsen 3696a560d8 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>
2022-08-26 10:04:37 -06:00
Travis Nielsen fb13df1d33 Merge pull request #10784 from subhamkrai/update-log-collector-script
test: update logcollector to get secrets -oyaml
2022-08-26 09:39:21 -06:00
subhamkrai 9f68afaeef 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>
2022-08-26 19:44:42 +05:30
subhamkrai d1e3023439 ci: collect operator logs in debug mode
collect operator logs in debug mode for both
canary tests and integration tests.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-08-26 19:32:59 +05:30
subhamkrai e825166075 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>
2022-08-26 15:19:40 +05:30
subhamkrai aec9ac3060 ci: ubuntu 18.04 is deprecated upgrade to ubuntu 22.04
Signed-off-by: subhamkrai <srai@redhat.com>
2022-08-26 15:19:26 +05:30
subhamkrai 5a274b71e3 docs: update vscode setting
I have update vscode setting.json file
according to the uses.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-08-26 08:45:56 +05:30
subhamkrai 0ae55eb472 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-08-26 08:37:40 +05:30
Travis Nielsen 6dbf415492 Merge pull request #10797 from BlaineEXE/psp-move
docs: move PSPs from common.yaml to psp.yaml
2022-08-25 19:08:35 -06:00
Blaine Gardner 1e9bbae583 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>
2022-08-25 16:39:52 -06:00
Travis Nielsen 3fee4f7344 Merge pull request #10795 from jhoblitt/bugfix/markdown-nested-lists
docs: fix html rendering of nested list items -- "because markdown"
2022-08-25 12:20:05 -06:00
Joshua Hoblitt 5b01da877c docs: fix html rendering of nested list items -- "because markdown"
Nested list items need to be intended 3 spaces in order for markdown to
consistently handle nested lists.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
2022-08-25 08:51:26 -07:00
Travis Nielsen a284f3690d Merge pull request #10768 from parth-gr/krew-docs
docs: add krew plugin to the troubleshooting docs
2022-08-25 09:21:00 -06:00
parth-gr f59374b7a8 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>
2022-08-25 00:07:15 +05:30
Travis Nielsen 386117de4b Merge pull request #10735 from thotz/doc-single-site-multisite-steps
docs: add steps to convert existing cephobjectstore into multisite
2022-08-24 11:26:38 -06:00
Blaine Gardner b03b28c5b2 Merge pull request #10772 from BlaineEXE/upgrade-guide
docs: update upgrade docs for v1.10
2022-08-24 10:40:27 -06:00
Blaine Gardner e768ebb1a2 docs: update upgrade docs for v1.10
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2022-08-24 10:11:47 -06:00
subhamkrai a9b7894fb4 test: update logcollector to get secrets -oyaml
in case of secrets we need to get `-oyaml` instead
of `describe` since in describe it will be hidden.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-08-24 21:41:42 +05:30
Satoru Takeuchi b68bef7522 Merge pull request #10717 from travisn/mon-failover-error
mon: Improve mon failover reliability to better handle failure and topology
2022-08-24 17:26:57 +09:00
Jiffin Tony Thottan d05bcc61f8 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>
2022-08-24 12:20:49 +05:30
Travis Nielsen 6703c645f5 Merge pull request #10774 from Madhu-1/csi-3.6.0
csi: make cephcsi 3.6.0 as minimum supported version
2022-08-23 23:04:21 -06:00
Madhu Rajanna 6a650e1c9d 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>
2022-08-24 08:48:09 +05:30
Travis Nielsen 72a4245fbf 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>
2022-08-23 19:52:41 -06:00
Travis Nielsen ffffb1342e 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>
(cherry picked from commit bbbd709af9)
2022-08-23 15:37:30 -06:00
Travis Nielsen cc15c94e6c Merge pull request #10736 from pkalever/clusterName-metadata
CSI: provide a way to supply `--setmetadata` and `--clustername` to the csi driver
2022-08-23 13:06:27 -06:00
Travis Nielsen f02ffef8da Merge pull request #10503 from humblec/cephfs-file-policy
csi: change the fsgrouppolicy for CephFS driver to "File" mode
2022-08-23 13:00:50 -06:00
parth-gr 13f916df7d 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>
2022-08-23 21:31:50 +05:30
Prasanna Kumar Kalever e376c17bfb csi: provide a way to set --clustername at csi driver
One can now use the operator configmap for CSI_CLUSTER_NAME variable
for setting ClusterName on the RBD images and CephFS subvolume.
This will be useful in cases like for example, when two container orchestrator
clusters (Kubernetes/OCP) are using a single ceph cluster.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2022-08-23 12:12:02 +05:30
Prasanna Kumar Kalever b5b8cbf6ae csi: provide a way to enable --setmetadata at csi driver
One can now tweak the operator configmap for CSI_ENABLE_METADATA boolean to
enable/disable setting of PV/PVC/PVCNamespace &
snapshot-name/snapshot-namespace/snapshotcontent-name on the RBD images
and CephFS subvolume.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2022-08-23 12:11:02 +05:30
Travis Nielsen 73e0a864ce Merge pull request #10759 from Madhu-1/update-csi-v3.7.0
csi: update cephcsi to v3.7.0 release
2022-08-22 22:29:27 -06:00
Travis Nielsen e44eb7d0e7 Merge pull request #10751 from subhamkrai/fix-log-collector
core: fix logrotate bash check and periodicity logic
2022-08-22 21:23:59 -06:00
Madhu Rajanna 52d410a99b 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>
2022-08-23 07:53:35 +05:30
Travis Nielsen 9395ebaa1d Merge pull request #10725 from t3hmrman/docs/add-ceph-client-crd-examples
docs: add examples for CephClient CRD use & libcephsqlite
2022-08-22 15:47:03 -06:00
vados 21566ab839 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>
2022-08-23 06:05:32 +09:00