Commit Graph
8451 Commits
Author SHA1 Message Date
Blaine Gardner f72b2fa67b Merge pull request #10056 from rook/mergify/bp/release-1.9/pr-10053
pool: built-in pools must be replicated (backport #10053)
2022-04-12 13:32:39 -06:00
Blaine Gardner 0a1bbfed67 pool: built-in pools must be replicated
Built in Ceph pools (device_health_metrics, .mgr, .nfs) must be
replicated and not erasure coded.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit bcd5b66e43)
2022-04-12 17:55:26 +00:00
Travis Nielsen a9dac1b5fa Merge pull request #10038 from rook/mergify/bp/release-1.9/pr-10035
osd: only set kek to env var on encryption scenario (backport #10035)
2022-04-11 11:47:36 -06:00
Travis Nielsen 55969c6787 Merge pull request #10036 from rook/mergify/bp/release-1.9/pr-9934
core: start admission controller without any script (backport #9934)
2022-04-11 11:47:08 -06:00
Travis Nielsen 1846ff4125 Merge pull request #10032 from rook/mergify/bp/release-1.9/pr-10029
test: Default pool replica size for test cluster is 1 (backport #10029)
2022-04-11 11:46:12 -06:00
Travis Nielsen 8e083abfc5 Merge pull request #10039 from rook/mergify/bp/release-1.9/pr-10009
csi: remove node object update rbac for csi deamonset pods (backport #10009)
2022-04-11 11:45:45 -06:00
Travis Nielsen 9c0a536c0a Merge pull request #10015 from rook/mergify/bp/release-1.9/pr-9919
build: Remove obsolete cross build container (backport #9919)
2022-04-11 10:42:09 -06:00
Humble Chirammal 214ac48e28 csi: remove node object update rbac for csi deamonset pods
The CSI driver pods dont need to update the node objects for
its operations. This commit remove the unwanted access to node
object update in the RBAC of CSI pods.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit e2a95ac51e)
2022-04-11 15:55:47 +00:00
Sébastien Han d72d4ca19e osd: only set kek to env var on encryption scenario
There is a corner case where an env variable populated with the prepare
job could influence and trigger some encryption code. We have an env
variable to discover whether the prepare job will encrypt a drive or not
so let's use that instead of running code as a noop and sometimes
trigger a corner case. In this scenario, the prepare job had an "IBM_"
env variable present in the OS image (IBM OS) so the setKEKinEnv()
  function would get called for no reason.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 6bc7827150)
2022-04-11 15:26:51 +00:00
subhamkrai 0cd2cbb0d4 core: start admission controller without any script
finally, admission controller will be enabled default
without any script/manual step. But it still requires cert-manager
to be installed which I believe is already installed in clusters.

**Note**
Code doesn't return error it just logs the error since
we don't want to stop reconciling if the admission controller fails.
We can work on this once the admission controller is stable.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit f6f03d272b)
2022-04-11 15:07:56 +00:00
Travis Nielsen 070afb4d12 test: default pool replica size for test cluster is 1
The default replica count for test clusters should be 1.
This was causing the rgw-multisite integration test to
fail because the PGs were attempting to use the default
replication instead of the replication of 1 expected
for test clusters.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e5a3cbd08c)
2022-04-11 08:05:26 +00:00
Travis Nielsen 5a1ef784a9 Merge pull request #10020 from rook/mergify/bp/release-1.9/pr-10018
docs: Add missing references to branch name script (backport #10018)
2022-04-08 10:30:49 -06:00
Travis Nielsen 2a47bfd604 docs: add missing references to branch name script
The script to get the branch name was not being imported
on several doc pages, causing any links using
{{ branchName }} to be broken on those pages.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 82125ddf40)
2022-04-07 22:02:18 +00:00
Travis Nielsen 2f55e35519 Merge pull request #10017 from rook/mergify/bp/release-1.9/pr-10016
docs: Remove obsolete section of upgrade guide (backport #10016)
2022-04-07 16:01:32 -06:00
Travis Nielsen 72a2fb8060 docs: remove obsolete section of upgrade guide
The bluestore_fsck_quick_fix_on_mount fix was only needed when upgrading to
versions of Ceph older than v16.2.6. Everyone on pacific should now be
on v16.2.7, so we can remove this section from the v1.9 upgrade guide.

Also cleaning up a few other small issues in the guide.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit c400ffa233)
2022-04-07 21:42:52 +00:00
Travis Nielsen c4c9fbe503 Merge pull request #10012 from rook/mergify/bp/release-1.9/pr-10010
docs: fix design doc link (backport #10010)
2022-04-07 14:45:32 -06:00
Travis Nielsen 2f07c19aa8 build: remove obsolete cross build container
The cross build container is not used anymore since the conversion
to github actions. Now the obsolete scripts and makefiles are
cleaned up to remove some confusing leftovers from the
cross container.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 738a300827)
2022-04-07 20:43:06 +00:00
parth-gr 84c45c283f docs: fix design doc link
In the development section some
links where not working so fixed them

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

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit d0c47589f4)
2022-04-07 16:02:13 +00:00
Travis Nielsen 585f295655 Merge pull request #9992 from rook/mergify/bp/release-1.9/pr-9968
docs: update the s3 client example for accesing RGW (backport #9968)
2022-04-06 15:59:37 -06:00
Travis Nielsen 4afe52a51d Merge pull request #9993 from rook/mergify/bp/release-1.9/pr-9952
csi: make use of create-external-cluster-resources.py upstream (backport #9952)
2022-04-06 15:59:19 -06:00
Travis Nielsen 681c2db8d3 Merge pull request #9999 from rook/mergify/bp/release-1.9/pr-9974
object: add details about route for rgw's https endpoint (backport #9974)
2022-04-06 15:58:57 -06:00
Travis Nielsen ffe4640fd7 Merge pull request #10008 from rook/mergify/bp/release-1.9/pr-9997
Upgrade docs for 1.9 (backport #9997)
2022-04-06 13:28:06 -06:00
Travis Nielsen 81f5003510 Merge pull request #10005 from rook/mergify/bp/release-1.9/pr-10002
csi: update cephcsi to v3.6.0 release (backport #10002)
2022-04-06 13:27:52 -06:00
Travis Nielsen 04edb5d017 Merge pull request #10000 from rook/mergify/bp/release-1.9/pr-9998
monitoring: remove prometheusrules kind from RBAC (backport #9998)
2022-04-06 13:27:01 -06:00
Blaine Gardner 8e64993c5e docs: update docs for 1.9 release
Update upgrade and supporting docs for release of Rook v1.9.
Include pending release notes as part of this update.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 8d619501fe)
2022-04-06 15:52:16 +00:00
Travis Nielsen 19f8b25bb5 Merge pull request #9989 from rook/mergify/bp/release-1.9/pr-9733
radosnamespace: add new CRD (backport #9733)
2022-04-06 08:46:23 -06:00
Madhu Rajanna ad4c6ac92a csi: update cephcsi to v3.6.0 release
Removed v3.4.0 as its deprecated in cephcsi
and updated the templates to point to latest
v3.6.0 release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit a1ded0f27f)
2022-04-06 14:01:49 +00:00
Blaine Gardner 83ee051d33 monitoring: remove prometheusrules kind from RBAC
Minor update to remove prometheus rules from RBAC, which is no longer
managed by Rook.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 0e08aeedac)
2022-04-05 20:00:28 +00:00
Jiffin Tony Thottan 37d18ba45a object: add details about route for rgw's https endpoint
In the `object-openshift.yaml` details about exposing `Routes` for RGW
service, currently it exposes both ports if they are available. This is
very difficult to manage via same route like adding termination policy
etc.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 68dced0409)
2022-04-05 18:34:37 +00:00
parth-gr 152fb563cf rgw: change name of rgw admin keys
Corrected RGW_ADMIN_OPS_USER_ACCESS_KEY  and
RGW_ADMIN_OPS_USER_SECRET_KEY so it should be
output correctely when called script with
bash format output

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 63945df72d)
2022-04-05 14:54:18 +00:00
parth-gr 2e5680b98e csi: make use of create-external-cluster-resources.py upstream
Updated doc how to use create external cluster

Closes: https://github.com/rook/rook/issues/9591
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 7ce49aee5b)
2022-04-05 14:54:17 +00:00
Jiffin Tony Thottan 04c803a242 docs: update the s3 client example for accesing RGW
Couple of modification to existing example for s3 client regarding how
to access the ceph object store. Added details to fetch the
`BUCKET_NAME`, updated the `AWS_ENDPOINT` and `AWS_HOST` details.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 7f8dcb4c5d)
2022-04-05 13:59:23 +00:00
Madhu Rajanna baa2c90568 namespace: add new CRD
This introduces a new CRD to add the ability
to create rados namespace for a given
ceph block pool. Typically the name of the pool
is the name of the blockpool created by rook.

