Commit Graph
7961 Commits
Author SHA1 Message Date
Travis Nielsen 31e2c4165c ci: build with golang 1.15.7
Update the cross build container to use golang 1.15.7 instead
of 1.13.8. The update to build with 1.15 had only been made in the
AMI, and is now updated in the container as well.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-20 10:31:35 -07:00
Sébastien Han 94d9c69361 ceph: add kubectl-check-ownerreferences in ci
After each non-pvc and pvc scenario we run the
kubectl-check-ownerreferences tool to analyze potential incorrect owner
references. We had issues in the past with incorrect owner ref so this
tool might help us ensure we are doing things right.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-20 10:51:11 +01:00
Sébastien Han 093ed7dd62 Merge pull request #6984 from leseb/core-dumps-dir
ceph: set process working dir to /var/log/ceph
2021-01-20 10:39:42 +01:00
Satoru Takeuchi 0512c7d33c Merge pull request #6793 from cybozu-go/ceph-fix-osd-corruption
ceph: avoid potential osd corruption due to wrong file-lock
2021-01-20 09:39:39 +09:00
Travis Nielsen e320c31cc9 Merge pull request #7010 from travisn/go-version
build: Enforce golang 1.15 in the build
2021-01-19 16:41:16 -07:00
Travis Nielsen 7f169a71a5 build: enforce golang 1.15 in the build
The build currently requires golang 1.15 and will fail if an
older version is used.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-19 11:20:18 -07:00
Travis Nielsen 9ba8c937dd build: print the golang version during the build
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-19 11:19:53 -07:00
Travis Nielsen 4f841ea237 Merge pull request #6947 from kbristow/nfs-quickstart-documentation-fix
docs: updating nfs quickstart docs
2021-01-19 10:36:40 -07:00
Sébastien Han 62ac1cd001 Merge pull request #6985 from leseb/bump-controller-runtime-0.8
ceph: bump controller runtime and kube
2021-01-18 12:21:09 +01:00
Sébastien Han 2bb9444130 Merge pull request #6974 from cybozu-go/ceph-delete-discovery-daemon-after-disabling-it
ceph: delete discovery daemon if it is disabled
2021-01-18 11:36:21 +01:00
Sébastien Han 2c021fb357 ci: bump golang version to 1.15
The rest of the CI already uses 1.15 so let's homogenize that.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-18 08:47:31 +01:00
Satoru Takeuchi ae8dcf7cc3 ceph: fix osd corruption
Multiple OSD pods for the same OSD might run simultaneously becasue OSD pod
is managed by Deployment resource. However, OSD locking mechanism
doens't work because the lock file (fsid file) exist for each OSD pod.
It resutls in OSD corruption.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-01-18 03:11:50 +00:00
Jared Watts dacf286867 Merge pull request #6993 from arturrez/reconfigure_build
build: switch to new aws buckets
2021-01-16 00:00:16 -08:00
Artur 0754695655 build: switch to new aws buckets
Signed-off-by: Artur <artur@upbound.io>
2021-01-15 23:58:23 -08:00
Travis Nielsen 7343aaddf9 Merge pull request #6988 from travisn/update-owners
docs: Remove inactive member from steering committee
2021-01-15 17:02:09 -07:00
Travis Nielsen 6810c6682e docs: remove inactive member from steering committee
Dmitry is no longer participating in Rook and has moved on
from the EdgeFS team. The position on the steering committee
is now open. Per the governance, we are looking for an owner
of a storage provider other than Ceph who has overall
perspective and interest in taking Rook forward.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-15 14:43:16 -07:00
Travis Nielsen f7013884b4 Merge pull request #6972 from jshen28/improve-cluster-upgrade-observibility
ceph: exposing which node/osd is processing
2021-01-15 14:32:53 -07:00
Satoru Takeuchi 1be47ea0b8 ceph: delete discovery daemon if it is disabled
discovery-daemon still exists even if it's disabled.

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

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-01-15 19:44:40 +00:00
Travis Nielsen a01e294aba Merge pull request #6978 from travisn/mon-health-doc
ceph: Add mon design to the official docs
2021-01-15 10:30:17 -07:00
Sébastien Han 448f6a89c6 Merge pull request #6958 from leseb/client-crd-controller-runtime
ceph: convert CephClient CRD to controller-runtime
2021-01-15 17:13:01 +01:00
Sébastien Han 3692d62998 ceph: bump controller runtime and kube
We now use k8s v0.20.1 and controller-runtime 0.8.0

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-15 16:45:08 +01:00
Sébastien Han 758226294b ceph: convert CephClient CRD to controller-runtime
This was the last remaining CRD to not use the controller-runtime
library.
Small additions were added with the transition:

* the Kubernetes Secret that contains the CephX key has now an owner
  reference to the CephClient object
* the secret name is present in the Status field of the CephClient:

```
status:
  info:
    secretName: rook-ceph-client-glance
  phase: Ready
```

The controller will reconcile on CR updates and also if the Kubernetes
Secret is deleted.

Closes: https://github.com/rook/rook/issues/4938
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-15 16:17:38 +01:00
shenjiatong 0d80cc396d ceph: exposing which node/osd is processing
it would be more firendly to cloud operators to
know which node is being processed during
upgrade

Signed-off-by: shenjiatong <yshxxsjt715@gmail.com>
2021-01-15 23:12:26 +08:00
Sébastien Han cb7d600841 ceph: set process working dir to /var/log/ceph
By setting the working directory of a Ceph daemon to the log direcor
(which is bindmounted to the host), we can ensure that the coredumps
will be available.

On CentOS 7 **only**, the kernel is configured with:

```
cat /proc/sys/kernel/core_pattern
core
```

which means that the coredumps will end up in the process working
directory and will be named "core".

On CentOS 8, everything is different and this won't work but still
CentOS will be able to consume this and changing the working directory
is harmless.

Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-15 16:06:42 +01:00
Travis Nielsen b71c3ac293 ceph: add mon design to the official docs
The mon design and handling of failover is a topic that frequently
needs to be understood by rook users, thus moving this design doc
to the documentation and making some updates based on the latest
behavior.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-14 13:13:56 -07:00
Travis Nielsen 8fc110bf57 Merge pull request #6934 from cybozu-go/docs-describe-osd-purge-job-in-the-document
docs: describe osd purge job in the document of OSD management
2021-01-14 13:12:59 -07:00
Satoru Takeuchi 2d35703661 docs: describe osd purge job in the document of OSD management
Describe `rook-ceph-purge-osd` job in the document of OSD management
to ease day2 operations.

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2021-01-14 19:46:42 +00:00
Travis Nielsen e1153b98fa Merge pull request #6968 from travisn/roadmap-1.6
docs: Update the roadmap for rook v1.6
2021-01-14 10:23:04 -07:00
Travis Nielsen 83fee8adfb Merge pull request #6966 from travisn/delete-object-store-test
ceph: During object store deletion return success if not found
2021-01-13 17:15:44 -07:00
Travis Nielsen 01d195ec4c Merge pull request #6967 from travisn/allow-progressing-test-status
ceph: Allow progressing status during integration test cleanup
2021-01-13 17:15:15 -07:00
Travis Nielsen a387bde6ec docs: update the roadmap for rook v1.6
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-13 16:18:00 -07:00
Travis Nielsen 1e111897a9 ceph: allow progressing status during integration test cleanup
The integration tests check after every test suite that the cluster is
either ready or connected. Sometimes the operator is in progressing state
because the reconcile may be triggered by some event that is unpredictable
at the end of the test. For test stability we allow the progressing status.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-13 15:58:35 -07:00
Travis Nielsen ea29665a8a ceph: during object store deletion return success if not found
If the object store is not found during deletion of the object store CR,
proceed with the deletion instead of blocking and re-queueing the
deletion reconcile in an endless loop. This was causing instability
in the integration tests.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-13 15:44:28 -07:00
Travis Nielsen 148d98ee42 Merge pull request #6961 from travisn/resources-v1beta1
ceph: Remove unexpected array type in v1beta1 crd schema
2021-01-13 12:22:33 -07:00
Travis Nielsen 08c227dbdd ceph: remove unexpected array type in crd schema for tests
Clean up an unexpected array type in the test schema for pre-k8s-1.16
clusters

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-13 11:20:53 -07:00
Travis Nielsen 8d2e873f41 Merge pull request #6959 from subhamkrai/update-doc
doc: update path in admission controller quick start doc
2021-01-13 10:50:27 -07:00
subhamkrai ed21b20113 docs: update path in quick start doc
this commit update the paths in
quick start doc.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-01-13 21:46:59 +05:30
Sébastien Han 22721f1df8 Merge pull request #6949 from leseb/bump-controller-runtime-0.7
core: bump to controller-runtime 0.7.0 version
2021-01-13 17:16:13 +01:00
Sébastien Han 7558d37420 core: bump to controller-runtime 0.7.0 version
Now using https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.7.0

Closes: https://github.com/rook/rook/issues/6689
Signed-off-by: Sébastien Han <seb@redhat.com>
2021-01-13 11:00:43 +01:00
Sébastien Han c75f0594b9 Merge pull request #6691 from iamniting/log
ceph: enhance delete cephObjectStoreUser logging
2021-01-13 09:34:57 +01:00
Travis Nielsen e86d771a3e Merge pull request #6950 from travisn/no-restart-dashboard
ceph: Only restart ceph dashboard module if settings changed
2021-01-12 16:43:38 -07:00
Travis Nielsen 4ad432ffcf ceph: only restart ceph dashboard module if settings changed
If ssl was not enabled, the dashboard was being restarted with every
reconcile. Instead, the dashboard should only be restarted when
the settings have changed in order to reduce the frequency that
the dashboard is restarted.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-12 16:00:13 -07:00
Blaine Gardner 28a7d8fd87 Merge pull request #6951 from BlaineEXE/fix-cluster-external-example-malformations
ceph: fix malformations in common-external.yaml
2021-01-12 15:34:50 -07:00
Blaine Gardner 1cf47f6408 ceph: fix malformations in common-external.yaml
Fix accidental malformations in common-external.yaml manifest.
Find-replace operations seemingly replaced `namespace` with `name` in
some instances. Fix this.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2021-01-12 14:51:32 -07:00
Nitin Goyal 76a370a57a ceph: enhance delete cephObjectStoreUser logging
DeleteUser was returning error "failed to delete user ... with buckets"
without corresponding buckets information. Now it will check buckets, If
buckets are present then return error with buckets info on failure.

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
2021-01-12 23:30:57 +05:30
Sébastien Han 21d430261e Merge pull request #6869 from subhamkrai/artifact
ci: add option to download artifacts in canary test
2021-01-12 19:00:05 +01:00
subhamkrai fcd1529b23 ci: add option to download artifacts in canary test
this commit add option to download artifacts in
canary integration test for better debug.

Signed-off-by: subhamkrai <srai@redhat.com>
2021-01-12 21:06:30 +05:30
Kieran Bristow (ZA) 30214a4278 docs: updating nfs quickstart docs
The nfs quickstart docs have references to nfs-provisioner which no longer exist and the storage class example uses the wrong provisioner value.

Signed-off-by: Kieran Bristow (ZA) <kieran.bristow@absa.africa>
2021-01-12 12:06:48 +02:00
Travis Nielsen 4e151a7e78 Merge pull request #6938 from travisn/devices-schema
ceph: Add devices to schema at overall storage level
2021-01-11 12:09:32 -07:00
Travis Nielsen 1705c64ced ceph: add devices to schema at overall storage level
With the 1.5 schema added to the CRDs, the devices at the root
level of the storage element were missed. Now the ability to
specify devices at the root storage level to apply to all
nodes is restored.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2021-01-11 11:46:27 -07:00