It is possible in some situations for a CFS component to be created with a zero-length string for an id
field.
Such a component cannot be deleted using the Cray CLI or the CFS API.
An administrator may notice the invalid component when listing components in CFS. The presence of such a component could cause problems in different ways:
cmsdev
test to fail. For details on these test failure symptoms, see
Invalid CFS component.Follow this procedure to remove the invalid CFS component.
(ncn-mw#
) Identify a running CFS server Kubernetes pod.
POD=$(kubectl get pods -n services -l 'app.kubernetes.io/instance=cray-cfs-api' --no-headers | grep -w Running | awk '{ print $1 }' | head -1)
echo "${POD}"
Example output:
cray-cfs-api-7dfb78c7b8-clrjq
(ncn-mw#
) Delete the CFS component with the zero-length ID.
No output is expected from the following command.
kubectl exec -it -n services "${POD}" -- python3 -c 'from cray.cfs.api.controllers.components import delete_component_v2 ; delete_component_v2("")'
(ncn-mw#
) Verify that the invalid component has been removed from CFS. If this problem was detected by cmsdev
, then run
the following command to perform only the CFS subtest.
/usr/local/bin/cmsdev test -q cfs