Commit Graph
8514 Commits
Author SHA1 Message Date
Madhu Rajanna 7c6c1beb59 subvolumegroup: refractor subvolumegroup controller
improved the logging and also reorganized code to
handle external and non external cases for better
code readability.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 541d63d31e)
2022-04-20 17:50:10 +00:00
Travis Nielsen e1dee66aaa Merge pull request #10112 from rook/mergify/bp/release-1.9/pr-10109
monitoring: Disable new alerts that are not applicable to rook (backport #10109)
2022-04-20 09:26:12 -06:00
Travis Nielsen c13c362af1 Merge pull request #10114 from rook/mergify/bp/release-1.9/pr-10059
csi: use k8s.gcr.io for csi nfsplugin image (backport #10059)
2022-04-20 09:25:53 -06:00
Travis Nielsen cf200bed36 Merge pull request #10113 from rook/mergify/bp/release-1.9/pr-10096
core: Examples set default priority class names (backport #10096)
2022-04-20 09:25:33 -06:00
Madhu Rajanna d4be1ee1c7 csi: use k8s.gcr.io for csi nfsplugin image
use k8s.gcr.io like other kubernetes sidecar
image to pull the nfsplugin image.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 52c8211e43)
2022-04-20 14:02:22 +00:00
Travis Nielsen 4ceb97da47 core: examples set default priority class names
By default, we should set the priority class to one of the built-in
priority class names to ensure that pods critical to the storage
will be able to remain running when resources are low. Otherwise,
critical rook pods could be evicted and affect many other pods
that rely on the storage to continue functioning. The options have
been available in the CRs, but until now we have just not set the
defaults in the examples. Critical rook components are now set to
the priority class system-node-critical if they are generally pinned
to a node, and system-cluster-critical if they are critical to the storage.
Some pods such as the operator and crash collector do not have a
default priority class set in the examples since they don't affect
the data path.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit fb86955f01)
2022-04-20 13:39:18 +00:00
Travis Nielsen da9496f05d monitoring: remove cephadm specific alerts
The ceph adm alerts were included in the latest prometheus
rules. With rook these alerts will never be triggered, so
we remove them.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 0a25af78dc)
2022-04-20 13:38:31 +00:00
Travis Nielsen 0c9a2507cb monitoring: disable new alerts that are not applicable to rook
The new alerts picked up for Rook v1.9 directly from the ceph repo
were not all rook-compliant. The alert for the prometheus job not
running is not needed since Rook and K8s go to great lengths to
keep the mgr pod running already.

The alert for the cluster filling up soon is also disabled
until we find how to get the formula working in rook clusters.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e45781d0d3)
2022-04-20 13:38:31 +00:00
mergify[bot] be2fb09893 Merge pull request #10104 from rook/mergify/bp/release-1.9/pr-9940
csi: add CSI encryption support (backport #9940)
2022-04-19 20:28:55 +00:00
mergify[bot] 8e38edd718 Merge pull request #10102 from rook/mergify/bp/release-1.9/pr-10094
build: update golang version to v1.17 (backport #10094)
2022-04-19 20:27:39 +00:00
Travis Nielsen b2815830c4 Merge pull request #10103 from rook/mergify/bp/release-1.9/pr-10074
csi: make GRPC timeout configurable (backport #10074)
2022-04-19 14:09:12 -06:00
mergify[bot] 98e80a65d7 Merge pull request #10106 from rook/mergify/bp/release-1.9/pr-10089
helm: fix missing default resources in rook components (backport #10089)
2022-04-19 17:02:26 +00:00
Yuval Manor dcb457e155 helm: fix missing default resources in rook components
1. Add csi-snapshotter resources for csiCephFSProvisioner
2. Add csi-omap-generator resources for csiRBDProvisioner (only is omap generator is enabled)

Closes: https://github.com/rook/rook/issues/10083
Signed-off-by: Yuval Manor <yuvalman958@gmail.com>
(cherry picked from commit 5f01456dae)
2022-04-19 16:34:58 +00:00
Rakshith R 1f9a614e08 csi: add CSI encryption support
Ceph-CSI supports LUKS encryption for RBD volumes.
This commit adds support for the same by adding capability
of mounting required `rook-ceph-csi-kms-config` configmap
into csi-rbdplugin-provisioner and nodeplugin pods.
Required documentations, helm charts and examples yamls
are also updated.

Resolved: #7032

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 2e18d5bbaa)
2022-04-19 15:27:31 +00:00
mergify[bot] b56c959350 Merge pull request #10092 from rook/mergify/bp/release-1.9/pr-10088
osd: Enable quincy osd release version (backport #10088)
2022-04-19 14:12:29 +00:00
Madhu Rajanna b85c79f9df csi: make GRPC timeout configurable
setting the GRPC timeout configurable helps
in some cases where ceph cluster takes more time
to respond.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 54de442e22)
2022-04-19 13:55:22 +00:00
mergify[bot] 85d00546d0 Merge pull request #10101 from rook/mergify/bp/release-1.9/pr-10099
block: validate updating names in BlockPool CR (backport #10099)
2022-04-19 13:33:03 +00:00
subhamkrai 5ad92bd548 build: update golang version to v1.17
update golang version to v1.17

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 81d696652d)
2022-04-19 13:25:59 +00:00
Madhu Rajanna 9f0281a40e block: validate updating name in BlockPool CR
Currently we are allowing users to change the name
of the pool to be created in the BlockPool CR. with
this we have a bug of leaving stale resources in the
cluster. With new changes we are blocking the update
of the pool name in the BlockPool CR.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 99224ad102)
2022-04-19 13:05:33 +00:00
mergify[bot] 8dc44f688b Merge pull request #10098 from rook/mergify/bp/release-1.9/pr-10093
helm: add ingressClassName field (backport #10093)
2022-04-18 18:16:28 +00:00
log1cb0mb 83d53b66f5 helm: add ingressClassName field
Add support for .spec.ingressClassName field

Signed-off-by: log1cb0mb <nabeelnrana@gmail.com>
(cherry picked from commit be905e6d6c)
2022-04-18 17:49:34 +00:00
Travis Nielsen 9b2bef7334 osd: enable quincy osd release version
After all OSDs are updated to each major release of Ceph, the
require-osd-release version is set to that release so all the latest
functionality for osds can be enabled by Ceph. In Quincy there is
a warning if all osds are on Quincy and this flag is not set, so
this will resolve the health warning.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 03b0546fec)
2022-04-15 14:46:59 +00:00
Blaine Gardner 91cd9ac3bb Merge pull request #10087 from BlaineEXE/bp-10078-manually
docs: add info about mounting NFS exports externally (backport #10078)
2022-04-14 12:31:54 -06:00
mergify[bot] a6b0e33699 Merge pull request #10080 from rook/mergify/bp/release-1.9/pr-10071
csi: enable csi nfs to generate nfs rbac for csv (backport #10071)
2022-04-14 18:13:07 +00:00
Blaine Gardner f87e13c5cf docs: add info about mounting NFS exports externally
Add some information to NFS docs about how LoadBalancer Service endpoint
and PersistentVolume share field can be used when mounting NFS exports
manually.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit fa27b994c4)
2022-04-14 11:57:06 -06:00
mergify[bot] bb7e6fe5c7 Merge pull request #10069 from rook/mergify/bp/release-1.9/pr-10014
docs: update NFS docs including latest CSI work (backport #10014)
2022-04-14 17:30:33 +00:00
mergify[bot] a0ba88e8c6 Merge pull request #10063 from rook/mergify/bp/release-1.9/pr-10058
build: generate a separate NFS CSI RBAC manifest (backport #10058)
2022-04-14 17:08:23 +00:00
Blaine Gardner bd10a5903d Merge pull request #10081 from rook/revert-10079-mergify/bp/release-1.9/pr-10078
Revert "docs: add info about mounting NFS exports externally (backport #10078)"
2022-04-14 10:28:03 -06:00
Blaine Gardner 168786427d Merge pull request #10077 from rook/mergify/bp/release-1.9/pr-10076
docs: fix nfs permission on openshift example (backport #10076)
2022-04-14 10:27:15 -06:00
Blaine Gardner 7d293c0f4e Revert "docs: add info about mounting NFS exports externally (backport #10078)"
Mergify automatically backported this despite merge conflicts.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2022-04-14 10:22:19 -06:00
mergify[bot] 81b12fea22 Merge pull request #10079 from rook/mergify/bp/release-1.9/pr-10078
docs: add info about mounting NFS exports externally (backport #10078)
2022-04-14 16:13:18 +00:00
Blaine Gardner 96cbb34a07 build: generate a separate NFS CSI RBAC manifest
Because the NFS CSI driver is optional and rarely deployed, make RBAC
for this driver an optional example that is generated by the helm chart.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit bca2f128ab)
2022-04-14 10:10:41 -06:00
Rakshith R c9d0dcf90c csi: enable csi nfs to generate nfs rbac for csv
This commit enables csi.nfs during rbac generation
for csv, so that it can used when deployed with olm.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 762f75062f)
2022-04-14 15:53:25 +00:00
Blaine Gardner 9dd8e00c46 docs: add info about mounting NFS exports externally
Add some information to NFS docs about how LoadBalancer Service endpoint
and PersistentVolume share field can be used when mounting NFS exports
manually.

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

# Conflicts:
#	Documentation/ceph-nfs-crd.md
2022-04-14 15:44:29 +00:00
Blaine Gardner 3665a1dec3 docs: fix nfs permission on openshift example
Fix a small permission (RBAC) issue with the operator-on-openshift.yaml
example's SecurityContextConstraint. A ServiceAccount reference for the
Ceph CSI NFS provisioner was missing.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 1311bf870a)
2022-04-14 14:44:00 +00:00
mergify[bot] 92358e374c Merge pull request #10055 from rook/mergify/bp/release-1.9/pr-9927
csi: add nfs nodeplugin & provisioner (backport #9927)
2022-04-14 14:42:20 +00:00
Blaine Gardner 8e7bb14fdf docs: update NFS docs including latest CSI work
Update the NFS docs with the latest available info for Ceph Quincy
including the CSI provisioner driver.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit a950feb01e)
2022-04-13 22:24:23 +00:00
Travis Nielsen f3a44ece6b Merge pull request #10068 from travisn/release-1.9.0
build: Update release version to v1.9.0
v1.9.0
2022-04-13 16:22:32 -06:00
Travis Nielsen 7e7f46a471 build: update release version to v1.9.0
With the minor release we update manifest versions
and documentation to v1.9.0.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-13 15:52:25 -06:00
Travis Nielsen 6c705464ad Merge pull request #10067 from rook/mergify/bp/release-1.9/pr-10066
docs: Clarify helm install documentation (backport #10066)
2022-04-13 15:38:42 -06:00
Travis Nielsen 372eee6390 docs: clarify helm install documentation
Update the formatting so third-level headers are more visible,
sections are more consistent between the operator and cluster
chart docs, and a few other minor updates.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 0acf7d616c)
2022-04-13 21:22:05 +00:00
mergify[bot] a3dc540b28 Merge pull request #10065 from rook/mergify/bp/release-1.9/pr-10046
ceph: add webhooks to reject update on subvolume group and radosnamespace (backport #10046)
2022-04-13 17:35:12 +00:00
Madhu Rajanna 30d8f61275 build: provide 775 permission for deploy_cert_manager.sh
provided 775 permission like other scripts for
deploy_cert_manager.sh

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 4425ef1ce2)
2022-04-13 17:06:45 +00:00
Madhu Rajanna 1d8aa05a23 subvolumegroup: add webhook for subvolumegroup
As we are not suppose to update the filesystem name
once the subvolumegroup is created.
added webhook validation for subvolumegroup update.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 74c4397973)
2022-04-13 17:06:45 +00:00
Madhu Rajanna c0697432fd namespace: add webhook for radosnamespace
As we are not suppose to update the pool name
once the rados namespace is created.
added webhook validation for radosnamespace
update.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 6aea438288)
2022-04-13 17:06:44 +00:00
Madhu Rajanna 106171a68e core: add code to update the webhook configurations
As we are adding new webhook configuration we
need to update the webhooks validations.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 024c034a95)
2022-04-13 17:06:44 +00:00
Travis Nielsen 20aa0dfa5c Merge pull request #10052 from rook/mergify/bp/release-1.9/pr-10003
core: support arbitrary node affinity inputs (backport #10003)
2022-04-13 08:43:29 -06:00
Travis Nielsen 1b6cf7259b Merge pull request #10047 from rook/mergify/bp/release-1.9/pr-9903
csi: update multus design to mitigate csi-plugin pod restart (backport #9903)
2022-04-13 08:43:01 -06:00
Travis Nielsen 93ab24a878 Merge pull request #10041 from rook/mergify/bp/release-1.9/pr-10027
helm: Correctly check external cluster for prometheus rules (backport #10027)
2022-04-13 08:40:46 -06:00
Travis Nielsen 651e46ed65 Merge pull request #10051 from rook/mergify/bp/release-1.9/pr-10048
ci: add multus integration test (backport #10048)
2022-04-13 08:40:16 -06:00