Skip to content

Instantly share code, notes, and snippets.

@detiber
Created June 4, 2015 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save detiber/93496bc657362fac31a2 to your computer and use it in GitHub Desktop.
Save detiber/93496bc657362fac31a2 to your computer and use it in GitHub Desktop.
demo env troubleshooting
#aws block device mapping
curl http://169.254.169.254/latest/meta-data/block-device-mapping/
#pod counts:
project=demo
app=sketchpod
watch "echo -n 'Running: '; osc get pods -n ${project} | grep Running | grep deployment | grep -v 'not ready' | grep ${app} | wc -l; echo -n 'Pending: '; osc get pods -n ${project} | grep Pending | grep deployment | grep -v 'not ready' | grep ${app} | wc -l; osc get pods -n ${project} | grep -v Running | grep -v Pending"
#sdn subnets:
curl -E /etc/openshift/master/master.etcd-client.crt --cacert /etc/openshift/master/ca.crt --key /etc/openshift/master/master.etcd-client.key https://`hostname -f`:4001/v2/keys/openshift.io/registry/sdnsubnets | python -mjson.tool
#sdn networks:
curl -E /etc/openshift/master/master.etcd-client.crt --cacert /etc/openshift/master/ca.crt --key /etc/openshift/master/master.etcd-client.key https://`hostname -f`:4001/v2/keys/openshift.io/registry/sdnnetworks | python -mjson.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment