Commit Graph
8556 Commits
Author SHA1 Message Date
mergify[bot] 2be08bb047 Merge pull request #10185 from rook/mergify/bp/release-1.9/pr-9936
helm: add ingress annotations for ssl (backport #9936)
2022-04-28 16:23:01 +00:00
mergify[bot] 56ae31e64e Merge pull request #10184 from rook/mergify/bp/release-1.9/pr-10183
build: fix csi nfs rbac csv generation (backport #10183)
2022-04-28 15:21:00 +00:00
Erik Galajda 8c48916ee5 helm: add ingress annotations for ssl
Currently annotations are not set on the ingress resource

Signed-off-by: Erik Galajda <erik.galajda.sk@gmail.com>
(cherry picked from commit c422d40247)
2022-04-28 15:19:38 +00:00
Rakshith R 209617b18d build: fix csi nfs rbac csv generation
Added hack in generate-rook-csv for proper
generation of csi nfs rbac in csv.
Added placeholder clusterrole and binding for
nfs nodeplugin sa, since operator-sdk
does not include sa without rules.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit d0b67af23b)
2022-04-28 14:53:29 +00:00
mergify[bot] 4fe80d39b2 Merge pull request #10175 from rook/mergify/bp/release-1.9/pr-9925
core: fix csi-cephfsplugin pod restart on non-hostnetworking env (backport #9925)
2022-04-27 10:40:56 +00:00
mergify[bot] c53564c3fb Merge pull request #10176 from rook/mergify/bp/release-1.9/pr-10173
ci: wait for cert while deploying vault (backport #10173)
2022-04-27 10:16:42 +00:00
subhamkrai 4522e11912 ci: wait for cert while deploying vault
sometimes, it take few seconds to fill certificate
after certificate approval. So, let's wait for few seconds.

Closes: https://github.com/rook/rook/issues/10158
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 86b3d466f6)
2022-04-27 09:51:12 +00:00
Sébastien Han 7503d1a558 core: fix csi-cephfsplugin pod restart on non-hostnetworking env
Implementation of the design proposed in
https://github.com/rook/rook/pull/9903.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 73b1347675)
2022-04-27 09:42:39 +00:00
Sébastien Han ac4ac3b487 ci: collect secrets and cms in the logs
The CI runs will now collect all the secrets and configmaps available.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 79dbb35302)
2022-04-27 09:42:39 +00:00
Sébastien Han 4079a66a8d core: move clusterInfo code to the controller package
The CSI package needs to load clusterInfo, today this code is in the mon
package which makes the call of LoadClusterInfo impossible without
having a circular import.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 583791c45c)
2022-04-27 09:42:39 +00:00
mergify[bot] d8667aca09 Merge pull request #10170 from rook/mergify/bp/release-1.9/pr-10125
build: update go-ceph version and remove ceph_preview (backport #10125)
2022-04-27 00:04:35 +00:00
Jiffin Tony Thottan 6edbd1bcb8 object: allocate keys for user after the creation
The access/secrets keys for the user struct need to allocate only if
ceph user creation succeeds.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 60da73a786)
2022-04-26 22:06:04 +00:00
subhamkrai c58c9ee356 build: update go-ceph version and remove ceph_preview
updating go ceph version to 0.15.0 will no longer require
`ceph_preview` during build. Also if added in VsCode workspace
we can remove that now.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 6de3e3d48d)
2022-04-26 22:06:04 +00:00
mergify[bot] 9c74e9bb30 Merge pull request #10168 from rook/mergify/bp/release-1.9/pr-10123
build: Update min version to k8s 1.17 (backport #10123)
2022-04-26 19:29:54 +00:00
Travis Nielsen e4cc14f70d build: update min version to k8s 1.17
Support is removed for k8s for various limitations such as
priority classes not working and csi driver feature
incompleteness and missing snapshots. Documentation is updated
with the new min version of k8s 1.17 and also the tests are
updated to run on the min version of 1.17.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit d26b6cf403)
2022-04-26 13:02:34 -06:00
mergify[bot] ebf2b6b250 Merge pull request #10159 from rook/mergify/bp/release-1.9/pr-10156
ci: use stringData instead of data for secret (backport #10156)
2022-04-25 16:46:21 +00:00
Sébastien Han f47115710d ci: use stringData instead of data for secret
The "data" field only accepts base64 strings and our env var is not. So
let's use stringData to prevent an error from the API server:

```
"v1" cannot be handled as a Secret: illegal base64 data at input byte 29
```

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit edfd120d6a)
2022-04-25 16:17:30 +00:00
mergify[bot] 89f8f1882d Merge pull request #10155 from rook/mergify/bp/release-1.9/pr-10139
core: RGW realm pull spec is optional (backport #10139)
2022-04-25 14:17:56 +00:00
mergify[bot] aba4ad8244 Merge pull request #10151 from rook/mergify/bp/release-1.9/pr-10150
csi: update cephcsi to v3.6.1 release (backport #10150)
2022-04-25 13:56:49 +00:00
Travis Nielsen 07ea7139eb core: rgw realm pull spec is optional
The endpoint on the rgw realm pull spec is causing a failure
if not specified even when it is not expected to be
required. Now the endpoint has the json property to be
ommitted if not specified.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7f709776b5)
2022-04-25 13:49:58 +00:00
Sébastien Han fbca65c738 csi: update cephcsi to v3.6.1 release
A new Ceph-CSI release is out so let's use it.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 1093b0a166)
2022-04-25 09:05:38 +00:00
mergify[bot] c2083af215 Merge pull request #10128 from rook/mergify/bp/release-1.9/pr-10127
build: add support for go 1.18 (backport #10127)
2022-04-25 08:25:52 +00:00
mergify[bot] 0d7b63d6a7 Merge pull request #10138 from rook/mergify/bp/release-1.9/pr-10124
csi: move setting csi param to setParams (backport #10124)
2022-04-24 12:12:47 +00:00
mergify[bot] 6b29dff4a0 Merge pull request #10146 from rook/mergify/bp/release-1.9/pr-10132
helm: ingressClassName should be available for networking.k8s.io/v1 (backport #10132)
2022-04-22 23:26:07 +00:00
Casper Biering 8be7141f69 helm: ingressClassName should be available for networking.k8s.io/v1
Allow defining ingressClassName on K8S clusters v1.20+ that uses networking.k8s.io/v1

Signed-off-by: Casper Biering <casper@biering.dk>
(cherry picked from commit 9aa16ac587)
2022-04-22 22:59:32 +00:00
mergify[bot] 24d31c49a0 Merge pull request #10144 from rook/mergify/bp/release-1.9/pr-10135
csi: add/remove mon IP from csi config (backport #10135)
2022-04-22 18:25:52 +00:00
Madhu Rajanna 2a3a90c34f csi: add/remove mon IP from csi config
If a mon is added or removed in a ceph
cluster all the CSI clusterID's belongs
to the ceph cluster should also gets updated.

Added a new cluster identifier to the csi configmap,
i.e ceph clusterNamespace which helps to identify
the clusterID's belongs to that ceph cluster.

Note:- to support the upgraded clusters,we
can ask users to update the mon IP's for the
problamatic clusterID as it wont be updated
by the operator.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 8ab17e3b83)
2022-04-22 17:57:11 +00:00
mergify[bot] b5a814285a Merge pull request #10143 from rook/mergify/bp/release-1.9/pr-10142
build: Add a placeholder rule to the RGW RBAC (backport #10142)
2022-04-22 17:42:21 +00:00
Travis Nielsen ebc7c6ad77 build: add a placeholder rule to rgw rbac
With https://github.com/rook/rook/pull/10108 a placeholder role
and role binding were added for the rgw service account so
the csv generation would generate the service account. That
workaround also requires a rule to be added to the role or else
the generation is invalid. Now a rule is added to avoid that
issue. In the future we need to remove this role and binding
when the operator sdk is updated as explained in
https://github.com/rook/rook/issues/10141

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1dd343ed7e)
2022-04-22 17:17:22 +00:00
Madhu Rajanna 5febd0de26 csi: move setting csi param to setParams
moving setting csi parameter to setParams
function as `setParams` is mostly used to set
the csi parameters for the templates.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit c255e35225)
2022-04-22 13:59:59 +00:00
Travis Nielsen 4a5b5c1544 Merge pull request #10130 from travisn/release-1.9.1
build: Set the release version to v1.9.1
v1.9.1
2022-04-21 12:34:30 -06:00
Travis Nielsen 417dd10421 build: set the release version to v1.9.1
Update the docs and example manifests for the v1.9.1 release.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-21 10:59:49 -06:00
subhamkrai 46048da5cd build: add support for go 1.18
adding support for go 1.18 but rook master still
build on 1.17.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 4283973e07)
2022-04-21 15:47:36 +00:00
Travis Nielsen 4425edee25 Merge pull request #10122 from rook/mergify/bp/release-1.9/pr-10118
test: Improve reliability of mon failover test (backport #10118)
2022-04-20 16:56:23 -06:00
Travis Nielsen 266594d857 test: skip upgrade checks during integration tests
The upgrade checks are not necessary during the CI.
The flag had previously been set, but was changed
unintentionally with https://github.com/rook/rook/pull/10096.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 23c29b4e28)
2022-04-20 22:28:55 +00:00
Travis Nielsen 8d164b2349 test: improve reliability of mon failover test
The mon failover test was failing if the cluster reconcile
was being triggered in the middle of the failover and if
the ordering of the mons happened to attempt to start the
mons that were not failed over. The other mons couldn't be updated
due to the upgrade checks, so the test would timeout waiting
for the mons that would never update in time.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit f7cefbbbde)
2022-04-20 22:28:55 +00:00
Travis Nielsen 81a9bc4894 Merge pull request #10117 from rook/mergify/bp/release-1.9/pr-10111
subvolumegroup: refractor subvolumegroup controller (backport #10111)
2022-04-20 13:54:39 -06:00
mergify[bot] bee1a06f6d Merge pull request #10119 from rook/mergify/bp/release-1.9/pr-10108
build: Add a placeholder rgw role for csv generation (backport #10108)
2022-04-20 19:29:33 +00:00
mergify[bot] 82fde5ea49 Merge pull request #10120 from rook/mergify/bp/release-1.9/pr-10023
core: update controller-runtime version to v0.11.2 (backport #10023)
2022-04-20 18:28:03 +00:00
subhamkrai b7411de1e1 core: update controller-runtime version to v0.11.2
update controller-runtime version to v0.11.2

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 13cc698566)
2022-04-20 17:52:53 +00:00
subhamkrai 5328491880 core: make code changes to support latest cntrl runtime
making necessary code changes to support controller
runtime version.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit bf7daccf60)
2022-04-20 17:52:53 +00:00
Travis Nielsen 469e9468ad build: add a placeholder rgw role for csv generation
The csv will not properly include the rook-ceph-rgw service
account unless there is a role and binding that references
the service account. No roles are needed yet for the rgw
daemon, so this will add a placeholder only for the purposes
of csv generation.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e1550e7551)
2022-04-20 17:51:43 +00:00
Madhu Rajanna 7c6c1beb59 subvolumegroup: refractor subvolumegroup controller
improved the logging and also reorganized code to
handle external and non external cases for better
code readability.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 541d63d31e)
2022-04-20 17:50:10 +00:00
Travis Nielsen e1dee66aaa Merge pull request #10112 from rook/mergify/bp/release-1.9/pr-10109
monitoring: Disable new alerts that are not applicable to rook (backport #10109)
2022-04-20 09:26:12 -06:00
Travis Nielsen c13c362af1 Merge pull request #10114 from rook/mergify/bp/release-1.9/pr-10059
csi: use k8s.gcr.io for csi nfsplugin image (backport #10059)
2022-04-20 09:25:53 -06:00
Travis Nielsen cf200bed36 Merge pull request #10113 from rook/mergify/bp/release-1.9/pr-10096
core: Examples set default priority class names (backport #10096)
2022-04-20 09:25:33 -06:00
Madhu Rajanna d4be1ee1c7 csi: use k8s.gcr.io for csi nfsplugin image
use k8s.gcr.io like other kubernetes sidecar
image to pull the nfsplugin image.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 52c8211e43)
2022-04-20 14:02:22 +00:00
Travis Nielsen 4ceb97da47 core: examples set default priority class names
By default, we should set the priority class to one of the built-in
priority class names to ensure that pods critical to the storage
will be able to remain running when resources are low. Otherwise,
critical rook pods could be evicted and affect many other pods
that rely on the storage to continue functioning. The options have
been available in the CRs, but until now we have just not set the
defaults in the examples. Critical rook components are now set to
the priority class system-node-critical if they are generally pinned
to a node, and system-cluster-critical if they are critical to the storage.
Some pods such as the operator and crash collector do not have a
default priority class set in the examples since they don't affect
the data path.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit fb86955f01)
2022-04-20 13:39:18 +00:00
Travis Nielsen da9496f05d monitoring: remove cephadm specific alerts
The ceph adm alerts were included in the latest prometheus
rules. With rook these alerts will never be triggered, so
we remove them.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 0a25af78dc)
2022-04-20 13:38:31 +00:00
Travis Nielsen 0c9a2507cb monitoring: disable new alerts that are not applicable to rook
The new alerts picked up for Rook v1.9 directly from the ceph repo
were not all rook-compliant. The alert for the prometheus job not
running is not needed since Rook and K8s go to great lengths to
keep the mgr pod running already.

The alert for the cluster filling up soon is also disabled
until we find how to get the formula working in rook clusters.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e45781d0d3)
2022-04-20 13:38:31 +00:00