Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
root@c14_utility_container-33c0ad2d:~# openstack project list
+----------------------------------+---------+
| ID | Name |
+----------------------------------+---------+
| 6814624cf955469f94a0c0f3ddadf537 | admin |
| 6ffac97c22b944028c4c56fa6ab275e5 | service |
| a67b1ff0c68344539dec80a928b41177 | guest |
| bae8e7d4a90448a3b42972bd89da96e7 | demo |
| e19377896761409d98db189d8b6589ad | dev |
| f574dacfba094611a782368a80e065ee | office |
+----------------------------------+---------+
openstack endpoint list
+----------------------------------+-----------+--------------+----------------+---------+-----------+--------------------------------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+----------------+---------+-----------+--------------------------------------------------------+
| 15fe2218bfe34fa7acb577605e53abb9 | RegionOne | heat-cfn | cloudformation | True | admin | http://cloud101int.admin0.com:8000/v1 |
| 1da7a0fbdf11421198264bc2401b9d5c | RegionOne | neutron | network | True | public | https://cloud101.admin0.com:9696 |
| 21700c18b6cd4aceb4c45de20d21d649 | RegionOne | cinder | volume | True | admin | http://cloud101int.admin0.com:8776/v1/%(tenant_id)s |
| 2edf6f939d83414a94562c558495e485 | RegionOne | glance | image | True | public | https://cloud101.admin0.com:9292 |
| 364208189a654430b66ab60190db3816 | RegionOne | heat-cfn | cloudformation | True | public | https://cloud101.admin0.com:8000/v1 |
| 378d1767a002445da81bd2ca283c6bdc | RegionOne | cinderv2 | volumev2 | True | internal | http://cloud101int.admin0.com:8776/v2/%(tenant_id)s |
| 48703bcc0ad54c0185bfb7b243918c9e | RegionOne | cinder | volume | True | internal | http://cloud101int.admin0.com:8776/v1/%(tenant_id)s |
| 5f16651855c249e2a4a745cadab272ee | RegionOne | heat | orchestration | True | internal | http://cloud101int.admin0.com:8004/v1/%(tenant_id)s |
| 60b652845a00431cb2e91749620b914d | RegionOne | keystone | identity | True | public | https://cloud101.admin0.com:5000/v3 |
| 652eefdeff554113bbedafae04ddf4dd | RegionOne | neutron | network | True | admin | http://cloud101int.admin0.com:9696 |
| 6faf27cb579e40598dcbafad84511606 | RegionOne | glance | image | True | admin | http://cloud101int.admin0.com:9292 |
| 75d7b75780584ba398833b42556e67ca | RegionOne | heat | orchestration | True | admin | http://cloud101int.admin0.com:8004/v1/%(tenant_id)s |
| 7e3cd5d117dd4166a997f1f9644d1718 | RegionOne | heat-cfn | cloudformation | True | internal | http://cloud101int.admin0.com:8000/v1 |
| 9826730673aa4c9d848e4106a40b5535 | RegionOne | keystone | identity | True | internal | http://cloud101int.admin0.com:5000/v3 |
| aabdf36394f047199755d7e176cc3b22 | RegionOne | glance | image | True | internal | http://cloud101int.admin0.com:9292 |
| aff7721671f949529fbae4229b08527a | RegionOne | keystone | identity | True | admin | http://cloud101int.admin0.com:35357/v3 |
| b0743a973c014f29b95c388b0dc4a084 | RegionOne | nova | compute | True | public | https://cloud101.admin0.com:8774/v2.1/%(tenant_id)s |
| b482b774a4d840df90ae8df54fef17e1 | RegionOne | nova | compute | True | internal | http://cloud101int.admin0.com:8774/v2.1/%(tenant_id)s |
| b61c61d58bdb45039168cbbdbfec9e4b | RegionOne | cinder | volume | True | public | https://cloud101.admin0.com:8776/v1/%(tenant_id)s |
| b64774b6240a45949242678dcbf2df40 | RegionOne | cinderv2 | volumev2 | True | public | https://cloud101.admin0.com:8776/v2/%(tenant_id)s |
| db3f4454a54f4b63857b93b21533818b | RegionOne | heat | orchestration | True | public | https://cloud101.admin0.com:8004/v1/%(tenant_id)s |
| e06f696746a0414dafcf0d6323aea660 | RegionOne | nova | compute | True | admin | http://cloud101int.admin0.com:8774/v2/%(tenant_id)s |
| ef872082d46748f789e42cc65604e597 | RegionOne | cinderv2 | volumev2 | True | admin | http://cloud101int.admin0.com:8776/v2/%(tenant_id)s |
| f04105aba8b040479edd63e633ae99fa | RegionOne | neutron | network | True | internal | http://cloud101int.admin0.com:9696 |
+----------------------------------+-----------+--------------+----------------+---------+-----------+--------------------------------------------------------+
openstack endpoint list | grep public
| 1da7a0fbdf11421198264bc2401b9d5c | RegionOne | neutron | network | True | public | https://cloud101.admin0.com:9696 |
| 2edf6f939d83414a94562c558495e485 | RegionOne | glance | image | True | public | https://cloud101.admin0.com:9292 |
| 364208189a654430b66ab60190db3816 | RegionOne | heat-cfn | cloudformation | True | public | https://cloud101.admin0.com:8000/v1 |
| 60b652845a00431cb2e91749620b914d | RegionOne | keystone | identity | True | public | https://cloud101.admin0.com:5000/v3 |
| b0743a973c014f29b95c388b0dc4a084 | RegionOne | nova | compute | True | public | https://cloud101.admin0.com:8774/v2.1/%(tenant_id)s |
| b61c61d58bdb45039168cbbdbfec9e4b | RegionOne | cinder | volume | True | public | https://cloud101.admin0.com:8776/v1/%(tenant_id)s |
| b64774b6240a45949242678dcbf2df40 | RegionOne | cinderv2 | volumev2 | True | public | https://cloud101.admin0.com:8776/v2/%(tenant_id)s |
| db3f4454a54f4b63857b93b21533818b | RegionOne | heat | orchestration | True | public | https://cloud101.admin0.com:8004/v1/%(tenant_id)s |
##CLIENT
export OS_AUTH_URL=https://cloud101.admin0.com:5000/v3
export OS_TENANT_ID=f574dacfba094611a782368a80e065ee
export OS_TENANT_NAME="office"
export OS_PROJECT_NAME="office"
export OS_USERNAME="office"
export OS_PASSWORD=******
export OS_REGION_NAME="RegionOne"
export OS_DOMAIN_NAME="default"
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi
$ env | grep OS_
OS_AUTH_URL=https://cloud101.admin0.com:5000/v3
OS_TENANT_ID=f574dacfba094611a782368a80e065ee
OS_TENANT_NAME=office
OS_PROJECT_NAME=office
OS_USERNAME=office
OS_PASSWORD=******
OS_REGION_NAME=RegionOne
OS_DOMAIN_NAME=default
## SERVER
root@c14_utility_container-33c0ad2d:~# openstack image list --debug > image.log 2>&1
START with options: ['image', 'list', '--debug']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://cloud101int.admin0.com:5000/v3', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', insecure=None, interface='', log_file=None, os_baremetal_api_version='1.6', os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', region_name='', scope='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None)
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'timing': False, u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.6', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://cloud101int.admin0.com:5000/v3', 'password': '***', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': None, 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
orchestration API version 1, cmd group openstack.orchestration.v1
baremetal API version 1.6, cmd group openstack.baremetal.v1
command: image list -> openstackclient.image.v2.image.ListImage
Auth plugin password selected
auth_type: password
Using auth plugin: password
Using parameters {'username': 'admin', 'project_name': 'admin', 'auth_url': 'http://cloud101int.admin0.com:5000/v3', 'user_domain_name': 'Default', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET http://cloud101int.admin0.com:5000/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2.7.6"
Starting new HTTP connection (1): cloud101int.admin0.com
"GET /v3 HTTP/1.1" 200 262
RESP: [200] Content-Length: 262 Vary: X-Auth-Token Server: Apache Date: Wed, 20 Apr 2016 08:47:53 GMT Content-Type: application/json x-openstack-request-id: req-0ecf334a-53d0-4a67-a371-d4ae0ed47409
RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://cloud101int.admin0.com:5000/v3/", "rel": "self"}]}}
Making authentication request to http://cloud101int.admin0.com:5000/v3/auth/tokens
"POST /v3/auth/tokens HTTP/1.1" 201 5678
"POST /v3/auth/tokens HTTP/1.1" 201 5678
Instantiating image api: <class 'openstackclient.api.image_v2.APIv2'>
REQ: curl -g -i -X GET https://cloud101.admin0.com:9292/v2/images -H "User-Agent: python-openstackclient keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2.7.6" -H "X-Auth-Token: {SHA1}a135a508bbdb13b7cf24f39df16392502e5be7a7"
Starting new HTTPS connection (1): cloud101.admin0.com
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
"GET /v2/images HTTP/1.1" 200 774
RESP: [200] Date: Wed, 20 Apr 2016 08:47:54 GMT Content-Length: 774 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-b8cc1276-7f74-4248-b278-a0e8e9879806
RESP BODY: {"images": [{"status": "active", "virtual_size": null, "name": "cirros-test", "tags": [], "container_format": "bare", "created_at": "2016-04-20T08:25:49Z", "size": 13287936, "disk_format": "qcow2", "updated_at": "2016-04-20T08:25:52Z", "visibility": "public", "self": "/v2/images/4d3038cb-5b01-4938-a00a-36c6e528f27d", "min_disk": 0, "protected": false, "id": "4d3038cb-5b01-4938-a00a-36c6e528f27d", "file": "/v2/images/4d3038cb-5b01-4938-a00a-36c6e528f27d/file", "checksum": "ee1eca47dc88f4879d8a229cc70a07c6", "owner": "6814624cf955469f94a0c0f3ddadf537", "direct_url": "rbd://6ee214f7-5521-41ac-b731-a1852c23fe21/glance-images/4d3038cb-5b01-4938-a00a-36c6e528f27d/snap", "min_ram": 0, "schema": "/v2/schemas/image"}], "schema": "/v2/schemas/images", "first": "/v2/images"}
clean_up ListImage:
END return value: 0
+--------------------------------------+-------------+--------+
| ID | Name | Status |
+--------------------------------------+-------------+--------+
| 4d3038cb-5b01-4938-a00a-36c6e528f27d | cirros-test | active |
+--------------------------------------+-------------+--------+
CLIENT:
openstack image list --debug > image.log 2>&1
START with options: ['image', 'list', '--debug']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='https://cloud101.admin0.com:5000/v3', cacert='', client_id='', client_secret='***', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='default', endpoint='', identity_provider='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domain_id='', project_domain_name='', project_id='f574dacfba094611a782368a80e065ee', project_name='office', protocol='', region_name='RegionOne', scope='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='', user_id='', username='office', verbose_level=3, verify=None)
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'timing': False, u'network_api_version': u'2', u'image_format': u'qcow2', u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'office', 'password': '***', 'project_name': 'office', 'user_domain_name': 'default', 'auth_url': 'https://cloud101.admin0.com:5000/v3', 'project_id': 'f574dacfba094611a782368a80e065ee', 'project_domain_name': 'default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 2.0, cmd group openstack.identity.v2
object_store API version 1, cmd group openstack.object_store.v1
command: image list -> openstackclient.image.v2.image.ListImage
Auth plugin password selected
auth_type: password
Using auth plugin: password
Using parameters {'username': 'office', 'project_id': 'f574dacfba094611a782368a80e065ee', 'project_name': 'office', 'auth_url': 'https://cloud101.admin0.com:5000/v3', 'user_domain_name': 'default', 'password': '***', 'project_domain_name': 'default'}
Get auth_ref
REQ: curl -g -i -X GET https://cloud101.admin0.com:5000/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.2.0 python-requests/2.9.1 CPython/2.7.10"
Starting new HTTPS connection (1): cloud101.admin0.com
"GET /v3 HTTP/1.1" 200 267
RESP: [200] Content-Length: 267 Vary: X-Auth-Token Server: Apache Date: Wed, 20 Apr 2016 08:50:50 GMT Content-Type: application/json x-openstack-request-id: req-0f829bd9-4a41-4591-9e48-ff9c6d89d335
RESP BODY: {"version": {"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "https, https://cloud101.admin0.com:5000/v3/", "rel": "self"}]}}
Making authentication request to https, https://cloud101.admin0.com:5000/v3/auth/tokens
Could not find requested endpoint in Service Catalog.
Traceback (most recent call last):
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/cliff/app.py", line 367, in run_subcommand
self.prepare_to_run_command(cmd)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/openstackclient/shell.py", line 352, in prepare_to_run_command
self.client_manager.auth_ref
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/openstackclient/common/clientmanager.py", line 191, in auth_ref
self._auth_ref = self.auth.get_auth_ref(self.session)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 186, in get_auth_ref
return self._plugin.get_auth_ref(session, **kwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/base.py", line 190, in get_auth_ref
authenticated=False, log=False, **rkwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneauth1/session.py", line 545, in post
return self.request(url, 'POST', **kwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/openstackclient/common/session.py", line 40, in request
resp = super(TimingSession, self).request(url, method, **kwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneauth1/_utils.py", line 180, in inner
return func(*args, **kwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneauth1/session.py", line 367, in request
raise exceptions.EndpointNotFound()
EndpointNotFound: Could not find requested endpoint in Service Catalog.
clean_up ListImage: Could not find requested endpoint in Service Catalog.
Traceback (most recent call last):
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/openstackclient/shell.py", line 113, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/cliff/app.py", line 255, in run
result = self.run_subcommand(remainder)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/cliff/app.py", line 367, in run_subcommand
self.prepare_to_run_command(cmd)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/openstackclient/shell.py", line 352, in prepare_to_run_command
self.client_manager.auth_ref
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/openstackclient/common/clientmanager.py", line 191, in auth_ref
self._auth_ref = self.auth.get_auth_ref(self.session)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneclient/auth/identity/generic/base.py", line 186, in get_auth_ref
return self._plugin.get_auth_ref(session, **kwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneclient/auth/identity/v3/base.py", line 190, in get_auth_ref
authenticated=False, log=False, **rkwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneauth1/session.py", line 545, in post
return self.request(url, 'POST', **kwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/openstackclient/common/session.py", line 40, in request
resp = super(TimingSession, self).request(url, method, **kwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneauth1/_utils.py", line 180, in inner
return func(*args, **kwargs)
File "/Users/admin/shashi/virtualenvs/stack/lib/python2.7/site-packages/keystoneauth1/session.py", line 367, in request
raise exceptions.EndpointNotFound()
EndpointNotFound: Could not find requested endpoint in Service Catalog.
END return value: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment