Commit Graph
8024 Commits
Author SHA1 Message Date
mergify[bot] dde3d89554 Merge pull request #9412 from rook/mergify/bp/release-1.8/pr-9410
security: use correct osd tags for restricted caps with external cluster script (backport #9410)
2021-12-13 15:15:46 +00:00
Lennart Hagemann 7ea4e1dc45 security: use correct osd tags for restricted caps
The create-external-cluster-resources.py with
--create-external-cluster-resources set to true
sets a wrong osd application tag. It should use
the fs name and not the fs pools.

Closes: https://github.com/rook/rook/issues/9227
Signed-off-by: Lennart Hagemann <lennart.hagemann@continum.net>
(cherry picked from commit 7507790375)
2021-12-13 14:44:57 +00:00
mergify[bot] a879102ff1 Merge pull request #9409 from rook/mergify/bp/release-1.8/pr-9395
core: add context parameter to k8sutil kvstore (backport #9395)
2021-12-13 11:09:10 +00:00
Yuichiro Ueno 7715cc45ae core: add context parameter to k8sutil kvstore
This commit adds context parameter to k8sutil kvstore functions. By
this, we can handle cancellation during API call of kvstore resource.

Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
(cherry picked from commit 0d8c581aa9)
2021-12-13 10:45:14 +00:00
Sébastien Han b2f04d9e3d Merge pull request #9404 from rook/mergify/bp/release-1.8/pr-9396
core: add context parameter to k8sutil service (backport #9396)
2021-12-13 11:44:27 +01:00
mergify[bot] fd8166efe9 Merge pull request #9408 from rook/mergify/bp/release-1.8/pr-9391
core: add context parameter to k8sutil pvc (backport #9391)
2021-12-13 09:56:50 +00:00
mergify[bot] cbfb85fa2d Merge pull request #9407 from rook/mergify/bp/release-1.8/pr-9392
core: add context parameter to k8sutil prometheus (backport #9392)
2021-12-13 09:50:04 +00:00
mergify[bot] a0fa8aa931 Merge pull request #9406 from rook/mergify/bp/release-1.8/pr-9394
core: add context parameter to k8sutil configMap (backport #9394)
2021-12-13 09:42:17 +00:00
mergify[bot] c8d4ff15e0 Merge pull request #9405 from rook/mergify/bp/release-1.8/pr-9393
core: add context parameter to k8sutil endpoint (backport #9393)
2021-12-13 09:31:19 +00:00
mergify[bot] fd95b49bea Merge pull request #9403 from rook/mergify/bp/release-1.8/pr-9397
core: add context to k8sutil replicaset and secret (backport #9397)
2021-12-13 09:30:57 +00:00
Yuichiro Ueno a538db9138 core: add context parameter to k8sutil pvc
This commit adds context parameter to k8sutil pvc functions. By this, we
can handle cancellation during API call of pvc resource.

Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
(cherry picked from commit 5352cf58a7)
2021-12-13 09:07:23 +00:00
Yuichiro Ueno b82061cbf5 core: add context parameter to k8sutil prometheus
This commit adds context parameter to k8sutil prometheus functions. By
this, we can handle cancellation during API call of prometheus resource.

Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
(cherry picked from commit c6c8dca0a7)
2021-12-13 09:06:21 +00:00
Yuichiro Ueno 83271a0bb5 core: add context parameter to k8sutil configMap
This commit adds context parameter to k8sutil configMap functions. By
this, we can handle cancellation during API call of configMap resource.

Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
(cherry picked from commit 25f784194d)
2021-12-13 09:05:44 +00:00
Yuichiro Ueno 463696e202 core: add context parameter to k8sutil endpoint
This commit adds context parameter to k8sutil endpoint functions. By
this, we can handle cancellation during API call of endpoint resource.

Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
(cherry picked from commit d1d252c5c2)
2021-12-13 09:04:30 +00:00
Yuichiro Ueno 9bfd142433 core: add context parameter to k8sutil service
This commit adds context parameter to k8sutil service functions. By
this, we can handle cancellation during API call of service resource.

Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
(cherry picked from commit 03e976b52c)
2021-12-13 09:03:48 +00:00
Yuichiro Ueno 1d26abf53b core: add context to k8sutil replicaset and secret
This commit adds context parameter to k8sutil replicaset and secret
functions. By this, we can handle cancellation during API call of
replicaset and secret resource.

Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
(cherry picked from commit b6ce262e7f)
2021-12-13 09:02:47 +00:00
mergify[bot] 35dacb7533 Merge pull request #9389 from rook/mergify/bp/release-1.8/pr-9380
osd: cleanup cluster using the root UID (backport #9380)
2021-12-10 17:51:30 +00:00
Sébastien Han 0f5658f715 osd: cleanup cluster using the root UID
We need to use the root UID to run the cleanup job since ceph-volume
does not support running as non-root in all the versions. We have this
ceph tracker to allow this https://tracker.ceph.com/issues/53511 but
it's not in all ceph's versions. Implementing a version check is tricky
since at this stage the cluster is being deleted and it's hard to catch
it.

Closes: https://github.com/rook/rook/issues/9375
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 1f7536ffab)
2021-12-10 17:26:56 +00:00
Travis Nielsen 4d5fca8167 Merge pull request #9378 from travisn/release-1.8.0
build: Update the release version to v1.8.0
v1.8.0
2021-12-09 14:30:12 -07:00
Travis Nielsen d757c6bf13 build: update the release version to v1.8.0
The minor release v1.8.0 is ready to go! This updates the
example manifests and documents to point to the latest
release.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-09 12:52:49 -07:00
Blaine Gardner a008501a7e Merge pull request #9376 from rook/mergify/bp/release-1.8/pr-9372
docs: add instructions to upgrade admission controller (backport #9372)
2021-12-09 12:43:53 -07:00
Blaine Gardner dad8a7ef3b docs: add instructions to upgrade admission controller
In 1.8, the admission controller has merged with the operator and the
operator needs an emptyDir and a volume mount to store the webhook
certificates.

Co-authored-by: Blaine Gardner <blaine.gardner@redhat.com>
Co-authored-by: Sébastien Han <seb@redhat.com>

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 6c09de619f)
2021-12-09 19:41:55 +00:00
mergify[bot] 934a5755e2 Merge pull request #9371 from rook/mergify/bp/release-1.8/pr-9169
test: add more test cases for bucket notfication (backport #9169)
2021-12-09 16:18:36 +00:00
Jiffin Tony Thottan 971f9b6435 test: add more test cases for bucket notfication
Added following test cases for bucket notification integration test
suite:

* different order: OBC - Topic - Notification
* different order: OBC - Notification - Topic
* adding a label to an existing OBC
* deleting a label from an existing OBC

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 7a9a7123a0)
2021-12-09 15:55:02 +00:00
mergify[bot] 1469c3c3b4 Merge pull request #9369 from rook/mergify/bp/release-1.8/pr-9357
helm: rook-ceph chart: Set up webhook cert volume (backport #9357)
2021-12-09 14:10:18 +00:00
Omar Pakker fbe102d5ef helm: rook-ceph chart: Set up webhook cert volume
The 1.8 (beta) relies on a volume when using the admission controller,
which is missing from the Helm chart.
This change sets up the volume so the operators starts properly
when set up to run the admission controller.

Closes: https://github.com/rook/rook/issues/9349
Signed-off-by: Omar Pakker <Omar007@users.noreply.github.com>
(cherry picked from commit 5841077549)
2021-12-09 13:41:11 +00:00
mergify[bot] 6e3e479c41 Merge pull request #9367 from rook/mergify/bp/release-1.8/pr-8776
ceph: removing fs_name arg from daemon status cmd (backport #8776)
2021-12-09 13:19:01 +00:00
parth-gr bdd9032f59 mds: removing fs_name arg from daemon status cmd
If cephVersion>= 16.2.7, we run
ceph fs snapshot mirror daemon status
otherwise we run
ceph fs snapshot mirror daemon status <fs_name>

Updating the cmd so both the ceph version can run successfully

Closes: https://github.com/rook/rook/issues/8458
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit f7082c9efa)
2021-12-09 12:53:24 +00:00
mergify[bot] 4f2eb1dc54 Merge pull request #9364 from rook/mergify/bp/release-1.8/pr-9362
nfs: make rados.namespace optional (backport #9362)
2021-12-09 07:18:23 +00:00
Blaine Gardner bbcc1f2a5f nfs: make rados.namespace optional
Fix the CephNFS spec.rados API specifiation to be clear that spec.rados
is optional for all Ceph v16 versions, including that
spec.rados.namespace is optional.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 0bbab6dfc9)
2021-12-09 00:00:24 +00:00
mergify[bot] 976bf46aa1 Merge pull request #9360 from rook/mergify/bp/release-1.8/pr-9150
ceph: bucket notifications refactoring work (backport #9150)
2021-12-08 23:41:47 +00:00
Yuval Lifshitz 83529d5cf1 rgw: refactor bucket notification code
this should make sure code reuse between the OBC label controller and
the CephBucketNotification controller.
done as part of the cleanup work from:
https://github.com/rook/rook/pull/8426

this also include adding unit tests for:
- topic controller
- notification controller
- obc label controller

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
(cherry picked from commit f2b065a3ae)
2021-12-08 23:12:31 +00:00
mergify[bot] 6f4fc0ef0d Merge pull request #9361 from rook/mergify/bp/release-1.8/pr-9356
nfs: remove poolConfig (backport #9356)
2021-12-08 23:09:27 +00:00
Blaine Gardner 400e39e994 nfs: remove poolConfig
Remove the poolConfig in CephNFS to prevent different CephNFS CRs from
contending to change the replication spec of the default NFS pool.

Resolves #9355

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit aaecc93315)
2021-12-08 22:35:47 +00:00
Travis Nielsen bf7a6d6e5b Merge pull request #9354 from rook/mergify/bp/release-1.8/pr-9347
core: always return nil clusterInfo on failure (backport #9347)
2021-12-08 11:22:42 -07:00
mergify[bot] 3ceaaaaff0 Merge pull request #9352 from rook/mergify/bp/release-1.8/pr-9343
core: bump to ceph 16.2.7 (backport #9343)
2021-12-08 17:31:44 +00:00
mergify[bot] f2fd2b7d6c Merge pull request #9350 from rook/mergify/bp/release-1.8/pr-9214
pool: Update the desired failure domain when changed (backport #9214)
2021-12-08 17:28:42 +00:00
Sébastien Han e58939a2a0 core: continue and create an initial cluster info or fail
Let's catch the correct error when no cluster info exists yet. If we
have another error, we fail the orchestration and try again. This could
help up catching small API hiccups for example.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit e5ce6abac0)
2021-12-08 17:08:43 +00:00
Sébastien Han 0e28e48c8d core: fix error message
Let's have a more accurate and correct error message that reflects what
the failing function tried to do.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 4f1a2d47a4)
2021-12-08 17:08:42 +00:00
Sébastien Han 60fb7f0ae9 core: always return nil on error
We should always return a nil pointer of clusterInfo if
CreateOrLoadClusterInfo() returns an error.

Closes: https://github.com/rook/rook/issues/9314
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit fdd243d3de)
2021-12-08 17:08:42 +00:00
Blaine Gardner f0e19ea309 Merge pull request #9351 from rook/mergify/bp/release-1.8/pr-9281
docs: update NFS docs (backport #9281)
2021-12-08 10:05:37 -07:00
Sébastien Han 87cca6f63c core: bump to ceph 16.2.7
ceph 16.2.7 is out so let's use it in our manifests.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 0a918814ea)
2021-12-08 17:04:20 +00:00
Blaine Gardner 1894d9afd7 docs: update NFS docs
NFS docs need to be updated to reflect changes between Octopus and
Pacific, how users are affected, how NFS is configured differently
between the Ceph versions, and how to upgrade from one Ceph version to
the other.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit e98959cce0)
2021-12-08 17:01:10 +00:00
Travis Nielsen 00eaccbd48 pool: update the desired failure domain when changed
The failure domain is baked into the crush rule that is
created for a pool. To allow for an updated failure domain
on the pool, create a new crush rule specific for that
failure domain and update the pool with the new rule.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 8e55dd9d41)
2021-12-08 17:00:25 +00:00
Sébastien Han 5d39b55d8e Merge pull request #9338 from rook/mergify/bp/release-1.8/pr-9316
build: generate common.yaml from helm charts (backport #9316)
2021-12-08 11:56:36 +01:00
Sébastien Han 1f123ff06c Merge pull request #9346 from rook/mergify/bp/release-1.8/pr-9342
test: Upgrade test to update the toolbox spec (backport #9342)
2021-12-08 11:56:09 +01:00
Sébastien Han 1f7786a9aa Merge pull request #9341 from rook/mergify/bp/release-1.8/pr-8452
mds: create EC pool as secondary pool (backport #8452)
2021-12-08 11:55:06 +01:00
Sébastien Han dc3b41222e Merge pull request #9333 from rook/mergify/bp/release-1.8/pr-9332
build: updated locale for rbac generation (backport #9332)
2021-12-08 10:01:49 +01:00
mergify[bot] 09cb6cff84 Merge pull request #9340 from rook/mergify/bp/release-1.8/pr-9337
docs: Clarify helm chart version upgrades (backport #9337)
2021-12-08 08:33:56 +00:00
Travis Nielsen 0d9edd6566 test: upgrade test to update the toolbox spec
The toolbox spec changed from 1.7 to 1.8 due to the removal
of tini from the image. The upgrade test was failing on
k8s 1.18 due to this issue.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1e9d4cc31f)
2021-12-08 08:13:22 +00:00