Commit Graph
413 Commits
Author SHA1 Message Date
Travis Nielsen 107839fc65 tests: call rook clientset to create test cluster and consolidate cleanup 2018-01-10 10:48:17 -08:00
Travis Nielsen 4c22dc4fc2 operator: implement a finalizer for the cluster 2018-01-10 10:48:17 -08:00
Travis Nielsen e874bfa751 cluster: set owner reference on child resources 2018-01-10 10:48:17 -08:00
Jared Watts 9305bd88e3 Merge pull request #1154 from galexrt/feature/1111
Enable Prometheus metrics on Ceph mgr
2018-01-04 12:50:47 -08:00
Alexander Trost 0e42343e73 Create http-metrics service for mgrs
Enable prometheus module on mgr with pkg/ceph/client.MgrEnableModule()

Added force option to MgrEnableModule()
2018-01-04 08:47:27 +01:00
Travis Nielsen 6f80f23795 Merge pull request #1370 from travisn/consolidate-kvstore
Consolidate the kvstore interface
2018-01-03 11:34:07 -08:00
Travis Nielsen 93cadf6491 Merge pull request #1372 from galexrt/feature/remove_mon_pod_affinity
Removed mon Pod(Anti)Affinity
2018-01-03 11:33:22 -08:00
Alexander Trost 8c9a31ad64 Removed mon Pod(Anti)Affinity
Clarify docs for mon Pod(Anti)Affinity
2018-01-03 19:35:25 +01:00
Travis Nielsen 9b94111dd2 consolidate the kvstore interface 2018-01-03 08:36:43 -08:00
Travis Nielsen 4f44ace92b clean up the licenses that are not actually from etcd-operator 2018-01-02 22:46:14 -08:00
Travis Nielsen bd3263f7d8 add a backend type to the cluster crd 2017-12-28 13:45:07 -08:00
Travis Nielsen 4c47adc80a move ceph sources under ceph folders 2017-12-28 13:34:05 -08:00
Alexander Pinnecke 83c718ccb7 Add a warning to OSC cluster operator when no nodes are specified 2017-12-26 16:57:03 +01:00
Jared Watts 9678d80ed0 Merge pull request #1333 from kokhang/delete-ecprofile
Deleting erasure code profile when deleting object store
2017-12-20 11:11:56 -08:00
Steve Leon 4cf34ea7a1 Deleting erasure code profile when deleting object store
Fixes https://github.com/rook/rook/issues/1332
2017-12-20 10:38:35 -08:00
Alexander Trost c3938626e0 Revert "Run two MGRs to have one in standby mode" 2017-12-20 16:59:22 +01:00
Jared Watts c1a87fac61 Merge pull request #1294 from galexrt/fix/1293
op/osd: Replace directories usages with selection.directories
2017-12-18 09:55:35 -08:00
Travis Nielsen 82cce0d8af operator: remove versionTag in favor of container image version 2017-12-13 10:12:09 -08:00
Travis Nielsen 52d97ea938 Merge pull request #1300 from kokhang/agent-toleration
Add toleration for agent daemonset
2017-12-13 09:46:48 -08:00
Steve Leon b73d5ddeb5 Add toleration for agent daemonset
Fixes https://github.com/rook/rook/issues/1295
2017-12-12 18:33:44 -08:00
Alexander Trost c9f9c930d7 op/osd: Replace directories usages with selection.directories 2017-12-12 14:39:02 -06:00
Travis Nielsen 021046792b Merge pull request #1153 from bassam/pr-kube-1.8
Upgrading client to kubernetes 1.8 with code generation
2017-12-12 12:35:18 -08:00
Steve Leon 735d2e7155 Not create rbac roles on k8s cluster that have rbac disabled.
Fixes https://github.com/rook/rook/issues/1221
2017-12-11 14:55:11 -08:00
Travis Nielsen 2a2d0774e7 agent: consume the generated clientset for attachments 2017-12-11 14:35:07 -08:00
Travis Nielsen e2bd9276bf consume the generated rook clientset 2017-12-11 14:35:07 -08:00
Travis Nielsen 0298d1fb29 completed conversion for k8s 1.8 client conversion
move core rados packages under cluster folder

move daemons under daemon pkg

rename flex crd package to attachment

pin dep to k8s 1.8.2
2017-12-11 14:35:07 -08:00
Bassam Tabbara 9b611abda7 inital attempt at upgrading to kubernetes 1.8
Update all K8s dependencies to the release-1.8 branches.

Added build and make file support for generating code.

