← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1273139] [NEW] HostBinaryNotFound exception isn't catched in service_update

 

Public bug reported:

When I update a service with not existing hostname or binary , I got the
500 error in nova api log.

2014-01-28 03:15:29.829 ERROR nova.api.openstack.extensions [req-5b1f3fc5-349a-4415-a4f5-63eab1c259a0 admin demo] Unexpected exception in API method
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/extensions.py", line 470, in wrapped
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/compute/plugins/v3/services.py", line 172, in update
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     self.host_api.service_update(context, host, binary, status_detail)
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/compute/api.py", line 3122, in service_update
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     binary)
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/objects/base.py", line 112, in wrapper
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     result = fn(cls, context, *args, **kwargs)
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/objects/service.py", line 105, in get_by_args
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     db_service = db.service_get_by_args(context, host, binary)
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/db/api.py", line 131, in service_get_by_args
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     return IMPL.service_get_by_args(context, host, binary)
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 112, in wrapper
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 469, in service_get_by_args
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     raise exception.HostBinaryNotFound(host=host, binary=binary)
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions HostBinaryNotFound: Could not find binary nova-cert on host xu-de.
2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions

** Affects: nova
     Importance: Undecided
     Assignee: Haiwei Xu (xu-haiwei)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Haiwei Xu (xu-haiwei)

-- 
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/1273139

Title:
  HostBinaryNotFound exception isn't catched in service_update

Status in OpenStack Compute (Nova):
  New

Bug description:
  When I update a service with not existing hostname or binary , I got
  the 500 error in nova api log.

  2014-01-28 03:15:29.829 ERROR nova.api.openstack.extensions [req-5b1f3fc5-349a-4415-a4f5-63eab1c259a0 admin demo] Unexpected exception in API method
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions Traceback (most recent call last):
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/extensions.py", line 470, in wrapped
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/api/openstack/compute/plugins/v3/services.py", line 172, in update
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     self.host_api.service_update(context, host, binary, status_detail)
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/compute/api.py", line 3122, in service_update
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     binary)
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/objects/base.py", line 112, in wrapper
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     result = fn(cls, context, *args, **kwargs)
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/objects/service.py", line 105, in get_by_args
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     db_service = db.service_get_by_args(context, host, binary)
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/db/api.py", line 131, in service_get_by_args
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     return IMPL.service_get_by_args(context, host, binary)
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 112, in wrapper
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     return f(*args, **kwargs)
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions   File "/opt/stack/nova/nova/db/sqlalchemy/api.py", line 469, in service_get_by_args
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions     raise exception.HostBinaryNotFound(host=host, binary=binary)
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions HostBinaryNotFound: Could not find binary nova-cert on host xu-de.
  2014-01-28 03:15:29.829 TRACE nova.api.openstack.extensions

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1273139/+subscriptions


Follow ups

References