Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From inside the container:
- root@653effb1462d:~# cat openrc
- #!/bin/sh
- export LC_ALL=C
- export OS_NO_CACHE='true'
- export OS_TENANT_NAME='admin'
- export OS_PROJECT_NAME='admin'
- export OS_USERNAME='admin'
- export OS_PASSWORD='admin'
- export OS_AUTH_URL='http://172.16.0.3:5000/v2.0'
- export OS_DEFAULT_DOMAIN='default'
- export OS_AUTH_STRATEGY='keystone'
- export OS_REGION_NAME='RegionOne'
- export CINDER_ENDPOINT_TYPE='publicURL'
- export GLANCE_ENDPOINT_TYPE='publicURL'
- export KEYSTONE_ENDPOINT_TYPE='publicURL'
- export NOVA_ENDPOINT_TYPE='publicURL'
- export NEUTRON_ENDPOINT_TYPE='publicURL'
- export OS_ENDPOINT_TYPE='publicURL'
- export MURANO_REPO_URL='http://storage.apps.openstack.org/'
- root@653effb1462d:~# . openrc
- root@653effb1462d:~# glance image-list
- +--------------------------------------+--------+
- | ID | Name |
- +--------------------------------------+--------+
- | a1cd96f8-0435-4b65-8d9c-36174d017bf7 | TestVM |
- +--------------------------------------+--------+
- root@653effb1462d:~# nova list
- +----+------+--------+------------+-------------+----------+
- | ID | Name | Status | Task State | Power State | Networks |
- +----+------+--------+------------+-------------+----------+
- +----+------+--------+------------+-------------+----------+
- root@653effb1462d:~# cinder list
- +----+--------+------+------+-------------+----------+-------------+
- | ID | Status | Name | Size | Volume Type | Bootable | Attached to |
- +----+--------+------+------+-------------+----------+-------------+
- +----+--------+------+------+-------------+----------+-------------+
- root@653effb1462d:~# neutron net-list
- +--------------------------------------+--------------------+-------------------------------------------------------+
- | id | name | subnets |
- +--------------------------------------+--------------------+-------------------------------------------------------+
- | 79357c55-36f6-4303-ab96-f1a3c1cce511 | admin_floating_net | 2de46ce2-66d1-49ed-9b2b-3eb87baa67ae 172.16.0.0/24 |
- | c3ab46f2-8d97-42ec-8826-ff9cd3b09a99 | admin_internal_net | 65419787-a198-4ecd-9c13-f5bbe47fdd78 192.168.111.0/24 |
- +--------------------------------------+--------------------+-------------------------------------------------------+
- root@653effb1462d:~# openstack --debug user list
- [...]
- Using parameters {'username': 'admin', 'password': '***', 'project_name': 'admin', 'auth_url': 'http://172.16.0.3:5000/v2.0'}
- Get auth_ref
- REQ: curl -g -i -X GET http://172.16.0.3:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.6.0 python-requests/2.10.0 CPython/2.7.6"
- Starting new HTTP connection (1): 172.16.0.3
- "GET /v2.0 HTTP/1.1" 200 336
- RESP: [200] Date: Thu, 09 Jun 2016 16:06:11 GMT Server: Apache Content-Length: 336 Vary: X-Auth-Token x-openstack-request-id: req-a34899ee-6490-4cd7-aca3-fb94abc72ac5 Connection: close Content-Type: application/json
- RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://172.16.0.3:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
- Making authentication request to http://172.16.0.3:5000/v2.0/tokens
- Resetting dropped connection: 172.16.0.3
- "POST /v2.0/tokens HTTP/1.1" 200 4876
- run(Namespace(columns=[], formatter='table', long=False, max_width=0, noindent=False, project=None, quote_mode='nonnumeric'))
- Instantiating identity client: <class 'openstackclient.identity.client.IdentityClientv2'>
- Making authentication request to http://172.16.0.3:5000/v2.0/tokens
- Resetting dropped connection: 172.16.0.3
- "POST /v2.0/tokens HTTP/1.1" 200 4876
- REQ: curl -g -i -X GET http://192.168.0.2:35357/ -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.6.0 python-requests/2.10.0 CPython/2.7.6"
- Starting new HTTP connection (1): 192.168.0.2
- ^CEND return value: 1
- KeyboardInterrupt
- root@653effb1462d:~# ping 172.16.0.3
- PING 172.16.0.3 (172.16.0.3) 56(84) bytes of data.
- 64 bytes from 172.16.0.3: icmp_seq=1 ttl=63 time=0.610 ms
- 64 bytes from 172.16.0.3: icmp_seq=2 ttl=63 time=0.422 ms
- (external network reachable OK)
- root@653effb1462d:~# ping 192.168.0.2
- PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
- (management network NOT reachable)
Advertisement
Add Comment
Please, Sign In to add comment