Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Kilo - openstack command giving errors...

openstack user list 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', '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.0', u'image_format': u'qcow2', u'object_api_version': u'1', u'image_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'1', 'cert': None, u'secgroup_source': u'neutron', u'dns_api_version': u'2', u'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', u'orchestration_api_version': u'1', u'database_api_version': u'1.0', 'cacert': None, u'network_api_version': u'2.0', u'image_format': u'qcow2', u'object_api_version': u'1', u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', 'verbose_level': '1', 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_id': 'default', 'auth_url': 'http://controller:35357/v3', 'password': '', 'project_domain_id': 'default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'deferred_help': False, u'identity_api_version': u'2.0', u'volume_api_version': u'1', 'cert': None, u'secgroup_source': u'neutron', 'debug': False, u'interface': None, u'disable_vendor_agent': {}} compute API version 2, cmd group openstack.compute.v2 network version 2.0 is not in supported versions 2 network API version 2.0, 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 2.0, cmd group openstack.identity.v2 object_store API version 1, cmd group openstack.object_store.v1 command: user list -> openstackclient.identity.v2_0.user.ListUser 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', 'password': '', '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" 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: Tue, 10 Nov 2015 15:45:05 GMT x-openstack-request-id: req-82f81a41-a00d-4193-ba1a-031f26e307a0 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 take_action(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://controller:35357/v3/auth/tokens REQ: curl -g -i -X GET http://controller:35357/ -H "Accept: application/json" -H "User-Agent: python-openstackclient" RESP: [300] Content-Length: 591 Vary: X-Auth-Token Keep-Alive: timeout=5, max=97 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 10 Nov 2015 15:45:08 GMT Content-Type: application/json X-Distribution: Ubuntu RESP BODY: {"versions": {"values": [{"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"}]}, {"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://controller:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}

REQ: curl -g -i -X GET http://controller:35357/v2.0/users -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}e33e3794a19ef2a6c2241815f8505cdbbcd02d9d" RESP: [200] Content-Length: 813 Vary: X-Auth-Token Keep-Alive: timeout=5, max=96 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 10 Nov 2015 15:45:09 GMT x-openstack-request-id: req-905f4393-ba83-45c9-b969-ea6059321279 Content-Type: application/json X-Distribution: Ubuntu RESP BODY: {"users": [{"username": "demo", "name": "demo", "enabled": true, "email": null, "id": "09d3e3260a4d4ff08c5ec8d6bea7ff3d"}, {"username": "nova", "name": "nova", "enabled": true, "email": null, "id": "4379e7708e7948a5ac9ba37f39ab1724"}, {"username": "neutron", "name": "neutron", "enabled": true, "email": null, "id": "8d153c8ca09b4b67b149a262748f5bdc"}, {"username": "admin", "name": "admin", "enabled": true, "email": null, "id": "c618ce513b7747d48d37427f18b3afad"}, {"username": "glance", "name": "glance", "enabled": true, "email": null, "id": "d68afbf0a8b4458c8e59ee2c2d15f25a"}, {"username": "cinder", "name": "cinder", "enabled": true, "email": null, "id": "e404eb654d094b1f839dbf8fabe54f08"}, {"username": "swift", "name": "swift", "enabled": true, "email": null, "id": "f859fab60b304352b5ceef229153790d"}]}

+----------------------------------+---------+ | ID | Name | +----------------------------------+---------+ | 09d3e3260a4d4ff08c5ec8d6bea7ff3d | demo | | 4379e7708e7948a5ac9ba37f39ab1724 | nova | | 8d153c8ca09b4b67b149a262748f5bdc | neutron | | c618ce513b7747d48d37427f18b3afad | admin | | d68afbf0a8b4458c8e59ee2c2d15f25a | glance | | e404eb654d094b1f839dbf8fabe54f08 | cinder | | f859fab60b304352b5ceef229153790d | swift | +----------------------------------+---------+

