Error Reasons being dropped in generic handler of _migrate_live
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
moorryan |
Bug Description
The reason detail of the Errors: MigrationPreChe
The class exceptions of MigrationPreChe
class MigrationPreChe
msg_fmt = _("Migration pre-check error") + ": %(reason)s"
class NoValidHost(
msg_fmt = _("No valid host was found. %(reason)s")
class InvalidSharedSt
msg_fmt = _("%(path)s is not on shared storage: %(reason)s")
class InvalidLocalSto
msg_fmt = _("%(path)s is not on local storage: %(reason)s")
When errors are raised they are raised with a formatted reason message:
e.g. 'Unable to migrate %(instance_uuid)s: '
The generic Exception handler in _migrate_live does not include the reason in the error raised - so the detail does not get back up to the client
except Exception:
if host is None:
msg = _("Live migration of instance %s to another host "
else:
msg = _("Live migration of instance %(id)s to host %(host)s "
# Return messages from scheduler
raise exc.HTTPBadRequ
Changed in nova: | |
status: | New → In Progress |
tags: | added: api |
Changed in nova: | |
milestone: | none → icehouse-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-1 → 2014.1 |
see: https:/ /review. openstack. org/#/c/ 56049/2
Change-Id: I3d7e0626223f26 06c5e7205e5022e 26585506cfb