Commit Graph
2805 Commits
Author SHA1 Message Date
subhamkrai 98600a440f core: upgrade ceph to latest release v17.2.5
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 270b565f18)
2022-10-26 15:52:18 +00:00
Blaine Gardner e0806d57bb object: fix logic for rgw period commit detection
The `periodWillChange()` implementation to detect map keys to ignore.
Previously, we relied on the `GoString()` method to output the same
format always to determine the current path to the
map[string]interface{} node, but that may change depending on the underlying
implementation of go-cmp.

Instead, parse the go-cmp `Path` step by step and construct a JSON path
to the node in a stable format.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 5320830781)
2022-10-20 15:59:44 +00:00
Madhu Rajanna 7e8e8e2ea1 csi: update csi to latest release
This updates the cephcsi to latest 3.7.2
release and also updates sidecar to the latest
release in some missing files.

Note:- sidecar images are upto date in most of
the places, in some places it was missing, This
PR updates it in missing place.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 729f2a8b32)
2022-10-20 14:05:23 +00:00
Madhu Rajanna 78eb665282 csi: add setmetadata and clustername flag to omap
The omap generator sidecar is the one who
sets the pvc name and clustername in the metadata
if the pv is re-attached to a new pvc or if the
clustername changes, for that reason we need to
set these flags on the omap generator sidecar
also.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit ffdfeb5bec)
2022-10-18 15:10:41 +00:00
Randy J. Martinez b187539e13 core: increase liveness probe timeout to 5s
stability issues have been observed with 1s.
socket latency is expected whenever CPUs are
under minor pressure. Increasing value to
5s should cover most small-medium scale envs.

Resolves BZ: 2126566

Signed-off-by: Randy J. Martinez <randy@cephtips.com>
(cherry picked from commit ac9df66b76)
2022-10-17 17:49:54 +00:00
Avan Thakkar 993942b891 operator: don't remove existing pools for mgr/prometheus/rbd_stats_pools
Rook currently knows rbd pools only if they defined through CephBlockPool, so it overrides the config
mgr/prometheus/rbd_stats_pools which may have already been set for pools external to Rook. Check config
before running set command and if there some existing pools append them to enableStatsForCephBlockPools.

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit e8b74207dd)
2022-10-12 20:21:09 +00:00
Blaine Gardner f68d839c9a nfs: fix nfs grace period when multus is enabled
Run the ganesha-rados-grace command in a remote pod when multus
networking is enabled.

Signed-off-by: parth-gr <paarora@redhat.com>
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 51fac0a993)
2022-10-06 17:25:22 +00:00
mergify[bot] b1256242d0 Merge pull request #11108 from rook/mergify/bp/release-1.10/pr-11104
mgr: Set the public dashboard port differently from the target port (backport #11104)
2022-10-05 21:50:46 +00:00
Travis Nielsen e8862d541d Merge pull request #11086 from rook/mergify/bp/release-1.10/pr-11083
csi: use ceph csi v3.7.1 for rook csi driver deployment (backport #11083)
2022-10-05 15:49:53 -06:00
Travis Nielsen 6252af778a mgr: set the public dashboard port differently from the target port
If the port is greater than 1024, for backward compatibility the port and
targetPort should be the same value. If the port is less than 1024,
the internal port must use a higher port number. In that case, the internal
port will be the default port numbers and only the public port will be
the desired port in the cluster CR.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit f79ff42e0c)
2022-10-05 21:20:53 +00:00
Jiffin Tony Thottan b33a9d3c40 rgw: handle insecure flag skip for obc in the tls config
OBC provisioner ignores insecure skip flag even if it is declared for
TLS auth, hence bucket creation was failing

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit d605ba4cf8)
2022-09-30 16:37:15 +00:00
Humble Chirammal 3529052e3c csi: explicitly set default fstype for attacher sidecar
With the attacher sidecar update to v4.0.0 this has to be set
explictly.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit b9fb023edf)
2022-09-29 09:26:33 -06:00
Humble Chirammal 86e0ca6fb3 csi: update sidecars to latest in CSI deployment
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit c847e6b98d)

