Commit Graph
8960 Commits
Author SHA1 Message Date
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
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 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
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
Travis Nielsen 3bd1f1afe7 Merge pull request #10750 from zhucan/bugfix-10649
object: hostNetwork setting should be under spec.gateway instead of spec in the ObjectStore CRD
2022-08-22 11:59:02 -06:00
Travis Nielsen 528fc6a127 Merge pull request #10752 from subhamkrai/fix-links
ci: fix multus depment cr link
2022-08-22 11:29:52 -06:00
subhamkrai 9d4d5bc702 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>
2022-08-22 17:14:51 +05:30
subhamkrai 4a05115aef ci: fix multus depment cr link
Signed-off-by: subhamkrai <srai@redhat.com>
2022-08-22 16:58:55 +05:30
zhucan 2011d9104d object: hostNetwork setting should be under spec.gateway instead of spec in the ObjectStore CRD
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
2022-08-22 14:47:10 +08:00
zhucan 1da927e40e object: generated code
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
2022-08-22 14:46:56 +08:00
Travis Nielsen 99b00344a9 Merge pull request #10745 from travisn/mergify-1.10
build: Update mergify for the release-1.10 branch and remove 1.6 automatic backports
2022-08-19 13:07:40 -06:00
Travis Nielsen eaa3822a63 build: update mergify for the release-1.10 branch
Configure the mergify bot to open backport PRs for the
1.10 release branch if PRs are labeled as such.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-19 12:52:36 -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
gauravsitlani b806f0f912 docs: fixed the developer guide link in README.md
Signed-off-by: gauravsitlani <gauravsitlani@riseup.net>
2022-08-16 14:30:00 +05:30
Alexander Trost 49440e8b20 test: fix test pod log collector
When a test has a slash in it's name the log collection can fail due to
the "directory" not existing, this makes sure the slashes are replaced
by underscores.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-08-12 23:44:13 +02:00
Travis Nielsen 768602bbe8 Merge pull request #10709 from travisn/ceph-17.2.3
manifest: Update default version of ceph to v17.2.3
2022-08-12 07:35:25 -06:00
Travis Nielsen f02fadc531 manifest: update default version of ceph to v17.2.3
For the Rook v1.10 release we want the latest version of Quincy to
be the default deployment. Updating to v17.2.3 with the latest
patch release.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 16:55:03 -06:00
Blaine Gardner 113970c416 Merge pull request #10676 from BlaineEXE/nfs-sssd
nfs: add support for running SSSD as a sidecar
2022-08-11 16:31:00 -06:00
Blaine Gardner 8c4548935c Merge pull request #10708 from degorenko/lbp-update
rgw: update lib-bucket-provisioner version
2022-08-11 15:42:48 -06:00
Blaine Gardner b98efbb320 nfs: add support for running SSSD as a sidecar
Implement the SSSD sidecar design for NFS.

Because NFS documents are getting long, create an NFS
`Storage-Configuration` section with separated topics to keep the `NFS
Overview` document sane.

Adjust the SSSD design to allow any VolumeSource, not just ConfigMaps.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2022-08-11 14:59:23 -06:00
Denis Egorenko a553d2f52d 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>
2022-08-11 23:53:02 +04:00
Blaine Gardner 1610a304a0 Merge pull request #10681 from travisn/go-mod-update
build: Update go modules to build with go 1.18 and support go 1.19
2022-08-11 13:27:48 -06:00
Travis Nielsen 24e416069a core: update controller runtime to v0.6.2
The dependencies in controller runtim v0.5 were getting old
and causing go module issues on macos. Now with the update to
v0.6.2 the module dependency issue is solved. For another
day we should update the controller runtime to even newer.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:41:11 -06:00
Travis Nielsen e3b4b18938 ci: update macos to v12
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:41:10 -06:00
Travis Nielsen 5ef8d15659 build: format comments for go 1.19
The tool gofmt in go 1.19 requires certain formatting
in the comments section for better rendering.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:41:10 -06:00
Travis Nielsen b726f81542 ci: add support for go 1.19
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:41:10 -06:00
Travis Nielsen 49ca309622 build: only support go 1.18 with the latest modules
The modules are only compatible with go 1.18.
Remove support for go 1.17.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:31:50 -06:00
Travis Nielsen 759b0d1c24 core: use the cluster name due to updated api reference
The cephcluster.ClusterName is no longer available in the k8s api
with the ObjectMeta type, so we use the cephcluster.Name

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:31:50 -06:00
Travis Nielsen a596471757 test: pass test suite by value
The latest go modules come with a sync mutex that requires
us to pass the test suite by reference for proper use
of the mutex.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:31:49 -06:00
Travis Nielsen 93013f7594 manifest: update manifests for latest references
The manifests are regenerated with the latest go references.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:31:49 -06:00
Travis Nielsen 90a0da1de0 build: update go modules
This is an update from make go.mod.update to ensure we
are consuming the latest stable packages available.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-08-11 12:31:46 -06:00
Travis Nielsen 51c6510a58 Merge pull request #10701 from jclab-joseph/fix/skip-upgrade-check-in-external-cluster
core: skip ceph upgrade check in external cluster
2022-08-11 11:35:58 -06:00
Alexander Trost 59bee3e841 Merge pull request #10456 from koor-tech/docs_tweaks 2022-08-11 18:52:54 +02:00