Closes: #7035

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit b0fc7c9b92)
2022-04-05 13:33:54 +00:00
Travis Nielsen 1a5ed03ee5 Merge pull request #9977 from rook/mergify/bp/release-1.9/pr-9967
osd: add NixOS specific PATHs (backport #9967)
2022-04-04 13:24:59 -06:00
Travis Nielsen f09215546c Merge pull request #9985 from rook/mergify/bp/release-1.9/pr-9980
ci: update golangci linter version (backport #9980)
2022-04-04 11:10:37 -06:00
subhamkrai 7ac76bd0d0 core: fix golangci linter
fix golangci linter

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 24802c559e)
2022-04-04 10:24:11 -06:00
subhamkrai 2d7f7b0b38 ci: update golangci linter version
update golangci linter version

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 0cdb32a403)
2022-04-04 10:23:53 -06:00
Travis Nielsen bfd3f8e42a Merge pull request #9979 from rook/mergify/bp/release-1.9/pr-9964
object: add service account for RGW pod (backport #9964)
2022-04-04 10:21:22 -06:00
Jiffin Tony Thottan 0b8440cff5 object: add service account for RGW pod
For supporting features like service account authentication for vault
KMS , a service account account need to attach with pod.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 5e72b26948)
2022-04-04 13:41:44 +00:00
Krzysztof Nazarewski fdcfd01ffa osd: add NixOS specific PATHs
This commits makes Rook usable on NixOS.

