Commit Graph
8104 Commits
Author SHA1 Message Date
Travis Nielsen dbcd2f8a30 Merge pull request #9560 from leseb/fix-2039240
osd: use cluster name when fetching the cephcluster
2022-01-11 07:48:25 -07:00
Sébastien Han 0a54db935b 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>
2022-01-11 15:05:59 +01:00
Sébastien Han 511c250336 Merge pull request #9411 from parth-gr/external-cluster-permission-security
security: update auth permissions for external cluster
2022-01-10 16:12:42 +01:00
parth-gr 4a3088c580 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>
2022-01-07 20:27:05 +05:30
Travis Nielsen 65e75556ad Merge pull request #9485 from BlaineEXE/reduce-wildcard-permissions
core: limit use of wildcards in cluster-scoped rbac
2022-01-06 13:13:42 -07:00
Travis Nielsen 15b7dcb2c9 Merge pull request #9539 from travisn/build-version-regex
build: Replace local build tag with regex
2022-01-06 11:06:00 -07:00
Travis Nielsen 7167de0601 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>
2022-01-06 10:37:39 -07:00
Travis Nielsen c6a59a887a Merge pull request #9530 from travisn/mailing-lists
docs: Remove mailing lists from main readme
2022-01-06 09:42:06 -07:00
Travis Nielsen 33381feb10 Merge pull request #9533 from cybozu-go/core-rgw-fix-startup-probe
rgw: fix startup probe
2022-01-06 09:19:09 -07:00
Travis Nielsen 5060294895 docs: remove mailing lists from main readme
The info email list and rook-dev forum are targeted frequently by
spam and otherwise not used by the community. Let's focus on the
useful channels of slack, github, and security emails.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-01-06 07:49:08 -07:00
Satoru Takeuchi af88b50fc7 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>
2022-01-06 06:20:53 +00:00
Blaine Gardner 684fe30126 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>
2022-01-05 17:10:14 -07:00
Satoru Takeuchi b69719ae77 Merge pull request #9529 from BlaineEXE/update-to-latest-lib-bucket-provisioner
object: update to latest lib-bucket-provisioner
2022-01-06 07:45:48 +09:00
Blaine Gardner ae306e434a 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>
2022-01-05 12:40:18 -07:00
parth-gr 6ed7423bac 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>
2022-01-05 13:51:41 +05:30
Satoru Takeuchi 51d569eecc Merge pull request #9522 from subhamkrai/fix-doc
docs: add section for `disruptionManagement`
2022-01-05 16:43:39 +09:00
subhamkrai 0b0c8da558 docs: add section for disruptionManagement
Adding section `disruptionManagement` which was
removed unintentionally in PR 8381.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-01-05 09:51:48 +05:30
Blaine Gardner 5b26cb1b22 Merge pull request #9400 from yuvalif/ceph-notification-events
rgw: add events to CephBucketNotification CR
2022-01-04 12:58:20 -07:00
Blaine Gardner 5b9ac16670 Merge pull request #9468 from BlaineEXE/startup-probes
core: rgw: allow specifying daemon startup probes
2022-01-04 11:03:12 -07:00
Travis Nielsen ee5ce2e14f Merge pull request #9512 from leseb/fix-9493
core: run discover daemonset as root uid
2022-01-04 09:53:23 -07:00
Travis Nielsen 9f841eda7d Merge pull request #9515 from leseb/fix-csv-name-ocp
build: use the same csv name for all platforms
2022-01-04 09:40:25 -07:00
Sébastien Han 7cf9285501 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>
2022-01-04 14:15:22 +01:00
Sébastien Han dd67b866dc 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>
2022-01-03 12:36:23 +01:00
Satoru Takeuchi 376ca62f8a Merge pull request #9491 from rspier/patch-1
Update ceph-monitoring.md
2021-12-28 16:35:49 +09:00
Robert Spier a60b154c76 docs: fix indentation
Fix indentation for `monitoring:` block example.  It belongs inside the
`spec:`.

Signed-off-by: Robert Spier <rspier@pobox.com>
2021-12-26 21:23:52 -08:00
Satoru Takeuchi 32e7084e88 Merge pull request #9489 from cybozu-go/add-helm-to-build-requirements
build: add missing helm
2021-12-27 12:39:45 +09:00
Satoru Takeuchi a7b5f06622 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>
2021-12-27 02:13:32 +00:00
Yuval Lifshitz 11727b1673 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>
2021-12-26 16:58:49 +02:00
Blaine Gardner c07d89d9ea 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>
2021-12-21 15:12:41 -07:00
Blaine Gardner bb0d0d39f6 Merge pull request #9384 from leseb/fix-7036
subvolumegroup: add new crd
2021-12-21 10:24:23 -07:00
Blaine Gardner cb1b063e13 Merge pull request #9365 from thotz/bucketnotificationadditionimprovement
object: fix handling for notifications for OBC
2021-12-21 10:23:32 -07:00
Sébastien Han 6e9eb33782 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>
2021-12-21 16:28:38 +01:00
Sébastien Han 77b18f0553 Merge pull request #9434 from leseb/bz-2032656
osd: handle removal of encrypted osd deployment
2021-12-21 16:14:34 +01:00
Sébastien Han 05775b068d 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>
2021-12-21 10:51:09 +01:00
Sébastien Han fffb862956 Merge pull request #9457 from leseb/fix-9452
core: disallow multiple clusters in the same namespace
2021-12-20 17:18:10 +01:00
Blaine Gardner 9dc41f5796 Merge pull request #9427 from BlaineEXE/always-report-reconcile-events
operator: always report events
2021-12-20 08:42:08 -07:00
Sébastien Han 74de03230f Merge pull request #9473 from vshinde727/patch-1
docs: fixed typo on rbd mirroring documentation
2021-12-20 14:19:04 +01:00
vshinde727 6a0690383a docs: fixed typo on rbd mirroring documentation
Signed-off-by: Vivek Shinde <vshinde@parallelwireless.com>
2021-12-20 15:53:21 +05:30
Satoru Takeuchi 1f9dc0bbfa Merge pull request #9464 from travisn/osd-purge-label
osd: Add label to osd purge job
2021-12-20 16:57:05 +09:00
Satoru Takeuchi d6d2b4ba4e Merge pull request #9465 from travisn/primary-affinity-doc
docs: Recommend primary affinity over hybrid pools
2021-12-20 16:56:01 +09:00
Travis Nielsen 277252a46d 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>
2021-12-17 15:09:21 -07:00
Travis Nielsen 54d3c09dc4 osd: add label to osd purge job
The label was on the job, but not on the pod template,
so querying for the pod logs was not working as simply
as if we added the label.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-12-17 15:00:45 -07:00
Travis Nielsen 4c45856edb Merge pull request #9441 from crd1985/master
ceph: fix blockOwnerDeletion error
2021-12-17 09:21:48 -07:00
Sébastien Han 24d022eebb Merge pull request #9453 from BlaineEXE/jumbo-frames-note-in-common-issues
docs: add jumbo frames note to common issues
2021-12-17 14:33:05 +01:00
Jiffin Tony Thottan 9d9acc2db1 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>
2021-12-17 16:29:27 +05:30
Sébastien Han da76a772f8 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>
2021-12-17 10:56:15 +01:00
Sébastien Han 52ededd151 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>
2021-12-17 10:55:31 +01:00
Sébastien Han 97978b5d24 Merge pull request #9189 from subhamkrai/readonly-external-script
security: add dry run mode for external cluster script
2021-12-17 09:45:41 +01:00
Blaine Gardner 6c90d66875 docs: add jumbo frames note to common issues
Resolves #9320

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-12-16 16:13:43 -07:00
Travis Nielsen 517aff4245 Merge pull request #9439 from y1r/add-cap-mknod-to-psp
osd: add CAP_MKNOD to PSP
2021-12-16 10:57:14 -07:00