Chapter 4. Troubleshooting Deployment
Under normal circumstances, the deployment process takes approximately 10 minutes. If the deployment is unsuccessful, examining deployment events and pod logs can help identify any issues.
As a regular user, first retry the failed deployment:
$ oc get pods NAME READY STATUS RESTARTS AGE cloudforms-1-deploy 0/1 Error 0 25m memcached-1-yasfq 1/1 Running 0 24m postgresql-1-wfv59 1/1 Running 0 24m
$ oc deploy cloudforms --retry Retried #1 Use 'oc logs -f dc/cloudforms' to track its progress.
Allow a few seconds for the failed pod to get re-scheduled, then check events and logs:
$ oc describe pods <pod-name> ... Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 15m 15m 1 {kubelet ocp-eval-node-2.e2e.example.com} spec.containers{cloudforms} Warning Unhealthy Readiness probe failed: Get http://10.1.1.5:80/: dial tcp 10.1.1.5:80: getsockopt: connection refusedLiveness and readiness probe failures, like in the output above, indicate the pod is taking longer than expected to come online. In this case, check the pod logs.
As the
cfme-appcontainer issystemdbased, useoc rshinstead ofoc logsto obtain journal dumps:$ oc rsh <pod-name> journalctl -x
Transferring all logs from the
cfme-apppod to a directory on the host for further examination can be useful for troubleshooting. Transfer the logs with theoc rsynccommand:$ oc rsync <pod-name>:/persistent/container-deploy/log \ /tmp/fail-logs/ receiving incremental file list log/ log/appliance_initialize_1477272109.log log/restore_pv_data_1477272010.log log/sync_pv_data_1477272010.log sent 72 bytes received 1881 bytes 1302.00 bytes/sec total size is 1585 speedup is 0.81
4.1. Uninstalling Red Hat CloudForms from a Project
If no longer needed, you can uninstall the Red Hat CloudForms pod from your project. Note the following commands do not remove SCC permissions, or the project itself.
Use this procedure if only Red Hat CloudForms exists in the project.
Inside the project, run the following as a regular user:
$ oc delete all --all
Wait approximately 30 seconds for the command to process, then run:
$ oc delete pvc --all

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.