Commit Graph
8148 Commits
Author SHA1 Message Date
mergify[bot] ae489d79c3 Merge pull request #9641 from rook/mergify/bp/release-1.8/pr-9565
rgw: inject tls certs for bucket notification and topic operations (backport #9565)
2022-01-24 23:47:52 +00:00
Jiffin Tony Thottan 0a8140463d rgw: inject tls certs for bucket notification and topic operations
The certs for accessing TLS enabled RGW is saved as secrets and inject
them if controllers for notification and topics if request is sent to
TLS enabled RGW endpoint.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
(cherry picked from commit a97747cece)
2022-01-24 18:56:39 +00:00
Satoru Takeuchi b2937fbe98 Merge pull request #9631 from rook/mergify/bp/release-1.8/pr-9603
rgw: handle the non-existence of the bucket correctly when removing bucket (backport #9603)
2022-01-22 05:51:32 +09:00
Travis Nielsen dc06a70c84 Merge pull request #9635 from travisn/release-1.8.3
build: Update the release version to v1.8.3
v1.8.3
2022-01-21 12:55:28 -07:00
Travis Nielsen c0e46c5721 build: update the release version to v1.8.3
With the patch release the example manifests and docs are updated to v1.8.3

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-01-21 11:57:49 -07:00
Travis Nielsen 782e2a3147 Merge pull request #9633 from rook/mergify/bp/release-1.8/pr-9627
csi: update cephcsi to 3.5.1 release (backport #9627)
2022-01-21 11:56:01 -07:00
Madhu Rajanna 64641a6ce8 csi: update cephcsi to 3.5.1 release
This PR updates the cephcsi version from
3.5.0 to 3.5.1 which includes minor fixes

fixes: #9619

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 39825f2302)
2022-01-21 18:30:10 +00:00
Yuma Ogami daa636b9f1 rgw: handle the non-existence of the bucket correctly when removing bucket
ceph might return NoSuchKey than NoSuchBucket when the target bucket does not exist.
then we can use GetBucketInfo() to judge the existence of the bucket.

see: https://github.com/ceph/ceph/pull/44413

Closes: https://github.com/rook/rook/issues/9494
Signed-off-by: Yuma Ogami <yuma-ogami@cybozu.co.jp>
(cherry picked from commit c4ee218da1)
2022-01-21 16:56:26 +00:00
mergify[bot] 312fd56783 Merge pull request #9630 from rook/mergify/bp/release-1.8/pr-9615
osd: rename a few configuration flags (backport #9615)
2022-01-21 14:50:55 +00:00
mergify[bot] de94acad37 Merge pull request #9629 from rook/mergify/bp/release-1.8/pr-9626
csi: updates the default csi-addons image (backport #9626)
2022-01-21 14:43:19 +00:00
mergify[bot] 468c0713f7 Merge pull request #9628 from rook/mergify/bp/release-1.8/pr-9484
csi: change rook-ceph-csi-config to expose clusterID for subvolume (backport #9484)
2022-01-21 14:38:28 +00:00
Sébastien Han a7f48d7cd2 ci: fix encryption test condition
For the "if" to work we need to bring the env in the step with the "env"
keyword. Otherwise, the env is never imported and the condition is
always false.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 802a86ccd5)
2022-01-21 14:27:19 +00:00
Sébastien Han b7bbb2198c osd: rename a few configuration flags
For better consistency with IBM_KP_SERVICE_API_KEY and use
"ibmkeyprotect" as a provider name for more clarity.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 7cc6e23a0b)
2022-01-21 14:27:18 +00:00
yati1998 aadd5f7ef8 csi: updates the default csi-addons image
This commit updates the csi-addons image version
from v0.1.0 to v0.2.1.
Also, this updates the staging path from
{{ .KubeletDirPath }}/plugins/kubernetes.io/csi/pv/ to
{{ .KubeletDirPath }}/plugins/kubernetes.io/csi/.

This changes is done as the reclaimspace on block mode
was not working.
For more details:
 https://github.com/csi-addons/kubernetes-csi-addons/pull/97

Signed-off-by: yati1998 <ypadia@redhat.com>
(cherry picked from commit 07c5fc7e46)
2022-01-21 14:17:14 +00:00
Sébastien Han b006674fea csi: change rook-ceph-csi-config to expose clusterID for subvolume
The rook-ceph-csi-config config map now includes CephFS subvolumegroups
when a subvolumegroup CR is created. It is useful for ceph-csi to
understand which subvolumegroup to use for a given cluster.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 739abf6662)
2022-01-21 14:13:39 +00:00
Sébastien Han 496fe25b84 subvolumegroup: fix code deletion
We want to log properly when ENOTEMPTY is caught during deletion, so
fixing the condition.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 640d30339d)
2022-01-21 14:13:38 +00:00
Sébastien Han 989fb34381 nfs: use hashing function from existing k8sutil package
We have a function to hash a string so let's use it.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 92ada52610)
2022-01-21 14:13:37 +00:00
mergify[bot] 9303fc30ab Merge pull request #9621 from rook/mergify/bp/release-1.8/pr-9074
helm: Apply operator settings in configmap instead of deployment (backport #9074)
2022-01-20 23:05:08 +00:00
Travis Nielsen 7470e51d5b helm: apply operator settings in configmap instead of deployment
Some operator settings can be applied dynamically in a configmap
instead of requiring the operator to restart. While these settings
may be infrequently updated, applying these settings in the configmap
can avoid an unnecessary operator restart. This will also make the
operator deployment more consistent with the non-helm install.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 741f211a13)
2022-01-20 22:38:33 +00:00
mergify[bot] 8957be1adf Merge pull request #9617 from rook/mergify/bp/release-1.8/pr-9613
core: reconcile operator configuration with env var (backport #9613)
2022-01-20 19:16:48 +00:00
Sébastien Han 08dd2b9732 core: reconcile operator configuration with env var
Previously, we were ignoring configuration changes coming from the
operator's pod env variables. We were assuming most users were using the
operator configmap "rook-ceph-operator-config" but most Helm users
don't. Now we will reconcile if a cephcluster is found during a CREATE
event (can be an operator restart or a cephcluster creation) AND no
"rook-ceph-operator-config" is found which means the operator's pod env
var are used.
Also, unit tests have been added (long due) for the predicate!

Closes: #9602, #9487, #9579
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 1208bc1410)
2022-01-20 16:53:40 +00:00
Satoru Takeuchi c8c0639704 Merge pull request #9611 from rook/mergify/bp/release-1.8/pr-9502
core: support priority class for crashcollector (backport #9502)
2022-01-20 03:43:22 +09:00
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
Satoru Takeuchi 638741890c core: support priority class for crashcollector
Support priorityClass to crashcollectors as mons, mgrs, and osds.

https://rook.io/docs/rook/v1.8/ceph-cluster-crd.html#priority-class-names-configuration-settings

The main use case is applying the high priority to crashcollectors to preempt normal pods
under heavy load. Without this feature, we might lose crash information.

Closes: https://github.com/rook/rook/issues/9500

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
(cherry picked from commit 5465481e0b)
2022-01-19 17:39:28 +00: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