yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50710
[Bug 1580467] [NEW] instance boot with invalid availability zone raises 500 InternalServerError
Public bug reported:
instance boot with invalid availability zone raises 500
InternalServerError
Steps to reproduce
==================
Command:
nova boot --flavor 1 --image 9c1618d0-a6ca-4db6-b2a9-38a9a5cc38b4 --availability-zone invalid::::zone instance1
Actual result
=============
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'nova.exception.InvalidInput'> (HTTP 500) (Request-ID: req-dcc9cfd6-1ea6-4e18-9acd-faccf54fdfd4)
Expected result
===============
It should give 400 HTTPBadRequest with proper error message.
n-API LOG:
2016-05-11 08:59:37.467 ERROR nova.api.openstack.extensions [req-dcc9cfd6-1ea6-4e18-9acd-faccf54fdfd4 admin admin] Unexpected exception in API method
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions return f(*args, **kwargs)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/compute/servers.py", line 583, in create
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions availability_zone, host, node = parse_az(context, availability_zone)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/compute/api.py", line 517, in parse_availability_zone
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions reason="Unable to parse availability_zone")
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions InvalidInput: Invalid input received: Unable to parse availability_zone
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions
** Affects: nova
Importance: Undecided
Assignee: Dinesh Bhor (dinesh-bhor)
Status: New
** Changed in: nova
Assignee: (unassigned) => Dinesh Bhor (dinesh-bhor)
--
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/1580467
Title:
instance boot with invalid availability zone raises 500
InternalServerError
Status in OpenStack Compute (nova):
New
Bug description:
instance boot with invalid availability zone raises 500
InternalServerError
Steps to reproduce
==================
Command:
nova boot --flavor 1 --image 9c1618d0-a6ca-4db6-b2a9-38a9a5cc38b4 --availability-zone invalid::::zone instance1
Actual result
=============
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'nova.exception.InvalidInput'> (HTTP 500) (Request-ID: req-dcc9cfd6-1ea6-4e18-9acd-faccf54fdfd4)
Expected result
===============
It should give 400 HTTPBadRequest with proper error message.
n-API LOG:
2016-05-11 08:59:37.467 ERROR nova.api.openstack.extensions [req-dcc9cfd6-1ea6-4e18-9acd-faccf54fdfd4 admin admin] Unexpected exception in API method
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions return f(*args, **kwargs)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/compute/servers.py", line 583, in create
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions availability_zone, host, node = parse_az(context, availability_zone)
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/compute/api.py", line 517, in parse_availability_zone
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions reason="Unable to parse availability_zone")
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions InvalidInput: Invalid input received: Unable to parse availability_zone
2016-05-11 08:59:37.467 TRACE nova.api.openstack.extensions
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1580467/+subscriptions
Follow ups