Advertisement
andrewboring

Openstack launch instance Debug

Jul 5th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.22 KB | None | 0 0
  1. [root@vmcontrol ~]# openstack --debug server create --flavor m1.tiny --image cirros --nic d92019ea-dd4f-450d-a668-f8b942256735 --security-group default --key-name mykey newinstance
  2. START with options: ['--debug', 'server', 'create', '--flavor', 'm1.tiny', '--image', 'cirros', '--nic', 'd92019ea-dd4f-450d-a668-f8b942256735', '--security-group', 'default', '--key-name', 'mykey', 'newinstance']
  3. options: Namespace(access_token_endpoint='', auth_type='', auth_url='http://identity.api.internal.a10g.com:5000/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_dns_api_version='2', 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='***', profile=None, project_domain_id='', project_domain_name='default', project_id='', project_name='demo', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='default', user_id='', username='demo', verbose_level=3, verify=None)
  4. 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': {}}
  5. 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': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'demo', 'project_name': 'demo', 'user_domain_name': 'default', 'auth_url': 'http://identity.api.internal.a10g.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': 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': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}}
  6. compute API version 2, cmd group openstack.compute.v2
  7. network API version 2, cmd group openstack.network.v2
  8. image API version 2, cmd group openstack.image.v2
  9. volume API version 2, cmd group openstack.volume.v2
  10. identity API version 3, cmd group openstack.identity.v3
  11. object_store API version 1, cmd group openstack.object_store.v1
  12. dns API version 2, cmd group openstack.dns.v2
  13. command: server create -> openstackclient.compute.v2.server.CreateServer
  14. Auth plugin password selected
  15. auth_type: password
  16. Using auth plugin: password
  17. Using parameters {'username': 'demo', 'project_name': 'demo', 'auth_url': 'http://identity.api.internal.a10g.com:5000/v3', 'user_domain_name': 'default', 'password': '***', 'project_domain_name': 'default'}
  18. Get auth_ref
  19. REQ: curl -g -i -X GET http://identity.api.internal.a10g.com:5000/v3 -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.4.1 python-requests/2.10.0 CPython/2.7.5"
  20. Starting new HTTP connection (1): identity.api.internal.a10g.com
  21. "GET /v3 HTTP/1.1" 200 269
  22. RESP: [200] Date: Tue, 05 Jul 2016 22:08:10 GMT Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-81630dba-a112-458b-a10d-a19ff252c70f Content-Length: 269 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
  23. 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://identity.api.internal.a10g.com:5000/v3/", "rel": "self"}]}}
  24.  
  25. Making authentication request to http://identity.api.internal.a10g.com:5000/v3/auth/tokens
  26. "POST /v3/auth/tokens HTTP/1.1" 201 2987
  27. run(Namespace(availability_zone=None, block_device_mapping=[], columns=[], config_drive=False, file=[], flavor='m1.tiny', formatter='table', hint=[], image='cirros', key_name='mykey', max=1, max_width=0, min=1, nic=['d92019ea-dd4f-450d-a668-f8b942256735'], noindent=False, prefix='', property=None, security_group=['default'], server_name='newinstance', user_data=None, variables=[], volume=None, wait=False))
  28. Instantiating compute client for VAPI Version Major: 2, Minor: 0
  29. Instantiating volume client: <class 'cinderclient.v2.client.Client'>
  30. Making authentication request to http://identity.api.internal.a10g.com:5000/v3/auth/tokens
  31. "POST /v3/auth/tokens HTTP/1.1" 201 2987
  32. REQ: curl -g -i -X GET http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/images/cirros -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}021302bd3280a89048f6b4187b545296d541b97d"
  33. Starting new HTTP connection (1): compute.api.cloud.a10g.com
  34. "GET /v2.1/d8395cb74614432aa326ce3def998551/images/cirros HTTP/1.1" 404 62
  35. RESP: [404] X-Openstack-Nova-Api-Version: 2.1 Vary: X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 62 X-Compute-Request-Id: req-9c03c187-75a5-4352-b20a-eb6e3ff6c35b Date: Tue, 05 Jul 2016 22:08:11 GMT Connection: keep-alive
  36. RESP BODY: {"itemNotFound": {"message": "Image not found.", "code": 404}}
  37.  
  38. REQ: curl -g -i -X GET http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}021302bd3280a89048f6b4187b545296d541b97d"
  39. "GET /v2.1/d8395cb74614432aa326ce3def998551/images HTTP/1.1" 200 531
  40. RESP: [200] Content-Length: 531 Content-Type: application/json X-Openstack-Nova-Api-Version: 2.1 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-faa986b4-8ff2-4000-9230-d9e5f89cd54a Date: Tue, 05 Jul 2016 22:08:11 GMT Connection: keep-alive
  41. RESP BODY: {"images": [{"id": "a46b2bcc-895d-4d09-8311-28726c12dd00", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/images/a46b2bcc-895d-4d09-8311-28726c12dd00", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/images/a46b2bcc-895d-4d09-8311-28726c12dd00", "rel": "bookmark"}, {"href": "http://192.168.21.5:9292/images/a46b2bcc-895d-4d09-8311-28726c12dd00", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros"}]}
  42.  
  43. REQ: curl -g -i -X GET http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/images/a46b2bcc-895d-4d09-8311-28726c12dd00 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}021302bd3280a89048f6b4187b545296d541b97d"
  44. "GET /v2.1/d8395cb74614432aa326ce3def998551/images/a46b2bcc-895d-4d09-8311-28726c12dd00 HTTP/1.1" 200 712
  45. RESP: [200] Content-Length: 712 Content-Type: application/json X-Openstack-Nova-Api-Version: 2.1 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-d0262f62-14a8-4080-8f70-45deb8836451 Date: Tue, 05 Jul 2016 22:08:11 GMT Connection: keep-alive
  46. RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-06-26T18:12:12Z", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/images/a46b2bcc-895d-4d09-8311-28726c12dd00", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/images/a46b2bcc-895d-4d09-8311-28726c12dd00", "rel": "bookmark"}, {"href": "http://192.168.21.5:9292/images/a46b2bcc-895d-4d09-8311-28726c12dd00", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "a46b2bcc-895d-4d09-8311-28726c12dd00", "OS-EXT-IMG-SIZE:size": 13287936, "name": "cirros", "created": "2016-06-26T18:12:11Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}
  47.  
  48. REQ: curl -g -i -X GET http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/m1.tiny -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}021302bd3280a89048f6b4187b545296d541b97d"
  49. "GET /v2.1/d8395cb74614432aa326ce3def998551/flavors/m1.tiny HTTP/1.1" 404 80
  50. RESP: [404] X-Openstack-Nova-Api-Version: 2.1 Vary: X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 80 X-Compute-Request-Id: req-89ea0ff0-9009-4c56-bde8-58629423d032 Date: Tue, 05 Jul 2016 22:08:11 GMT Connection: keep-alive
  51. RESP BODY: {"itemNotFound": {"message": "Flavor m1.tiny could not be found.", "code": 404}}
  52.  
  53. REQ: curl -g -i -X GET http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}021302bd3280a89048f6b4187b545296d541b97d"
  54. "GET /v2.1/d8395cb74614432aa326ce3def998551/flavors HTTP/1.1" 200 1651
  55. RESP: [200] Content-Length: 1651 Content-Type: application/json X-Openstack-Nova-Api-Version: 2.1 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-ef965d1a-0cbb-4e1f-91bb-d83dcd4a354b Date: Tue, 05 Jul 2016 22:08:11 GMT Connection: keep-alive
  56. RESP BODY: {"flavors": [{"id": "0", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/0", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/flavors/0", "rel": "bookmark"}], "name": "m1.nano"}, {"id": "1", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/1", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/2", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/3", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/4", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/5", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}]}
  57.  
  58. REQ: curl -g -i -X GET http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/1 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}021302bd3280a89048f6b4187b545296d541b97d"
  59. "GET /v2.1/d8395cb74614432aa326ce3def998551/flavors/1 HTTP/1.1" 200 452
  60. RESP: [200] Content-Length: 452 Content-Type: application/json X-Openstack-Nova-Api-Version: 2.1 Vary: X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-9f407577-60cd-49f2-bfb6-c54d5a51e9a8 Date: Tue, 05 Jul 2016 22:08:11 GMT Connection: keep-alive
  61. RESP BODY: {"flavor": {"name": "m1.tiny", "links": [{"href": "http://compute.api.cloud.a10g.com:8774/v2.1/d8395cb74614432aa326ce3def998551/flavors/1", "rel": "self"}, {"href": "http://compute.api.cloud.a10g.com:8774/d8395cb74614432aa326ce3def998551/flavors/1", "rel": "bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 1, "id": "1"}}
  62.  
  63. dictionary update sequence element #0 has length 1; 2 is required
  64. Traceback (most recent call last):
  65. File "/usr/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
  66. result = cmd.run(parsed_args)
  67. File "/usr/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in run
  68. return super(Command, self).run(parsed_args)
  69. File "/usr/lib/python2.7/site-packages/cliff/display.py", line 79, in run
  70. column_names, data = self.take_action(parsed_args)
  71. File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 449, in take_action
  72. for kv_str in nic_str.split(",")))
  73. ValueError: dictionary update sequence element #0 has length 1; 2 is required
  74. clean_up CreateServer: dictionary update sequence element #0 has length 1; 2 is required
  75. Traceback (most recent call last):
  76. File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 118, in run
  77. ret_val = super(OpenStackShell, self).run(argv)
  78. File "/usr/lib/python2.7/site-packages/cliff/app.py", line 226, in run
  79. result = self.run_subcommand(remainder)
  80. File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 153, in run_subcommand
  81. ret_value = super(OpenStackShell, self).run_subcommand(argv)
  82. File "/usr/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
  83. result = cmd.run(parsed_args)
  84. File "/usr/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in run
  85. return super(Command, self).run(parsed_args)
  86. File "/usr/lib/python2.7/site-packages/cliff/display.py", line 79, in run
  87. column_names, data = self.take_action(parsed_args)
  88. File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 449, in take_action
  89. for kv_str in nic_str.split(",")))
  90. ValueError: dictionary update sequence element #0 has length 1; 2 is required
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement