Commit Graph
9114 Commits
Author SHA1 Message Date
dkeven e10f3cd4fe osd: allow raw partitions to be picked up by discover daemon
Signed-off-by: dkeven <dkvvven@gmail.com>
(cherry picked from commit dc95af5c33)
2022-09-27 14:20:24 +00:00
mergify[bot] a58cb2ecc0 Merge pull request #11057 from rook/mergify/bp/release-1.10/pr-11004
ci: move to ubuntu 20.04 runner completely (backport #11004)
2022-09-27 07:57:01 +00:00
Satoru Takeuchi 6713d178b0 ci: move to ubuntu 2004 completely
github-hosted runner ubuntu-18.04 will be removed by Dec. 1st, 2022.

https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/

So, let's change the all runnners to ubuntu-20.04.

We need to uninstall `snapd` because `snapd` prevents kernel from
unmounting `/mnt` completely.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 5c2d325cc4)
2022-09-27 07:26:15 +00:00
mergify[bot] d0c1b061ac Merge pull request #11041 from rook/mergify/bp/release-1.10/pr-10898
nfs: fix nfs if multus is enabled (backport #10898)
2022-09-23 16:53:19 +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
parth-gr 58f85cdf43 nfs: fix nfs if multus is enabled
Closes: https://github.com/rook/rook/issues/10812
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit ddea97ebde)
2022-09-22 18:28:22 +00:00
mergify[bot] 4acb6214a1 Merge pull request #11033 from rook/mergify/bp/release-1.10/pr-11030
csi: make sure we reset CSIParam booleans to default (backport #11030)
2022-09-22 06:05: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
Satoru Takeuchi 5ac825652c Merge pull request #11023 from rook/mergify/bp/release-1.10/pr-11022
docs: fix indentation in CephCluster on PVC example yaml (backport #11022)
2022-09-20 14:00:40 +09:00
Satoru Takeuchi 6c6b173fa3 Merge pull request #11021 from rook/mergify/bp/release-1.10/pr-11016
docs: clarify Object Pool CRD is same as Block Pool CRD (backport #11016)
2022-09-20 13:57:56 +09:00
Tarun Gupta Akirala 97fe1131a2 docs: fix indentation in CephCluster on PVC example yaml
Copy pasting current code block results in an YAML parsing error and
this change fixing that error by adding a space where its needed

Signed-off-by: Tarun Gupta Akirala <takirala@users.noreply.github.com>
(cherry picked from commit b068cba3dd)
2022-09-20 04:57:10 +00:00
Sheetal Pamecha 9f977447c5 docs: clarify Object Pool CRD is same as Block Pool CRD
Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
(cherry picked from commit 4dd8ee9520)
2022-09-20 02:13:00 +00:00
mergify[bot] b4df1f482c Merge pull request #11020 from rook/mergify/bp/release-1.10/pr-11012
operator: silence 'cm is handled by another watcher' DEBUG messages (backport #11012)
2022-09-19 22:07:40 +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
mergify[bot] 58243b3cf1 Merge pull request #11010 from rook/mergify/bp/release-1.10/pr-10942
csi: customize plugin volumes and volumemounts (backport #10942)
2022-09-16 18:07:15 +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
mergify[bot] 64d5267107 Merge pull request #10999 from rook/mergify/bp/release-1.10/pr-10934
core: use assimilate-conf command to run commands (backport #10934)
2022-09-15 21:13:24 +00:00
mergify[bot] 128f463d49 Merge pull request #11001 from rook/mergify/bp/release-1.10/pr-10990
ci: add mon_data_avail_warn to canary ci test (backport #10990)
2022-09-15 21:04:36 +00:00
mergify[bot] 8d5b9fe45f Merge pull request #11003 from rook/mergify/bp/release-1.10/pr-10991
build: Fix intermittent gen-rbac failure (backport #10991)
2022-09-15 16:58:44 +00:00
Travis Nielsen 03f065d1ba build: fix intermittent gen-rbac failure
The crds generation for the helm crds is intermittently hitting a build
error due to multiple builds generating the crds at the same time.
We avoid this race condition by first writing the crds to a temp file
then move the file to the helm crd resources file.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7863d3161c)
2022-09-15 16:14:15 +00:00
parth-gr fd25c88d9d ci: add mon_data_avail_warn to canary ci test
ceph cluster on ci mostly have health error
mon disk low on size,
so overriding the min aval capacity to 0 from 30% default so this
error can be removed

Closes: rook#10971

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit df8493d77b)
2022-09-15 16:10:22 +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
Satoru Takeuchi 370565ffa0 Merge pull request #10997 from rook/mergify/bp/release-1.10/pr-10992
docs: add logical volume to storage options (backport #10992)
2022-09-15 22:17:50 +09:00
Satoru Takeuchi 3a5d4c4e77 docs: add logical volume to storage options
Rook supports osd on logical volume in host-based clusters. Let's add it
to the list of valid device types.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit b52e6a0da8)
2022-09-15 12:34:01 +00:00
mergify[bot] d34737f843 Merge pull request #10988 from rook/mergify/bp/release-1.10/pr-10912
docs: add upgrade steps for multi-tenant custer (backport #10912)
2022-09-14 14:14:32 +00:00
parth-gr 4fd0ccdcce docs: add upgrade steps for multi-tenant custer
Currently for external clustr multitenancy is only applicable for new
deployments, but adding doc change so multi-tenancy can be achieved for
upgraded cluster also

Closes: https://github.com/rook/rook/issues/10678
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 0ad1b52005)
2022-09-14 13:45:00 +00:00
Travis Nielsen 33ca596246 Merge pull request #10987 from rook/mergify/bp/release-1.10/pr-10909
external: fix import errors for python2 (backport #10909)
2022-09-14 07:41:16 -06:00
subhamkrai 71bf886dab external: fix import errors for python2
remove duplicate import urllib.parse which is handled below
with try and except no need to import separately. Also, change
the way to get the python version.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 9a952df419)
2022-09-14 04:24:00 +00:00
Satoru Takeuchi 8e5435f977 Merge pull request #10985 from rook/mergify/bp/release-1.10/pr-10983
ci: Update arm host to pick up correct self-hosted machine (backport #10983)
2022-09-14 05:11:07 +09:00
Travis Nielsen 749f1f0599 Merge pull request #10982 from rook/mergify/bp/release-1.10/pr-10968
osd: disallow to create encrypted osd on partition (backport #10968)
2022-09-13 14:09:12 -06:00
Travis Nielsen a67d715513 Merge pull request #10980 from rook/mergify/bp/release-1.10/pr-10975
build: Stop printing verbose rbac generation details (backport #10975)
2022-09-13 14:08:23 -06:00
Travis Nielsen 0cd94677d8 Merge pull request #10977 from rook/mergify/bp/release-1.10/pr-10700
monitoring: fix pool growth warning grouping (backport #10700)
2022-09-13 14:07:36 -06:00
Travis Nielsen 4458d2968e Merge pull request #10974 from rook/mergify/bp/release-1.10/pr-10965
build: update goceph module to v0.17 (backport #10965)
2022-09-13 14:07:17 -06:00
Blaine Gardner 54200477da Merge pull request #10973 from rook/mergify/bp/release-1.10/pr-10950
nfs: add kerberos client security support (backport #10950)
2022-09-13 13:57:07 -06:00
Travis Nielsen 68bd66b193 ci: update arm host to pick up correct self-hosted machine
The self-hosted arm64 machine has a new label ubuntu-20.04-arm64 to
avoid the conflict with other ubuntu-20.04 labels from
general github actions. We only want the daily arm job
to use the self-hosted runner.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 55c72a3674)
2022-09-13 19:41:48 +00:00
Satoru Takeuchi 71a89b1621 osd: disallow to create encrypted osd on partition
Rook doesn't support encrypted osd on partition. So we should
skip partitions as candidates of the new encrypted osds.

Closes: https://github.com/rook/rook/issues/10911

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 591fc5f68b)
2022-09-13 19:27:23 +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 9f4e0a4b19 build: stop printing verbose rbac generation details
The rbac generation prints a lot of info that is not necessary
unless troubleshooting the rbac build, so we can comment it
out by default.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 839920ff80)
2022-09-13 18:27:26 +00:00
mergify[bot] e5cfd812d8 Merge pull request #10979 from rook/mergify/bp/release-1.10/pr-10969
ci:  disallow to create encrypted osd on lv and osd on lv with metadata device (backport #10969)
2022-09-13 18:18:52 +00:00
Satoru Takeuchi 514c75d9b5 ci: disallow to create osd on lv with metadata by accident
OSD on LV with metadata device is not supported. So we once we made
a fix to disallow this configuration. However, it's insuffucient
because we forgot to reset `matched` flag.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 39cc6059f1)
2022-09-13 17:36:54 +00:00
Satoru Takeuchi 5dd063750e ci: disallow to create encrypted osd on lv
Rook doesn't support encrypted OSD on LV. Without disallowing
this configuration, ceph-volume results in failure.

Closes: https://github.com/rook/rook/issues/10782

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 7969450589)
2022-09-13 17:36:53 +00:00
Jamison Lofthouse f1f631de63 monitoring: fix pool growth warning grouping
Predict linear will continue to predict on exporter data from old pods.
We can take the max value for every hour in the 2 day window before we
linearly predict to get the most conservative estimate. This will only
affect the hour in which a new mgr pod is started.

Fixes #10691

Signed-off-by: Jamison Lofthouse <jamison.lofthouse@gmail.com>
(cherry picked from commit f553034351)
2022-09-13 17:32:32 +00:00
Jiffin Tony Thottan c25f42028d build: update goceph module to v0.17
Updating go-ceph module into latest version v0.17

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit d3d760e901)
2022-09-13 16:56:52 +00: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
mergify[bot] 3fd2db3152 Merge pull request #10961 from rook/mergify/bp/release-1.10/pr-10948
ci: add debug flag to identify any failing yaml origin (backport #10948)
2022-09-13 02:59:28 +00:00
mergify[bot] fbf9caf31d Merge pull request #10960 from rook/mergify/bp/release-1.10/pr-10931
external: do not add info=read cap if ceph version doesn't support it (backport #10931)
2022-09-12 21:49:06 +00:00
Deepika Upadhyay 507d037da8 ci: add debug flag to identify any failing yaml origin
Signed-off-by: Deepika Upadhyay <deepika@koor.tech>
(cherry picked from commit ccbff1be95)
2022-09-12 21:17:34 +00:00
parth-gr 77aef59108 external: do not add info=read cap if ceph version doesn't support it
The rgw ip validation feature was needing to update the rgw user
cap to add info=read permission, but this permission is only backported
till ceph pacific, so we added a check that only add this cap
when ceph version support it,
But this cap was also adding with the other caps, so removed it from there
Now it will only add this cap if ceph version support it

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 54425803b6)
2022-09-12 21:16:35 +00:00