Commit Graph
13292 Commits
Author SHA1 Message Date
Raghavendra TalurandNitin Goyal f8a721dbb0 ceph: doc additions for the uninstall mode
Add documentation for the setting AllowUninstallWithVolumes to the
following files:
Documentation/ceph-cluster-crd.md
cluster/examples/kubernetes/ceph/cluster.yaml

Co-authored-by: Nitin Goyal <nigoyal@redhat.com>
Signed-off-by: Raghavendra Talur <raghavendra.talur@gmail.com>
2020-08-31 14:07:32 -04:00
Raghavendra TalurandNitin Goyal 42a30ff5f8 ceph: skip check for existing PVs in forced uninstall
If AllowUninstallWithVolumes is set in the cleanup policy then we don't
check and wait for the deletion of existing volumes from the
cephCluster.

Co-authored-by: Nitin Goyal <nigoyal@redhat.com>
Signed-off-by: Raghavendra Talur <raghavendra.talur@gmail.com>
2020-08-31 14:07:32 -04:00
Raghavendra TalurandNitin Goyal a6f59f3b64 ceph: add uninstall mode
This adds an uninstall mode to the ceph cluster. If
allowUninstallWithVolumes in the CleanupPolicySpec is set to true then
the cluster deletion does not wait for the PVs to be deleted.

Co-authored-by: Nitin Goyal <nigoyal@redhat.com>
Signed-off-by: Raghavendra Talur <raghavendra.talur@gmail.com>
2020-08-31 14:06:44 -04:00
Gregor Krmelj 256b284b35 docs: fix markdown code block formatting issue
this fixes the issue of the code block not being rendered
correctly from markdown into html.

Signed-off-by: Gregor Krmelj <gregor@krmelj.xyz>
2020-08-31 16:40:48 +02:00
Travis Nielsen 2d6750d79c Merge pull request #5956 from travisn/k8s-1.19-tests
ci: Run integration tests on k8s 1.19
2020-08-28 12:04:09 -06:00
Travis Nielsen 34d40fee6e ceph: upgrade test uses rbac v1 instead of v1beta1
The upgrade tests can safely use the rbac.authorization.k8s.io/v1 instead of
rbac.authorization.k8s.io/v1beta1. In K8s 1.19, the upgrade test was failing
because v1beta1 has been deprecated.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-28 10:26:36 -06:00
Travis Nielsen 68b3789bba ci: run integration tests on k8s 1.19
With the pending release of k8s 1.19 we need to start running
the integration tests on 1.19. In master we remove support for
1.14 to keep the last five releases running in master.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-28 08:35:45 -06:00
Travis Nielsen bebaed09b5 Merge pull request #6176 from leseb/workflow-unittests
ci: run unit test in a github workflow
2020-08-27 16:28:02 -06:00
Sébastien Han 575b00f4c3 ci: only run unit tests on official build
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-27 22:33:54 +02:00
Sébastien Han 296997e723 Merge pull request #6175 from leseb/do-not-exec-lvm
ceph: do not exec on rootfs just lookup
2020-08-27 16:26:02 +02:00
Sébastien Han 48dad45f98 ci: run unit tests in gh actions
We now run Rook's unit test in gh workflows

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-27 16:19:10 +02:00
Sébastien Han c5a1bbda75 Merge pull request #6166 from leseb/modcheck-workflow
ci: add modcheck github workflow
2020-08-27 15:43:04 +02:00
Sébastien Han f2313d6db0 ceph: do not exec on rootfs just lookup
Trying to execute a binary from the host within the container can result
in mismatched libraries. The host version is compiled with paths of
libraries on the host where the libs inside the container can differ.
Because the path is known and we only need to make sure whether the bin
exists or not then simply doing a lookup when we fallback on /rootfs is
sufficient.

Closes: https://github.com/rook/rook/issues/6078
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-27 15:16:46 +02:00
Sébastien Han 58c8de95be ci: add modcheck github workflow
Add a new github workflow to verify with mod check.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-27 12:15:41 +02:00
Travis Nielsen 85d72f70b0 Merge pull request #6170 from leseb/obc-log
ceph: run obc requests with debug
2020-08-26 20:45:13 -06:00
Sébastien Han 3a92f98233 ceph: use special dns suffix for object ep
By addding ".svc.cluster.local" to the endpoint of the object store, the
OBC requests won't go through a proxy if any is configured.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-26 17:10:31 -06:00
Sébastien Han 5bcade6d55 Merge pull request #6164 from cybozu-go/ceph-improve-common-issues-document
ceph: improve common issues document
2020-08-26 15:56:14 +02:00
Sébastien Han bcd76bf46d ceph: run obc requests with debug
Use debug log to all the s3 calls so it's either to debug. Also, it's
not so verbose.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-26 15:27:49 +02:00
Travis Nielsen 24b0bdd119 Merge pull request #6156 from cloudical-io/first_part_6111
ceph: operator should only "watch" OSD placement nodes
2020-08-26 07:20:30 -06:00
Satoru Takeuchi 65528d67ed ceph: improve common issues document
node-hangs-after-reboot problem can't be fixed with ceph-csi:2.0.1
if Rook is v1.2.x. It's because this version doesn't have a bind
mount that is needed to fix this problem.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2020-08-25 22:09:33 +00:00
Travis Nielsen e40b462216 Merge pull request #6084 from cloudical-io/additional_user_labels_ceph
ceph: allow user to add labels to pods
2020-08-25 15:58:40 -06:00
Travis Nielsen b7034c16a0 Merge pull request #6160 from travisn/doc-ceph-upgrades-link
docs: Fix link to ceph upgrade guide
2020-08-25 13:52:04 -06:00
Travis Nielsen d786b7f547 docs: fix link to ceph upgrade guide
There was a broken link in the cluster CR documentation that was pointing
to /Documentation instead of the .md in the same dir.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-08-25 13:43:03 -06:00
Alexander Trost a87c00ddee ceph: allow user to add labels to pods
This allows users to specify additional labels to be added to the components
created by the Rook Ceph operator.
Additionally the rbd mirrors are now getting their annotations and
labels set.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2020-08-25 19:38:51 +02:00
Travis Nielsen 06db5785b3 Merge pull request #6136 from subhamkrai/security-text
ceph: vulnerability in package golang.org/x/text
2020-08-25 11:29:35 -06:00
Sébastien Han fed4775a9b Merge pull request #6158 from leseb/workflow-make-codegen
ci: run make codegen validation in workflow
2020-08-25 19:27:29 +02:00
Sébastien Han 0c1250ac81 ceph: resync codegen
Resync API.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-25 19:21:50 +02:00
Sébastien Han af5a7f4df8 ci: run make codegen validation in workflow
Fail if a PR is submitted and has not run "make codegen"

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-25 19:19:15 +02:00
Alexander Trost 94d5196439 ceph: operator should only "watch" OSD placement nodes
This change is the first part to improve the watch OSD nodes logic in
the Rook Ceph operator.
This commit changes the "is node valid check" to use the OSD placement
instead of the all placement. The OSD placement is "merged" with the
all placement already.

Second step will be to skip the first "iteration" of the "nodes added"
events and then start the actual watch logic.

Partially resolves #6111.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2020-08-25 18:16:20 +02:00
Sébastien Han 69f6e87fd1 Merge pull request #6152 from leseb/fix-multus-csi
ceph: correctly return if multus was applied
2020-08-25 11:56:25 +02:00
Sébastien Han 8668e1f69c ceph: correctly return if multus was applied
We must only return if multus got configured successfully.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-08-25 09:54:18 +02:00
Jared Watts 06ab07be8b Merge pull request #5863 from prksu/nfs-provisioner
nfs: nfs provisioner controlled by operator
2020-08-24 16:26:23 -07:00
Travis Nielsen 3221c7ff45 Merge pull request #6141 from Madhu-1/fix-4427
ceph: remove preStop from daemonset template
2020-08-24 17:24:28 -06:00
Madhu Rajanna 0aa0957bf1 ceph: remove preStop from daemonset template
The lifecycle preStop hook fails on container stop / exit
because /bin/sh is not present in the driver registrar container
image.

