Verify Ceph cluster state¶
To verify the state of a Ceph cluster, Ceph Controller provides special
sections in KaaSCephCluster.status
. The resource contains information about
the state of the Ceph cluster components, their health, and potentially
problematic components.
To verify the Ceph cluster state from a managed cluster:
Obtain
kubeconfig
of a managed cluster and provide it as an environment variable:export KUBECONFIG=<pathToManagedKubeconfig>
Obtain the
MiraCeph
resource in YAML format:kubectl -n ceph-lcm-mirantis get miraceph -o yaml
Information from
MiraCeph.status
is passed to themiraCephInfo
section of theKaaSCephCluster
CR. For details, see KaaSCephCluster.status miraCephInfo specification.Obtain the
MiraCephLog
resource in YAML format:kubectl -n ceph-lcm-mirantis get miracephlog -o yaml
Information from
MiraCephLog
is passed to thefullClusterInfo
andshortClusterInfo
sections of theKaaSCephCluster
CR. For details, see KaaSCephCluster.status shortClusterInfo specification and KaaSCephCluster.status fullClusterInfo specification.
To verify the Ceph cluster state from a management cluster:
Ceph changes in Container Cloud 2.20
Since Container Cloud 2.20.0, the Ceph cluster does not deploy on management and regional clusters to reduce resource consumption.
Ceph cluster is automatically removed from existing management and regional clusters during the Container Cloud update to 2.20.0.
Managed clusters continue using Ceph as a distributed storage system.
Obtain the
KaaSCephCluster
resource in the YAML format:kubectl -n <projectName> get kaascephcluster -o yaml
Substitute
<projectName>
with the project name of the managed or management cluster to which the required Ceph cluster belongs.Verify the state of the required component using KaaSCephCluster.status description.