[nova][ops] What should the compute service delete behavior be wrt resource providers with allocations?
zigo at debian.org
Thu Jun 13 21:03:58 UTC 2019
On 6/13/19 7:40 PM, Matt Riedemann wrote:
> On 6/12/2019 5:50 PM, Thomas Goirand wrote:
>>> 1. Don't delete the compute service if we can't cleanup all resource
>>> providers - make sure to not orphan any providers. Manual cleanup may be
>>> necessary by the operator.
>> I'd say that this option is ok-ish*IF* the operators are given good
>> enough directives saying what to do. It would really suck if we just get
>> an error, and don't know what resource cleanup is needed. But if the
>> error is:
>> Cannot delete nova-compute on host mycloud-compute-5.
>> Instances still running:
>> Currently live-migrating:
>> Not confirmed migration/resize:
> I don't think we'll realistically generate a report like this for an
> error response in the API. While we could figure this out, for the
> baremetal case we could have hundreds of instances still managed by that
> compute service host which is a lot of data to generate for an error
> I guess it could be a warning dumped into the API logs but it could
> still be a lot of data to crunch and log.
In such case, in the error message, just suggest what to do to fix the
I once worked in a company that made me change every error message so
that each of them contained hints on what to do to fix the problem.
Since, I often suggest it.
Thomas Goirand (zigo)
More information about the openstack-discuss