Commit Graph
5123 Commits
Author SHA1 Message Date
Travis Nielsen 7dcd64f1a2 Merge pull request #5761 from vbnrh/rook-ac-controller-runtime
ceph: implement controller-runtime for admission controllers
2020-07-13 16:31:23 -06:00
Vineet Badrinath 98874ccf4d ceph: implement controller-runtime for admission controllers
moves the admission-controller server to use controller-runtime library for better support, maintainibility of code.

Signed-off-by: Vineet Badrinath <vbadrina@redhat.com>
2020-07-14 01:10:03 +05:30
Travis Nielsen d4c7d0278f Merge pull request #5789 from leseb/liveness-disable
ceph: configurable status checks and livenessprobe
2020-07-10 13:38:42 -06:00
Sébastien Han ccb52b84e6 ceph: configurable status checks and livenessprobe
This commit allows us to configure status check for each daemon:

* "mon": health check on the ceph monitors (quorum)
* "osd": health check on the ceph osds
* "status": ceph health status check

Each check is controlled by the following settings:

* disabled: whether to disable the check (default: false)
* internal: interval to run the check
* timeout: only valid for mons, is the timeout for unresponsive mon
before failling over.

Example to disable the status health check:

```yaml
healthCheck:
  daemonHealth:
    status:
      disabled: true
```

As part of that, pod's livenessprobe can now be configured via the
following settings:

* disabled: whether to enable or not
* probe: override the current probe in place by a new one

```yaml
healthCheck:
  livenessProbe:
    mon:
      disabled: true
```

Closes: https://github.com/rook/rook/issues/5772
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-07-10 19:21:59 +02:00
Blaine Gardner dc0e52bca4 Merge pull request #5808 from SUSE/manifest-octopus-support-note
ceph: fix manifest ceph version support comment
2020-07-10 10:49:13 -06:00
Blaine Gardner b8aea86ced ceph: fix manifest ceph version support comment
Adjust the comment for `cephVersion:allowUnsupported` in the
`cluster.yaml` manifest to correctly document that Nautilus and
Octopus are supported (not Mimic and Nautilus).

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2020-07-10 10:30:46 -06:00
Sébastien Han d097343001 Merge pull request #5774 from leseb/object-user-endpoint
ceph: add s3 endpoint to the rgw user cr
2020-07-10 17:22:22 +02:00
Sébastien Han 07c7dd457f ceph: expose endpoint in the CephObjectStoreUser
Now, when an S3 user gets created, Rook will add the S3 endpoint to the
Secret along with the credentials.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-07-10 15:59:47 +02:00
Sébastien Han 4d0856c297 Merge pull request #5762 from thotz/cleanupobjectcephusers
ceph: check for ceph object user cleanup
2020-07-10 14:56:57 +02:00
Sébastien Han 5c5008e27c ceph: add s3 endpoint to CephObjectStore CRD
For the CephObjectStore, the Status field of the CR has a new property
called "info", which contains a couple of information about the CR.
The first new addition is the endpoint of the object store.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-07-10 12:06:25 +02:00
Blaine Gardner f2d8524ccd Merge pull request #5803 from SUSE/doc-network-mode-change-not-allowed
docs: ceph: add no support for changing networking
2020-07-09 12:52:01 -06:00
Blaine Gardner 3678bd791a docs: ceph: add no support for changing networking
Clarify in the docs that changing networking modes after a Cpeh cluster
has been deployed is not supported and can result in a nonfunctional
cluster.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2020-07-09 12:17:27 -06:00
Sébastien Han 7b7ed880d4 Merge pull request #5792 from travisn/no-default-xfs
docs: Remove references to xfs for ceph volumes
2020-07-09 08:36:03 +02:00
Travis Nielsen ba590396e8 docs: remove references to xfs for ceph volumes
When mounting a ceph volume, xfs may cause issues with potential
deadlocks if the volume is on the same node as the OSDs. To avoid
this issue the default recommendation is ext4.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-07-08 22:31:11 -06:00
Jiffin Tony Thottan 2308ad311e ceph: check for ceph object user cleanup
Do not delete ceph object store until ceph object users are cleaned up