NixOS system holds "installed" binaries in `/run/current-system/sw/{bin,sbin}`.
The only binaries residing outside those paths are `/usr/bin/env` and `/bin/sh`.

I got a suggestion on Slack to simply add those NixOS specific paths

Signed-off-by: Krzysztof Nazarewski <3494992+nazarewk@users.noreply.github.com>
(cherry picked from commit 352df4e62f)
2022-04-04 08:18:02 +00:00
Travis Nielsen 0b11101040 Merge pull request #9970 from travisn/release-1.9.0-beta.0
build: Set the release version to v1.9.0-beta.0
v1.9.0-beta.0
2022-04-01 10:34:19 -06:00
Travis Nielsen 22eaff2e01 build: set the release version to v1.9.0-beta.0
For the new 1.9 branch we create the new v1.9.0-beta.0 manifests
and doc updates.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-01 09:21:56 -06:00
Sébastien Han 55a8fb9b8e Merge pull request #9962 from leseb/fix-9911
core: reload go routine after CR is edited
v1.9.0-alpha.0
2022-03-31 15:51:43 +02:00
Sébastien Han 05506e7a68 core: reload go routine after CR is edited
Previously, the struct maintaining the list of cluster was still
initialized with a cluster item. Then the monitoring check will see that
the cluster is part of the struct already and thus won't run the
monitoring go routine again.
Now each time we cancel the context, we also remove the cluster item
from the map so that when the controller runs again, the monitoring
struct is re-populated and the go routine runs and statuses are updated.

Closes: https://github.com/rook/rook/issues/9911
Signed-off-by: Sébastien Han <seb@redhat.com>
2022-03-31 08:49:42 +02:00
Travis Nielsen 6c50530737 Merge pull request #9685 from weirdwiz/context-remove
Remove context.TODO and add context parameter
2022-03-30 12:20:30 -05:00
Blaine Gardner 5a82a1cbd7 Merge pull request #9941 from Rakshith-R/csi/add-oidc-token
csi: mount serviceaccount oidc-token into csi-driver
2022-03-29 11:41:07 -06:00
Blaine Gardner b098e7ca72 Merge pull request #9951 from parth-gr/secret-external-cluster
csi: rbd node secret was misspelled
2022-03-29 10:00:21 -06:00
parth-gr 79db113aab csi: rbd node secret was misspelled
Corrected CSI_RBD_NODE_SECRET name so it should be
output correctely when called script with
bash format output

Signed-off-by: parth-gr <paarora@redhat.com>
2022-03-29 16:56:42 +05:30
Rakshith R ec6f2e31b1 csi: mount serviceaccount oidc-token into csi-driver
This oidc-token is used to authenticate with OpenID Connect (OIDC)
Provider. Currently, Ceph-CSI uses it to assume role with amazon STS
to get access to aws kms for encryption.

Signed-off-by: Rakshith R <rar@redhat.com>
2022-03-29 14:04:28 +05:30
Sébastien Han 1569f39186 Merge pull request #9956 from parth-gr/externalcluster-pylint
ci: fixed pylint failure
2022-03-29 09:35:41 +02:00