Commit Graph
90 Commits
Author SHA1 Message Date
Dmitry Yusupov 41d92cee3e enable proper values for metadataOnly property
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-06-06 21:12:04 -07:00
Santosh Pillai 7d5afa29b8 added device class pool property
- Updated code to use deviceClass property when a pool is created for both "replicated" and "erasure code".
- Updated "ceph crush rule create-..." command to use "create-replicated" instead of "create-simple"
- Updated unit tests
- Updated (ceph-pool-crd.md) documentation to reflect the changes.
- Updated pending release notes.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2019-05-15 16:45:39 +05:30
Jose A. Rivera f3a1512983 Read node labels for provider topology
Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
2019-05-14 13:18:00 -05:00
Anton Skriptsov 1db2da74a7 Add container count for restore option
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-05-01 13:14:56 -07:00
Dmitry Yusupov 9dd2e422bb address regression in ISGW dynamicFetch configuring
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-04-26 19:01:23 -07:00
Ashish Ranjan dac028ab24 enhance(nfs): remove one to one mapping for nfs provisioner
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com>

This commit removes one to one mapping of NFS provisioner and adds a dedicated provisioner for nfs.
2019-04-26 20:52:30 +05:30
Ashish Ranjan 9f3debc53f refactor(nfs,provisioning): move claimPath info from annotation to parameters
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com>

This commit moves claimPath information from annotation to parameters and adds option to enable/disable storageclass creation.
2019-04-26 04:25:49 +05:30
Ashish Ranjan 23efbf658b enhance(NFS): adds dynamic provisoning for nfs
Signed-off-by: Ashish Ranjan <ashishranjan738@gmail.com>

This commit adds dynamic provisioning for nfs
2019-04-26 04:25:49 +05:30
Anton Skriptsov e4f19e3863 Target nodes containers
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-04-24 16:35:34 -07:00
Anton Skriptsov 5746c03446 v1beta1 api's and codegenerated files
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-04-24 16:32:47 -07:00
travisn 21c504eee0 generated code from the k8s 1.14 packages
Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-18 07:51:42 -06:00
Alexander Trost 0c6eb7aa3d crds: Set annotations pods, deployments and so on
Allow the user to set annotations in the CRDs of the following operators which will then be set on
the resulting Pods (Deployments, StatefulSets and so on).
Operators:
* Cassandra
* Ceph
* CockroachDB
* EdgeFS
* Minio
* NFS

The Annotations related structures have been added to the
rook.io/v1alpha2 pkg.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-04-16 20:47:05 +02:00
Travis Nielsen 8f3d62e56b Merge pull request #2936 from SUSE/cautious-osd-node-removal
ceph: remove osd host nodes only when certain
2019-04-11 12:34:24 -06:00
Blaine Gardner a80082988d ceph: remove osds only when certain
Make the Ceph operator more cautious about when it decides to remove
nodes from the Rook-Ceph cluster which are acting as osd hosts.

When `useAllNodes` is set to `true` we assume that the user wants to
have the most hands-off experience. Node removals are allowed when a
node is delted from Kubernetes and when a node has its taints/affinities
modified by the user (but not by automatic k8s modification as much as
possible).

When `useAllnodes` is set to `false` the only time a node is removed is
if it is removed from the Ceph cluster definition.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2019-04-11 09:41:54 -06:00
Travis Nielsen 1113688aa8 Merge pull request #2952 from dyusupov/master
support for configurable trlog settings
2019-04-10 17:18:47 -06:00
travisn 5ebb651e37 ceph: update the cephcluster custom resource with ceph health
The CephCluster resource will now expose the health of the ceph cluster
so admins can query the status with k8s api or kubectl instead of
needing to run the rook toolbox. The operator will query the
ceph status periodically and update the status in the custom resource.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-10 14:41:18 -06:00
Dmitry Yusupov e1f61219b4 support for configurable trlog settings
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-04-09 15:20:18 -07:00
Dmitry Yusupov 9ad68500fa support for configurable resource profiles
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-29 10:33:13 -07:00
Dmitry Yusupov f58fcd0fc5 Support for OpenStack/SWIFT CRD
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-21 16:32:28 -07:00
Alexander Trost 2403655cb5 Merge pull request #2837 from sabbot/PR2513-zone-support
Edgefs:2513 Add failure domain and zones
2019-03-21 16:13:11 +01:00
Anton Skriptsov 4f909d86ac Edgefs:2513 Add failure domain and zones
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-03-21 05:02:26 -07:00
travisn 7548e76bab Increase the number of mons when nodes are added
The desired number of mons could change depending on the number of nodes in a cluster.
For example, three mons would be the min number of mons in a production cluster with at
least three nodes. If there are five or more nodes, the number of mons could increase
to five in order to increase the failure tolerance to two nodes.

This is accomplished by a new setting in the cluster CRD preferredCount. If the number
of hosts exceeds preferredCount, more mons are added to quorum. If the number
of hosts drops below the preferred count, the operator would reduce the quorum size to
the smaller desired count.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-03-19 13:00:37 -06:00
Noah Watkins 379cb98689 ceph: replace release name with fine-grained version
The basic idea here is to replace the release name in the ClusterInfo
object with the fine grained version information queried at runtime.
This patch also removes the Name field from the cluster spec, which was
also runtime determined and was redundant with ClusterInfo relase name.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-03-18 12:57:29 -07:00
Alexander Trostandnull 49f9a11cd4 Merge pull request #2813 from dyusupov/master
support for configurable rtlfs backend

