This test requires that the Cray CLI is configured on nodes where the test is executed. See Cray command line interface.
The following test can be run on any Kubernetes node (any master or worker node, but not on the PIT node).
/usr/local/bin/cmsdev test -q all
cmsdev tool logs to /opt/cray/tests/cmsdev.logcmsdev resultsSUCCESS.
SUCCESS: All 7 service tests passed: bos, cfs, conman, crus, ims, tftp, vcsFAILURE and lists the failed checks.
FAILURE: 2 service tests FAILED (conman, ims), 5 passed (bos, cfs, crus, tftp, vcs)all in the cmsdev command line with the name of the service. For example: /usr/local/bin/cmsdev test -q cfsAdditional test execution details can be found in /opt/cray/tests/cmsdev.log.
(ncn-mw#) The following command displays the version of the cmsdev test tool.
/usr/local/bin/cmsdev version
Some of the subtests may fail if the Cray CLI is not configured on the management NCN where cmsdev is executed.
See the following for more information:
If an Etcd restore has been performed on one of the SMS services (such as BOS or CRUS), then the first Etcd pod that comes up after the restore will not have a PVC (Persistent Volume Claim) attached to it (until the pod is restarted). The Etcd cluster is in a healthy state at this point, but the SMS health checks will detect the above condition and may report test failures similar to the following:
ERROR (run tag 1khv7-bos): persistentvolumeclaims "cray-bos-etcd-ncchqgnczg" not found
ERROR (run tag 1khv7-crus): persistentvolumeclaims "cray-crus-etcd-ffmszl7bvh" not found
In this case, these errors can be ignored, or the pod with the same name as the PVC mentioned in the output can be restarted (as long as the other two Etcd pods are healthy).
On systems where too many BOS v1 sessions exist, the cmsdev test will hang when trying to
list BOS v1 sessions. See Hang Listing BOS V1 Sessions for more
information.
If a CFS component exists with a zero-length string for its id field, then it may cause the cmsdev
CFS subtest to fail. The CFS subtest failure will resemble the following:
ERROR (run tag fhn3C-cfs): First list item has empty value for "id" field
For details on how to correct this problem, see CFS Component With Zero-Length ID.
If the VCS administrative password contains illegal characters, it can cause the VCS subtest to fail with an error message that resembles the following:
ERROR (run tag Xe9tC-vcs): Command failed
If the test is run in verbose mode, or the cmsdev log file is examined, a line similar to the following is found:
fatal: unable to access 'https://crayvcs:BPuN/M846JL5XKTTWVqcV2mhuZfzOC64nnZ/e54ri1M=@api-gw-service-nmn.local/vcs/test-cmsdev-zvkEP50G/harf-zEK1SuiP.git/': URL using bad/illegal format or missing URL
See VCS Password With Illegal Characters for more information on this problem, including remediation steps. See SMS test execution for more information on running the test in verbose mode and locating its log file.