Commit Graph
1237 Commits
Author SHA1 Message Date
Madhu Rajanna 08997434ac ceph: update csi sidecar images to latest release
This commit updates all the kubernetes sidecar
images to latest available release version.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2021-06-15 08:09:27 +05:30
Blaine Gardner 21e290e003 ceph: implement dependencies for CephCluster
Implement the first step of `design/ceph/resource-dependencies.md` to
add dependency checking when deleting a CephCluster.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-06-10 10:06:10 -06:00
Travis Nielsen 06fbf29b3c Merge pull request #8028 from degorenko/device-classes-resource-limits
ceph: add ability to set resource limit for OSDs based on device classes
2021-06-08 09:01:14 -06:00
Denis Egorenko 8a556fd847 ceph: add ability to set resource limit for OSDs based on device classes
Currently it is not possible to set resource limits based on device classes
for different OSDs. Now adding an ability to use predefined keys for main
cluster spec Resource section to reflect resource limits for different OSDs
with different device classes.

Closes: https://github.com/rook/rook/issues/8007
Signed-off-by: Denis Egorenko <degorenko@mirantis.com>
2021-06-08 17:46:41 +04:00
Travis Nielsen 5e86ef8b0c docs: clarify not to change crdsenabled in helm chart
Changing the crds.enabled setting in a running cluster will cause the
CRs to be deleted, which could be disastrous for a cluster. Add
and clarify the warning in the docs to prevent it and link
to recovery steps if it does happen.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-06-03 14:04:47 -06:00
Travis Nielsen abdaab1a75 docs: disaster recovery guide for deleted cephcluster
If the CephCluster CR or other CRs are mistakenly deleted,
the cluster can remain intact with steps to remove the owner
references to the cluster and re-creating the CRs.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-06-03 12:00:59 -06:00
Travis Nielsen b059cb9c75 Merge pull request #8017 from sp98/update-ceph-teardown-doc
docs: update ceph-teardown doc
2021-06-03 11:48:22 -06:00
Santosh Pillai 2ed122bc57 docs: update ceph-teardown doc
update ceph teardown doc to include cleanupPolicy which enables automatic clean up of the dataDirHostPath and the drives

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2021-06-03 11:32:14 +05:30
Travis Nielsen 4cf43bef95 Merge pull request #8006 from Rakshith-R/feature/options-toleration-affinity
ceph: add support for adding rbd and cephfs tolerations and affinities separately
2021-06-02 07:55:23 -06:00
Rakshith R 87cf668b28 ceph: add option for adding csi pods' tolerations & affinity separately
This commit adds support for adding tolerations and affinities for
cephfs and rbd (provisioner & nodeplugin) pods separately.

Closes: #7060

Signed-off-by: Rakshith R <rar@redhat.com>
2021-06-02 11:30:38 +05:30
rohan47 312854c4cb ceph: updated multus documentation with examples
updated multus documentation with ceph-cluster example and multiple
examples to show the network selector settings.

Signed-off-by: rohan47 <rohgupta@redhat.com>
2021-06-01 23:19:39 +05:30
Travis Nielsen 1af84e34c0 Merge pull request #7778 from henryzhangsta/ceph-cluster-helm-chart
ceph: implement CephCluster CRD Helm Chart
2021-05-27 12:41:01 -06:00
Henry Zhang b59858af38 ceph: implement CephCluster CRD Helm Chart
This manages a CephCluster CRD, and is designed to be deployed into its own namespace to manage a single Ceph cluster independent of the main Rook operator.

Additional functions:
- Ability to setup ServiceMonitor for the Prometheus operator

Signed-off-by: Henry Zhang <me@henry.dev>
2021-05-27 01:08:27 -07:00
Blaine Gardner 285dad339b ceph: update references to v15.2.11 to v16.2.4
Ceph v16 will be the default in Rook v1.7. Update references in the
master branch from v15 (currently v15.2.11) to v16 (currently v16.2.4).

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-05-26 12:30:18 -06:00
Shachar Sharon 4509958bab docs: call partprobe after zapping device
Play safe: after zapping devices, issue a call to 'partprobe' to inform
the OS on partition table changes. This may assists users who face
voodoo partition creation, as described in those ROOK issues:

