Commit Graph
161 Commits
Author SHA1 Message Date
parth-gr aa6cbf2ea2 rgw: make fqdn rgw converted to ip everywhere
During the recent addtions of rgw validation
changes there are too many places where we use
rgwendpoint, so making fqdn to ip conversion globally

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit fed91ddb81)
2022-06-02 15:09:12 +00:00
subhamkrai 84ffff5da1 docs: update doc path according to new doc change
we need to update the referred doc path
according to our latest doc change.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 49a35a9311)
2022-06-01 15:26:26 +00:00
Travis Nielsen fef689a506 build: update release version to v1.9.4
For the patch release the example manifests and docs are updated
to v1.9.4

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-05-26 14:04:46 -06:00
parth-gr 31987b9c47 build: update examples and base image to use ceph v16.2.9
In release 1.9, the operator base image has been changed to
ceph v16.2.9

Signed-off-by: parth-gr <paarora@redhat.com>
2022-05-25 22:14:35 +05:30
parth-gr 6a3b953949 csi: update cephfs osd caps
Currently cephfs caps are data=filesystemname,
which only have write access, but not the read access
changing it to *=filesystemname so we can read data also

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit cbda9f2f7d)
2022-05-25 14:22:25 +00:00
parth-gr 6b02279535 csi: update the upgrade flag description
Currently it was mention we are updating the csi-user
But more precisely we go and update the keyrings
which auto update users so replacing it

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit b97bc74f45)
2022-05-13 12:28:43 +00:00
parth-gr 1e8e0b2ec8 rgw: donot validate prefix rgw pools when prefix is default
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit cf29043f4d)
2022-05-13 12:28:42 +00:00
parth-gr 415a10496a rgw: validate rgw endpoint ip
The ceph-external-cluster-details-exporter.py
generates the json output even with
rgw-endpoint IP from different cluster
Added a check validate_rgw_endpoint which will validate
the above rgw_endpoint Ip by matching the cluster fsid

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 09d52511ad)
2022-05-13 12:28:42 +00:00
Travis Nielsen cbd9429e5a build: update the release version to v1.9.3
For the patch release the example manifests and documentation
is updated to v1.9.3

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-05-12 14:12:00 -06:00
parth-gr d641bbb867 rgw: support FQDN for RGW endpoint
Now rgw can be pass by FQDN too,
to avoid problems where it is required
The format should be similar to
Ip(<IP>:<PORT> format), <FQDN>:<PORT> format

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 624400ff93)
2022-05-12 17:52:31 +00:00
Sean Johnson efffc9d5df docs: update tolerations name from controlplane to control-plane
Signed-off-by: ttyS0 <sean@skj.dev>
(cherry picked from commit 30667157ab)
2022-05-12 16:31:23 +00:00
Yuichiro Ueno afa94d0b2d build: add psp for missing roles
This commit adds psp RoleBindings to rook-ceph-rgw role and
rook-ceph-purge-osd role. Without this commit, I cannot perform
rook-ceph-purge-osd job on PSP-enabled cluster.

Signed-off-by: Yuichiro Ueno <ueno@preferred.jp>
(cherry picked from commit 1ccc185a79)
2022-05-11 17:56:14 +00:00
Travis Nielsen 529869c286 operator: increase memory limit of operator
The operator is very bursty and when starting up may need more memory
to reconcile all the CRs initially before it calms down.
The default of 256Mi was not sufficient for many clusters, so now
we bump up the limit to 512Mi.

