Commit Graph
4375 Commits
Author SHA1 Message Date
Travis Nielsen 6f3db3df71 Merge pull request #4918 from travisn/stable-types
Move types from rook.io/v1alpha2 to rook.io/v1
2020-02-26 12:41:58 -07:00
Travis Nielsen bcb99d86ce crds: pick up the rook types in the v1 package
The rook types used across the storage providers moved from the v1alpha2
package to the v1 package. This commit points the packages at their new
location. Implementation is expected to remain unchanged.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-26 11:18:17 -07:00
Travis Nielsen 6807a0566d crds: move supporting types from v1alpha2 to rook.io/v1
The types that are used in CRDs across the storage providers do not need
to be in the v1alpha2 package. These should be declared stable in the v1
package. The only types remaining in the v1alpha2 package are the flex
volume types, which will never graduate since their replacement is the
csi driver.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-26 11:18:17 -07:00
Jared Watts 330877cc8b Merge pull request #4920 from jbw976/adopters-update
Update ADOPTERS.md with public production adopters in preparation for CNCF graduation proposal
2020-02-25 22:38:10 -08:00
Jared Watts c2e50dc7f7 adopters: Update ADOPTERS.md with public production adopters
This update is in preparation for CNCF graduation proposal

Signed-off-by: Jared Watts <jbw976@gmail.com>
2020-02-25 22:34:37 -08:00
Travis Nielsen acad369b94 Merge pull request #4520 from alimaredia/wip-object-store-realm
object-store-realm: Initial design doc
2020-02-25 16:06:42 -07:00
Travis Nielsen 0439a6df52 Merge pull request #4719 from travisn/steering-committee
Governance updates including a steering committee
2020-02-25 15:31:20 -07:00
Ali Maredia 429a4c336e ceph: initial design documents for ceph multisite
The implementation of this initial design will
allow object-stores to sync data across Rook Ceph
Clusters via a Day 1 setup of Ceph RGW Multisite

This design splits the realm, zonegroup, and zone
objects of Ceph RGW Multisite into seperate
resources.

This commit also moves all ceph object designs
into the design/ceph/object dir.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2020-02-25 17:10:08 -05:00
Blaine Gardner 2ba59ffa20 Merge pull request #4758 from SUSE/osd-add-remove-implementation-plan
design: ceph orchestrator module add/remove OSDs
2020-02-25 15:59:37 -05:00
Sébastien Han 18671a0dce Merge pull request #4895 from leseb/pool-size-1
ceph: add CRD setting for pool size 1
2020-02-25 18:03:52 +01:00
Sébastien Han dab9233c8b ceph: add CRD setting for pool size 1
As of Octopus, Ceph will prevent you from creating a pool with a
replica size of 1. Allowing such pool could lead to data loss, so enable
the new option: requireSafeReplicaSize: false if you are **ABSOLUTELY**
certain that is what you want.

Closes: https://github.com/rook/rook/issues/4889
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-02-25 16:28:58 +01:00
Sébastien Han 5ca4880ed0 Merge pull request #4888 from leseb/pvc-hybrid-dev-class
ceph: set crush device class via annotations on PVC
2020-02-25 14:07:22 +01:00
Sébastien Han ccef1f5601 Merge pull request #4867 from nizamial09/error_handling
rook: Handling Unhandled errors
2020-02-25 09:27:58 +01:00
Blaine Gardner 178187d035 design: ceph orchestrator module add/remove OSDs
Add a design document to plan how Rook will allow Ceph's Rook
Orchestrator Mgr Module to add and remove OSDs to/from a Rook-Ceph
cluster including changes needed in both the Orchestrator Module and in
Rook.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2020-02-24 11:06:46 -07:00
Blaine Gardner a871010337 Merge pull request #4906 from SUSE/nfs-ganesha-no-rook-container
ceph: nfs do not use rook binary
2020-02-24 12:46:51 -05:00
Blaine Gardner 5d2199dc87 ceph: nfs do not use rook binary
Do not use the Rook binary to generate minimal config for Ceph's
NFS-Ganesha pods. Instead, `cat` the minimal file in an init container
using the Ceph container.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2020-02-24 08:24:25 -07:00
Sébastien Han 5b87772738 Merge pull request #4900 from travisn/cleanup-ceph-config
Remove obsolete operator settings from ceph.conf
2020-02-24 10:45:10 +01:00
Travis Nielsen 81ae4b66d3 governance: add a steering committee
Add a steering committee to the Rook governance to oversee
the project and provide direction. Maintainers will still have
push access to the project. The steering committee are the ones
with the votes for conflict resolution.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-21 16:01:38 -07:00
Jared Watts 3de5be0482 Merge pull request #4395 from jbw976/security-disclosure
security: disclosure policy and release process
2020-02-21 14:19:22 -08:00
Jared Watts e9c7d36613 security: disclosure policy and release process
Signed-off-by: Jared Watts <jbw976@gmail.com>
2020-02-21 14:17:48 -08:00
Nizamudeen 53883f68cf ceph: Handling Unhandled errors
This commit is to handle all those unhandled errors which raises the gosec warning.

