Commit Graph
1001 Commits
Author SHA1 Message Date
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
subhamkrai 81d696652d build: update golang version to v1.17
update golang version to v1.17

Signed-off-by: subhamkrai <srai@redhat.com>
2022-04-19 09:04:29 +05:30
Sébastien Han 2c09bbb91b ci: add multus integration test
This new integration test will deploy a cluster with multus enabled. It
will be comprised of two network interfaces for ceph public and cluster
communications.
For now, it only deploys a Ceph cluster up to the OSDs.

Closes: https://github.com/rook/rook/issues/9784
Signed-off-by: Sébastien Han <seb@redhat.com>
2022-04-12 17:30:47 +02:00
Travis Nielsen 738a300827 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>
2022-04-07 13:42:18 -06:00
Travis Nielsen 9a06367194 Merge pull request #9981 from subhamkrai/skip-lable
ci: skip few ci when pr labled skip-ci
2022-04-05 07:43:47 -06:00
subhamkrai e4a2a06d2e ci: skip few ci when pr labled skip-ci
skip build, codegen and unit test ci test when
skip-ci labled is marked in PR.

Closes: https://github.com/rook/rook/issues/9972
Signed-off-by: subhamkrai <srai@redhat.com>
2022-04-05 11:35:38 +05:30
Madhu Rajanna b0fc7c9b92 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>
2022-04-05 10:10:04 +05:30
subhamkrai 0cdb32a403 ci: update golangci linter version
update golangci linter version

Signed-off-by: subhamkrai <srai@redhat.com>
2022-04-04 19:37:20 +05:30
Travis Nielsen 4f9a72c1db Merge pull request #9894 from yuvalman/resources
helm: enable resource defaults on rook components
2022-03-21 13:58:17 -06:00
Yuval Manor ff7a5c2d2d helm: enable resource defaults on rook components
This PR assign default values to the resources of all Rook and Ceph components

Closes: https://github.com/rook/rook/issues/9858
Signed-off-by: Yuval Manor <yuvalman958@gmail.com>
2022-03-21 21:23:35 +02:00
Travis Nielsen 48be000b4f core: add quincy to the supported versions
Ceph Quincy is now supported as of Rook v1.9.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-03-16 14:26:20 -06:00
subhamkrai fd475575ff ci: add pylint in ci
adding pylint in ci.

Closes: https://github.com/rook/rook/issues/9866
Signed-off-by: subhamkrai <srai@redhat.com>
2022-03-14 18:58:20 +05:30
Sébastien Han 1a78fbac67 Merge pull request #9732 from subhamkrai/split-code-and-unit-test
core: split external script unit test and main code in diff file
2022-03-07 15:09:28 +01:00
Travis Nielsen 879bde4416 osd: remove osd with purge instead of destroy
The osd destroy command leaves the osd id in use instead
of fully purging the osd id. If the osd id is not also
removed, it gives the impression that there is still
something that needs to be cleaned up from the old osd.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-02-25 12:02:20 -07:00
subhamkrai 3e6aa9e556 core: split external script unit test and main code in diff file
split the external script main code and unit test in different file.

Closes: https://github.com/rook/rook/issues/9588
Signed-off-by: subhamkrai <srai@redhat.com>
2022-02-24 18:23:21 +05:30
Blaine Gardner 7a7d278ab4 test: fix helm suite conflicting artifact
Two test jobs were collecting artifacts to the same artifact name, which
can cause race conditions and failures to upload artifacts.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2022-02-22 13:14:39 -07:00