Skip to content

Instantly share code, notes, and snippets.

@noelbk
Created October 9, 2014 23:28
Show Gist options
  • Save noelbk/1840fdb59cff31e9570b to your computer and use it in GitHub Desktop.
Save noelbk/1840fdb59cff31e9570b to your computer and use it in GitHub Desktop.
CLUSTER=27
eval $(sed -n \
-e 's/^auth_uri\s*=\s*/OS_AUTH_URL=/p' \
-e 's/^identity_uri\s*=\s*/IDENTITY_URI=/p' \
-e 's/^admin_password\s*=\s*/OS_PASSWORD=/p' \
-e 's/^admin_tenant_name\s*=\s*/OS_TENANT_NAME=/p' \
-e 's/^admin_user\s*=\s*/OS_USERNAME=/p' \
/etc/neutron/neutron.conf)
export OS_TENANT_NAME OS_USERNAME OS_PASSWORD OS_AUTH_URL
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=gruegrue$CLUSTER
nova list --fields name,Networks,OS-EXT-SRV-ATTR:host,status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment