os-migrateLive fault but rest api raise a incorrect conflict message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Eli Qiao |
Bug Description
when do a live migration which the instance is in a state like this
taget@liyong:
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 1d114104-
+------
rest api raise conflictRequest, this is correct, but the message is not correct.
(0, '{"conflictingR
in live_migrate.py, we check if instance in active state, it do the right thing.
def _check_
if self.instance.
raise exception.
but in this case, power_state is an Integer zero,
the logic in raise_http_
by checking code of raise_http_
def raise_http_
"""Raises a webob.exc.
appropriate to return via the API based on the original
InstanceInv
"""
attr = exc.kwargs.
state = exc.kwargs.
not_launched = exc.kwargs.
if attr and state: <<<<<<<
msg = _("Cannot '%(action)s' instance %(server_id)s while it is in "
Changed in nova: | |
assignee: | nobody → Eli Qiao (taget-9) |
status: | New → Confirmed |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → kilo-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/168211
Review: https:/