Commit Graph
9003 Commits
Author SHA1 Message Date
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 8e65d69c7a Merge pull request #10495 from Rakshith-R/nfs-ci-cleanup
ci: rename EnableCSINFS to TestNFSCSI & explain "nolock" mountOption
2022-06-29 07:59:40 -06:00
Travis Nielsen 63311df9f3 Merge pull request #10519 from travisn/toolbox-script-spec
manifest: Inline toolbox script for direct use of ceph image
2022-06-28 18:55:26 -06:00
Travis Nielsen febce342b7 manifest: inline toolbox script for direct use of ceph image
The toolbox is really only used for ceph commands. The main reason
the rook image was being used in the toolbox pod was for the script
that generates the ceph.conf and updates it whenever the mons are
updated during mon failover.

Now the ceph image can be specified directly by moving the script
inline with the container definition instead of being required
in the image.

The rook image will still contain the script for backward compatibility
and for scenarios where the rook binary may still be needed

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-28 17:19:22 -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
Travis Nielsen 676884aab4 Merge pull request #10459 from parth-gr/subvolume-external
external: add support for subvolumegroup and rados namespace
2022-06-28 14:02:40 -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 5614b5843e Merge pull request #10154 from bitfisher/master
helm: use correct namespace for provisioner in cephobjectstore template
2022-06-28 08:54:15 -06:00
Travis Nielsen a79d70f11e Merge pull request #10520 from koor-tech/docs_fix_docs_build
build: fix working dir for docs building
2022-06-28 07:56:42 -06:00
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
Travis Nielsen 04c64a0943 Merge pull request #10506 from travisn/cluster-crd-docs-refactor
docs: Refactor cluster crd doc for subtopics
2022-06-28 07:41:13 -06:00
Markus Schmidleitner 506c266f2f docs: added upgrade note (#10153)
Signed-off-by: Markus Schmidleitner <markus.schmidleitner@ocilion.com>
2022-06-28 10:42:40 +02:00
Markus Schmidleitner 00689476df test: delete object sc before upgrade tests (#10153)
Signed-off-by: Markus Schmidleitner <markus.schmidleitner@ocilion.com>
2022-06-28 10:39:58 +02:00
Markus Schmidleitner 36a9374555 helm: use correct namespace for provisioner in cephobjectstore template (fixes #10153)
Signed-off-by: Markus Schmidleitner <markus.schmidleitner@ocilion.com>
2022-06-28 10:39:51 +02:00
Alexander Trost a0cb255f90 build: fix working dir for docs building
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-06-28 09:34:56 +02:00
Travis Nielsen 34ca5d661b docs: refactor cluster crd doc for subtopics
The cluster CR doc is extremely long and in need of refactoring.
Now we have four new sub-topics for a host-based cluster,
PVC-based cluster, stretch cluster, and an external cluster.
Each of those topics has its own description and examples.
The main cluster CR topic still contains the details about
all the possible cluster CR settings.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-27 17:04:54 -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
Travis Nielsen afba7ec5e9 Merge pull request #10505 from travisn/insecure-global-id
mon: Disable insecure global ids for new deployments
2022-06-27 15:53:25 -06: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
Travis Nielsen 0bbaee88a2 Merge pull request #10490 from pkalever/stagingPath
csi: fix stagingpath
2022-06-27 10:22:39 -06:00
Travis Nielsen 6d7ccb2ede Merge pull request #10507 from travisn/ceph-17.2.1
build: Update to latest quincy release 17.2.1
2022-06-27 07:42:38 -06:00
Alexander Trost 158c6187e0 docs: use exclude plugin to ignore the readme.md file
Right now te Documentation/README.md file is read and rendered but due
its location reports broken links as we link it into the
Documentation/Getting-Started/intro.md.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-06-27 13:30:08 +02:00
Alexander Trost de28a21879 build: add separate docs build and preview targets
This adds two new make target for building and previewing the current
state of the documentation locally.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2022-06-27 13:29:25 +02:00
subhamkrai fa1eed1d4e core: fix lint issue in python files
Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-27 16:53:01 +05:30
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
Travis Nielsen 28957b3ff1 mon: disable insecure global ids for new deployments
In new deployments we always want to disable the insecure global id.
If the mgr deployment is newly created, we know it's a new cluster
and the mons are in quorum, so we can go ahead and disable the
insecure global IDs.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-24 12:26:00 -06:00
Travis Nielsen ecbc438d7a mon: fix typo in log message for msgr2
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-06-24 11:55:14 -06:00
Travis Nielsen c8658331df Merge pull request #10480 from subhamkrai/modify-v1beta1
core: delete v1beta1 cronjob only when v1 not found
2022-06-23 10:07:51 -06:00
Travis Nielsen f21536b5e3 Merge pull request #10496 from parth-gr/osd-prepare-memory
osd: increase memory of osd prepare pods
2022-06-23 09:40:40 -06:00
parth-gr bf1342b2b3 osd: increase memory of osd prepare pods
In helm charts default value of osd prepare pods
limit was less so increased it to 400Mi

closes: https://github.com/rook/rook/issues/10477

Signed-off-by: parth-gr <paarora@redhat.com>
2022-06-23 20:34:43 +05:30
Rakshith R 621dd2a159 ci: explain why "nolock" mountOption is needed for nfs
"nolock" mountOptions has been added to prevent the following error in ci:
Output: mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.

Signed-off-by: Rakshith R <rar@redhat.com>
2022-06-23 16:53:08 +05:30
Rakshith R 928dd46593 ci: rename TestCephSettings.EnableCSINFS to TestNFSCSI
Signed-off-by: Rakshith R <rar@redhat.com>
2022-06-23 16:48:13 +05:30
subhamkrai 196f5da635 core: delete v1beta1 cronjob only when v1 not found
earlier we're deleting v1beta1 always before creating
v1 job. Now, we delete only when k8s version is
latest(which supports v1  job) and v1 job is not created
which means this is the first time and this is the only time we'll
delete v1beta1.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-23 12:27:43 +05:30
Prasanna Kumar Kalever 2627f32d51 csi: fix stagingpath
Kubernetes 1.24 and newer use a different path for staging the volume.
That means the CSI-driver is requested to mount the volume at an other
location, compared to previous versions of Kubernetes.

The backward compatibility should be taken care by the CSI driver.

See-also: kubernetes/kubernetes#107065
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2022-06-23 11:41:26 +05:30
Blaine Gardner 0cd57e0b3d Merge pull request #10354 from Rakshith-R/add-nfs-e2e-test
e2e: add tests for nfs csi pvc
2022-06-22 10:41:16 -06:00
Travis Nielsen b0dd11d2bb Merge pull request #10478 from Rakshith-R/upd-csiaddons-ctrler
doc: update k8s-csi-addons controller links to v0.4.0
2022-06-21 08:16:00 -06:00
Rakshith R 2cd32336cb docs: update k8s-csi-addons controller links to v0.4.0
This commit updates doc to point the k8s-csi-addons
controller links to release v0.4.0.
Refer: https://github.com/csi-addons/kubernetes-csi-addons/releases/tag/v0.4.0

Signed-off-by: Rakshith R <rar@redhat.com>
2022-06-20 15:33:18 +05:30
Rakshith R 5b017cfd67 ci: add tests for nfs csi pvc
This commit adds nfs csi pvc test into
ceph smoke suite.

Signed-off-by: Rakshith R <rar@redhat.com>
2022-06-20 15:01:22 +05:30
Blaine Gardner 800d3e5050 Merge pull request #9915 from BlaineEXE/dependents-cephfilesystem
file: block deletion on more dependents
2022-06-17 14:07:07 -06:00
Travis Nielsen 290669dfea Merge pull request #10465 from xakdwch/master
operator: discovery parameters use camelCase instead of snake_case
2022-06-17 13:32:01 -06:00
xakdwch 5057b9771f operator: discovery parameters use camelCase instead of snake_case
regulate the variable names to unite standard

Signed-off-by: xakdwch <xakdwch@163.com>
2022-06-18 02:50:24 +08:00
Travis Nielsen 5806c21565 Merge pull request #10460 from subhamkrai/increase-probe-timeout
core: increase liveness probe timeout to 2s
2022-06-17 12:11:59 -06:00
Blaine Gardner c03f7c53b8 Merge pull request #10442 from Rakshith-R/csi-token-create-rbac
csi: add token create rbac for rbd csi clusterrole
2022-06-17 12:07:21 -06:00
subhamkrai 62f0fb2b1d core: increase liveness probe timeout to 2s
we have noticed multiple failures because of the probe
failing, most of the time it's due to fewer resources.
But increasing timeout fixes that, so increasing the
probe timeout to 2s from default 1s so that it will
give more time to probe before failing.

Signed-off-by: subhamkrai <srai@redhat.com>
2022-06-17 19:06:40 +05:30
Travis Nielsen 02ddd3c9f5 Merge pull request #10454 from nixpanic/rebase/csi-addons/v0.4.0
ceph: update CSI-Addons side-car to latest (v0.4.0) release
2022-06-16 11:41:13 -06:00
Sébastien Han 005b469955 Merge pull request #10445 from leseb/do-not-fail-ondeactivate-failure
osd: add lvm flag for lvm osd activate
2022-06-16 15:55:20 +02:00
Alexander Trost 9aaf363eac Merge pull request #10234 from parth-gr/external-document 2022-06-16 07:59:25 +00:00