[nova] Thoughts on exposing exception type to non-admins in instance action event

Matt Riedemann mriedemos at gmail.com
Wed Nov 13 17:41:43 UTC 2019


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#L4490 
- (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#L113 
- 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



More information about the openstack-discuss mailing list