yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01835
[Bug 1159755] Re: live-migration to an invalid host should exist gracefully. Currently, it throws a stack trace
Reviewed: https://review.openstack.org/25575
Committed: http://github.com/openstack/nova/commit/ff4e9a2c325fbe622b40219587d7ac3cc39b51df
Submitter: Jenkins
Branch: milestone-proposed
commit ff4e9a2c325fbe622b40219587d7ac3cc39b51df
Author: Nikola Dipanov <ndipanov@xxxxxxxxxx>
Date: Tue Mar 26 14:38:09 2013 +0100
Use format_message on exceptions instead of str()
This patch changes all usages of unicode() and str() in the API layer
(and most other reasonable places) into a new format_message method.
This is done in order to avoid leaking the stack trace back to the
user through the Remote excepitons.
This patch deliberately avoids the EC2 api as the way how the EC2 API
handles responses is being worked on as part of another blueprint.
Fixes bug 1159755
Change-Id: I04a74682c4fac9a66ba25b52fd5c7af5e10e81e8
** Changed in: nova
Status: Fix Committed => Fix Released
--
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/1159755
Title:
live-migration to an invalid host should exist gracefully. Currently,
it throws a stack trace
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Description
-----------
Configure nova, boot a couple of instances, & migrate any instance to a destination (which is invalid -- no compute service on it)
$ nova live-migration 6fdcafa3-b86b-479e-b1cf-5e6859912e65
test1.foo.bar.com
Actual results:
--------------
An ungraceful stack trace:
#============================#
$ nova live-migration 6fdcafa3-b86b-479e-b1cf-5e6859912e65 test1.foo.bar.com
ERROR: Compute service of maelstrom.lab.eng.pnq.redhat.com is unavailable at this time.
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/amqp.py", line 276, in _process_data
rval = self.proxy.dispatch(ctxt, version, method, **args)
File "/usr/lib/python2.6/site-packages/nova/openstack/common/rpc/dispatcher.py", line 145, in dispatch
return getattr(proxyobj, method)(ctxt, **kwargs)
File "/usr/lib/python2.6/site-packages/nova/scheduler/manager.py", line 101, in live_migration
context, ex, request_spec)
File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__
self.gen.next()
File "/usr/lib/python2.6/site-packages/nova/scheduler/manager.py", line 91, in live_migration
block_migration, disk_over_commit)
File "/usr/lib/python2.6/site-packages/nova/scheduler/driver.py", line 232, in schedule_live_migration
self._live_migration_dest_check(context, instance, dest)
File "/usr/lib/python2.6/site-packages/nova/scheduler/driver.py", line 281, in _live_migration_dest_check
raise exception.ComputeServiceUnavailable(host=dest)
ComputeServiceUnavailable: Compute service of maelstrom.lab.eng.pnq.redhat.com is unavailable at this time.
(HTTP 400) (Request-ID: req-248afb33-a9ed-4c68-822a-7dac6bc76cb3)
#============================#
Expected results:
--------------
If the destination host is invalid, live-migration should exist gracefully
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1159755/+subscriptions