)]}'
{"nova/api/openstack/compute/services.py":[{"author":{"_account_id":9708,"name":"Balazs Gibizer","display_name":"gibi","email":"gibizer@gmail.com","username":"gibi"},"change_message_id":"fbf3cfba155897c26b46bd4430404c7a41295bf6","unresolved":false,"context_lines":[{"line_number":291,"context_line":"                            \"Failed to delete compute node resource provider \""},{"line_number":292,"context_line":"                            \"for compute node %s: %s\","},{"line_number":293,"context_line":"                            compute_node.uuid, six.text_type(e))"},{"line_number":294,"context_line":"                    except (exception.ResourceProviderInUse,"},{"line_number":295,"context_line":"                            exception.ResourceProviderDeletionFailed) as e:"},{"line_number":296,"context_line":"                        raise webob.exc.HTTPConflict("},{"line_number":297,"context_line":"                            explanation\u003d_(\"Failed to delete compute node \""}],"source_content_type":"text/x-python","patch_set":2,"id":"9f560f44_5cc32d8b","line":294,"range":{"start_line":294,"start_character":38,"end_line":294,"end_character":59},"updated":"2020-08-31 09:08:58.000000000","message":"So this can happen when one host failed so the service does not run, instances successfully evacuated from the host and now the admin wants to delete the failed service. The source host allocation is not deleted during the evacuation as it left for the source host to delete it after it is recovered. However in the above case the source host never recovered so we have still allocation against it therefore the service deletion fails. \n\nI see two possible way forward:\n1) Document this case heavily and ask the admin to clean up the allocation manually. \n\n2) Add a check for the sevice deletion code to see if there are finished evacuations where the source host is the host that is being deleted. And if so check if there are any allocation left due to the finished evacuation and deleted them before deleting the RP tree.","commit_id":"7335f31355bf1c4953b02de3bac50f2c481918c4"}]}