# Conflicts:
#	deploy/examples/images.txt
2022-09-29 14:46:59 +00:00
Humble Chirammal 595b732f0f csi: use ceph csi v3.7.1 for rook csi driver deployment
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit 4d435b224f)
2022-09-29 14:08:04 +00:00
Avan Thakkar 88185da11a operator: make imagePullPolicy customizable for csi driver and ceph pods
Introduce a new env variable ROOK_CSI_IMAGE_PULL_POLICY in rook operator configmap which should be used to
customize the imagePullPolicy for the csi driver and imagePullPolicy property in cephVersionSpec for ceph pods.

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit 934aa91056)
2022-09-28 13:23:42 +00:00
Niels de Vos 76ada4bc08 nfs: allow users to include additional files in the SSSD sidecar
The sssd.conf may refer to additional files, like a CA bundle or TLS
certificates. These files need to be made available in the SSSD sidecar.
With the new `sssdGenericFiles` reference to a VolumeSource and a
`MountPath`, a provided `sssd.conf` can use the additional files.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 79adad7dc0)
2022-09-27 17:52:00 +00:00
parth-gr 93f18188ae core: update loadclusterInfo with multus check
if Multus is enabled the clusterinfo should be updated with
network as multus as to run the ceph cmds in remote
executor

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 26584fc6e5)
2022-09-22 18:28:22 +00:00
Prasanna Kumar Kalever 4ae52c61e2 csi: make sure we reset CSIParam booleans to default
On removing or setting params to false in operator config map, make sure
to set CSIParam to their appropriate defaults, since we are not restarting the
operator we cannot just assume these params/variables/flags are defaulted,
everytime we need to makesure some defaults are specified.

This is what happens without these changes:
* Set CSI_ENABLE_METADATA to true, this will tune CSIParam.CSIEnableMetadata
  to true from false
* Create a PVC and check the metadata is added to the rbd/cephfs volumes
* Now Set CSI_ENABLE_METADATA to false, we assume CSIParam.CSIEnableMetadata
  will be set to false, but that is not happening because the earlier value
  of `CSIParam.CSIEnableMetadata = true` still persist.
  (we are not restarting operator to assume value of CSIParam.CSIEnableMetadata
   to be reset to false)

This happens with CSI_ENABLE_OMAP_GENERATOR and many other flags too,
fixing them all with these changes.

Thanks to Madhu for debugging the issue and testing it along.

Credit: Madhu Rajanna <madhupr007@gmail.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
(cherry picked from commit bf3a3aa92e)
2022-09-22 01:20:20 +00:00
Joshua Hoblitt e177e2ba42 operator: silence 'cm is handled by another watcher' DEBUG messages
I guesstimate that around 50% of the operator log volume when set to log
level `DEBUG` are messages about cm's which aren't relevant to rook.

E.g.:

```
2022-09-16 23:03:05.430839 D | ceph-cluster-controller: hot-plug cm watcher: only reconcile on hot plug cm changes, this "ingress-controller-leader" cm is handled by another watcher
2022-09-16 23:03:05.643255 D | ceph-cluster-controller: hot-plug cm watcher: only reconcile on hot plug cm changes, this "fleet-agent-lock" cm is handled by another watcher
2022-09-16 23:03:05.799526 D | ceph-cluster-controller: hot-plug cm watcher: only reconcile on hot plug cm changes, this "cattle-controllers" cm is handled by another watcher
```

Yes, it is `DEBUG` and noise is expected. However, there is no message
about checking the status of the cm's rook actually needs to watch and
these messages don't seem very useful. I have been resorting to piping
the operators logs through `| grep -v 'hot-plug cm watcher'` to cut down
the noise.

Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit 0763f91f93)
2022-09-19 21:39:21 +00:00
Madhu Rajanna ec3f81af63 csi: customize plugin volumes and volumemounts
This option open-up volumes and volumemounts
for user customization of the rbd,cephfs,nfs
plugin daemonset.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 80a96f8f32)
2022-09-16 17:33:44 +00:00
subhamkrai 5944d208af core: use assimilate-conf command to run commands
this commit uses the ceph feature assimilate-conf to set
multiple configurations for ceph global/pods at one file and
use that in command to set the required configuration in one
line command.
for example:
`ceph config assimilate-conf -i <input file> -o <output file>`

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit cfc5f19f92)
2022-09-15 14:17:05 +00:00
Blaine Gardner 487bed5eec nfs: add kerberos client security support
Add support for enabling kerberos for client authentication.

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

# Conflicts:
#	design/ceph/ceph-nfs-ganesha.md
2022-09-13 13:18:50 -06:00
Travis Nielsen 2c9751e5b7 Merge pull request #10970 from rook/mergify/bp/release-1.10/pr-10963
pool: initialize only rbd application pools (backport #10963)
2022-09-13 08:24:22 -06:00
Travis Nielsen efb69973e2 Merge pull request #10955 from rook/mergify/bp/release-1.10/pr-10943
csi: add topology provisioning support (backport #10943)
2022-09-13 08:23:36 -06:00
Rakshith R e7df1deb53 pool: initialize only rbd application pools
`rbd pool init` cmd initializes pool for rbd images.
This commit makes modification to init only
rbd application pools, since it is not required
by other pools like ".nfs",".mgr" & "mgr_devicehealth".

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit c02f3194d1)
2022-09-13 13:54:02 +00:00
Jiffin Tony Thottan 8f30d8d6df rgw: delete zone/pools for multisite configuation
Allow option to delete the zone/pools created by ceph object zone CR.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit c98628eb0f)
2022-09-12 19:43:25 +00:00
Rakshith R a58c949e73 csi: add topology provisioning support
This commit adds topology provisioning
support. This makes modification to rbac,
csi deployment and daemonset.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 3c5a2f4142)
2022-09-12 17:20:25 +00:00
Rakshith R d58d5313f4 osd: add kmip encryption support
The cluster-wide encryption feature now
supports KMIP (Key Management Interoperability Protocol)
kms.
KMIP is an extensible communication protocol that defines
message formats for the manipulation of cryptographic keys
on a key management server.

For more information, refer:
https://en.wikipedia.org/wiki/Key_Management_Interoperability_Protocol

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit f21c12234d)
2022-09-09 20:23:56 +00:00
Rakshith R 6fb66afa88 csi: add NFS expansion support
This commit adds resizer sidecar to
NFS driver and required storageclass
and rbac changes.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 9c4592720c)
2022-09-09 15:44:06 +00:00
Rakshith R 20fda88add csi: add NFS snapshot support
This commit adds snapshotter sidecar to
NFS driver and required yamls and docs too.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 73042c7531)
2022-09-09 15:44:06 +00:00
motorailgun 72946108e5 operator: improve ProbeHandler error message
This commit implements more diagnostic error for unsccessful
Liveness- and Readiness-Probe of Pods.

Added codes are expected to catch failures of
`ceph status` and `ceph mon_status`, and report it.

Closes: https://github.com/rook/rook/issues/9846
Closes: https://github.com/rook/rook/issues/9852

Signed-off-by: motorailgun <motoi_public@mail.aria-on-the-planet.es>
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit ff0951738f)
2022-09-07 17:50:48 +00:00
Travis Nielsen 2311a46b06 Merge pull request #10915 from rook/mergify/bp/release-1.10/pr-10777
rbd-mirror: remove volume replication sidecar (backport #10777)
2022-09-07 10:33:22 -06:00
Madhu Rajanna 4d1b5801f1 csi: remove findCSIChange from predicate
findCSIChange will work only for single
line values/configration in the configmap,
If the value is multiline the regex will not
be able to indentify the change because of this
one no configurations will be applied to the
csi driver. Removing this check so that if there
is any update on the configmap we will
reconcile the csi driver.

Note:- This might looks heavy but updating of config
map is not a frequent event.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 5b843a17a1)
2022-09-07 15:11:58 +00:00
yati1998 9b1ae35cbb csi: remove controller-ip from csi-addons
This commit removes controller-ip parameter from
csi-addons sidecar as it is no longer required to be
passed.

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit cc4fd0c547)
2022-09-07 14:27:47 +00:00
yati1998 72706176e0 rbdmirror: remove volume replication sidecar
The volume replication operator is being moved to
kubernetes-csi-addons. This commit hence, removes
the volume replication sidecar and updates the
related documentation.
It will also update the csi-addons sidecar version
to the latest one.

