Commit Graph
316 Commits
Author SHA1 Message Date
Travis Nielsen 2c1041a3ec Merge pull request #10511 from parth-gr/auto-assign
ci: add ci bot for auto assign issue
2022-07-14 10:52:50 -06:00
parth-gr 2ba7237c98 ci: add ci bot for auto assign issue
Now users can auto-assign issues by commenting
/assign on the issue topic

Closes: https://github.com/rook/rook/issues/10492
Signed-off-by: parth-gr <paarora@redhat.com>
2022-07-14 11:22:28 +05:30
Satoru Takeuchi 7e571f6114 osd: support OSD on logical volume in host-based cluster
Rook supports raw mode OSD in host-based cluster. So we can also
support OSD on logical volume in this kind of cluster.

Logical volumes aren't picked by filters (i.e. `useAllDevices: true`
and `device{Path,}Filter` to avoid unwanted LV consumption on upgrade.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-07-11 21:08:50 +00:00
Travis Nielsen dad97f3425 core: remove support for ceph octopus
With octopus coming to end of life, we remove support from
Rook for deploying Ceph Octopus and assume a min version of
Pacific v16. Any checks for octopus or earlier are removed
from the reconciles since they are obsolete.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-07-07 15:03:26 -06:00
subhamkrai ae2a56deb0 ci: skip snyk ci from running on fork repo
Signed-off-by: subhamkrai <srai@redhat.com>
2022-07-01 12:23:23 +05:30
Travis Nielsen 7ca9631e6f Merge pull request #10537 from subhamkrai/skip-daily-test-on-fork
ci: skip daily nightly job on fork
2022-06-30 11:44:32 -06:00
subhamkrai e764d05a8c ci: skip daily nightly job on fork
Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-30 17:34:35 +05:30
Travis Nielsen 95f20196ca Merge pull request #10249 from travisn/kube-1.24
ci: Run tests against k8s 1.24
2022-06-29 10:16:48 -06:00
Travis Nielsen 2294c15bf7 ci: run tests against k8s 1.24
Since K8s 1.24.0 was released we need to run rook
CI against the latest Kubernetes. At the same time,
we update minikube in the CI to 1.25.2.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-28 15:11:55 -06:00
parth-gr c9a864ccdb external: add support for subvolumegroup and rados namespace
Using subvolume group and rados namespace for external deployment
was complicated and not documented,
Automating the process for the users, so they just need to pass
the respective names by cli flag for creation

Closes: rook#10427

Signed-off-by: parth-gr <paarora@redhat.com>
2022-06-28 21:57:54 +05:30
Travis Nielsen eb1d22c973 Merge pull request #10502 from jsoref/guard-tmate
ci: be selective about when to offer tmate
2022-06-28 07:43:12 -06:00
Josh Soref ef97f6544a ci: be selective about when to offer tmate
* Unconditionally offer it when running from the rook org
* Offer it if the current repository has a USE_TMATE secret
* Offer it if the workflow is being re-run

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-06-27 18:33:09 -04:00
Alexander Trost a57137361a Merge pull request #10514 from koor-tech/docs_build_experience 2022-06-28 00:26:26 +02:00
Blaine Gardner 0efd2aa340 Merge pull request #10400 from subhamkrai/staticcheck-python
ci: add check for unused or dead code in py file
2022-06-27 11:25:28 -06:00
Alexander Trost a0a1568416 ci: add docs-check flow
This flow builds the documentation using the `docs-build` target.
`mkdocs build --strict` will fail if it detects broken links and other
issues.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-06-27 19:24:52 +02:00
subhamkrai 2314510dcd ci: add check for unused or dead code in py file
adding multiple linters like black for python
which will help us with better quality of python code.
Also, in the future, we'll aim to get errors for warnings also but
there are a lot of warnings and it is difficult to fix at once.

Closes: https://github.com/rook/rook/issues/10374
Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-27 16:52:37 +05:30
Travis Nielsen eb08b009ba build: update to latest quincy release 17.2.1
With the latest quincy release, we update the operator base image
and examples to use 17.2.1

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-24 15:57:19 -06:00
parth-gr dc0447a882 ci: remove the seprate quincy test
A seprate version test was introduce for rgw-endpoint
but from now as we are using quincy in master so
we can remove it and update the current canary test.

Signed-off-by: parth-gr <paarora@redhat.com>
2022-06-13 19:12:42 +05:30
Satoru Takeuchi 6b0f539f61 test: add canary test for encrypted osd in host-based clusters
It's better to test the creation of encrypted devices in host-based clusters.
This test will reduce the potential risks of regression when modifying
the osd-creation code.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-06-08 22:34:01 +00:00
Travis Nielsen e9c8226c6e Merge pull request #10278 from parth-gr/external-sc
csi: make storage class updated with csi-users in external cluster
2022-06-08 07:48:08 -06:00
parth-gr b7c165b411 csi: make storage class updated with csi-users in external cluster
For using restricted auth users we need to update the
restricted users in the Storage class, so updating
it in the json output for external cluster

Signed-off-by: parth-gr <paarora@redhat.com>
2022-06-08 14:49:46 +05:30
Travis Nielsen 1acc0621af Merge pull request #10342 from Madhu-1/fix-csi-pod-network
ceph: Add holder pod if csi host networking is disabled
2022-06-07 10:16:51 -06:00
Madhu Rajanna 276005cfd5 csi: add holder pod if csi hostnetworking is disabled
If csi is configured not the use the
hostnetworking, deploy the holder
pod for executing the commands with nsenter.
The implementation is same as multus.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-06-07 13:09:12 +05:30
parth-gr 38dcf09843 build: update examples and base image to use ceph v17.2.0 quincy version
The operator base image has been changed to
ceph v17.2.0 quincy release version `quay.io/ceph/ceph:v17.2.0`

