Commit Graph
8035 Commits
Author SHA1 Message Date
Blaine Gardner 5ca0e752ef helm: add optional monitoring RBAC to operator chart
An older version of the Helm chart always installed RBAC permissions for
enabling monitoring. In an effort to reduce the privileges Rook uses by
default, they were removed. We need to still include the monitoring RBAC
optionally since the change could break some users.

Co-authored-by: Mathieu Parent <mathieu.parent@insee.fr>
Co-authored-by: Blaine Gardner <blaine.gardner@redhat.com>

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit e3be7a30ba)
2021-12-14 22:36:31 +00:00
mergify[bot] df6167d792 Merge pull request #9421 from rook/mergify/bp/release-1.8/pr-9276
pool: add rbd ec pool support in external cluster (backport #9276)
2021-12-14 21:22:08 +00:00
mergify[bot] 74bd6f0712 Merge pull request #9426 from rook/mergify/bp/release-1.8/pr-9296
file: allow to create CephFS dataPools with predefined names (backport #9296)
2021-12-14 18:29:49 +00:00
mergify[bot] 54f3008f3c Merge pull request #9425 from rook/mergify/bp/release-1.8/pr-9423
build: updating tini init command in direct mount toolbox (backport #9423)
2021-12-14 18:25:12 +00:00
Denis Egorenko 07fb393fca file: allow to create CephFS data pools with predefined names
Add an ability to create data pools for CephFS with predefined
names.

Related-Issue: rook#9295
Signed-off-by: Denis Egorenko <degorenko@mirantis.com>
(cherry picked from commit 3ff681e81d)
2021-12-14 18:05:19 +00:00
parth-gr 2a891a8eef build: update the securityContext of direct mount container
update securityContext to runAsUser: 0
so container can run as a root user

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit bc355c695e)
2021-12-14 10:57:50 -07:00
parth-gr dbe0346294 build: updating tini init command in direct mount toolbox
the tini have been removed but was still present at direct mount
used the bin/bash shell in place of tini

Closes: https://github.com/rook/rook/issues/9382
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit bd3e558c24)

# Conflicts:
#	deploy/examples/direct-mount.yaml
2021-12-14 17:54:44 +00:00
subhamkrai 881c0b6db3 pool: update the failure domain of pool-ec file to host
Updating the failure domain of pool-ec file from
osd to host.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit fc88e4ff8e)
2021-12-14 08:51:18 +00:00
subhamkrai 5fa5a01c9f pool: add rbd ec pool support in external cluster
Adding cli agrument `--rbd-metadata-ec-pool-name` to read
rbd ec pool name to support ec pool in external cluster
and also updating the json blob.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 22865815cf)
2021-12-14 08:51:18 +00:00
mergify[bot] 9dbcd2f654 Merge pull request #9420 from rook/mergify/bp/release-1.8/pr-9417
pool: file: object: clean up health checkers for force deletion (backport #9417)
2021-12-14 08:42:12 +00:00
Blaine Gardner 09b599b4cb pool: file: object: clean up health checkers for force deletion
When CephBlockPool, CephFilesystem, or CephObjectStore resources are
deleted after removing their finalizer, the code path to stop monitoring
was not stopping monitoring since a non-present resource does not have a
name and namespace attached. When the object is deleted, ensure the
internal representation used to stop monitoring has a name and namespace
to fix the issue.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 0c76be8c38)
2021-12-14 08:16:44 +00:00
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