Commit Graph
7961 Commits
Author SHA1 Message Date
Travis Nielsen db2b267cb5 Merge pull request #3416 from Daniel-Pivonka/csi-liveness
ceph: deploy liveness sidecar with csi
2019-08-21 07:42:57 -06:00
Travis Nielsen 7a2c006c4d Merge pull request #3550 from infracloudio/yb_rook_design
Added a draft design doc for YugaByte Rook operator
2019-08-21 07:41:43 -06:00
David Vossel 4729e9cb90 Limit csv template generation to linux host platform
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-21 08:51:05 -04:00
Sebastian Wagner fe9f8d0560 Added compatibility to K8s < 1.14
This commit can ber reverted, as soon as 1.14 is mandatory.

K8s < 1.14 does not support `nullable` and `type: "null"` is not allowed.

See https://github.com/rook/rook/issues/3660

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-08-21 11:47:37 +02:00
Vishal Biyani e02eaef39f Added a draft design doc for YugaByte Rook operator
Signed-off-by: Vishal Biyani <vishal@infracloud.io>
2019-08-21 12:56:59 +05:30
giovanism c2550ac8c4 design: Multi-homed Cluster Network
Signed-off-by: giovanism <giovanism@outlook.co.id>
2019-08-21 07:00:10 +07:00
Travis Nielsen 1d28489c4a Merge pull request #3633 from ashishranjan738/fixsds
fix(storageClassDeviceSet): fixes resource limits and placements not getting applied to osds
2019-08-20 17:38:47 -06:00
Travis Nielsen 33f810a787 Merge pull request #3650 from ashishranjan738/info
fix ceph cluster namespace not showing in the logs
2019-08-20 12:46:00 -06:00
David Vossel 27828261f7 Add 'yq' yaml merger tool as optional rook-ceph dependency
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-20 13:39:39 -04:00
David Vossel be3389130c Add operator sdk as optional build dependency for rook-ceph
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-20 13:39:39 -04:00
David Vossel c13aff199b Add csv templates to rook-ceph container image
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-20 13:39:39 -04:00
David Vossel 2f9fd924d2 Add script to generate CSV templates for rook-ceph
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-20 13:39:39 -04:00
David Vossel a5a20e8181 Fix overwriting of CSV cluster permissions when ocp provider is in use
The OCP provider needs additional cluster permissions for
objects like SCC. The yq merge was clobbering all cluster
permissions when attempting to add the special OCP related
permissions.

Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-20 13:39:39 -04:00
Ashish Ranjan 8d852359b9 fix ceph cluster namespace not showing in the logs
This commit fixes cluster namespace not showing in the rook operator logs.