Closes: https://github.com/rook/rook/issues/10140
Signed-off-by: parth-gr <paarora@redhat.com>
2022-06-07 12:55:47 +05:30
subhamkrai 54482015ec ci: more specific ci config folder names
Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-06 20:23:34 +05:30
subhamkrai 6c3f3438a2 ci: add new cni flag in minikube start
adding cni flag in minikube start command
since it is required for multus ci.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-03 10:48:19 +05:30
Travis Nielsen 7a938090a1 build: flannel flag to minikube is causing test failures
The minikube node is staying in NotReady state and preventing
the operator from even starting in the canary and other suites
that use the setup-cluster-resources action.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-02 15:33:57 -06:00
Travis Nielsen f7930455c4 Merge pull request #10343 from Madhu-1/stop-action-when-pr-updated
ci: stop inprogress jobs when pr is updated
2022-05-31 09:16:10 -06:00
subhamkrai f05b6dc307 ci: update doc link in ci
Signed-off-by: subhamkrai <srai@redhat.com>
2022-05-31 16:50:03 +05:30
Madhu Rajanna 4a26d389b7 ci: stop inprogress jobs when pr is updated
stop the in progress jobs when a PR is updated

Ref: https://docs.github.com/en/actions/using-workflows/ \
workflow-syntax-for-github-actions# \
example-using-concurrency-to-cancel-any-in-progress-job-or-run

example job is here
https://core.trac.wordpress.org/changeset/50930

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2022-05-30 12:11:48 +05:30
Satoru Takeuchi 5b3633bfd6 test: add canary integration test for osd with metadata device
"metadataDevice" field in host based cluster is not tested yet.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-05-25 01:36:33 +00:00
Alexander Trost c149d871c8 build: install python3 version of pygit2 package for docs publish
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-24 19:04:54 +02:00
Alexander Trost 548f723f1b docs: use apt-get to install docs deps and configure git user
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-24 18:27:30 +02:00
Travis Nielsen 2404fe1274 build: add setup tools package for docs publish
The setup tools package and libgit2 are required on
ubuntu 18.04 in order to install the mkdocs framework
and publish the docs. After we move to ubuntu 20.04
this should no longer be necessary.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-05-23 16:07:55 -06:00
Travis Nielsen 5793582a78 build: correct architecture for the release build
The push image build CI action is mistakenly running on
arm64 instead of amd64, which is failing the build since
it only expects amd64.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-05-23 14:08:17 -06:00
Travis Nielsen 03a091e741 ci: fix the doc build generation script
The doc build generation script is failing to install
the needed dependencies for mkddocs.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-05-19 14:05:18 -06:00
Alexander Trost f7da56a743 Merge pull request #10265 from koor-tech/docs_restructure_mkdocs 2022-05-18 18:57:38 +02:00
Alexander Trost 74431443e3 docs: use mkdocs and restructure docs
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-05-18 16:06:22 +02:00
Sébastien Han 9b6143baa7 Merge pull request #10006 from parth-gr/rgw-external
rgw: validate rgw endpoint ip
2022-05-13 14:28:10 +02:00
parth-gr 09d52511ad rgw: validate rgw endpoint ip
The ceph-external-cluster-details-exporter.py
generates the json output even with
rgw-endpoint IP from different cluster
Added a check validate_rgw_endpoint which will validate
the above rgw_endpoint Ip by matching the cluster fsid

Signed-off-by: parth-gr <paarora@redhat.com>
2022-05-11 19:52:30 +05:30
parth-gr 17918c0b9e namespace: adding radosnamespace in canary CI
THe radosnamespace CRD is already added by
https://github.com/rook/rook/pull/9733,
Checking the external script with the namespace created by
the CRD

Signed-off-by: parth-gr <paarora@redhat.com>
2022-05-10 12:52:36 +05:30
Satoru Takeuchi a9465efa07 Merge pull request #9931 from cybozu-go/test-add-canary-integration-tests-for-osd-on-device
test: add canary integration tests for osd on device
2022-05-06 05:25:57 +09:00
Satoru Takeuchi 805163e2e2 test: add canary integration tests for osd on device
OSD on PVC is tested in many patterns but OSD on device is not.
It's preferable to add the following patterns for OSD on device.

- An OSD on a raw disk
- Two OSDs on a device

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2022-05-05 13:15:18 +00:00
Sébastien Han 6ef491d9fc osd: close the encrypted disk after cleanup is done
Once we are done cleaning up the content of the encrypted osd, let's
close the main LUKS device.
This avoids having dm devices on the system after the cleanup.

Closes: https://github.com/rook/rook/issues/10181
Signed-off-by: Sébastien Han <seb@redhat.com>
2022-05-03 16:47:59 +02:00
Sébastien Han ed3121defd Merge pull request #9925 from leseb/multus-plugin-restart-fix
core: fix csi-cephfsplugin pod restart on non-hostnetworking env
2022-04-27 11:41:59 +02:00
Travis Nielsen d5070dc418 Merge pull request #10125 from subhamkrai/update-go-ceph
build: update go-ceph version and remove ceph_preview
2022-04-26 16:05:49 -06:00
Sébastien Han 73b1347675 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>
2022-04-26 17:53:01 +02:00
Travis Nielsen d26b6cf403 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>
2022-04-25 15:32:09 -06:00
subhamkrai 4283973e07 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>
2022-04-21 19:59:46 +05:30
subhamkrai 6de3e3d48d 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>
2022-04-21 11:38:11 +05:30