Use the following guidelines and suggested steps to help resolve command device update issues.
- Condition
- Unable to update the command device.
- What it Means
- The command device is disconnected, possibly due to a power outage or other disruption.
- Using SSH, remove the PVC/PV used by the disconnected command device.
- Delete the PVC. Enter:
kubectl delete pvc pvc-sdb -n ucp
If the status is in the Terminating state and you are unable to proceed, in a separate SSH session, enter:kubectl patch pvc pvc-sdb -n ucp -p '{"metadata":{"finalizers":[]}}' --type=merge
- Delete the PV. Enter:
kubectl delete pv pv-sdb
If you are unable to proceed, enter:kubectl patch pv pv-sdb -n ucp -p '{"metadata":{"finalizers":[]}}' --type=merge
- Delete the PVC. Enter:
- Remove the command device from the sdi-gateway-block.
- Tear down the running sdi-gateway-block PODs. Enter:
kubectl patch deployment sdi-gateway-block -n ucp --type "merge" -p '{"spec":{"replicas":0}
- Retrieve the current running image. Enter:
kubectl get deployment sdi-gateway-block -n ucp -o yaml | grep "image:"
Note the output image name for use in the following step. For example: triangulum-docker-dev-sc.repo.sc.eng.hitachivantara.com/sdi-gateway-block:v9.1.0.dev-4662 - Replace the docker image with the image name output above to remove the command device.
For example, enter:
kubectl patch deployment sdi-gateway-block -n ucp --type "merge" -p '{"spec":{"template":{"spec":{"containers":[ {"name":"sdi-gateway-block", "image":"triangulum-docker-dev-sc.repo.sc.eng.hitachivantara.com/sdi-gateway-block:v9.1.0.dev-4662", "volumes":[{"name":"log-dir", "hostPath":{"path":"/var/log/sdi-gateway", "type":"DirectoryOrCreate"}}]} ]}}
- Tear down the running sdi-gateway-block PODs. Enter:
- Start the sdi-gateway-block. Enter:
kubectl patch deployment sdi-gateway-block -n ucp --type "merge" -p '{"spec":{"replicas":1}}'