Kilo - openstack command giving errors...

 openstack user list
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', '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.0', u'image_format': u'qcow2', u'object_api_version': u'1', u'image_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'1', 'cert': None, u'secgroup_source': u'neutron', u'dns_api_version': u'2', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', u'orchestration_api_version': u'1', u'database_api_version': u'1.0', 'cacert': None, u'network_api_version': u'2.0', u'image_format': u'qcow2', u'object_api_version': u'1', u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', 'verbose_level': '1', 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_id': 'default', 'auth_url': 'http://controller:35357/v3', 'password': '', '***', 'project_domain_id': 'default'}, 'default_domain': 'default', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, 'deferred_help': False, u'identity_api_version': u'2.0', u'volume_api_version': u'1', 'cert': None, u'secgroup_source': u'neutron', 'debug': False, u'interface': None, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network version 2.0 is not in supported versions 2
network API version 2.0, 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 2.0, cmd group openstack.identity.v2
object_store API version 1, cmd group openstack.object_store.v1
command: user list -> openstackclient.identity.v2_0.user.ListUser
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', 'password': '', '***', '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"
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: Tue, 10 Nov 2015 15:45:05 GMT x-openstack-request-id: req-82f81a41-a00d-4193-ba1a-031f26e307a0 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 take_action(Namespace(columns=[], formatter='table', long=False, max_width=0, noindent=False, project=None, quote_mode='nonnumeric')) Instantiating identity client: <class 'openstackclient.identity.client.identityclientv2'=""> 'openstackclient.identity.client.IdentityClientv2'> Making authentication request to http://controller:35357/v3/auth/tokens REQ: curl -g -i -X GET http://controller:35357/ -H "Accept: application/json" -H "User-Agent: python-openstackclient" RESP: [300] Content-Length: 591 Vary: X-Auth-Token Keep-Alive: timeout=5, max=97 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 10 Nov 2015 15:45:08 GMT Content-Type: application/json X-Distribution: Ubuntu RESP BODY: {"versions": {"values": [{"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"}]}, {"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://controller:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}

"describedby"}]}]}}

REQ: curl -g -i -X GET http://controller:35357/v2.0/users -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}e33e3794a19ef2a6c2241815f8505cdbbcd02d9d" RESP: [200] Content-Length: 813 Vary: X-Auth-Token Keep-Alive: timeout=5, max=96 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Tue, 10 Nov 2015 15:45:09 GMT x-openstack-request-id: req-905f4393-ba83-45c9-b969-ea6059321279 Content-Type: application/json X-Distribution: Ubuntu RESP BODY: {"users": [{"username": "demo", "name": "demo", "enabled": true, "email": null, "id": "09d3e3260a4d4ff08c5ec8d6bea7ff3d"}, {"username": "nova", "name": "nova", "enabled": true, "email": null, "id": "4379e7708e7948a5ac9ba37f39ab1724"}, {"username": "neutron", "name": "neutron", "enabled": true, "email": null, "id": "8d153c8ca09b4b67b149a262748f5bdc"}, {"username": "admin", "name": "admin", "enabled": true, "email": null, "id": "c618ce513b7747d48d37427f18b3afad"}, {"username": "glance", "name": "glance", "enabled": true, "email": null, "id": "d68afbf0a8b4458c8e59ee2c2d15f25a"}, {"username": "cinder", "name": "cinder", "enabled": true, "email": null, "id": "e404eb654d094b1f839dbf8fabe54f08"}, {"username": "swift", "name": "swift", "enabled": true, "email": null, "id": "f859fab60b304352b5ceef229153790d"}]}

"f859fab60b304352b5ceef229153790d"}]}

+----------------------------------+---------+ | ID | Name | +----------------------------------+---------+ | 09d3e3260a4d4ff08c5ec8d6bea7ff3d | demo | | 4379e7708e7948a5ac9ba37f39ab1724 | nova | | 8d153c8ca09b4b67b149a262748f5bdc | neutron | | c618ce513b7747d48d37427f18b3afad | admin | | d68afbf0a8b4458c8e59ee2c2d15f25a | glance | | e404eb654d094b1f839dbf8fabe54f08 | cinder | | f859fab60b304352b5ceef229153790d | swift | +----------------------------------+---------+

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