Default to 3 mons when no `mon.count` is given.
The documentation and upgrade page has been updated accordingly to reflect the new
default.
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
deprecate NetworkInfo.PublicAddrIPv4, use NetworkInfo.PublicAddr instead
deprecate NetworkInfo.ClusterAddrIPv4, use NetworkInfo.ClusterAddr instead
deprecate command flag public-ipv4, use public-ip instead
deprecate command flag private-ipv4, use private-ip instead
change ROOK_PUBLIC_IPV4 to ROOK_PUBLIC_IP
change ROOK_PRIVATE_IPV4 to ROOK_PRIVATE_IP
Signed-off-by: Zhang Miaolei <zmlcc@outlook.com>
Cleaning out the below entities.
- JournalPartitionType is defined but will never be used given rook will always
place journal file in the filestore's block partition.
- GetMetadataPartitionType and getDataPartitionDetails functions are legacy
code and no longer used by any of the rook components.
Resolves: #1775
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
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>
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>
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>
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>
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>
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>
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>
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>