https://github.com/rook/rook/issues/7734
https://github.com/rook/rook/issues/7940

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
2021-05-20 10:00:01 +03:00
Travis Nielsen 142c3fd891 ceph: updated dashboard ingress example for v1
The ingress kind is found in apiversion networking.k8s.io/v1 since K8s
1.19. We now update the examples to use v1 instead of v1beta1.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-05-18 11:20:13 -06:00
Travis Nielsen bbf29dbe70 Merge pull request #7922 from leseb/doc-fix
doc: fix patch command
2021-05-18 07:41:48 -06:00
Sébastien Han bcdc7f8616 docs: fix patch command
The JSON was invalid.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-05-18 10:26:55 +02:00
Satoru Takeuchi c2adbdd8a8 ceph: remove an missing field in crd
`CephObjectStore->gateway->type` is not used. Rook has only supported s3-like
interface and hasn't had no code which handles `type` field.

In addition, this field was removed from CRD in the following commit.

ceph: auto-gen crds
31db03fece

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-05-17 07:51:13 +00:00
Sébastien Han 0bdbb944bf ceph: simplify external mode setup
The preparation script does not require any manual inputs anymore. The
cluster/examples/kubernetes/ceph/create-external-cluster-resources.sh
will create and set the env variable needed for the import script.
Hopefully this will reduce the friction in some installation, especially
for the mon ports.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-05-11 16:08:46 +02:00
Shachar Sharon 2a3cfc693b ceph: allow setting primary-affinity to osd
A user with unbalanced system (e.g., some OSDs use a partition which
resides on a device along-side OS partition) may want to have a
fine-grained control on the overall load of specific OSD. While osd
weight affects write-load, primary-affinity affects read-load.

This patch allow user to define osd's primary-affinity (similar to
'DeviceClass' and 'InitialWeight'), which is sent to the osd (via mon)
as part of deployment sequence, using 'ceph osd primary-affinity' command.

Valid values are within the range [0.0, 1.0). If not set, default value
is 1.

ROOK issue: https://github.com/rook/rook/issues/7773

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
2021-05-06 17:46:15 +03:00
Travis Nielsen 583c94be38 Merge pull request #7829 from BlaineEXE/ceph-image-to-16.2.2
ceph: update images to v16.2.2
2021-05-05 12:57:49 -06:00
Travis Nielsen af1d728ba6 Merge pull request #7801 from sp98/mon-failover-on-drain
ceph: retry once before mon failover if mon pod is unscheduled
2021-05-05 12:39:05 -06:00
Santosh Pillai f38829b57d ceph: retry once before mon failover if mon pod is unscheduled
Events like node drain can take more than 10-15 minutes. If the node is not update the default monTimeOut of 10 minutes, then rook will attempt to fail over the mon. This failover won't work as the node is still down.
This PR retries once before the mon failover if the mon pod is not scheduled

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2021-05-05 23:32:27 +05:30
Blaine Gardner 5245ceaf06 ceph: update images to v16.2.2
Ceph v16.2.2 is released with dated tag v16.2.2-20210505. Update Ceph
images to match with or without date as appropriate.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-05-05 11:35:34 -06:00
Rakshith R 7987e1b8a2 ceph: update snapshot APIs from v1beta1 to v1
This commit updates external-snapshotter version to
v4.0.0 which supports snapshots v1.
Rook now defaults to enabling RBD and CephFS snapshotter
for K8s >= v1.17 and disabling it for K8s <= v1.16.
Supporting changes in documents and examples yaml files
are made.

Signed-off-by: Rakshith R <rar@redhat.com>
2021-05-05 21:04:10 +05:30
parth-gr 78f5a2495d docs: common-issue link updated in ceph-upgrade doc
The ceph-common-issue doc link in ceph-upgrade document was broken
Fixed the link by changing the directory path

Closes: https://github.com/rook/rook/issues/7794
Signed-off-by: parth-gr <paarora@redhat.com>
2021-04-30 11:16:08 +05:30
Sébastien Han ffeeed30fe Merge pull request #7782 from Rakshith-R/add-static-docs
docs: add static pv and static pvc creation info
2021-04-29 17:41:31 +02:00
Rakshith R e88bff4afd docs: add static pv and static pvc creation info
This commit adds information about static pv and static pvc
creation and links a document with more information.