Signed-off-by: Ashish Ranjan <aranjan@redhat.com>
2019-08-20 17:30:17 +05:30
Michael Vollman 33711b7d36 ceph: fix osdsPerDevice config
Fix variable scoping issue that is ignoring osdsPerDevice config
setting.  Ensure that in all scenarios both the global and per OSD
osdsPerDevice setting are honored.  When both are set the more specific
setting will be used. (#3599)

Signed-off-by: Michael Vollman <michael.b.vollman@gmail.com>
2019-08-20 07:09:12 -04:00
Blaine Gardner b76ed66582 Merge pull request #3556 from mumrau/master
ROOK_CURRENT_NAMESPACE_ONLY environment variable configurable with helm for operator deployment
2019-08-19 14:28:01 -06:00
Daniel-Pivonka 665172a9ea ceph: deploy liveness sidecar with csi
Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
2019-08-19 14:26:47 -04:00
Travis Nielsen 27cad9d008 Merge pull request #3606 from sp98/sed_to_golang
Replace "sed" commands with native golang file handling
2019-08-19 12:03:43 -06:00
Travis Nielsen 73fa38ff75 Merge pull request #3586 from mvollman/fix-per-osd-md
ceph: fix per osd metadata support
2019-08-19 10:41:19 -06:00
Sébastien Han 7e1939cc08 Merge pull request #3555 from feisuzhu/master
doc: Add disaster recovery doc
2019-08-19 18:37:27 +02:00
Alexander Trost f09441f1e4 Merge pull request #3645 from galexrt/fix_3136
mgr: set public-addr flag for MGR
2019-08-19 18:26:52 +02:00
Alexander Trost 6daf4087c7 mgr: set public-addr flag for MGR
This fixes that the MGR is binding to the gateway IP instead of the
actual Pod IP, as seen in #3136.
When hostNetwork: true is set the public-addrr is not set so custom
network configs can be used.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-08-19 15:59:45 +02:00
Sébastien Han d11e051163 Merge pull request #3641 from odinuge/delete-mds-deploy
ceph: properly propagate errors when deleting mds deployment
2019-08-19 15:30:18 +02:00
Sébastien Han ca4310942d Merge pull request #3638 from odinuge/dead-and-duplicate-code
Correctly set osd mem target for inited clusters
2019-08-19 12:11:11 +02:00
Santosh Pillai b1c9ad97ae replace "sed" commands with native golang file handling
- OSD backed by PVC required updating the lvm.conf file which was done by executing the 'sed' commands.
- This patch removes the 'sed' command and uses golang utlities to update the lvm.conf file.

Signed-off-by: Santosh Pillai <sapillai@redhat.com>
2019-08-19 12:38:56 +05:30
Odin Ugedal 7bd1ff1049 ceph: remove duplicated code
Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-08-18 11:10:28 +02:00
Proton b651239d3f doc: Add disaster recovery doc [skip ci]
Added instructions about how to bring orphaned rook/ceph cluster back.

Signed-off-by: Proton <feisuzhu@163.com>
2019-08-17 23:28:35 +08:00
Odin Ugedal 43baf63b86 ceph: properly propagate errors when deleting mds
When deleting mds deployment the error is logged, but not propagated
further down (it always returns nil). The two places using the function
checks the error, and acts upon it.

Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-08-17 14:48:17 +02:00
Mathias Chevalier a9383ce397 ROOK_CURRENT_NAMESPACE_ONLY env var in operator deployment made configurable with helm
Signed-off-by: Mathias Chevalier <mc.mumrau@gmail.com>
2019-08-17 08:47:45 +02:00
Odin Ugedal 0e73bbe2f3 ceph: set osd mem target correctly
Previously, the value was set to commonArgs, resulting in dead code,
since common arg isn't used after the append.

Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-08-16 17:29:38 +02:00
Dmitry Yusupov bfe867e16c Merge pull request #3628 from sabbot/useHostLocalTime
Add useHostLocalTime option
2019-08-15 14:33:03 -07:00
Ashish Ranjan a8827f3652 fix(storageClassDeviceSet): fixes resource limits and placements for osds
This commit fixes resource limits and placements not getting applied to osd pods provisioned using storageClassDeviceSets

Signed-off-by: Ashish Ranjan <aranjan@redhat.com>
2019-08-16 02:44:37 +05:30
Michael Vollman 46f8012268 ceph: fix per osd metadata support
When setting metadataDevice per OSD the check that c-v is properly using
the metadata device is failing because it is only looking at the global
md setting which is nil and not the per OSD setting.

Signed-off-by: Michael Vollman <michael.b.vollman@gmail.com>
2019-08-15 07:22:00 -04:00
Travis Nielsen 6a61286e4a Merge pull request #3624 from phlogistonjohn/jjm-doc-provisioner-name
doc: document csi naming "prefix" as the rook operator namespace
2019-08-14 15:28:35 -06:00
Anton Skriptsov e99df703c5 Add useHostLocalTime option
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-08-14 11:26:42 -07:00
Dmitry Yusupov d7e319af45 Merge pull request #3609 from ethan-daocloud/patch-4
edgefs: cleanup pod.go comment, fix typos
2019-08-14 10:17:51 -07:00
John Mulligan e67b0317c7 doc: document csi naming "prefix" as the rook operator namespace
Update the rbd and cephfs docs to include the new prefixed style
of name for the rook-managed csi instances. Document that this
prefix must match the namespace the rook operator is deployed in.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-08-14 12:49:38 -04:00
Travis Nielsen dd7a82fdc2 Merge pull request #3565 from nixpanic/ceph-csi/pidlimit
ceph-csi: pass --pidlimit option to provisioners
2019-08-13 22:58:26 -06:00
Travis Nielsen 35adf26d79 Merge pull request #3611 from phlogistonjohn/jjm-support-non-docker-in-tests
tests: do not require actual docker cli
2019-08-13 21:23:48 -06:00
Travis Nielsen 8e2f3f74a5 Merge pull request #3587 from pcuzner/change-ceph-mgr-rules
ceph: add rbac permissions for events api access
2019-08-13 17:01:17 -06:00
Blaine Gardner 1fce599d4c Merge pull request #3613 from SUSE/integration-use-apply-instead-of-create
Integration tests: use 'kubectl apply' vs create
2019-08-13 16:21:10 -06:00
Travis Nielsen b05f5f457f Merge pull request #3618 from davidvossel/rbd-doc-example
Update example pvc.yaml to reflect name of example rdb storageclass
2019-08-13 16:01:11 -06:00
David Vossel da072708c3 Update example pvc.yaml to reflect name of example rdb storageclass
Signed-off-by: David Vossel <davidvossel@gmail.com>
2019-08-13 17:29:01 -04:00
Blaine Gardner 789f8b4e7a Ceph: remove CreateSamePVCTwice integration test
This test doesn't really test the behavior of Rook as much as it tests
the behavior of `kubectl create`; therefore, remove the test.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2019-08-13 15:04:29 -06:00
Blaine Gardner 9009326ad7 Integration tests: use 'kubectl apply' vs create
Some integration tests fail due to resources from a previous integration
run not being cleaned up properly. Instead of using 'kubectl create' --
which fails with an error if the resource already exists -- to create
resources, use 'kubectl apply' -- which does not fail for pre-existing
resources. 'kubectl apply' will give a warning that it should be used to
apply changes to resources created with 'create' or 'apply', but there
is no error.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
2019-08-13 15:03:39 -06:00
Travis Nielsen b240c30050 Merge pull request #3597 from mgfritch/wip-ceph-pool-doc
docs: Add Clarity to Ceph CRDs
2019-08-13 14:59:24 -06:00
Travis Nielsen 1591ba843e Merge pull request #3607 from obnoxxx/logic-flow-createReplicationCrushRule
ceph:pools: polish logic flow a bit in createReplicationCrushRule()
2019-08-13 13:22:21 -06:00
Travis Nielsen 799bcecce6 Merge pull request #3450 from travisn/update-orch-refactor
Set min Ceph version to 13.2.4 and improved orchestration event handling
2019-08-13 11:49:05 -06:00
Michael Fritch fbf9f95378 docs: Add Clarity to Ceph CRDs
- Improve readability of 'Replicated' and 'Erasure Coded' sections
- Clarify replicated sample requires 1 OSD located on 3 different nodes
- Add whitespace to 'Pool Settings' section
- Add link to the k8s 'StorageClass' concept
- Rename instances of 'object store' as literal
`CephObjectStore`
- Rename instances of 'object store user' as literal
`CephObjectStoreUser`
- Other minor verbiage and syntax clean-up

Signed-off-by: Michael Fritch <mfritch@suse.com>
2019-08-13 10:24:19 -06:00
John Mulligan 28cb59943b tests: do not require actual docker cli
Other CLI tools, such as podman, and equivalent to docker so support
setting an environment var to use it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-08-13 10:43:10 -04:00