resize an instance should not set state to error if no host found
Bug #1289174 reported by
jichenjc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
jichenjc |
Bug Description
In resize operation there is code looks like:
if not instance['host']:
self.
msg = _('Instance has no source host')
raise exception.
same_host = instance['host'] == self.host
if same_host and not CONF.allow_
self.
msg = _('destination same as source!')
raise exception.
however, it's not reasonable to set an instance to ERROR state if we can't find a host when we try to resize an instance
we'd better keep the instance in ACTIVE state and report there is no host
Changed in nova: | |
assignee: | nobody → jichencom (jichenjc) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/78897
Review: https:/