Debugging storage
Complete the following steps to debug your Satellite storage configurations.
Log in to your cluster
-
Log in to the IBM Cloud CLI.
ibmcloud login
-
List your Satellite locations and note the
Managed from
column.ibmcloud sat location ls
-
Target the
Managed from
region of your Satellite location. For example, forwdc
targetus-east
. For more information, see Satellite regions.ibmcloud target -r us-east
-
If you use a resource group other than
default
, target it.ibmcloud target -g <resource-group>
Get your configuration details
- List your storage configurations.
ibmcloud sat storage config ls
- Get the details of the storage configuration you wish to troubleshoot and take note of the
storage-template-version
field.ibmcloud sat storage config get --config <CONFIG_NAME> --json
- List your storage assignments.
ibmcloud sat storage assignment ls
- Get the details of the storage assignment that uses your configuration and check that the
version
field matches your configuration version.ibmcloud sat storage assignment get --assignment <ASSINGMENT_ID> --json
- If the
storage-template-version
and your assignmentversion
do not match, upgrade the storage assignment.ibmcloud sat storage assignment upgrade --assignment <ASSIGNMENT_ID>
Gather the mustachetemplate-controller
pod logs
- List the pods in the
razeedeploy
namespace.oc get pods -n razeedeploy
- Get the
mustachetemplate-controller
pod logs and check for any configuration or assignment creation errors.oc logs mustachetemplate-controller-xxx-xxx -n razeedeploy
Get the storage driver pod logs
Note that the namespaces and pod names are template specific. Te verify these details, refer to the storage template page that you are using in your cluster.
- Get the storage driver pods from the namespace where they are deployed.
oc get pods -n kube-system | grep POD-NAME
- Get the storage driver pod logs.
oc get logs STORAGE-DRIVER-POD -n NAMESPACE
Get the storage class details
- Get the storage class details for your template.
oc get sc
Get the details of your persistent volume claims
-
If you deployed apps that use storage, list your PVCs.
oc get pvc
NAME READY STATUS RESTARTS AGE my-pvc 1/1 Running 0 2m58s
Get the pod logs for your app
- Get a list of your app pods.
oc get pods -n NAMESPACE
- Get the logs for the pod you want to troubleshoot.
oc logs POD -n NAMESPACE
Review the details
Review the error messages, logs, and details of your configurations and troubleshoot. Review the troubleshooting documentation for further debugging steps.
Contact Support
If the issue persists, open a support case. In the case details, be sure to include any relevant log files, error messages, or command outputs.