Mirantis Container Cloud (MCC) becomes part of Mirantis OpenStack for Kubernetes (MOSK)!
Starting with MOSK 25.2, the MOSK documentation set covers all product layers, including MOSK management (formerly Container Cloud). This means everything you need is in one place. Some legacy names may remain in the code and documentation and will be updated in future releases. The separate Container Cloud documentation site will be retired, so please update your bookmarks for continued easy access to the latest content.
Trigger self-diagnostics for a cluster¶
Available since MCC 2.28.0 (17.3.0 and 16.3.0)
To run self-diagnostics for a management or MOSK cluster,
the operator must create a Diagnostic object. The creation of this object
triggers diagnostic-controller to start all available checks for the target
cluster defined in the spec.cluster section of the object.
After a successful completion of the required set of diagnostic checks,
diagnostics is never retriggered. To retrigger diagnostics for the same
cluster, the operator must create a new Diagnostic object.
The objects of the Diagnostic kind are not removed automatically so that
you can assess the result of each diagnostics later.
To trigger self-diagnostics for a management or MOSK cluster:
Log in to the host where
kubeconfigof your management cluster is located and where kubectl is installed.Create the
Diagnosticobject in the namespace where the target cluster is located. For example:apiVersion: diagnostic.mirantis.com/v1alpha1 kind: Diagnostic metadata: name: test-diagnostic namespace: test-namespace spec: cluster: test-cluster
Wait until diagnostics is finished. To monitor the progress:
while [ -z "$(kubectl -n <diagnosticObjectNamespace> get diagnostic <diagnosticObjectName> -o go-template='{{.status.finishedAt}}')" ]; do sleep 1; done;
Verify the
statussection of theDiagnosticobject:If diagnostics is finished successfully, its result is displayed in the
resultmap containing key-value pairs describing results of the corresponding diagnostic checks.If diagnostics is finished unsuccessfully, or the Diagnostic Controller version is outdated,
diagnostic-controllersaves the issue description to thestatus.errorfield.If the Diagnostic Controller version is outdated, ensure that
release-controlleris running and a newDiagnosticReleasehas been created. Also, verify logs of the bare metal provider andrelease-controllerfor issues.If the
statussection is empty,diagnostic-controllerhas not run any diagnostics yet.
For details about the object status, see Diagnostic resource.