Commit Graph
8100 Commits
Author SHA1 Message Date
mergify[bot] da8699f789 Merge pull request #9572 from rook/mergify/bp/release-1.8/pr-9570
build: make crd/rbac generation order deterministic (backport #9570)
2022-01-13 17:32:22 +00:00
Blaine Gardner 36102c12bc build: make crd/rbac generation order deterministic
Linux doesn't guarantee file ordering, so when dealing with files in
order, we can use 'sort' to make sure the order is deterministic. For
yq's usage of files, we need to keep file names in an intermediate
variable, and this should be an array to support file paths with spaces.
'readarray' is not available on MacOS's built-in bash, so a longer
'while read' loop is needed for the array creation.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 6f4a23694d)
2022-01-13 17:05:32 +00:00
mergify[bot] ad5ba87e3a Merge pull request #9562 from rook/mergify/bp/release-1.8/pr-9554
helm: use operatorNamespace if exists for monitoring RBAC (backport #9554)
2022-01-11 15:35:27 +00:00
mergify[bot] 5acab1d600 Merge pull request #9561 from rook/mergify/bp/release-1.8/pr-9560
osd: use cluster name when fetching the cephcluster (backport #9560)
2022-01-11 15:17:26 +00:00
Henry Zhang f8b65671d3 helm: use operatorNamespace if exists for monitoring RBAC
right now the RoleBinding for monitoring is created with the cluster namespace as the subject
this causes the operator to loop on reconcile due to it not having permissions to create monitors
in the other cluster

moving the subject to the operator namespace fixes this

Signed-off-by: Henry Zhang <me@henry.dev>
(cherry picked from commit 3d89834ee4)
2022-01-11 15:07:51 +00:00
Sébastien Han 87aa8f229c osd: use cluster name when fetching the cephcluster
Previously we were using the namespace, it's a mistake, even though most
clusters use the same name as the namespace.
Let's be precise and use the cluster name when looking for it.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 0a54db935b)
2022-01-11 14:49:11 +00:00
mergify[bot] 0be96aaeaa Merge pull request #9548 from rook/mergify/bp/release-1.8/pr-9411
security: update auth permissions for external cluster (backport #9411)
2022-01-10 15:42:47 +00:00
parth-gr 9e18ae5cfa security: make cephfs_filesystem_name flag optional
cephfs_filesystem_name flag isn't mandatory if restricted_auth_permission
is on.

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 4a3088c580)
2022-01-10 15:13:40 +00:00
parth-gr a6e56a640f security: update auth permissions for external cluster
Added a clusterName, poolName , filesystemName, radosNamespace
as a suffix on ceph auth principals for external cluster so
every csi authentication would be unique if
restricted_auth_permission flag is specified.

Closes: https://github.com/rook/rook/issues/9192
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 6ed7423bac)
2022-01-10 15:13:39 +00:00
mergify[bot] 53ccbff7aa Merge pull request #9540 from rook/mergify/bp/release-1.8/pr-9539
build: Replace local build tag with regex (backport #9539)
2022-01-07 09:06:22 +00:00
mergify[bot] 7024e5002c Merge pull request #9541 from rook/mergify/bp/release-1.8/pr-9485
core: limit use of wildcards in cluster-scoped rbac (backport #9485)
2022-01-07 08:45:42 +00:00
Blaine Gardner 0fef8b043f core: limit use of wildcards in cluster-scoped rbac
Rook needs to be able to watch all `ceph.rook.io` resources to reconcile
them; however, it does not need blanket verb privileges. Reduce the
privileges as much as possible.

Ideally, Rook would only have update permissions to status and
finalizers of resources; however, finalizers are not a full-fledged
subresource at this time, and "update" permissions must be maintained
for `ceph.rook.io` resources.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 684fe30126)
2022-01-06 20:14:13 +00:00
Travis Nielsen d6c063a2f7 build: replace local build tag with regex
The local build tag replacement in the CI should work the same
whether in master or release branches, so we use a regex to
match any rook/ceph tag to be renamed to the local-build tag.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7167de0601)
2022-01-06 11:42:01 -07:00
Travis Nielsen 8b02ee51e4 Merge pull request #9538 from travisn/release-1.8.2
build: Update release version to v1.8.2
v1.8.2
2022-01-06 10:52:43 -07:00
Travis Nielsen ecb91628e2 build: update release version to v1.8.2
With the patch release the examples and docs are updated to v1.8.2

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-01-06 10:15:13 -07:00
mergify[bot] 43d5b29a8a Merge pull request #9537 from rook/mergify/bp/release-1.8/pr-9533
rgw: fix startup probe (backport #9533)
2022-01-06 16:46:06 +00:00
Satoru Takeuchi 1332d7c041 rgw: fix startup probe
It's better to set the same handler to startupProbe as livenessProbe.
Otherwise, we might hit the following problem.

https://github.com/rook/rook/issues/6304

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit af88b50fc7)
2022-01-06 16:19:49 +00:00
Satoru Takeuchi d294ab621b Merge pull request #9531 from rook/mergify/bp/release-1.8/pr-9529
object: update to latest lib-bucket-provisioner (backport #9529)
2022-01-06 14:06:08 +09:00
Blaine Gardner 2a6b173fd6 object: update to latest lib-bucket-provisioner
The latest lib-bucket-provisioner has a corner case fix for a bucket
with `generateName` equal to exactly 27 chars, which will result in an
ObjectBucket with 64 chars. 63 chars is the max allowed by Kubernetes.

See:
https://github.com/kube-object-storage/lib-bucket-provisioner/pull/220

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit ae306e434a)
2022-01-05 22:46:24 +00:00
mergify[bot] c9c2850dac Merge pull request #9523 from rook/mergify/bp/release-1.8/pr-9522
docs: add section for `disruptionManagement` (backport #9522)
2022-01-05 14:53:46 +00:00
subhamkrai 6bb067b0c1 docs: add section for disruptionManagement
Adding section `disruptionManagement` which was
removed unintentionally in PR 8381.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 0b0c8da558)
2022-01-05 14:24:54 +00:00
mergify[bot] f406ff22c2 Merge pull request #9521 from rook/mergify/bp/release-1.8/pr-9400
rgw: add events to CephBucketNotification CR (backport #9400)
2022-01-04 20:27:55 +00:00
Yuval Lifshitz e13d8c17fc rgw: add events to CephBucketNotification CR
the events are used to mark the start/success/failure of the reconciliation
and also to log the bucket names on which the CephbucketNotification is
created

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
(cherry picked from commit 11727b1673)
2022-01-04 19:59:17 +00:00
mergify[bot] f5bcc0144b Merge pull request #9520 from rook/mergify/bp/release-1.8/pr-9468
core: rgw: allow specifying daemon startup probes (backport #9468)
2022-01-04 18:27:53 +00:00
Blaine Gardner 86c2301cfc core: rgw: allow specifying daemon startup probes
Allow specifying daemon startup probes where we also allow configuring
liveness probes. Startup probes allow Rook to tolerate when Ceph daemons
occasionally take a long time to start up while not also making
Kubernetes liveness probes slower to detect runtime failures of daemons.

Startup probes are beta in Kubernetes 1.18, so we should not enable
probes by default for earlier Kubernetes versions.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit c07d89d9ea)
2022-01-04 18:04:06 +00:00
Blaine Gardner a5f8e42c36 Merge pull request #9518 from rook/mergify/bp/release-1.8/pr-9512
core: run discover daemonset as root uid (backport #9512)
2022-01-04 10:44:32 -07:00
mergify[bot] 295df75289 Merge pull request #9517 from rook/mergify/bp/release-1.8/pr-9515
build: use the same csv name for all platforms (backport #9515)
2022-01-04 17:08:10 +00:00
Sébastien Han 78c296589f core: run discover daemonset as root uid
So that the tool inside the container has the permission to run
correctly, e.g: sgdisk.

Clsoes: https://github.com/rook/rook/issues/9493
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit dd67b866dc)
2022-01-04 16:54:06 +00:00
Sébastien Han 7c5d0ed3ee build: use the same csv name for all platforms
Recently with the directory renaming to "deploy/olm" the CSV name
changed from "ceph" to "olm". Now we are using the same "rook-ceph" name
regardless of the platform.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 7cf9285501)
2022-01-04 16:41:13 +00:00
mergify[bot] ca89626f3c Merge pull request #9490 from rook/mergify/bp/release-1.8/pr-9489
build: add missing helm (backport #9489)
2021-12-27 05:05:59 +00:00
Satoru Takeuchi c1f2df3798 build: add missing helm
If helm is not install, `make` fails with the following log.

```console
./build/rbac/get-helm-rbac.sh: line 25: helm: command not found
```

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit a7b5f06622)
2021-12-27 03:40:24 +00:00
mergify[bot] 06ac5cb699 Merge pull request #9481 from rook/mergify/bp/release-1.8/pr-9384
subvolumegroup: add new crd (backport #9384)
2021-12-21 17:51:50 +00:00
mergify[bot] d08c043ee7 Merge pull request #9480 from rook/mergify/bp/release-1.8/pr-9365
object: fix handling for notifications for OBC (backport #9365)
2021-12-21 17:47:14 +00:00
Sébastien Han 21c6a89541 subvolumegroup: add new crd
This introduces a new CRD to add the ability to create subvolumegroup
for a given ceph filesystem volume. Typically the name of the volume is
the name of the filesystem created by rook.

Closes: https://github.com/rook/rook/issues/7036
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 6e9eb33782)
2021-12-21 17:24:36 +00:00
Jiffin Tony Thottan c3db97f83d object: fix handling for notifications for OBC
Current approach is to delete all the existing notifcations from bucket
and re-add the notification from the labels.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 9d9acc2db1)
2021-12-21 17:24:14 +00:00
mergify[bot] ceae2a4550 Merge pull request #9479 from rook/mergify/bp/release-1.8/pr-9434
osd: handle removal of encrypted osd deployment (backport #9434)
2021-12-21 15:42:19 +00:00
Sébastien Han 7b1a08d427 osd: handle removal of encrypted osd deployment
This is handling a tricky scenario where the OSD deployment is manually
removed and the OSD never reconvers. This is unlikely to happen, but
still OSD should be able to run after that action. Essentially after a
manual deletion, we need to run the prepare job again to re-hydrate the
OSD information so that the OSD deployment can be deployed.
On encryption, it is a little bit tricky since ceph-volume list again
the main block won't return anything, so we need to target the encrypted
block to list.
There is another case this PR does not handle, which is the removal of
the OSD deployment and then the node is restarted. This means that the
encrypted container is not opened anymore. However, opening it requires
more work like writing the key on the filesystem (if not coming from the
Kubernete secret, eg,. KMS vault) and then run luksOpen. This is an
extreme corner case probably not worth worrying about for now.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 05775b068d)
2021-12-21 15:15:18 +00:00
mergify[bot] 0158da1feb Merge pull request #9477 from rook/mergify/bp/release-1.8/pr-9457
core: disallow multiple clusters in the same namespace (backport #9457)
2021-12-20 16:44:07 +00:00
Sébastien Han 64f46b095c Merge pull request #9475 from rook/mergify/bp/release-1.8/pr-9473
docs: fixed typo on rbd mirroring documentation (backport #9473)
2021-12-20 17:18:45 +01:00
Sébastien Han eab4073431 core: disallow multiple clusters in the same namespace
Rook does not support running multiple clusters in the same namespace,
so the operator should not reconcile if a new cluster is added.
The scenario where a cluster is added while the operator is down is also
handled. CR updates are also handled.
When the operator detects more than one cluster it will refuse to
reconcile the CephCluster, and child CRDs will block too until the
operator is ready.
The user must remove one of the clusters before can continue to perform
any reconcile.

Closes: https://github.com/rook/rook/issues/9452
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit da76a772f8)
2021-12-20 16:18:44 +00:00
Sébastien Han bd678416c2 core: do not log create event as info
Let's use debug not to clutter logs.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 52ededd151)
2021-12-20 16:18:43 +00:00
mergify[bot] a025d96460 Merge pull request #9476 from rook/mergify/bp/release-1.8/pr-9427
operator: always report events (backport #9427)
2021-12-20 16:10:12 +00:00
Blaine Gardner 769e774719 operator: always report events
The original PR which added event reporting unnecessarily "optimized" to
prevent spamming the API controller[1].

It is sometimes important to get events as they happen and not hide new
events behind preexisting older events. For example, in integration
tests, we may often want to wait for a controller to finish processing
an update, and the best way to do that is to wait for the
"ReconcileSucceeded" event. In order for this to be useful, the events
must be reported each time.

If we begin having problems with events being reported too often, then
we should fix the underlying issue of reconciles happening too often
instead of relying on a time-based "optimization" that hides recent
event reports that may be useful.

[1]: https://github.com/rook/rook/pull/7222

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit da61ac1ae8)
2021-12-20 15:42:58 +00:00
vshinde727 503ac9b7dc docs: fixed typo on rbd mirroring documentation
Signed-off-by: Vivek Shinde <vshinde@parallelwireless.com>
(cherry picked from commit 6a0690383a)
2021-12-20 13:19:39 +00:00
Satoru Takeuchi 76dc8ddf4b Merge pull request #9463 from rook/mergify/bp/release-1.8/pr-9441
ceph: fix blockOwnerDeletion error (backport #9441)
2021-12-20 17:24:54 +09:00
Satoru Takeuchi b7c4544860 Merge pull request #9472 from rook/mergify/bp/release-1.8/pr-9465
docs: Recommend primary affinity over hybrid pools (backport #9465)
2021-12-20 17:23:51 +09:00
Travis Nielsen 88ac27c49d docs: recommend primary affinity over hybrid pools
Hybrid pools suffer from lower availability when a node goes down,
so we recommend primary affinity instead of hybrid pools.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 277252a46d)
2021-12-20 07:56:31 +00:00
Daniel Ruiz Capilla be085276db rgw: fix blockOwnerDeletion error
This restores the missing permissions to allow the object controller to
update the finalizers section in the spec. See https://sdk.operatorframework.io/docs/faqs/

Signed-off-by: Daniel Ruiz Capilla <crd1985@gmail.com>
(cherry picked from commit 66cc46220f)
2021-12-17 16:22:54 +00:00
Blaine Gardner 570dc42d52 Merge pull request #9461 from rook/mergify/bp/release-1.8/pr-9453
docs: add jumbo frames note to common issues (backport #9453)
2021-12-17 08:37:07 -07:00
Blaine Gardner 086dc641f8 docs: add jumbo frames note to common issues
Resolves #9320

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 6c90d66875)
2021-12-17 13:33:40 +00:00