the driver-registrar will remove the socket file
before stopping. we dont need to have any preStop hook
to remove the socket as it was not working as expected

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2020-08-24 19:25:44 +05:30
Sébastien Han 73d9e792e8 Merge pull request #6144 from cloudical-io/makefile_go115
build: allow golang 1.15
2020-08-24 11:57:02 +02:00
Alexander Trost 2f5d076e20 build: allow golang 1.15
Added Golang 1.15 to the supported versions in the Makefile check.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2020-08-24 11:30:18 +02:00
Sébastien Han fc60241c88 Merge pull request #6081 from cloudical-io/use_v1_rbac
docs: use `rbac.authorization.k8s.io/v1` consistently
2020-08-24 10:47:10 +02:00
Sébastien Han d89b06bcf2 Merge pull request #6137 from thotz/cephobjectstorelogging
ceph: use proper log functions in object package
2020-08-24 10:46:21 +02:00
Sébastien Han 396c488f88 Merge pull request #6138 from shellwedance/ceph-fix-osd-backend-network-docs
docs: fix OSD Dedicated Network docs
2020-08-24 10:44:20 +02:00
taeuk_kim c7e4ac9362 docs: fix OSD Dedicated Network docs
reflect new hostNetwork API of CephCluster to Advanced Configuration docs

Signed-off-by: taeuk_kim <taeuk_kim@tmax.co.kr>
2020-08-21 10:14:23 +00:00
Ahmad Nurus S 5cc2ceda2d nfs: make provisioner as sidecar of nfs server
Signed-off-by: Ahmad Nurus S <prksu.sh@gmail.com>
2020-08-21 16:40:33 +07:00
Jiffin Tony Thottan 7413485b8a ceph: use proper log functions in object package
There is incorrect usage of log functions in the object directory, changing those instances

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2020-08-21 12:39:53 +05:30
Sébastien Han 3f8d312c8d Merge pull request #5740 from rohan47/csionmultus
ceph: added support for multus for csi
2020-08-20 16:18:17 +02:00
rohan47 8c4ede1edc ceph: added support for multus for csi
CSI pods now utilize multus networking and connect to public
network specified in the CephCluster CR.

Closes: https://github.com/rook/rook/issues/5356
Signed-off-by: rohan47 <rohgupta@redhat.com>
2020-08-20 18:25:09 +05:30
Alexander Trost ed3c0eeff2 test: operator use rbac.authorization.k8s.io/v1 consistently
This replaces any K8S clientset usages of the
`rbac.authorization.k8s.io/v1beta1` APIs with
`rbac.authorization.k8s.io/v1` client.
This is done as some RBAC objects used the `v1beta1` and others already
using `v1`, for consistency.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2020-08-20 12:08:32 +02:00
Alexander Trost be16bc455f docs: operator use rbac.authorization.k8s.io/v1
This replaces any uses of `rbac.authorization.k8s.io/v1beta1` with
`rbac.authorization.k8s.io/v1` affecting RBAC objects like ClusterRole
and ClusterRoleBindings, etc. to make it consistent.
This is done as some RBAC objects used the `v1beta1` and others already
using `v1`.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2020-08-20 12:08:32 +02:00
Daniel Schneider d4d53b610e docs: fix RGW AWS credential export commands
Fix ceph rgw export commands to access values in object yaml definitions through jsonpath instead of grep. This solves issues that arise, should there be more than one lines with the grep value in the yaml file which would concatenate arbitrary values.

Closes: https://github.com/rook/rook/issues/6087
Signed-off-by: Daniel Schneider <daniel.schneider@eramux.com>
2020-08-20 11:15:23 +02:00
subhamkrai 9247b65f44 ceph: vulnerability in package golang.org/x/text
package golang.org/x/text v0.3.3 fixes the Vulnerability
in golang.org/x/text which could lead to infinite loop when
providing single byte to utf16 decoder.

Signed-off-by: subhamkrai <subhamkumarrai03@gmail.com>
2020-08-20 13:34:33 +05:30
Sébastien Han 9ed885c57f Merge pull request #6121 from thotz/podmandocumentation
docs: mention about podman in development workflow
2020-08-20 09:39:20 +02:00
Sébastien Han a1a1a989a5 Merge pull request #6122 from thotz/crcdoclink
docs: provide link for crc documentation
2020-08-20 09:38:38 +02:00