yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04274
[Bug 1215198] Re: failed to create instance
This isn't a bug per se, this is more of a support request, and for that
you should go to the mailing list:
https://wiki.openstack.org/wiki/Mailing_Lists
Are you using tempest from the same time as grizzly-1?
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1215198
Title:
failed to create instance
Status in OpenStack Compute (Nova):
Invalid
Bug description:
The tempest test
tempest.api.compute.servers.test_list_server_filters.ListServerFiltersTestJSON
is failing with an error of
Traceback (most recent call last):
File "/var/lib/jenkins/workspace/OpenStack-Tempest/.venv/lib/python2.6/site-packages/nose/suite.py", line 208, in run
self.setUp()
File "/var/lib/jenkins/workspace/OpenStack-Tempest/.venv/lib/python2.6/site-packages/nose/suite.py", line 291, in setUp
self.setupContext(ancestor)
File "/var/lib/jenkins/workspace/OpenStack-Tempest/.venv/lib/python2.6/site-packages/nose/suite.py", line 314, in setupContext
try_run(context, names)
File "/var/lib/jenkins/workspace/OpenStack-Tempest/.venv/lib/python2.6/site-packages/nose/util.py", line 469, in try_run
return func()
File "/var/lib/jenkins/workspace/OpenStack-Tempest/tempest/api/compute/servers/test_list_server_filters.py", line 68, in setUpClass
cls.flavor_ref_alt)
File "/var/lib/jenkins/workspace/OpenStack-Tempest/tempest/services/compute/json/servers_client.py", line 81, in create_server
resp, body = self.post('servers', post_body, self.headers)
File "/var/lib/jenkins/workspace/OpenStack-Tempest/tempest/common/rest_client.py", line 258, in post
return self.request('POST', url, headers, body)
File "/var/lib/jenkins/workspace/OpenStack-Tempest/tempest/common/rest_client.py", line 386, in request
resp, resp_body)
File "/var/lib/jenkins/workspace/OpenStack-Tempest/tempest/common/rest_client.py", line 436, in _error_checker
raise exceptions.BadRequest(resp_body)
BadRequest: Bad request
Details: {u'badRequest': {u'message': u'The server could not comply with the request since it is either malformed or otherwise incorrect.', u'code': 400}}
...
tempest.common.rest_client: DEBUG: Response Headers: {'content-length': '438', 'location': 'http://10.20.64.99:8774/v2/26f09f199e254069a5ac892d12f5b8ae/servers/c8f70797-af0d-4f83-a2c8-ca77906caf75', 'date': 'Wed, 21 Aug 2013 12:48:00 GMT', 'x-compute-request-id': 'req-ac95f90e-5b48-4a13-9728-e90316e64e1d', 'content-type': 'application/json'}
tempest.common.rest_client: DEBUG: Response Body: {"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "c8f70797-af0d-4f83-a2c8-ca77906caf75", "links": [{"href": "http://10.20.64.99:8774/v2/26f09f199e254069a5ac892d12f5b8ae/servers/c8f70797-af0d-4f83-a2c8-ca77906caf75", "rel": "self"}, {"href": "http://10.20.64.99:8774/26f09f199e254069a5ac892d12f5b8ae/servers/c8f70797-af0d-4f83-a2c8-ca77906caf75", "rel": "bookmark"}], "adminPass": "GVtoDyWNq64z"}}
tempest.common.rest_client: INFO: Request: POST http://10.20.64.99:8774/v2/26f09f199e254069a5ac892d12f5b8ae/servers
tempest.common.rest_client: DEBUG: Request Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': u'b3506e46f598401795ec277b5a3573f1'}
tempest.common.rest_client: DEBUG: Request Body: {"server": {"flavorRef": 2, "name": "server224515962", "imageRef": "493c6884-0078-4074-a547-6cb2eecb9ad8"}}
tempest.common.rest_client: INFO: Response Status: 400
tempest.common.rest_client: DEBUG: Response Headers: {'date': 'Wed, 21 Aug 2013 12:48:01 GMT', 'content-length': '141', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-15c5913c-196f-4411-9da0-8d865d13ced1'}
tempest.common.rest_client: DEBUG: Response Body: {"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}
The nova api.log contains the following stack trace.
2013-08-21 12:48:01.077 ERROR nova.api.openstack.wsgi [req-15c5913c-196f-4411-9da0-8d865d13ced1 d28329ec238249c98d4c5511762a88dd 26f09f199e254069a5ac892d
12f5b8ae] Exception handling resource: exceptions must be old-style classes or derived from BaseException, not NoneType
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi Traceback (most recent call last):
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 942, in _process_s
tack
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi action_result = self.dispatch(meth, request, action_args)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/api/openstack/wsgi.py", line 1022, in dispatch
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi return method(req=request, **action_args)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/api/openstack/compute/servers.py", line 898, in
create
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi scheduler_hints=scheduler_hints)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/hooks.py", line 85, in inner
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi rv = f(*args, **kwargs)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 961, in create
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi scheduler_hints=scheduler_hints)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 675, in _create_instance
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi reservation_id, scheduler_hints)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 633, in _validate_and_provision_instance
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi QUOTAS.rollback(context, quota_reservations)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi self.gen.next()
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 615, in _validate_and_provision_instance
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi num_instances, i)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/compute/api.py", line 900, in create_db_entry_for_new_instance
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi instance = self.db.instance_create(context, instance)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/db/api.py", line 575, in instance_create
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi return IMPL.instance_create(context, values)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.py", line 113, in wrapper
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi return f(*args, **kwargs)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib/python2.6/site-packages/nova/db/sqlalchemy/api.py", line 1476, in instance_create
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi instance_ref.save(session=session)
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/orm/session.py", line 405, in __exit__
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi raise
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
2013-08-21 12:48:01.077 99505 TRACE nova.api.openstack.wsgi
2013-08-21 12:48:01.086 INFO nova.osapi_compute.wsgi.server [req-15c5913c-196f-4411-9da0-8d865d13ced1 d28329ec238249c98d4c5511762a88dd 26f09f199e254069a5ac892d12f5b8ae] 10.20.112.199 "POST /v2/26f09f199e254069a5ac892d12f5b8ae/servers HTTP/1.1" status: 400 len: 338 time: 0.8252380
Why is this happening and how do I further debug it?
This is on grizzly-1.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1215198/+subscriptions