[root@node1 ~(keystone_admin)]# nova --debug boot --flavor test --image cirros_64 --nic net-id=7ed7972b-beec-4b79-8052-4f90edfed894 --security-group default --key-name mykey vm1
DEBUG (session:198) REQ: curl -g -i -X GET http://192.168.112.5:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:213) Starting new HTTP connection (1): 192.168.112.5
DEBUG (connectionpool:395) "GET /v3 HTTP/1.1" 200 253
DEBUG (session:215) RESP: [200] Date: Sat, 02 Jul 2016 12:37:45 GMT Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Vary: X-Auth-Token x-openstack-request-id: req-c7a261f9-8a4a-4852-9bad-a6c7a6ee22fe Content-Length: 253 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
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://192.168.112.5:35357/v3/", "rel": "self"}]}}
DEBUG (base:188) Making authentication request to http://192.168.112.5:35357/v3/auth/tokens
DEBUG (connectionpool:395) "POST /v3/auth/tokens HTTP/1.1" 201 2838
DEBUG (session:198) REQ: curl -g -i -X GET http://192.168.112.5:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}9f5525187979335d0c746b4be5ade9518753817e"
INFO (connectionpool:213) Starting new HTTP connection (1): 192.168.112.5
DEBUG (connectionpool:395) "GET /v2/ HTTP/1.1" 200 378
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 378 X-Compute-Request-Id: req-8621dcf8-3a2d-4b94-9143-7c09fe485514 Date: Sat, 02 Jul 2016 12:37:47 GMT Connection: keep-alive
RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://192.168.112.5:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}
DEBUG (session:198) REQ: curl -g -i -X GET http://192.168.112.5:8774/v2/60e ... ac485044d835/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}9f5525187979335d0c746b4be5ade9518753817e"
DEBUG (connectionpool:395) "GET /v2/60e388725c71466d9e28ac485044d835/images HTTP/1.1" 200 507
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 507 X-Compute-Request-Id: req-d15cb7a9-b567-48d2-b703-ad4bf67039ea Date: Sat, 02 Jul 2016 12:37:49 GMT Connection: keep-alive
RESP BODY: {"images": [{"id": "c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/images/c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/images/c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "rel": "bookmark"}, {"href": "http://192.168.112.5:9292/images/c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros_64"}]}
DEBUG (session:198) REQ: curl -g -i -X GET http://192.168.112.5:8774/v2/60e ... b-b4ec-c5e6c36fbcfb -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}9f5525187979335d0c746b4be5ade9518753817e"
DEBUG (connectionpool:395) "GET /v2/60e388725c71466d9e28ac485044d835/images/c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb HTTP/1.1" 200 688
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 688 X-Compute-Request-Id: req-9e7b0010-5326-4855-b1d4-a090200f2a0f Date: Sat, 02 Jul 2016 12:37:49 GMT Connection: keep-alive
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-06-28T05:49:40Z", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/images/c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/images/c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "rel": "bookmark"}, {"href": "http://192.168.112.5:9292/images/c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "OS-EXT-IMG-SIZE:size": 13287936, "name": "cirros_64", "created": "2016-06-28T05:49:38Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}
DEBUG (session:198) REQ: curl -g -i -X GET http://192.168.112.5:8774/v2/60e ... 44d835/flavors/test -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}9f5525187979335d0c746b4be5ade9518753817e"
DEBUG (connectionpool:395) "GET /v2/60e388725c71466d9e28ac485044d835/flavors/test HTTP/1.1" 404 77
DEBUG (session:215) RESP: [404] Content-Length: 77 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-80135d89-5b07-4a65-8d92-be7089c93f28 Date: Sat, 02 Jul 2016 12:37:49 GMT Connection: keep-alive
RESP BODY: {"itemNotFound": {"message": "Flavor test could not be found.", "code": 404}}
DEBUG (session:198) REQ: curl -g -i -X GET http://192.168.112.5:8774/v2/60e ... vors?is_public=None -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}9f5525187979335d0c746b4be5ade9518753817e"
DEBUG (connectionpool:395) "GET /v2/60e388725c71466d9e28ac485044d835/flavors?is_public=None HTTP/1.1" 200 1480
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 1480 X-Compute-Request-Id: req-2776cdda-4bde-4bfb-8dec-61b98d542853 Date: Sat, 02 Jul 2016 12:37:50 GMT Connection: keep-alive
RESP BODY: {"flavors": [{"id": "1", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/flavors/1", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/flavors/2", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/flavors/3", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/flavors/4", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/flavors/5", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}, {"id": "6", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/flavors/6", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/flavors/6", "rel": "bookmark"}], "name": "test"}]}
DEBUG (session:198) REQ: curl -g -i -X GET http://192.168.112.5:8774/v2/60e ... 85044d835/flavors/6 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}9f5525187979335d0c746b4be5ade9518753817e"
DEBUG (connectionpool:395) "GET /v2/60e388725c71466d9e28ac485044d835/flavors/6 HTTP/1.1" 200 420
DEBUG (session:215) RESP: [200] Content-Type: application/json Content-Length: 420 X-Compute-Request-Id: req-0520e499-2642-4c55-b4fa-72015ee72b99 Date: Sat, 02 Jul 2016 12:37:50 GMT Connection: keep-alive
RESP BODY: {"flavor": {"name": "test", "links": [{"href": "http://192.168.112.5:8774/v2/60e388725c71466d9e28ac485044d835/flavors/6", "rel": "self"}, {"href": "http://192.168.112.5:8774/60e388725c71466d9e28ac485044d835/flavors/6", "rel": "bookmark"}], "ram": 64, "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": "6"}}
DEBUG (session:198) REQ: curl -g -i -X POST http://192.168.112.5:8774/v2/60e ... c485044d835/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}9f5525187979335d0c746b4be5ade9518753817e" -d '{"server": {"name": "vm1", "imageRef": "c3d69f86-dace-4ffb-b4ec-c5e6c36fbcfb", "key_name": "mykey", "flavorRef": "6", "max_count": 1, "min_count": 1, "networks": [{"uuid": "7ed7972b-beec-4b79-8052-4f90edfed894"}], "security_groups": [{"name": "default"}]}}'
DEBUG (connectionpool:395) "POST /v2/60e388725c71466d9e28ac485044d835/servers HTTP/1.1" 500 210
DEBUG (session:215) RESP: [500] Content-Length: 210 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-932a66db-85ae-421a-ad3b-ec9b0fe23f1e Date: Sat, 02 Jul 2016 12:38:16 GMT Connection: keep-alive
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'keystoneclient.exceptions.BadRequest'>", "code": 500}}
DEBUG (shell:905) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-932a66db-85ae-421a-ad3b-ec9b0fe23f1e)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 903, in main
OpenStackComputeShell().main(argv)
File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 830, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 520, in do_boot
server = cs.servers.create(*boot_args, **boot_kwargs)
File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 942, in create
**boot_kwargs)
File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 540, in _boot
return_raw=return_raw, **kwargs)
File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 169, in _create
_resp, body = self.api.client.post(url, body=body)
File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 176, in post
return self.request(url, 'POST', **kwargs)
File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 93, in request
raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-932a66db-85ae-421a-ad3b-ec9b0fe23f1e)
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneclient.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-932a66db-85ae-421a-ad3b-ec9b0fe23f1e)
------------------------------------------------------------------------------------------------------------------------------------------------------------
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions [req-932a66db-85ae-421a-ad3b-ec9b0fe23f1e 55052e797dcc4dbe8b84f0bcf69f243f 60e388725c71466d9e28ac485044d835 - - -] Unexpected exception in API method
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 611, in create
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions **create_kwargs)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 149, in inner
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1587, in create
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1187, in _create_instance
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions auto_disk_config, reservation_id, max_count)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 961, in _validate_and_build_base_options
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions pci_request_info, requested_networks)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1092, in create_pci_requests_for_sriov_ports
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions neutron = get_client(context, admin=True)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 237, in get_client
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions auth_token = _ADMIN_AUTH.get_token(_SESSION)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 200, in get_token
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions return self.get_access(session).auth_token
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py", line 240, in get_access
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions self.auth_ref = self.get_auth_ref(session)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions authenticated=False, log=False)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 501, in post
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions return self.request(url, 'POST', **kwargs)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 337, in inner
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 401, in request
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions raise exceptions.from_response(resp, method, url)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions BadRequest: Expecting to find username or userId in passwordCredentials - the server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-b7e644d2-d34d-4393-91e4-2adf019141a7)
2016-07-02 20:38:16.010 3454 ERROR nova.api.openstack.extensions
http://www.aboutyun.com/thread-16049-1-1.html和这个帖子相同的问题
|