Co-authored-by: null <dmitry.yusupov@nexenta.com>
2019-03-15 20:11:16 +01:00
Dmitry Yusupov 213e440923 support for configurable rtlfs backend
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-15 10:14:44 -07:00
Sébastien Han 871054e887 ceph: implement pod restriction on memory
If someone sets limits to pod, we want to ensure the possible
experience, so we want to make sure that people do not configure
inapropriate values for certain daemons.
We decide to fail if the memory.limit is too low.

Signed-off-by: Sébastien Han <seb@redhat.com>
2019-03-15 17:35:44 +01:00
Alexander Trost 818bf38b0c Merge pull request #2685 from dyusupov/master
EdgeFS: support for S3 buckets as DNS subdomain style
2019-02-23 23:21:06 +01:00
zhangyue 06f23cd55a fix: remove Typemeta and deepcopy of StorageScopeSpec
Signed-off-by: zhangyue <zy675793960@yeah.net>
2019-02-22 09:00:46 +08:00
Dmitry Yusupov a30966b6e4 EdgeFS: support for S3 buckets as DNS subdomain style
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-02-21 09:00:42 -08:00
Dmitry Yusupov f4bfee8165 support for EdgeFS ISGW link CRD
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-02-13 22:29:27 -08:00
Madhu Rajanna 47956dcd53 ceph: run make codegen
This has the changes after  make codegen

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2019-01-17 15:51:56 +05:30
Madhu Rajanna 6349ce8e0d cassandra,edgefs: Fix misspelled words
This PR fixes the misspelled words in comment
and struct fields.

Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
2019-01-17 15:40:05 +05:30
travisnandjtlayton 4608f192ce nfs: generated code for the ceph nfs crd
Co-authored-by: jtlayton <jlayton@redhat.com>
Signed-off-by: travisn <tnielsen@redhat.com>
2019-01-15 13:48:57 -07:00
travisnandjtlayton c467ccb9b2 nfs: ceph crd and types for declaring exports
Co-authored-by: jtlayton <jlayton@redhat.com>
Signed-off-by: travisn <tnielsen@redhat.com>
2019-01-15 13:48:57 -07:00
Alexander Trost de8e14149a Merge pull request #2419 from sabbot/master
EdgeFS: need host check/prepare functionality fix
2019-01-10 18:17:15 +01:00
Noah Watkins e9a9509313 ceph: support dashboard ssl on/off
fixes: #2433

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-01-09 12:08:51 -08:00
Noah Watkins e66ad7463b ceph: support custom dashboard port
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-01-09 12:08:49 -08:00
Anton Skriptsov 7c7f307f2e EdgeFS: need host check/prepare functionality
Signed-off-by: Anton Skriptsov <anton.skriptsov@nexenta.com>
2019-01-09 08:50:24 -08:00
Alexander Trost 6dc508b704 Merge pull request #2318 from galexrt/minio_arbitary_pvcs
Cockroachdb + Minio: Use PersistentVolumeClaimTemplates storage
2018-12-08 00:20:07 +01:00
Yannis Zarkadas 624ff18211 cassandra: add RackConditions to RackStatus
RackConditions are observations about a Cassandra Rack.
Currently, the only condition is MemberLeaving.
Conditions are an api convention of kubernetes.

Signed-off-by: Yannis Zarkadas <yanniszarkadas@gmail.com>
2018-12-07 13:46:45 +02:00
Alexander Trost 5fc8584422 Cockroachdb + Minio: Use PersistentVolumeClaimTemplates storage
selection field.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-12-07 12:20:49 +01:00
Dmitry Yusupov 18634ccb87 Edgefs codegen and clientset
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2018-12-05 23:05:43 -08:00
travisn a29b876337 rename ceph v1 crds with the ceph prefix
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-05 16:23:55 -07:00
travisn 62f7e5d6ea ceph: update docs, code, and tests to use v1 crd types
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-05 14:33:11 -07:00
travisn df78f6ad6e remove obsolete rook v1alpha1 types
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-05 14:33:10 -07:00
travisn 501c3a6681 codegen for the ceph v1 types
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-05 14:33:00 -07:00
travisn 364e891ee3 create the ceph v1 types and remove v1alpha1 types
Signed-off-by: travisn <tnielsen@redhat.com>
2018-12-05 14:25:36 -07:00
Yannis Zarkadas 2b0614a77c cassandra: code generation
Edited codegen.sh to include cassandra.
Then, run make codegen to generate the rest of the files.

Signed-off-by: Yannis Zarkadas <yanniszarkadas@gmail.com>
2018-12-05 12:41:27 +02:00
Yannis Zarkadas bb64ffafe2 cassandra: crd types and boilerplate
API types for Cassandra have been added under /pkg/apis/cassandra.rook.io/types.go
Other files are some necessary boilerplate.

Signed-off-by: Yannis Zarkadas <yanniszarkadas@gmail.com>
2018-12-05 12:41:04 +02:00
Jeff Layton dcd9e1e0ff ceph mds: allow filesystem specifications that have no pools
design/external-management.md says that we should allow specifying
Filesystems that have no pools. When this is done, the CRD should
interepret that as a request to just manage the MDS daemons without
creating a new filesystem.

Don't fail the verification if there are no data pools in the spec,
and just skip creating a new filesystem if that's the case.

Also, add a testcase for this usage.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2018-12-01 20:40:06 -05:00