Commit Graph
8125 Commits
Author SHA1 Message Date
Travis Nielsen d24d2a0fc9 Merge pull request #9610 from rook/mergify/bp/release-1.8/pr-9586
csi: add support to create volumesnapshotclass (backport #9586)
2022-01-19 10:42:38 -07:00
Madhu Rajanna 6e45d4730a csi: add support to create volumesnapshotclass
add support for helm charts to create default
volumesnapshotclass for cephfs and rbd

fixes: #9566

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 85dc212704)
2022-01-19 17:00:33 +00:00
mergify[bot] 960bb7fcc8 Merge pull request #9607 from rook/mergify/bp/release-1.8/pr-9547
mon: add annotation to mon secret and cm (backport #9547)
2022-01-19 15:15:29 +00:00
mergify[bot] f07ed8dc1e Merge pull request #9606 from rook/mergify/bp/release-1.8/pr-9605
csi: restrict csiaddons to use only 1 port (backport #9605)
2022-01-19 15:09:06 +00:00
subhamkrai 2e0c595d33 mon: add annotation to mon secret and cm
add annotations to secrets and configmaps to use
different tools to sync secrets and configmap.
Currently, these annotation is applied only on
the `rook-ceph-mon-endpoints` configmap and
the secrets `rook-ceph-mon` and `rook-ceph-admin-keyring`.

Closes: https://github.com/rook/rook/issues/8999
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 02d43e82e0)
2022-01-19 14:51:31 +00:00
yati1998 d229cd4c8d csi: restrict csiaddons to use only 1 port
This commit restrict csiaddons to open only 1 port
as per the requirement which is required for security.

Fixes: #9604

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit c559bbdf6b)
2022-01-19 14:43:50 +00:00
mergify[bot] 634bc47a62 Merge pull request #9600 from rook/mergify/bp/release-1.8/pr-9571
csi: Add osd blocklist capabilities to the external cephcluster (backport #9571)
2022-01-18 21:33:05 +00:00
mergify[bot] eb44d83973 Merge pull request #9601 from rook/mergify/bp/release-1.8/pr-9534
csi: implement csi-addons sidecar (backport #9534)
2022-01-18 17:18:33 +00:00
yati1998 a399615828 csi: implement csi-addons sidecar
This commit implements the csi-addons sidecar.

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit 2b92dc812c)
2022-01-18 16:55:25 +00:00
Sébastien Han 86349c4b23 Merge pull request #9598 from rook/mergify/bp/release-1.8/pr-9596
docs: update scaledobject.yaml for applicable with keda v2.5 (backport #9596)
2022-01-18 17:45:10 +01:00
parth-gr 17099f56f2 csi: add osd blocklist capabilities to the external cephcluster
The CSI users created by the external script(both for rbd and cephfs)
need the blocklist capability so the CSI pods can execute the
`osd blocklist` commands for metro DR
update the mon caps of csi users with `profile simple-rados-client-with-blocklist`
so they have privileges to run osd blocklist cmds

Closes: https://issues.redhat.com/browse/RHSTOR-2451

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 7e851f15c6)
2022-01-18 16:43:04 +00:00
Jiffin Tony Thottan f732a12c9d docs: update scaledobject.yaml for applicable with keda v2.5
Even though mention about keda 2.x version, the scaledObject.yaml or
rgw-keda.yaml referring to older keda CRs

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit e90c36f255)
2022-01-18 15:03:26 +00:00
mergify[bot] ee398631b4 Merge pull request #9597 from rook/mergify/bp/release-1.8/pr-9594
build: set LC_ALL on the make target (backport #9594)
2022-01-18 14:42:48 +00:00
Travis Nielsen 6ff04a3c62 Merge pull request #9595 from rook/mergify/bp/release-1.8/pr-9581
Update ceph csi release 3.5 image and sidecars  (backport #9581)
2022-01-18 07:27:36 -07:00
Sébastien Han 1883d0d5f5 build: set LC_ALL on the make target
Simply applying `LC_ALL=C` will work for the current shell only. For all
the shells and sub-shell to use it, we must set it globally.
Making it the first thing in the Make entrypoint now so the CRD and RBAC
sorting works on all the platforms.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 8512b6a0e1)
2022-01-18 14:16:08 +00:00
Humble Chirammal b94b6cc84d csi: update sidecar to the latest releases
Below sidecars are updated to the latest releases with this commit.

csi-provisioner      : 3.1.0
csi-attacher         : 3.4.0
node-driver-registrar: 2.4.0

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit b7584f3007)
2022-01-18 11:17:07 +00:00
Humble Chirammal 3eb97c8c6b csi: update ceph csi images to release 3.5.0
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit e8d9884f05)
2022-01-18 11:17:07 +00:00
mergify[bot] 6819966fdb Merge pull request #9593 from rook/mergify/bp/release-1.8/pr-9582
osd: correct bluestore compression min blob size for ssd (backport #9582)
2022-01-17 17:01:24 +00:00
subhamkrai 8064519193 osd: correct bluestore compression min blob size for ssd
Update bluestore compression min blob size for ssd to 8192.
It was typo which was added long time back.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit d87be97a50)
2022-01-17 16:33:33 +00:00
mergify[bot] 4d662c07a1 Merge pull request #9587 from rook/mergify/bp/release-1.8/pr-9585
ci: skip encryption test if env is not set (backport #9585)
2022-01-17 15:51:11 +00:00
Sébastien Han 6e8e21145b ci: skip encryption test if env is not set
If the secret is not present in the run then let's skip it.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit f014724288)
2022-01-17 15:22:59 +00:00
Sébastien Han ab35743c4a Merge pull request #9573 from rook/mergify/bp/release-1.8/pr-9545
osd: add ibm key protect kms (backport #9545)
2022-01-17 09:31:51 +01:00
mergify[bot] a0aa547d2d Merge pull request #9574 from rook/mergify/bp/release-1.8/pr-9467
mgr: Update services when active mgr changes (backport #9467)
2022-01-17 08:28:59 +00:00
Travis Nielsen be72954b70 mgr: update services when active mgr changes
When the active mgr changes, there may be user-created services
that also need to have their selector updated to point to the
new active mgr. Now the operator will update any service in the
rook operator namespace that has the label app=rook-ceph-mgr
to point to the active mgr.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 11127f54ca)
2022-01-13 19:21:43 +00:00
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
Sébastien Han a676a6cf2a osd: add ibm key protect kms
The cluster-wide encryption feature now has a new supported key
management system: IBM Key protect. More information about the backend
can be found in Rook documentation under the

Today's implementation stores OSD encryption keys has "Standard" keys.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit a7acf490b6)
2022-01-13 17:11:57 +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