Troubleshooting command device update issues

Unified Compute Platform (UCP) Advisor Software Installation Guide

Part Number

Use the following guidelines and suggested steps to help resolve command device update issues.

Unable to update the command device.
What it Means
The command device is disconnected, possibly due to a power outage or other disruption.
Corrective Action
  1. Using SSH, remove the PVC/PV used by the disconnected command device.
    1. 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:
      Status is Terminating

      kubectl patch pvc pvc-sdb -n ucp -p '{"metadata":{"finalizers":[]}}' --type=merge
    2. 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
  2. Remove the command device from the sdi-gateway-block.
    1. Tear down the running sdi-gateway-block PODs. Enter:
      kubectl patch deployment sdi-gateway-block -n ucp --type "merge" -p '{"spec":{"replicas":0}}'
    2. Verify that the tear down for the sdi-gateway-block POD is successful. Enter:
      kubectl get pods -n ucp | grep sdi
      Continue to run the above command until only the following blocks are displayed:
      • sdi-gateway-compute-XYZ
      • sdi-gateway-network-XYZ
      Note: It takes approximately 90 seconds for a tear down.
    3. 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:
    4. 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":"", "volumeMounts":[{"name":"log-dir", "mountPath":"/var/log/sdi-gateway","subPath":"sdi-gateway-block"}]}], "volumes":[{"name":"log-dir", "persistentVolumeClaim":{"claimName":"pvc-logs"}}]}}}}'
  3. Start the sdi-gateway-block. Enter:
    kubectl patch deployment sdi-gateway-block -n ucp --type "merge" -p '{"spec":{"replicas":1}}'