Fixed our use of client-go to match changes in new release.
2017-12-11 14:34:24 -08:00
Travis Nielsen 113eaaa57e test a higher number of PGs per osd 2017-12-04 15:53:22 -08:00
Jared Watts e372634cfd Merge pull request #1281 from kokhang/clean-volumeattachments
Ensuring volume lock is released when the same pod is requesting it
2017-12-01 15:39:05 -08:00
Steve Leon c1882d4760 Ensuring volume lock is released when the same pod is requesting it
There is a case where a pod is trying to request a volume
attachment after the previous attachment failed. However even though this is
the same pod as the original attachment request, its UID could be different. This is normally caused when
the user manually deletes the pod and recreate it again. The name will be the same but the ID will be different

fixes https://github.com/rook/rook/issues/1214
2017-12-01 13:34:30 -08:00
Alexander Trost ad4242cdd2 Add cluster wide directories path 2017-11-30 17:25:19 +01:00
Jared Watts 9da4d286d2 api: recreate mon endpoint watcher when the result channel is closed 2017-11-29 17:00:50 -08:00
Travis Nielsen e7bd52a199 rgw: skip deleting root pool when there are multiple object stores 2017-11-29 11:18:17 -08:00
Jared Watts d250f5694e Merge pull request #1253 from Ulexus/bug-1252
operator: add existence checks for FlexVolume spec on Delete
2017-11-28 11:44:18 -08:00
Jared Watts faa2baee4b Unmarshal volume plugin dir from kubelet config response for 1.8 2017-11-27 10:06:20 -08:00
Seán C McCord 39e68a3c2b Add existence checks for FlexVolume on Delete
This is a rather noisesome way of checking something which will only
happen during legacy conversion, so this may not be a desirable patch.
2017-11-20 21:47:27 -05:00
Jared Watts 9ea4bd276d Merge pull request #1249 from galexrt/1113
Set bluestoreDirBlockSizeRatio to 1.0
2017-11-20 13:36:53 -08:00
Seán C McCord 991d100de5 Fix argument parameter match
Fixes #1250
2017-11-20 13:19:21 -05:00
Alexander Trost 3f9b67eb7c Set bluestoreDirBlockSizeRatio to 1.0
As discussed in #1113
2017-11-20 18:51:28 +01:00
Bassam Tabbara 114721e272 Merge pull request #1240 from kokhang/modprobe-fix
Use modprobe and modinfo from the container
2017-11-17 09:51:08 -08:00
Steve Leon 0e5bec097b Use modprobe and modinfo from the container
Fixes https://github.com/rook/rook/issues/1239
2017-11-16 13:39:42 -08:00
Alexander Trost 434e978b4d Added v1.ResourceRequirements to Cluster Spec
Added per node resource override/merge

Added unit tests to check for specs

Added documentation for resource requests/limits
2017-11-16 19:56:58 +01:00
Bassam Tabbara a8882929d3 Merge pull request #1212 from galexrt/feature/health_rebalance_mons
Failover mon when there is more than one mon on one node
2017-11-14 16:13:59 -08:00
Alexander Trost 312a1981a2 Update health default times to 45s 2017-11-14 22:50:56 +01:00
Travis Nielsen 29ec997273 operator: update to latest operator kit with logging 2017-11-14 12:44:50 -08:00
Alexander Trost e7d20647aa Failover mon when there is more than one mon on one node
Added check to verify that the node a mon is running on is still valid
2017-11-10 16:35:58 +01:00
Shawn Hsiao 55accb99e0 Dont set runAsNonRoot explicitly when it is false.
In kubernetes < 1.6.4, it is being mis-treated as true when the flag runAsNonRoot is present regardless of its value, ref. https://github.com/kubernetes/kubernetes/pull/47009
2017-11-08 10:19:12 -05:00
Jared Watts a988cb580c Merge pull request #1199 from kokhang/cephfs-crd
Handle cephfs mount for kernel older than 4.7
2017-11-07 10:59:03 -08:00
Steve Leon 7b71baba06 Handle cephfs mount for kernel older than 4.7
- If kernel is older than 4.7, a warning message
will be printed in the agent's logs

Fixes https://github.com/rook/rook/issues/1044
2017-11-06 17:50:15 -08:00
Shawn Hsiao c2513497d0 operator: for generating osd pod spec, don't mount /dev if it does not need to, and don't run with privileged if it does not need to
When no devices are specified, no need to mount /dev, and don't need to run with privileged.  This allows emptyDir to run in a
more restricted environment with least privilege needed.
2017-11-06 16:47:31 -05:00