Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Here's the output to openstack --debug image list

root@controller:/home/mrahma04# openstack --debug image list START with options: ['--debug', 'image', 'list'] options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://controller:35357/v3', cacert='', client_id='', client_secret='', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='Ipc2904', project_domain_id='default', project_domain_name='', project_id='', project_name='admin', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='', trust_id='', url='', user_domain_id='default', user_domain_name='', user_id='', username='admin', verbose_level=3, verify=None) defaults: {'auth_type': 'password', 'compute_api_version': '2', 'database_api_version': '1.0', 'api_timeout': None, 'baremetal_api_version': '1', 'cacert': None, 'image_api_use_tasks': False, 'floating_ip_source': 'neutron', 'key': None, 'interface': None, 'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '1', 'verify': True, 'identity_api_version': '2', 'volume_api_version': '1', 'cert': None, 'secgroup_source': 'neutron', 'dns_api_version': '2', 'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'password', 'compute_api_version': '2', 'database_api_version': '1.0', 'interface': None, 'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '2', 'verify': True, 'timing': False, 'dns_api_version': '2', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, 'baremetal_api_version': '1', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_id': 'default', 'tenant_name': 'admin', 'auth_url': 'http://controller:35357/v3', 'password': 'Ipc2904', 'project_domain_id': 'default'}, 'default_domain': 'default', 'image_api_use_tasks': False, 'floating_ip_source': 'neutron', 'key': None, 'cacert': None, 'deferred_help': False, 'identity_api_version': '3', 'volume_api_version': '1', 'cert': None, 'secgroup_source': 'neutron', 'debug': True, '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 1, cmd group openstack.volume.v1 identity API version 3, cmd group openstack.identity.v3 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': 'admin', 'project_name': 'admin', 'auth_url': 'http://controller:35357/v3', 'user_domain_id': 'default', 'tenant_name': 'admin', 'password': 'Ipc2904', 'project_domain_id': 'default'} Get auth_ref REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient" Starting new HTTP connection (1): controller "GET /v3 HTTP/1.1" 200 250 RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Thu, 19 Nov 2015 06:34:11 GMT x-openstack-request-id: req-180f88c8-987a-44ae-9450-5c054681f6af Content-Type: application/json X-Distribution: Ubuntu RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

Making authentication request to http://controller:35357/v3/auth/tokens "POST /v3/auth/tokens HTTP/1.1" 201 2257 take_action(Namespace(columns=[], formatter='table', long=False, max_width=0, page_size=None, private=False, property=None, public=False, quote_mode='nonnumeric', shared=False, sort=None)) Instantiating image client: <class 'glanceclient.v2.client.client'=""> Making authentication request to http://controller:35357/v3/auth/tokens "POST /v3/auth/tokens HTTP/1.1" 201 2257 Instantiating image api: <class 'openstackclient.api.image_v2.apiv2'=""> REQ: curl -g -i -X GET http://controller:9292/v2/images -H "User-Agent: python-openstackclient" -H "X-Auth-Token: {SHA1}278e5f44d7124b70cf7cb29ff7a3d90f8b2948f8" Starting new HTTP connection (1): controller "GET /v2/images HTTP/1.1" 200 653 RESP: [200] Date: Thu, 19 Nov 2015 06:34:12 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 653 X-Openstack-Request-Id: req-5a17fcb7-4f1d-4741-9eb7-443556f857c0 RESP BODY: {"images": [{"status": "active", "name": "cirros", "tags": [], "container_format": "bare", "created_at": "2015-11-18T04:06:05Z", "size": 13287936, "disk_format": "qcow2", "updated_at": "2015-11-18T04:06:05Z", "visibility": "public", "self": "/v2/images/209cf179-9b8d-449a-8b12-081ec40a9f1a", "min_disk": 0, "protected": false, "id": "209cf179-9b8d-449a-8b12-081ec40a9f1a", "file": "/v2/images/209cf179-9b8d-449a-8b12-081ec40a9f1a/file", "checksum": "ee1eca47dc88f4879d8a229cc70a07c6", "owner": "4d78674056b04c0bbcfc13946ac66c60", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}], "schema": "/v2/schemas/images", "first": "/v2/images"}

REQ: curl -g -i -X GET http://controller:9292/v2/images -H "User-Agent: python-openstackclient" -H "X-Auth-Token: {SHA1}278e5f44d7124b70cf7cb29ff7a3d90f8b2948f8" "GET /v2/images?marker=209cf179-9b8d-449a-8b12-081ec40a9f1a HTTP/1.1" 200 69 RESP: [200] Date: Thu, 19 Nov 2015 06:34:12 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 69 X-Openstack-Request-Id: req-0e98b29d-1b1c-42fa-9940-27c73cd8f743 RESP BODY: {"images": [], "schema": "/v2/schemas/images", "first": "/v2/images"}

+--------------------------------------+--------+ | ID | Name | +--------------------------------------+--------+ | 209cf179-9b8d-449a-8b12-081ec40a9f1a | cirros | +--------------------------------------+--------+ clean_up ListImage: END return value: 0

Glance seems to be working

root@controller:/home/mrahma04# glance image-list +--------------------------------------+--------+ | ID | Name | +--------------------------------------+--------+ | 209cf179-9b8d-449a-8b12-081ec40a9f1a | cirros | +--------------------------------------+--------+

Here's the output to openstack --debug image list

