Skip to content

Instantly share code, notes, and snippets.

Created August 28, 2014 10:50
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 anonymous/5223bbf7c86354f436b8 to your computer and use it in GitHub Desktop.
Save anonymous/5223bbf7c86354f436b8 to your computer and use it in GitHub Desktop.
cat admin-openrc.sh
export OS_USERNAME=admin
export OS_PASSWORD=admin
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://10.20.0.3:35357/v2.0
You have new mail in /var/spool/mail/root
$ keystone --debug user-list
DEBUG:keystoneclient.session:REQ: curl -i -X POST http://172.16.0.2:5000/v2.0/tokens -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "admin"}}}'
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 172.16.0.2
DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 3058
DEBUG:keystoneclient.session:RESP: [200] {'date': 'Thu, 28 Aug 2014 10:48:10 GMT', 'content-type': 'application/json', 'content-length': '3058', 'vary': 'X-Auth-Token'}
RESP BODY: {"access": {"token": {"issued_at": "2014-08-28T10:48:10.397185", "expires": "2014-08-28T11:48:10Z", "id": "f7e3f6ea9909478eaa7f223a98403f30", "tenant": {"description": "admin tenant", "enabled": true, "id": "4b89376d32d942dd8b2682787a4d8450", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.0.1:8774/v2/4b89376d32d942dd8b2682787a4d8450", "region": "RegionOne", "internalURL": "http://192.168.0.1:8774/v2/4b89376d32d942dd8b2682787a4d8450", "id": "2771b8033d7c48e98b32cb8122115110", "publicURL": "http://172.16.0.2:8774/v2/4b89376d32d942dd8b2682787a4d8450"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://192.168.0.1:9696", "region": "RegionOne", "internalURL": "http://192.168.0.1:9696", "id": "43ecf8cab6f3483e819d15160b84d9b1", "publicURL": "http://172.16.0.2:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://192.168.0.1:9292", "region": "RegionOne", "internalURL": "http://192.168.0.1:9292", "id": "4c30ab87aa524f83b60fa4a6f0a7a418", "publicURL": "http://172.16.0.2:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://192.168.0.1:8777", "region": "RegionOne", "internalURL": "http://192.168.0.1:8777", "id": "251618fbbd8a4037a7af44e3bdee8b58", "publicURL": "http://172.16.0.2:8777"}], "endpoints_links": [], "type": "metering", "name": "ceilometer"}, {"endpoints": [{"adminURL": "http://192.168.0.1:8776/v1/4b89376d32d942dd8b2682787a4d8450", "region": "RegionOne", "internalURL": "http://192.168.0.1:8776/v1/4b89376d32d942dd8b2682787a4d8450", "id": "a6f59b9ca8d5449988df4295b4aa199b", "publicURL": "http://172.16.0.2:8776/v1/4b89376d32d942dd8b2682787a4d8450"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://192.168.0.1:8773/services/Admin", "region": "RegionOne", "internalURL": "http://192.168.0.1:8773/services/Cloud", "id": "44b528d6b7b44e1f809b7516586214d0", "publicURL": "http://172.16.0.2:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "nova_ec2"}, {"endpoints": [{"adminURL": "http://192.168.0.1:8004/v1/4b89376d32d942dd8b2682787a4d8450", "region": "RegionOne", "internalURL": "http://192.168.0.1:8004/v1/4b89376d32d942dd8b2682787a4d8450", "id": "6aeade3902064f8b88e7521b6f534c53", "publicURL": "http://172.16.0.2:8004/v1/4b89376d32d942dd8b2682787a4d8450"}], "endpoints_links": [], "type": "orchestration", "name": "heat"}, {"endpoints": [{"adminURL": "http://192.168.0.1:35357/v2.0", "region": "RegionOne", "internalURL": "http://192.168.0.1:5000/v2.0", "id": "2bf12e387cf24bd19e84b8dffe1a20fc", "publicURL": "http://172.16.0.2:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "66da4c2bf8d640e1817bc17344d19806", "roles": [{"name": "_member_"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "ef294954a9374443831bc909c4d94e78"]}}}
DEBUG:iso8601.iso8601:Parsed 2014-08-28T11:48:10Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'11', 'daydash': u'28', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'10', 'tz_minute': None, 'year': u'2014', 'separator': u'T', 'monthdash': u'08', 'day': None, 'minute': u'48'} with default timezone <iso8601.iso8601.Utc object at 0x7d8b90>
DEBUG:iso8601.iso8601:Got u'2014' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'08' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 8 for 'month' with default 8
DEBUG:iso8601.iso8601:Got u'28' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 28 for 'day' with default 28
DEBUG:iso8601.iso8601:Got u'11' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'48' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'10' for 'second' with default None
DEBUG:keystoneclient.session:REQ: curl -i -X GET http://192.168.0.1:35357/v2.0/users -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: f7e3f6ea9909478eaa7f223a98403f30"
INFO:urllib3.connectionpool:Starting new HTTP connection (1): 192.168.0.1
Unable to establish connection to http://192.168.0.1:35357/v2.0/users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment