Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@vmcontrol ~]# openstack --debug server create --flavor m1.tiny --image cirros --nic d92019ea-dd4f-450d-a668-f8b942256735 --security-group default --key-name mykey newinstance
- START with options: ['--debug', 'server', 'create', '--flavor', 'm1.tiny', '--image', 'cirros', '--nic', 'd92019ea-dd4f-450d-a668-f8b942256735', '--security-group', 'default', '--key-name', 'mykey', 'newinstance']
- 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)
- 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': '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': {}}
- 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
- dns API version 2, cmd group openstack.dns.v2
- command: server create -> openstackclient.compute.v2.server.CreateServer
- Auth plugin password selected
- auth_type: password
- Using auth plugin: password
- 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'}
- Get auth_ref
- 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"
- Starting new HTTP connection (1): identity.api.internal.a10g.com
- "GET /v3 HTTP/1.1" 200 269
- 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
- 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"}]}}
- Making authentication request to http://identity.api.internal.a10g.com:5000/v3/auth/tokens
- "POST /v3/auth/tokens HTTP/1.1" 201 2987
- 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))
- Instantiating compute client for VAPI Version Major: 2, Minor: 0
- Instantiating volume client: <class 'cinderclient.v2.client.Client'>
- Making authentication request to http://identity.api.internal.a10g.com:5000/v3/auth/tokens
- "POST /v3/auth/tokens HTTP/1.1" 201 2987
- 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"
- Starting new HTTP connection (1): compute.api.cloud.a10g.com
- "GET /v2.1/d8395cb74614432aa326ce3def998551/images/cirros HTTP/1.1" 404 62
- 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
- RESP BODY: {"itemNotFound": {"message": "Image not found.", "code": 404}}
- 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"
- "GET /v2.1/d8395cb74614432aa326ce3def998551/images HTTP/1.1" 200 531
- 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
- 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"}]}
- 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"
- "GET /v2.1/d8395cb74614432aa326ce3def998551/images/a46b2bcc-895d-4d09-8311-28726c12dd00 HTTP/1.1" 200 712
- 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
- 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": {}}}
- 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"
- "GET /v2.1/d8395cb74614432aa326ce3def998551/flavors/m1.tiny HTTP/1.1" 404 80
- 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
- RESP BODY: {"itemNotFound": {"message": "Flavor m1.tiny could not be found.", "code": 404}}
- 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"
- "GET /v2.1/d8395cb74614432aa326ce3def998551/flavors HTTP/1.1" 200 1651
- 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
- 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"}]}
- 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"
- "GET /v2.1/d8395cb74614432aa326ce3def998551/flavors/1 HTTP/1.1" 200 452
- 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
- 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"}}
- dictionary update sequence element #0 has length 1; 2 is required
- Traceback (most recent call last):
- File "/usr/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
- result = cmd.run(parsed_args)
- File "/usr/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in run
- return super(Command, self).run(parsed_args)
- File "/usr/lib/python2.7/site-packages/cliff/display.py", line 79, in run
- column_names, data = self.take_action(parsed_args)
- File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 449, in take_action
- for kv_str in nic_str.split(",")))
- ValueError: dictionary update sequence element #0 has length 1; 2 is required
- clean_up CreateServer: dictionary update sequence element #0 has length 1; 2 is required
- Traceback (most recent call last):
- File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 118, in run
- ret_val = super(OpenStackShell, self).run(argv)
- File "/usr/lib/python2.7/site-packages/cliff/app.py", line 226, in run
- result = self.run_subcommand(remainder)
- File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 153, in run_subcommand
- ret_value = super(OpenStackShell, self).run_subcommand(argv)
- File "/usr/lib/python2.7/site-packages/cliff/app.py", line 346, in run_subcommand
- result = cmd.run(parsed_args)
- File "/usr/lib/python2.7/site-packages/openstackclient/common/command.py", line 38, in run
- return super(Command, self).run(parsed_args)
- File "/usr/lib/python2.7/site-packages/cliff/display.py", line 79, in run
- column_names, data = self.take_action(parsed_args)
- File "/usr/lib/python2.7/site-packages/openstackclient/compute/v2/server.py", line 449, in take_action
- for kv_str in nic_str.split(",")))
- ValueError: dictionary update sequence element #0 has length 1; 2 is required
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement