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.
Diagnostic resource¶
Available since MCC 2.28.0 (Cluster releases 17.3.0 and 16.3.0)
This section describes the Diagnostic custom resource (CR) used in the
management API to trigger self-diagnostics for management or
MOSK clusters.
The Diagnostic CR contains the following fields:
apiVersionAPI version of the object that is
diagnostic.mirantis.com/v1alpha1.
kindObject type that is
Diagnostic.
metadataObject metadata that contains the following fields:
nameName of the
Diagnosticobject.
namespaceNamespace used to create the
Diagnosticobject. Must be equal to the namespace of the target cluster.
specResource specification that contains the following fields:
clusterName of the target cluster to run diagnostics on.
checksReserved for internal usage, any override will be discarded.
statusfinishedAtCompletion timestamp of diagnostics. If the Diagnostic Controller version is outdated, this field is not set and the corresponding error message is displayed in the
errorfield.
errorError that occurs during diagnostics or if the Diagnostic Controller version is outdated. Omitted if empty.
controllerVersionVersion of the controller that launched diagnostics.
resultMap of check statuses where the key is the check name and the value is the result of the corresponding diagnostic check:
descriptionDescription of the check in plain text.
resultResult of diagnostics. Possible values are
PASS,ERROR,FAIL,WARNING,INFO.
messageOptional. Explanation of the check results. It may optionally contain a reference to the documentation describing a known issue related to the check results, including the existing workaround for the issue.
successSuccess status of the check. Boolean.
ticketInfoOptional. Information about the ticket to track the resolution progress of the known issue related to the check results. For example,
FIELD-12345.
The Diagnostic resource example:
apiVersion: diagnostic.mirantis.com/v1alpha1
kind: Diagnostic
metadata:
name: test-diagnostic
namespace: test-namespace
spec:
cluster: test-cluster
status:
finishedAt: 2024-07-01T11:27:14Z
error: ""
controllerVersion: v1.40.11
result:
bm_address_capacity:
description: Baremetal addresses capacity
message: LCM Subnet 'default/k8s-lcm-nics' has 8 allocatable addresses (threshold
is 5) - OK; PXE-NIC Subnet 'default/k8s-pxe-nics' has 7 allocatable addresses
(threshold is 5) - OK; Auto-assignable address pool 'default' from MetallbConfig
'default/kaas-mgmt-metallb' has left 21 available IP addresses (threshold
is 10) - OK
result: INFO
success: true
bm_artifacts_overrides:
description: Baremetal overrides check
message: BM operator has no undesired overrides
result: PASS
success: true
See also