Commit Graph
9670 Commits
Author SHA1 Message Date
Satoru Takeuchi 51014dd306 osd: handle global or node-local device class configuration correctly
Rook uses global or node-local device class configuration if device-level
configurations doesn't exist. However, after introducing device-class
level resource configuration, rook set the default value of device class.
So global or node-level device class configuration has never been used
after that.

Closes: https://github.com/rook/rook/issues/11871
Closes: https://github.com/rook/rook/issues/11826

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 3e34ebeff8)
2023-03-29 14:04:18 +00:00
mergify[bot] 9928f26cc2 Merge pull request #11971 from rook/mergify/bp/release-1.11/pr-11961
ci: Improved reliability for mirroring snapshots (backport #11961)
2023-03-23 17:08:15 +00:00
Travis Nielsen c6b6beeae8 Merge pull request #11969 from rook/mergify/bp/release-1.11/pr-11963
mon: remove condition to use 6790 mon port (backport #11963)
2023-03-23 10:59:17 -06:00
travisn 78dd16631c ci: improved reliability for mirroring snapshots
The snapshots were not being given enough time to complete
before the test was checking whether they had been completed.
Now we check the snapshot mirror count after everything
else is confirmed to be running. Also increase several
timeouts in the tests.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit dca6810fac)
2023-03-23 16:25:39 +00:00
sp98 8dccb4fcc8 mon: remove condition to use 6790 mon port
PR #3143 added check to retain 6790 port for mons. Now
we can remove this check in Rook 1.11.

Signed-off-by: sp98 <sapillai@redhat.com>
(cherry picked from commit 755135582f)
2023-03-23 16:20:09 +00:00
Travis Nielsen 5bb14edc73 Merge pull request #11955 from travisn/release-1.11.2
build: Update release version to v1.11.2
v1.11.2
2023-03-21 14:02:48 -06:00
travisn 9e5706fd87 build: update release version to v1.11.2
For the patch release update the docs and examples
to v1.11.2

Signed-off-by: travisn <tnielsen@redhat.com>
2023-03-21 13:18:52 -06:00
Travis Nielsen e311df61c7 Merge pull request #11953 from rook/mergify/bp/release-1.11/pr-11950
core: remove ceph-conf-dir volume mount from exporter (backport #11950)
2023-03-21 13:10:16 -06:00
Travis Nielsen c99e52cf68 Merge pull request #11952 from rook/mergify/bp/release-1.11/pr-11951
core: Set key rotation default in code instead of crds (backport #11951)
2023-03-21 13:08:48 -06:00
avanthakkar 14bf3fd4e1 core: remove ceph-conf-dir volume mount from exporter
Remove the `ceph-conf-dir` volume and volume mount from exporter
as it's no more required to spin up exporter daemon

Signed-off-by: avanthakkar <avanjohn@gmail.com>
(cherry picked from commit 1a000673a4)
2023-03-21 18:25:19 +00:00
travisn 44f6455247 core: set key rotation default in code instead of crds
The defaults in CRDs cause an update and trigger a new
reconcile if the value is not set. For the key rotation
setting, the default was only being updated when the kms
feature was enabled. This update was causing the reconcile
to fail in the kms tests. With the default now in code,
the default can remain empty and no cr update will trigger
a new reconcile unexpectedly.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit cd94ed7ddc)
2023-03-21 18:16:43 +00:00
Travis Nielsen eb61dc5083 Merge pull request #11944 from Sheetalpamecha/fstring-formatting
external: use f-strings for formatting
2023-03-21 07:48:06 -06:00
Sheetal Pamecha 6825beb1b6 external: use f-strings for formatting
Replace the old formatting method with the f-string
and fix few pylint errors

Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
(cherry picked from commit (6dbbc9d)
Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
2023-03-21 10:25:18 +05:30
Travis Nielsen 77b98c496b Merge pull request #11939 from rook/mergify/bp/release-1.11/pr-11928
operator: use msgr2 if compression is enabled (backport #11928)
2023-03-20 13:28:19 -06:00
Travis Nielsen 0822f67b5b Merge pull request #11909 from rook/mergify/bp/release-1.11/pr-11906
ci: temporarily skipping other platform to fix build (backport #11906)
2023-03-20 12:42:52 -06:00
Travis Nielsen 367c39676e Merge pull request #11912 from rook/mergify/bp/release-1.11/pr-11823
osd: validate and remove duplicate topology (backport #11823)
2023-03-20 12:42:30 -06:00
Travis Nielsen 257f09dfce Merge pull request #11923 from rook/mergify/bp/release-1.11/pr-11908
rgw: enableRGWDashboard can be configured by custom (backport #11908)
2023-03-20 12:41:55 -06:00
Travis Nielsen 445b882f64 Merge pull request #11922 from rook/mergify/bp/release-1.11/pr-11919
external: pool and metadata ec pools were reversed in scripts (backport #11919)
2023-03-20 12:41:33 -06:00
Thomas Way 229bd17f79 operator: log ceph error in monstore
Closes: #11795
Signed-off-by: Thomas Way <thomas@6f.io>
(cherry picked from commit ef60650f09)
2023-03-20 18:25:24 +00:00
Thomas Way b859b4b3d2 operator: use msgr2 if compression is enabled
Closes: #11795
Signed-off-by: Thomas Way <thomas@6f.io>
(cherry picked from commit 891fdb3f77)
2023-03-20 18:25:24 +00:00
root 0a972a0850 rgw: allow the rgw dashboard to be disabled
The rgw dashboard can be disabled by the setting in the
CephObjectStore `gateway.dashboardEnabled` if set to false.

Signed-off-by: xiaobaowen <xiaobaowen@deeproute.ai>
(cherry picked from commit 253d4123f6)
2023-03-17 14:19:29 +00:00
Matt 98d6289752 external: pool and metadata ec pools were reversed in scripts
Pool and Metadata Pool Appear to be reversed.

dataPool needs to contain the EC Data pool
pool needs to contain the Metadata Pool
Closes: https://github.com/rook/rook/issues/11918

Signed-off-by: Matt P <dragon@fbdragon.co.uk>
(cherry picked from commit 8bdabf85a8)
2023-03-17 00:02:34 +00:00
Travis Nielsen ed8ff491ce Merge pull request #11921 from rook/mergify/bp/release-1.11/pr-11904
ci: update golangci-lint version as it fails for some k8s version in … (backport #11904)
2023-03-16 16:09:17 -06:00
Blaine Gardner 42b9ec85d4 Merge pull request #11913 from rook/mergify/bp/release-1.11/pr-11911
rgw: don't validate objectstore lenght when cluster is external (backport #11911)
2023-03-16 11:27:44 -06:00
parth-gr ec74ca2b4f ci: update golangci-lint version as it fails for some k8s version in 1.10
Closes: https://github.com/rook/rook/issues/11896

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 8e317ee074)
2023-03-16 16:52:46 +00:00
parth-gr 8d130f248b rgw: don't validate objectstore lenght when cluster is external
validate the object store name only if it is not an external cluster
as external cluster won't create the rgw daemon and it's other resource
and there is some legacy external cluster which has more lenght of objectstore
so to run them successfully we are not validating the objectstore name

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 839f8d60dd)
2023-03-15 21:47:41 +00:00
parth-gr e2b2c9958a osd: remove deprecated k8s topology label
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 89764f0371)
2023-03-15 18:40:01 +00:00
parth-gr 80919e67b9 osd: validate and remove duplicate topology
remove the duplicate topology added to the node,
and the priority to keep duplicate would be give to
the one who is lowest in the hierarchy

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

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit c22f5f36cb)
2023-03-15 18:40:01 +00:00
subhamkrai 0cadd8f1ac ci: temporarily skipping another platform to fix the build
temporarily skipping other platforms to fix the build since we are working on bigger changes to remove csv generation.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 1112e31511)
2023-03-15 13:42:45 +00:00
Travis Nielsen 0f669424ff Merge pull request #11897 from rook/mergify/bp/release-1.11/pr-11777
nfs: network mode can be set separately for cephcluster and nfs (backport #11777)
2023-03-14 14:26:56 -06:00
Richard Bateman f9f72c326b nfs: add hostNetwork option for the ganesha daemon
Add a hostNetwork option for a Ganesha server.
This allows you to use host networking for the cluster but still
use regular pod networking for NFS Ganesha servers

Signed-off-by: Richard Bateman <taxilian@gmail.com>
(cherry picked from commit 0ca9da23e8)
2023-03-13 18:14:57 +00:00
Travis Nielsen 9dea152bf7 Merge pull request #11893 from rook/mergify/bp/release-1.11/pr-11880
manifest: add missing quote (backport #11880)
2023-03-13 10:05:46 -06:00
Vincent Kling 28ba8ef839 manifest: add missing quote
Signed-off-by: Vincent Kling <v.kling@vinniict.nl>
(cherry picked from commit bd857cc5c5)
2023-03-13 15:20:17 +00:00
Travis Nielsen eb5b312f8e Merge pull request #11879 from rook/mergify/bp/release-1.11/pr-11859
csi: Update port to 3300 if msgr2 is required (backport #11859)
2023-03-10 15:35:48 -07:00
travisn 12d79edd1d csi: update port to 3300 if msgr2 is required
When msgr2 is required, ensure the mon endpoints passed to
the csi configmap are on port 3300. The mons will be
listening on both 6789 and 3300. Existing volumes can
continue using port 6789 while new volumes will use
port 3300.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 0484a3973f)
2023-03-10 21:51:55 +00:00
Travis Nielsen dadde56367 Merge pull request #11877 from rook/mergify/bp/release-1.11/pr-11864
core: add fsid to the additionalPrinterColumns on cephcluster custom resource (backport #11864)
2023-03-10 10:48:40 -07:00
Travis Nielsen 792d09b1fc Merge pull request #11868 from rook/mergify/bp/release-1.11/pr-11866
core: add missing labels in exporter deployment (backport #11866)
2023-03-10 10:43:33 -07:00
Travis Nielsen 5bcb73209d Merge pull request #11876 from rook/mergify/bp/release-1.11/pr-11872
ci: increase wait time for external cluster to be ready (backport #11872)
2023-03-10 10:42:02 -07:00
Travis Nielsen 20728c839b Merge pull request #11857 from rook/mergify/bp/release-1.11/pr-11814
docs: Clarify device class use on all pools (backport #11814)
2023-03-10 10:40:24 -07:00
xiaobaowen aa029cdbf4 core: add fsid to the additionalPrinterColumns on cephcluster custom resource
Signed-off-by: xiaobaowen <xiaobaowen@deeproute.ai>
(cherry picked from commit df95c1add0)
2023-03-10 14:55:07 +00:00
Rakshith R e6e48c6728 ci: increase wait time for external cluster to be ready
Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit cc72697f2a)
2023-03-10 14:42:49 +00:00
avanthakkar f8b4a4e568 core: add missing labels in exporter deployment
Adding missing `ceph_daemon_id` & `rook_cluster` labels to the exporter deployment.
Signed-off-by: avanthakkar <avanjohn@gmail.com>
(cherry picked from commit e235e01fa1)
2023-03-09 17:26:43 +00:00
travisn 817e63823f docs: clarify device class use on all pools
If the device class property is specified on any pool,
it must be specified on all pools so the pg autoscaler
will remain healthy.

Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 38981f2649)
2023-03-08 19:20:28 +00:00
Travis Nielsen 233888e2f1 Merge pull request #11856 from rook/mergify/bp/release-1.11/pr-11749
Implement OSD encryption key rotation  (backport #11749)
2023-03-08 11:42:00 -07:00
Rakshith R f7c8cf3c93 ci: add test for key rotation
This commit adds test for key rotation.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit b9fc9a643e)
2023-03-08 16:37:34 +00:00
Rakshith R 2e6ae0a958 docs: add documentation for encryption key rotation
Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 340dbe05b4)
2023-03-08 16:37:34 +00:00
Rakshith R 30692ca9c8 osd: add capability to reconcile key rotation cron jobs
This commits adds code to reconcile key rotation cron jobs.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit f39a32fcdb)
2023-03-08 16:37:33 +00:00
Rakshith R 65007124ab osd: add util function to create key rotation cron job
This commit adds util function to create key rotation cron job
such as getKeyRotationContainer, getKeyRotationCronPodTemplateSpec
and makeKeyRotationCronJob.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit ef38aea2a4)
2023-03-08 16:37:33 +00:00
Rakshith R 542906be28 osd: add rotate-key functionality to rook's key-management cmd
This commit adds functionality to be able to rotate
key encryption key of encrypted PVC backed OSDs.
Necessary changes such as adding update functionality
to kms and rbac changes are made as well.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 71e011f731)
2023-03-08 16:37:32 +00:00
Rakshith R 801c81555b osd: add support for updating secret for default KMS
This commit adds support for updating secret for default KMS.
This is required for encryption key rotation.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit b41fdfbb62)
2023-03-08 16:37:32 +00:00