root@controller:/home/mrahma04# openstack --debug image list
START with options: ['--debug', 'image', 'list']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://controller:35357/v3', cacert='', client_id='', client_secret='', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='2', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='Ipc2904', project_domain_id='default', project_domain_name='', project_id='', project_name='admin', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='', trust_id='', url='', user_domain_id='default', user_domain_name='', user_id='', username='admin', verbose_level=3, verify=None)
defaults: {'auth_type': 'password', 'compute_api_version': '2', 'database_api_version': '1.0', 'api_timeout': None, 'baremetal_api_version': '1', 'cacert': None, 'image_api_use_tasks': False, 'floating_ip_source': 'neutron', 'key': None, 'interface': None, 'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '1', 'verify': True, 'identity_api_version': '2', 'volume_api_version': '1', 'cert': None, 'secgroup_source': 'neutron', 'dns_api_version': '2', 'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'compute_api_version': '2', 'database_api_version': '1.0', 'interface': None, 'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '2', 'verify': True, 'timing': False, 'dns_api_version': '2', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, 'baremetal_api_version': '1', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_id': 'default', 'tenant_name': 'admin', 'auth_url': 'http://controller:35357/v3', 'password': 'Ipc2904', 'project_domain_id': 'default'}, 'default_domain': 'default', 'image_api_use_tasks': False, 'floating_ip_source': 'neutron', 'key': None, 'cacert': None, 'deferred_help': False, 'identity_api_version': '3', 'volume_api_version': '1', 'cert': None, 'secgroup_source': 'neutron', 'debug': True, '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 1, cmd group openstack.volume.v1
identity API version 3, cmd group openstack.identity.v3
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': 'admin', 'project_name': 'admin', 'auth_url': 'http://controller:35357/v3', 'user_domain_id': 'default', 'tenant_name': 'admin', 'password': 'Ipc2904', 'project_domain_id': 'default'}
Get auth_ref
REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient"
Starting new HTTP connection (1): controller
"GET /v3 HTTP/1.1" 200 250
RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Thu, 19 Nov 2015 06:34:11 GMT x-openstack-request-id: req-180f88c8-987a-44ae-9450-5c054681f6af Content-Type: application/json X-Distribution: Ubuntu 
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}

"self"}]}} Making authentication request to http://controller:35357/v3/auth/tokens "POST /v3/auth/tokens HTTP/1.1" 201 2257 take_action(Namespace(columns=[], formatter='table', long=False, max_width=0, page_size=None, private=False, property=None, public=False, quote_mode='nonnumeric', shared=False, sort=None)) Instantiating image client: <class 'glanceclient.v2.client.client'=""> 'glanceclient.v2.client.Client'> Making authentication request to http://controller:35357/v3/auth/tokens "POST /v3/auth/tokens HTTP/1.1" 201 2257 Instantiating image api: <class 'openstackclient.api.image_v2.apiv2'=""> 'openstackclient.api.image_v2.APIv2'> REQ: curl -g -i -X GET http://controller:9292/v2/images -H "User-Agent: python-openstackclient" -H "X-Auth-Token: {SHA1}278e5f44d7124b70cf7cb29ff7a3d90f8b2948f8" Starting new HTTP connection (1): controller "GET /v2/images HTTP/1.1" 200 653 RESP: [200] Date: Thu, 19 Nov 2015 06:34:12 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 653 X-Openstack-Request-Id: req-5a17fcb7-4f1d-4741-9eb7-443556f857c0 RESP BODY: {"images": [{"status": "active", "name": "cirros", "tags": [], "container_format": "bare", "created_at": "2015-11-18T04:06:05Z", "size": 13287936, "disk_format": "qcow2", "updated_at": "2015-11-18T04:06:05Z", "visibility": "public", "self": "/v2/images/209cf179-9b8d-449a-8b12-081ec40a9f1a", "min_disk": 0, "protected": false, "id": "209cf179-9b8d-449a-8b12-081ec40a9f1a", "file": "/v2/images/209cf179-9b8d-449a-8b12-081ec40a9f1a/file", "checksum": "ee1eca47dc88f4879d8a229cc70a07c6", "owner": "4d78674056b04c0bbcfc13946ac66c60", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}], "schema": "/v2/schemas/images", "first": "/v2/images"}

"/v2/images"} REQ: curl -g -i -X GET http://controller:9292/v2/images -H "User-Agent: python-openstackclient" -H "X-Auth-Token: {SHA1}278e5f44d7124b70cf7cb29ff7a3d90f8b2948f8" "GET /v2/images?marker=209cf179-9b8d-449a-8b12-081ec40a9f1a HTTP/1.1" 200 69 RESP: [200] Date: Thu, 19 Nov 2015 06:34:12 GMT Connection: keep-alive Content-Type: application/json; charset=UTF-8 Content-Length: 69 X-Openstack-Request-Id: req-0e98b29d-1b1c-42fa-9940-27c73cd8f743 RESP BODY: {"images": [], "schema": "/v2/schemas/images", "first": "/v2/images"}

"/v2/images"} +--------------------------------------+--------+ | ID | Name | +--------------------------------------+--------+ | 209cf179-9b8d-449a-8b12-081ec40a9f1a | cirros | +--------------------------------------+--------+ clean_up ListImage: END return value: 0

0

Glance seems to be working

root@controller:/home/mrahma04# glance image-list
+--------------------------------------+--------+
| ID                                   | Name   |
+--------------------------------------+--------+
| 209cf179-9b8d-449a-8b12-081ec40a9f1a | cirros |
+--------------------------------------+--------+

+--------------------------------------+--------+