Fixed G104: Unhandled Errors are handled now

Signed-off-by: Nizamudeen <nia@redhat.com>
2020-02-21 22:48:24 +05:30
Travis Nielsen d81d2ff61d ceph: remove obsolete ceph.conf settings
The Ceph daemons no longer use the ceph.conf for settings generated
by the operator. The operator only generates the ceph.conf in order
to connect to the mons and configure the cluster. Now we reduce
to the minimal required settings.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-20 16:30:35 -07:00
Travis Nielsen 9e85fa6cd7 Merge pull request #4898 from travisn/ceph-14.2.7
Bump ceph version to v14.2.7
2020-02-20 14:19:49 -07:00
Travis Nielsen e35939b26c ceph: bump ceph version to v14.2.7
The ceph/ceph:v14.2.7 image is released so we can pick these fixes
up as the recommended version of ceph.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-20 11:06:40 -07:00
Sébastien Han a702f463cc ceph: set crush device class via annotations on PVC
When the OSD on PVC is backed by a metadata block PVC, the Ceph CRUSH
device class should be set to something else rather than the rotational
property of the drive.

Closes: https://github.com/rook/rook/issues/4881
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-02-20 18:53:31 +01:00
Travis Nielsen 2208b69c4f Merge pull request #4891 from travisn/increase-test-timeout
Increase timeout for file test pod start
2020-02-19 14:38:21 -07:00
Travis Nielsen 607e900f2c ceph: increase timeout for file test pod start
The integration tests have failed intermittently due to needing just
a little longer to start the file test pod. This increases the
wait timeout.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-19 13:34:09 -07:00
Sébastien Han 0cb6590087 Merge pull request #4885 from travisn/ec-pool-status
EC pool creation should have successful status
2020-02-19 11:45:45 +01:00
Travis Nielsen a9903ed8d7 ceph: fix status for EC pool creation
Creating an EC pool was succeeding, but then the update to the
status was failing because of an incorrect check for changing EC
parameters. Now we correctly check if EC parameters are changing
unexpectedly.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-18 15:34:01 -07:00
Sébastien Han 220ffbc07c Merge pull request #4853 from travisn/test-focus-csi
Focus integration tests on the CSI driver and less on Flex
2020-02-18 14:34:46 +01:00
Sébastien Han ca0ec376cb Merge pull request #4880 from cybozu-go/tests-enhance-readme
tests: enhance README.md
2020-02-18 09:48:48 +01:00
Satoru Takeuchi a0c21b237e tests: enhance README.md
- setting config path is necessary between kubeadm.sh and helm.sh
- fix the path of integration test binary

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
2020-02-18 16:31:18 +09:00
Travis Nielsen 10ddf4b0df tests: retry wiping devices if failed
The job to wipe devices fails the integration tests periodically.
Now the job will be retried once if it fails to retry wiping the
disks.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-17 22:27:13 -07:00
Travis Nielsen 41fe8c3a2b ceph: call the ParentClusterChanged in a goroutine
When the cluster is upgraded, the child controllers are notified with the
callback to the ParentClusterChanged() method. These should be made
in a separate goroutine so that the cluster controller is not blocked
on the child controllers and also so child controllers aren't blocked
on each other for the upgrade.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-17 16:24:28 -07:00
Travis Nielsen a1db52c5a0 ceph: move integration test to csi driver
The integration tests have been mostly running on the flex driver
with only a newer test on the csi driver. With the CSI driver being
the preferred driver going forward, now the integration tests will
all be running with the CSI driver with the exception of a test
suite that is only dedicated to the flex driver.

A number of other test improvements are also made for code
readability, test stability, and removing unused options.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-17 16:24:28 -07:00
Travis Nielsen a960e263db ceph: remove obsolete longhaul tests
The longhaul tests have not been run for a very long time,
on the order of two years. The intention is to get them running
again, but until then it is better to purge the obsolete sources
than to attempt to keep them building. We'll need to rewrite them
when they are restored.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2020-02-17 14:11:39 -07:00
Travis Nielsen 6090ad1385 Merge pull request #4863 from crombus/encoders
ceph: Add encoders for input and output of ceph
2020-02-17 11:34:18 -07:00
crombus ae110fc517 ceph: Add comment that sprintf formatting is safe
This commits adds comment for safety of using
sprintf formatting

Closes: https://github.com/rook/rook/issues/4575
Signed-off-by: crombus <pkundra@redhat.com>
2020-02-17 18:04:24 +05:30
Sébastien Han 2b5aa9a413 Merge pull request #4874 from muff1nman/limit-namespace-watch
Limit namespace watches when ROOK_CURRENT_NAMESPACE_ONLY is true
2020-02-17 10:23:26 +01:00
Andrew DeMaria 60ec9c35fa ceph: limit watches to configured namespace
When ROOK_CURRENT_NAMESPACE_ONLY is true, watches should be limited to
the configured namespace

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
2020-02-14 18:34:57 -07:00
Travis Nielsen 22fde10aaa Merge pull request #4865 from nizamial09/credential
rook: Fixing the potential hardcoded credential warnings
2020-02-14 08:48:28 -07:00
Travis Nielsen f459465317 Merge pull request #4866 from nizamial09/file_inclusion
rook: Fixing the potential file inclusion error
2020-02-14 08:47:40 -07:00
Alexander Trost c926d986bf Merge pull request #4869 from galexrt/fix_pvc_based_crd_example
docs: fix CephCluster PVC based example
2020-02-14 15:43:19 +01:00
Alexander Trost 02674b851b docs: fix CephCluster PVC based example
The `cephVersion` was missing in the PVC based Ceph Cluster example.
Otherwise the Ceph Cluster would fail to be created due to no Ceph
version being specified.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2020-02-14 11:59:14 +01:00
Nizamudeen 78ef4abeec ceph: Fixing the potential file inclusion error
This commit is also part of gosec error handling which handles the following issue:

Fixed G304: Potential File inclusion by cleaning up the file path

Signed-off-by: Nizamudeen <nia@redhat.com>
2020-02-14 12:22:49 +05:30
Nizamudeen a42e180ad8 ceph: Fixing the potential hardcoded credential warnings
This commit fixes the gosec warning
G101: Potential hardcoded credential variable by adding a #nosec tag and relavant comment

Signed-off-by: Nizamudeen <nia@redhat.com>
2020-02-14 12:18:51 +05:30
Travis Nielsen 2189dbc959 Merge pull request #4489 from leseb/dev-fullpath
ceph: add support for disk selection by full path
2020-02-13 11:11:59 -07:00
Sébastien HanandSean Micklethwaite b04e35dab5 ceph: add support for disk selection by full path
Rook-Ceph now supports specify device by their fullpath instead of links
created by the kernel like /dev/sdb.

Closes: https://github.com/rook/rook/issues/1228
Co-authored-by: Sean Micklethwaite <sean@wayve.ai>
Signed-off-by: Sébastien Han <seb@redhat.com>
2020-02-13 17:31:38 +01:00
Sébastien Han b7ba466b0b Merge pull request #4859 from leseb/raw-release-note
release: add osd on pvc raw mode note
2020-02-13 17:30:35 +01:00
Sébastien Han a2fe2f5720 release: add osd on pvc raw mode note
update pending release note.

Signed-off-by: Sébastien Han <seb@redhat.com>
2020-02-13 17:16:43 +01:00