Commit Graph
218 Commits
Author SHA1 Message Date
Jared Watts bb375e9408 Merge pull request #1772 from ganeshmaharaj/fix-bstore-partitions
Fix bluestore DB and WAL partition creation
2018-06-07 16:26:38 -07:00
travisn 756c00fc4b mgr: enable the ceph dashboard
Signed-off-by: travisn <tnielsen@redhat.com>
2018-06-07 15:08:58 -07:00
Ganesh Maharaj Mahalingam 75d50b6f62 Fix bluestore DB and WAL partition creation
Bluestore is assumed as the default backend and string StoreType is left empty.
Propogating that assumption to device partitioning.

Resolves: #1748

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2018-06-07 15:07:28 -07:00
Travis Nielsen a0b8fb7cea Merge pull request #1763 from galexrt/1732
Document discover DaemonSet toleration key
2018-06-07 13:54:50 -07:00
Alexander Trost 098d4f2473 Update Rook Discover DaemonSet when it already exists
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-06-07 10:30:00 +02:00
Alexander Trost 86568cafd3 operator/ceph/mon: Cleaned up tests
To make it more applicable to what is actually running when using the
operator the used test mon names have been replaced by the actual format
used in normal operations: `rook-ceph-mon[0-9]` instead of `mon[0-9]`.

This also removes some duplicated test code and used the already
available function for it.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-06-04 23:01:29 +02:00
Alexander Trost edfa135560 ceph mon: Only run one mon on a node
This introduces a MonSpec to the Ceph Cluster CRD which contains settings for
mons, current options are the count and if more than one mon is allowed
to run per node.

Fixes #1386

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-06-02 13:36:30 +02:00
Jared Watts b2a35791b4 Merge pull request #1746 from benceszikora/fix-udevadm
Fix udevadm providing incomplete info by mounting /run/udev
2018-05-26 13:26:46 -07:00
Bence Szikora 144c9ee998 Fix udevadm providing incomplete info by mounting /run/udev
Signed-off-by: Bence Szikora <szikora0531@yahoo.de>
2018-05-26 07:13:49 +01:00
Jared Watts c3b113cc73 Fixes for minor issues found in further testing of new multiple storage type support
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-05-24 21:34:18 -07:00
Ganesh Maharaj Mahalingam f6498f48b0 Fix PV delete failure over operator restarts
This patch attempts to fix PV delete issues after an operator service
restart.

Resolves: #1721

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2018-05-24 12:14:49 -07:00
Jared Watts e48e951d1c Rename toolbox to make it Ceph specific, short names for CRDs, upgrade guide tweaks
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-05-22 12:31:38 -07:00
Jared Watts f3df68e573 operator, daemon, and cmd updates for supporting multiple storage types
Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-05-18 14:32:20 -07:00
Ganesh Maharaj Mahalingam 37d102a1ba Ceph MDS: Control multi file system creation
Multiple file system support is still considered experimental in Ceph.
Disabling that as default in rook until such time it is production
ready.
A small code cleanup in filesystem file
Resolves #1720

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2018-05-17 17:10:01 -07:00
travisn 7bd850e7fc flex: base driver name on the namespace
Signed-off-by: travisn <tnielsen@redhat.com>
2018-05-11 14:02:16 -07:00
travisn fc9118f7b2 remove support for k8s 1.6 and TPRs
Signed-off-by: travisn <tnielsen@redhat.com>
2018-05-08 10:09:38 -07:00
Huamin Chen 6c11ff52d4 add device discovery daemon to operator:
run "rook discover" on storage nodes and discover devices on each node. The discovered disks are saved in a per node configmap, local-device-nodename.
Device information consits of name and persistent names, uuid, partition, filesystem, rotational, readonly, size, etc.

Signed-off-by: Huamin Chen <hchen@redhat.com>
2018-05-07 17:49:02 +00:00
Alexander Trost 526bf9d76d Start new mons when there are less in the mon map
Fixed TestCheckHealth test

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-05-02 15:34:13 +02:00
rohan47 c80decbba8 updated storage class parameter clusterName to clusterNamespace
cluster name and namespace are required to match.
clusterName still works for backward compatiblity

Signed-off-by: rohan47 <rohanrgupta1996@gmail.com>
2018-04-25 18:24:13 +00:00
Alvaro Aleman 681f2999af Add standard Prometheus annotations to mgr deployment
This allows users to scrape their ceph-mgr deployment without being
forced to use the Prometheus operator

Signed-off-by: Alvaro Aleman <alv2412@googlemail.com>
2018-04-23 17:17:39 +02:00
travisn 94839d5b43 allow multiple containers in rook pods
Signed-off-by: travisn <tnielsen@redhat.com>
2018-04-20 11:13:41 -07:00
Travis Nielsen f42569da9c Merge pull request #1640 from galexrt/rook-agent-ds_update
operator: Update rook-agent DaemonSet if it already exists
2018-04-18 11:37:50 -04:00
Tony Allen 82d7a6de33 Replace Core() with CoreV1().
Signed-off-by: Tony Allen <cyril0allen@gmail.com>
2018-04-15 01:09:40 -07:00
Alexander Trost 57f51838bd operator: Update rook-agent DaemonSet if it already exists
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-04-12 17:30:44 +02:00
Illya Chekrygin c27bfc3bb4 Define CRD's as a part of the operator provisionning and remove it from operator init phase
Remove empty try/catch (erroneous commit)
Update Teardown documentation
Update PendingReleaseNotes with Operator resource changes