This is a follow-up from the same change to the helm chart in
https://github.com/rook/rook/pull/10195.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 60b72b6d48)
2022-05-03 15:59:07 +00:00
Travis Nielsen d75a6e769f build: update release version to v1.9.2
For the patch release we update the example manifests and docs
to v1.9.2

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-28 12:04:36 -06:00
Rakshith R 209617b18d build: fix csi nfs rbac csv generation
Added hack in generate-rook-csv for proper
generation of csi nfs rbac in csv.
Added placeholder clusterrole and binding for
nfs nodeplugin sa, since operator-sdk
does not include sa without rules.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit d0b67af23b)
2022-04-28 14:53:29 +00:00
mergify[bot] 89f8f1882d Merge pull request #10155 from rook/mergify/bp/release-1.9/pr-10139
core: RGW realm pull spec is optional (backport #10139)
2022-04-25 14:17:56 +00:00
Travis Nielsen 07ea7139eb core: rgw realm pull spec is optional
The endpoint on the rgw realm pull spec is causing a failure
if not specified even when it is not expected to be
required. Now the endpoint has the json property to be
ommitted if not specified.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7f709776b5)
2022-04-25 13:49:58 +00:00
Sébastien Han fbca65c738 csi: update cephcsi to v3.6.1 release
A new Ceph-CSI release is out so let's use it.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 1093b0a166)
2022-04-25 09:05:38 +00:00
Travis Nielsen ebc7c6ad77 build: add a placeholder rule to rgw rbac
With https://github.com/rook/rook/pull/10108 a placeholder role
and role binding were added for the rgw service account so
the csv generation would generate the service account. That
workaround also requires a rule to be added to the role or else
the generation is invalid. Now a rule is added to avoid that
issue. In the future we need to remove this role and binding
when the operator sdk is updated as explained in
https://github.com/rook/rook/issues/10141

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1dd343ed7e)
2022-04-22 17:17:22 +00:00
Travis Nielsen 417dd10421 build: set the release version to v1.9.1
Update the docs and example manifests for the v1.9.1 release.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-21 10:59:49 -06:00
mergify[bot] bee1a06f6d Merge pull request #10119 from rook/mergify/bp/release-1.9/pr-10108
build: Add a placeholder rgw role for csv generation (backport #10108)
2022-04-20 19:29:33 +00:00
subhamkrai b7411de1e1 core: update controller-runtime version to v0.11.2
update controller-runtime version to v0.11.2

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 13cc698566)
2022-04-20 17:52:53 +00:00
Travis Nielsen 469e9468ad build: add a placeholder rgw role for csv generation
The csv will not properly include the rook-ceph-rgw service
account unless there is a role and binding that references
the service account. No roles are needed yet for the rgw
daemon, so this will add a placeholder only for the purposes
of csv generation.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e1550e7551)
2022-04-20 17:51:43 +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
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
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
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
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] 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 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
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 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
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 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
Blaine Gardner 727d6dcf53 nfs: create config pool by default
Create the ".nfs" config pool by default so that users aren't required
to create it via CephBlockPool.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 254a7adb4c)
2022-04-12 19:33:10 +00:00
Rakshith R 3b82609b23 csi: add nfs example yamls
This commit adds example nfs storageclass,
pvc and pod yamls.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit f1953314d4)
2022-04-12 17:38:34 +00:00
Rakshith R d402f8b286 csi: add nfs provisioner deployment
This commit adds nfs provisioner deployment.
This will allow rook to deploy nfs provisioner
which can create backend cephfs subvolumes to be
exported as nfs volumes.

refer:
https://github.com/ceph/ceph-csi/blob/devel/docs/design/proposals/nfs.md

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 5f48ad8026)
2022-04-12 17:38:34 +00:00
Rakshith R 7eead51c6f csi: add nfs nodeplugin daemonset
This commit adds nfs nodeplugin daemonset.
This will allow rook to deploy nfs nodeplugin
which can mount/unmount nfs volumes.

refer:
- https://github.com/ceph/ceph-csi/blob/devel/docs/design/proposals/nfs.md
- https://github.com/kubernetes-csi/csi-driver-nfs

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 34162c3dc5)
2022-04-12 17:38:34 +00:00
Pranshu Srivastava 750e8efdc3 core: support arbitrary node affinity inputs
Adds support for valid arbitrary NodeAffinity JSON input by the user while
maintaining backward compatibility with the older parsing code.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
(cherry picked from commit 6e49a090a3)
2022-04-12 16:32:32 +00:00
Sébastien Han 8f083d68a7 ci: add multus integration test
This new integration test will deploy a cluster with multus enabled. It
will be comprised of two network interfaces for ceph public and cluster
communications.
For now, it only deploys a Ceph cluster up to the OSDs.

Closes: https://github.com/rook/rook/issues/9784
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 2c09bbb91b)
2022-04-12 16:23:40 +00:00