Closes: #5712
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2020-07-08 23:46:30 +05:30
Travis Nielsen 8b5c3836d9 Merge pull request #5779 from leseb/resync-crds
ceph: resync crds
2020-07-08 12:02:46 -06:00
Sébastien Han 6de1ad8575 ceph: resync crds
Add missing API fields.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-07-08 09:28:40 +02:00
Travis Nielsen b7b46b15e1 Merge pull request #5605 from subhamkrai/remove-drivers
ceph: remove csi drivers when disable
2020-07-07 11:16:07 -06:00
Sébastien Han fe482e2397 Merge pull request #5778 from shellwedance/ceph-fix-explanation-in-operator-option-cephfs-kernel
ceph: fix cephfs kernel comment in operator
2020-07-07 13:27:59 +02:00
taeuk_kim 2bd4b83d50 ceph: fix cephfs kernel comment in operator
Fix an ambiguous comment which explains about
CSI_FORCE_CEPHFS_KERNEL_CLIENT flag in operator.yaml.

Signed-off-by: taeuk_kim <taeuk_kim@tmax.co.kr>
2020-07-07 07:15:17 +00:00
Travis Nielsen 92200870c2 Merge pull request #5770 from travisn/enable-osd-logging
ceph: Capture logging from the OSD daemons
2020-07-06 23:12:04 -06:00
Travis Nielsen 902762364d Merge pull request #5769 from cybozu-go/tests-fix-aws_1.11.x-test-failure
tests: fix aws_1.11.x test failure
2020-07-06 15:47:09 -06:00
Sébastien Han 6640d90b9d Merge pull request #5771 from travisn/cleanup-target-ratio
ceph: remove legacy target_size_ratio example
2020-07-06 22:52:44 +02:00
Travis Nielsen 3af205d958 ceph: remove legacy target_size_ratio example
The target_size_ratio moved under the parameters element of
the pool settings. While the target size ratio is still supported
under the previous location for backward compatibility, the
example is preferred under parameters.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-07-06 14:45:21 -06:00
Travis Nielsen 8f9df75f7b ceph: capture logging from the osd daemon
The OSD daemon has been missing critical flags for logging to stderr
where k8s can capture the logs. Without the --log-to-stderr=true,
all the OSD logging was essentially lost until now.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-07-06 14:38:37 -06:00
Sébastien Han a451077023 Merge pull request #5768 from travisn/ceph-15.2.4
ceph: Update master to the latest Octopus release v15.2.4
2020-07-06 22:16:34 +02:00
Satoru Takeuchi 2cda00345a tests: fix aws_1.11.x test failure
kubelet in aws_1.11.x test requires kubernetes-cni 0.7.5.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2020-07-07 04:43:45 +09:00
Travis Nielsen dbae36b2bb ceph: update to the latest octopus release
Update the base operator image and cluster examples to use the latest
octopus release v15.2.4. Also cleanup some old examples and unit tests
that were still based on mimic.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-07-06 12:11:47 -06:00
Travis Nielsen a11018d707 Merge pull request #5756 from thotz/upgradecrdsobjectstore
ceph: adding missing ceph object crds in upgrade-from-v1.3-crds
2020-07-06 11:24:56 -06:00
Travis Nielsen c806f66775 Merge pull request #5764 from travisn/disable-mgr-test
ceph: Disable ceph mgr test temporarily
2020-07-06 10:47:02 -06:00
Travis Nielsen 2d793cdc3f ceph: disable ceph mgr test temporarily
Due to an issue in ceph master, the mgr integration test is failing.
Until this is fixed, we will temporarily disable the test. A fix
is expected with https://github.com/ceph/ceph/pull/35915

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-07-06 09:19:41 -06:00
Travis Nielsen 9332d31196 Merge pull request #5755 from travisn/skip-mgr-test-in-master
ceph: Add logging for mgr integration test suite in master
2020-07-06 08:24:31 -06:00
Sébastien Han 3f97e1561e Merge pull request #5748 from stuartpb/patch-1
ceph: document the `deviceClass` setting for OSDs
2020-07-06 11:20:45 +02:00
subhamkrai 7f9f1690d2 ceph: remove csi drivers when disable
remove csi drivers and delete k8s
services that drivers create,when
the default setting of drivers changed
to false.

Signed-off-by: subhamkrai <subhamkumarrai03@gmail.com>
2020-07-06 13:33:52 +05:30
Sébastien Han ab444f5b04 Merge pull request #5760 from cybozu-go/ceph-doc-fix-a-wrong-link
ceph: fix a wrong link
2020-07-06 08:59:57 +02:00
Satoru Takeuchi 48a87d192a ceph: fix a wrong link
`ceph-` suffix is necessary.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2020-07-06 00:34:23 +00:00
Jared Watts 556c027fee Merge pull request #5650 from prksu/nfs-controller-runtime
nfs: implement controller-runtime in nfs operator
2020-07-03 11:15:34 +02:00
Ahmad Nurus S 441e5edc33 nfs: add controller unit-test
Signed-off-by: Ahmad Nurus S <prksu.sh@gmail.com>
2020-07-03 14:34:55 +07:00
Ahmad Nurus S d324f15ec4 nfs: add kubebuilder marker and fix some documentation
Signed-off-by: Ahmad Nurus S <prksu.sh@gmail.com>
2020-07-03 14:33:36 +07:00
Ahmad Nurus S 90da5ec7b9 nfs: add validation admission webhook using controller-runtime
Signed-off-by: Ahmad Nurus S <prksu.sh@gmail.com>
2020-07-03 14:33:36 +07:00
Ahmad Nurus S f7f8270f58 nfs: rewrite nfs operator controller to use controller-runtime
Signed-off-by: Ahmad Nurus S <prksu.sh@gmail.com>
2020-07-03 14:33:25 +07:00
Jiffin Tony Thottan 33af005be1 ceph: adding missing ceph object crds in upgrade-from-v1.3-crds
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2020-07-03 12:09:10 +05:30
Stuart P. Bentley 35f202bd95 ceph: document the deviceClass setting for OSDs
This functionality was merged in with #3696, but not documented.

Signed-off-by: Stuart P. Bentley <s@stuartpb.com>
2020-07-03 00:37:33 +00:00
Travis Nielsen 5ec75c16e4 ceph: skip mgr integration test suite in master
The master CI is not expected to run the mgr test suite, which
runs against ceph master.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-07-02 17:00:38 -06:00
Sébastien Han eabedd7f79 Merge pull request #5697 from leseb/rgw-endpoint-healthcheck
ceph: add rgw endpoint healthcheck and external support
2020-07-02 18:30:44 +02:00
Sébastien Han e4eaa91ede ceph: add rgw endpoint healthcheck
We have introduced a new goroutine to check the state of the rgw
endpoint. It will run every minute and perform operations on a bucket.
The success or failure will be reported as part of the status field of
the CephObjectStore CR.

A good status will look like:

status:
  endpointStatus:
    lastChanged: "2020-06-25T13:47:45Z"
    lastChecked: "2020-06-25T13:48:46Z"
  phase: Connected

A failed status:

status:
  endpointStatus:
    details: |-
      error creating bucket "rook-ceph-internal-s3-bucket-checker": RequestError: send request failed
      caused by: Put http://rook-ceph-rgw-my-store.rook-ceph:8080/rook-ceph-internal-s3-bucket-checker: dial tcp 10.108.189.148:8080: connect: connection refused
    health: ERROR

This check works for both converged and external modes. Note that the
CephObjectStore CRD has a new field called "externalRgwEndpoints" which
allows you to define a list of IP addresses pointing to rgws.

Closes: https://github.com/rook/rook/issues/5692
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-07-02 16:34:10 +02:00
Sébastien Han f1bdd0e0c6 Merge pull request #5734 from travisn/kubeadm-start-error
CI: Stop downgrading the kubeadm components for the integration tests
2020-07-02 16:11:33 +02:00
Travis Nielsen fec3e02bbd ci: only install newer packages
Skip downgrading the kubernetes-cni, kubectl, or other components

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-07-01 16:59:18 -06:00
Alexander Trost 7229f5826e Merge pull request #5701 from cloudical-io/cassandra_alpine_update
cassandra: update base image to alpine:3.12
2020-07-01 14:59:46 +02:00
Sébastien Han 4636da67d3 Merge pull request #5679 from thotz/updateobcdoc
docs: update ROOK_OBC_WATCH_OPERATOR_NAMESPACE in obc doc
2020-07-01 11:15:50 +02:00