I would like to see this feature, our customers have mentioned the same problem, I think this is useful.
I think that should consider of the all instance action operations, such as actions in nova/compute/instance_actions.py.
brinzhang
主题: [lists.openstack.org代发]Re: [nova] Thoughts on exposing exception type to non-admins in instance action event
On 11/13/2019 11:17 AM, Eric Fried wrote:
Unless it's likely to be something other than NoValidHost a significant percentage of the time, IMO it...
Well just taking resize, it could be one of many things:
https://github.com/openstack/nova/blob/20.0.0/nova/conductor/manager.py# L366
- oops you tried resizing which would screw up your group affinity policy
https://github.com/openstack/nova/blob/20.0.0/nova/compute/manager.py#L 4490
- (for an admin, cold migrate) oops you tried cold migrating a vcenter vm or you
have allow_resize_to_same_host=True and the scheduler picks the same host (silly scheduler, see bug 1748697)
https://github.com/openstack/nova/blob/20.0.0/nova/compute/claims.py#L11 3
- oops you lost a resource claims race, try again
https://github.com/openstack/nova/blob/20.0.0/nova/scheduler/client/report. py#L1898
- oops you lost a race with allocation consumer generation conflicts, try again
--
Thanks,
Matt