Closes: #10655

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit 9b4361b379)
2022-09-07 14:27:47 +00:00
Travis Nielsen 17123745e3 Merge pull request #10902 from rook/mergify/bp/release-1.10/pr-10791
csi: use cephcsi image for nfs nodeserver + holder design (backport #10791)
2022-09-06 13:46:06 -06:00
mergify[bot] 1e56c4beb4 Merge pull request #10886 from rook/mergify/bp/release-1.10/pr-10858
osd: refactor code (backport #10858)
2022-09-06 17:47:08 +00:00
Rakshith R cc19356068 csi: remove nfs image
This commit remove nfs image
since it is no longer needed.
Cephcsi itself will act as nfs
nodeserver.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 7722226521)

# Conflicts:
#	deploy/examples/images.txt
2022-09-06 16:52:46 +00:00
Rakshith R b10f56ddaa csi: add holder pod support for nfs
This commit adds holder pod support
for nfs to be able to work in non-host
networking scenario, without being
affected by restarts of csi-nfsplugin.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 7c6e4d71bc)
2022-09-06 16:52:44 +00:00
Rakshith R 092e761478 csi: use cephcsi image for nfs nodeserver
Cephcsi v3.7 now supports nfs nodeserver.
This commit changes nfs nodeserver image to
cephcsi image and makes other necessary
modifications to template.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 9405b59ff4)
2022-09-06 16:52:43 +00:00
Humble Chirammal bb066a4a78 csi: change the default fsgroup policy for CSI driver object
This commit change the default fsgroup policy for csi driver object
to "File" type which is the better/correct setting for the CSI volumes
We have been using default value which is "ReadWriteOnceWithFSType".
with this change backward compatibility should be preserved.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit 32ecc37d37)
2022-09-06 13:23:35 +00:00
Satoru Takeuchi 8d7dce6e5d osd: refactor code
Simplify osd management code.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 00b3d0f323)
2022-09-02 21:26:14 +00:00
Madhu Rajanna fa3eeef9dc csi: add missing serviceAccoutName to holder
Add missing serviceAccountName for the holder
daemonset to create the pods with required
access.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 32943b64e3)
2022-09-02 14:14:05 +00:00
Madhu Rajanna e9f001a8f9 csi: set daemonset set name as template name
Currently daemonset template.metadata.name is
empty and the way we are setting is not correct
use the daemonset name as the template.metadata.name

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 2dae7f6778)
2022-09-02 14:14:05 +00:00
Travis Nielsen dd85997fb6 Merge pull request #10771 from rook/mergify/bp/release-1.10/pr-10736
CSI: provide a way to supply `--setmetadata` and `--clustername` to the csi driver (backport #10736)
2022-08-31 14:40:16 -06:00
Travis Nielsen 1eb9c81176 Merge pull request #10770 from rook/mergify/bp/release-1.10/pr-10503
csi: change the fsgrouppolicy for CephFS driver to "File" mode (backport #10503)
2022-08-31 14:39:20 -06:00
Travis Nielsen eba9343c21 Merge pull request #10843 from rook/mergify/bp/release-1.10/pr-10834
build: Update min version to k8s 1.19 (backport #10834)
2022-08-31 10:35:08 -06:00
Travis Nielsen adb5b66f1c Merge pull request #10844 from rook/mergify/bp/release-1.10/pr-10840
csi: use the latest sidecars for ceph csi driver (backport #10840)
2022-08-31 10:34:16 -06:00
zhucan d70d04d021 object: gateway.port partially ignored when hostNetwork disabled
Signed-off-by: zhucan <zhucan.k8s@gmail.com>
(cherry picked from commit b94f080548)
2022-08-31 15:27:28 +00:00
Humble Chirammal c425c52c9e csi: use the latest sidecars for ceph csi driver
at present, the csi sidecars are older versions and not in parity
with the latest ceph csi release v3.7.0. This commit update the
same to make it.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit 6ef366dc34)
2022-08-31 15:15:52 +00:00