Signed-off-by: Rakshith R <rar@redhat.com>
2021-04-29 20:55:03 +05:30
Sébastien Han f97769e7fb Merge pull request #7320 from davralin/master
cephfs-documentation: Add dedicated storageclass-ec.yaml
2021-04-29 14:54:50 +02:00
Jiffin Tony Thottan 73b43c5e73 docs: update the vault kms documentation for RGW
This changes documentation from `ceph-cluster-crd.md` to `ceph-object-store-crd.md`.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2021-04-28 14:40:02 +05:30
Sébastien Han 8fd932b18b Merge pull request #7685 from moritazy/master
docs: remove unrelated text "this is long video b"
2021-04-28 09:13:28 +02:00
Travis Nielsen 71bbab9bf6 Merge pull request #7606 from rohan47/multus_experimental
ceph: moved multus support out of experimental
2021-04-27 09:17:46 -06:00
Sébastien Han afb7fb483a Merge pull request #7757 from BlaineEXE/upgrade-doc-crd-failures
docs: workaround preserveUnknownFields upgrade
2021-04-27 10:23:27 +02:00
Blaine Gardner c90f3c3721 docs: workaround preserveUnknownFields upgrade
When upgrading Rook clusters created before v1.5,
`kubectl apply -f crds.yaml` fails due to the existence of
the usupported `spec.preserveUnknownFields`. Add text documenting how to
work around this issue in the Ceph upgrade docs.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-04-26 15:14:45 -06:00
rohan47 a654bc777b ceph: moved multus support out of experimental
moved multus support out of experimental.

Signed-off-by: rohan47 <rohgupta@redhat.com>
2021-04-27 00:31:09 +05:30
Jiffin Tony Thottan af86fbed72 docs: add documentation for service serving cert
Add necessary changes in object-openshift.yaml, ceph-object-store-crd.md for service serving cert support for RGW

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2021-04-26 18:23:33 +05:30
Morteza Ghasempour 0b638c1c52 docs: remove "this is long video b"
On Node Port service section, output of the `kubectl -n rook-ceph get service` command had a unwanted string "this is long video" that I've removed it.

Signed-off-by: m.ghasempour <mso.ghasempour@digikala.com>
2021-04-24 09:35:23 +04:30
Satoru Takeuchi c8700bdae3 docs: fix ceph pacific related descriptions
Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-04-23 14:08:20 +00:00
Travis Nielsen 8c9ddcd415 Merge pull request #6917 from alexcpn/patch-3
Update ceph-teardown.md
2021-04-22 12:24:55 -06:00
Alex Punnen ffc0a252b3 docs: document command for detecting resources still in use
have found many times that the namespaces is in Terminating state even after trying to clean properly. Added the command to check this and remove all dangling objects

Signed-off-by: Alex Punnen <alexcpn@gmail.com>
2021-04-22 12:07:41 -06:00
Travis Nielsen 43594adbbb ceph: example manifests deploy with v15.2.11
The latest octopus release is v15.2.11 so we should use
it in the default examples to pick up the latest fixes.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-04-22 08:54:08 -06:00
Madhu Rajanna 6bc3c1ac3a ceph: update cephcsi to v3.3.1
As we have cephcsi v3.3.1 release
with couple of bug fixes and a CVE fix
updating the cephcsi to latest release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2021-04-22 13:57:01 +05:30
Sébastien Han 1028cd41f9 Merge pull request #7623 from leseb/add-rbd-mirroring-ci
ci: add rbd-mirror integration test
2021-04-20 16:53:59 +02:00
Sébastien Han 9a28e130b6 ci: add rbd-mirror integration test
Long due but finally there, the CI now test the block mirroring between
2 clusters.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-04-20 16:27:53 +02:00
Rakshith R f5a3f6fa71 ceph: add option to toggle host networking in csi plugin pods
As host networking is no longer necessary for CSI driver,
it will be disabled by default.
An option CSI_ENABLE_HOST_NETWORK is added to rook-ceph-operator-config
configmap and enableCSIHostNetwork in helm chart values.yaml to
enable/disable host network in CSI plugin pods.

Closes: #7203

Signed-off-by: Rakshith R <rar@redhat.com>
2021-04-20 12:57:09 +05:30
bipuladh 7d5cc8d06b ceph: adds a container to support volume replication controller
this commit adds a new container inside of rbd-provisioner.

Signed-off-by: bipuladh <badhikar@redhat.com>
2021-04-15 21:39:26 +05:30
Madhu Rajanna fd28e48664 ceph: update csi image to v3.3.0
as we are having v3.3.0 cephcsi latest release
updating the cephcsi image to the same.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2021-04-15 19:36:31 +05:30
Travis Nielsen 189a867636 Merge pull request #7521 from chienfuchen32/patch-1
ceph: update Kubernetes registry link in CephFS document
2021-04-14 10:22:31 -06:00
Travis Nielsen 54b85b723c Merge pull request #7571 from BlaineEXE/upgrade-docs-1.6
update Ceph upgrade docs for 1.6
2021-04-13 21:13:20 -06:00