Signed-off-by: Illya Chekrygin <illya.chekrygin@gmail.com>
2018-04-05 09:54:22 -07:00
Travis Nielsen 6cddcbc179 Merge pull request #1598 from galexrt/mon_quorum_message
Log when mon is back in quorum and exceeded timeout
2018-03-26 08:25:27 -07:00
Alexander Trost 886176dabd Log when mon is back in quorum and exceeded timeout
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-03-26 15:12:58 +02:00
travisn 3840dd1c66 osd: bluestore is the default for devices and filestore for dirs
Signed-off-by: travisn <tnielsen@redhat.com>
2018-03-20 15:39:42 -07:00
travisn b121357215 api: completed removal of api service
remove dependency of e2e tests on api service
remove the obsolete model package

Signed-off-by: travisn <tnielsen@redhat.com>
2018-03-16 08:31:34 -07:00
travisn 9e4baf4c96 (ichekrygin) Remove the rook api service from production code
Remove controller api component and api daemon
Remove rookctl and  endpoints from Docker image

Signed-off-by: travisn <tnielsen@redhat.com>
2018-03-16 08:30:54 -07:00
Dan Mick e01beb0a87 Properly terminate controller threads on cluster delete
The stopCh value was only present in struct cluster, whose instance was
local to the onAdd function; save it to ClusterController.

Second, it was not initialized.

Third, ClusterController's "devicesInUse" needs to be set false on
cluster delete.

With this fix, Ceph clusters can be deleted and recreated without
restarting the Rook operator.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2018-03-09 18:57:29 -08:00
Alexander Trost de60740d67 Fix assignment of node address to mon in failover
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2018-03-07 17:41:39 +01:00
Jared Watts 2746b499ef Merge pull request #1493 from dgonzalezruiz/fixMGRcrashes
RGWs: Make multiple instances do not interfere with MGRs
2018-02-19 19:46:51 -08:00
David González Ruiz 7e06c84654 RGWs: Make multiple instances do not interfere with MGRs
Signed-off-by: David González Ruiz <godboole@gmail.com>
2018-02-16 12:32:01 +01:00
Jared Watts f06dd0009e When marking an OSD device to be removed, ensure the correct data partition name is used.
If watching the osd orchestration status map fails, ensure the loop is broken out of so a new watcher can be created.
Log the osd device/dir mapping structures in a more friendly way

Signed-off-by: Jared Watts <jbw976@gmail.com>
2018-02-15 13:48:50 -08:00
Travis Nielsen 60fc63d9cc Merge pull request #1473 from kokhang/agent-upgradable
Make daemonset use rolling update controller
2018-02-12 12:41:30 -08:00
Travis Nielsen 59334b19ed Merge pull request #1489 from travisn/crd-cleanup
Set owner reference on remaining components
2018-02-12 12:31:58 -08:00
Travis Nielsen f13a6ec43a cluster: set owner reference on remaining components
Signed-off-by: Travis Nielsen <travisn@live.com>
2018-02-12 11:09:32 -08:00
John Spray 35e92c1a30 Remove unused constants in Filesystem operator
Signed-off-by: John Spray <john.spray@redhat.com>
2018-02-12 17:20:25 +00:00
Omri Shiv e8c5836313 fixing typo
Signed-off-by: Omri Shiv <omri.shiv@teradata.com>
2018-02-10 15:15:13 -08:00
Steve Leon 686a371f5d Make daemonset use rolling update controller
- Daemonsets deployed by rook currently use the "delete" update
  controller. Which means the pods have to be manually deleted
  before being upgraded.

- Using the update controller will make daemonset behave like
  deployments when it comes to upgrade.

Partially fixes https://github.com/rook/rook/issues/997

Signed-off-by: Steve Leon <kokhang@gmail.com>
2018-02-06 15:40:13 -08:00
Travis Nielsen 24e112e333 rgw: correct host name and set blank dns name
Signed-off-by: Travis Nielsen <travisn@live.com>
2018-01-26 13:01:39 -08:00
Jared Watts 202650f6f5 Add and remove storage nodes 2018-01-24 14:31:20 -08:00
Travis Nielsen 4531987311 pools: allow setting crush root on the pool 2018-01-23 11:55:52 -08:00
Alexander Trost 9eb3693b29 Improved warnings for monCount values 2018-01-22 17:37:13 +01:00
Travis Nielsen 01bff8543b Merge pull request #1409 from travisn/hostname-label
Mon affinity to nodes based on correct hostname
2018-01-19 16:39:21 -08:00
Travis Nielsen 8725170077 operator: mon affinity to nodes based on node hostname 2018-01-17 14:47:22 -08:00
Christian Hüning ec8b2da4af added agentDaemonsetTolerationKeyEnv Var to be able to set a Toleration Key
added new option to example rook-operator.yaml

updated tests for the AGENT_TOLERATION_KEY env var
2018-01-12 07:59:03 +01:00
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