Troubleshoot the OpenStack Control Plane

  1. Check the pods status

    oc get pods -n openstack
  2. If you see any of the pods staying in pending state for logn check pod’s logs.

    Example:
    oc logs openstack-galera-0
  3. For further investigation you may describe the pod in question to see any hint about the problem there.

    Example:
    oc describe pod openstack-galera-0

    In the output of the abobe command, scroll down at the bottom to check the events generated by the pod.

  4. You may alos try attaching to the pod’s shell for further investigation on any pod related issue.

    Example:
    oc rsh openstack-galera-0
  5. Check running jobs for openstack control plane deployment.

    oc get jobs
    Sample output
    NAME                 COMPLETIONS   DURATION   AGE
    glance-db-create     1/1           6s         66s
    glance-db-sync       1/1           22s        56s
    keystone-bootstrap   0/1           1s         1s
    keystone-db-create   1/1           6s         37s
    keystone-db-sync     1/1           16s        27s
    neutron-db-create    1/1           4s         38s
  6. To track the progress or troubleshoot, you may check the logs for the job which is not completed.

    Example:
    oc logs job/keystone-bootstrap

You may need to re-deploy the control plane if you identify any problem with your configuration.

  1. Delete the current deployment

  2. Make desired changed in the deployment configuration file.

  3. Make sure all the resources of the deployment are cleaned up.

    oc get openstackcontrolplane -n openstack
    oc get all -n openstack
    oc get pods -n openstack
    oc get pvc -n openstack
  4. Delete any of the resource left back after deletion of controlplane configuration.

  5. Re-run deployment by applying configuration

  6. Check again for the status of openstack control plane deployment.

    oc get openstackcontrolplane -n openstack
  7. Repeat the query until MESSAGE is Setup complete

    Sample Output
    NAME                                 STATUS   MESSAGE
    openstack-galera-network-isolation   True     Setup complete