placement api fails when nova tries to delete resource allocation after failed evacuation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Unassigned |
Bug Description
During the investigation of bug #1713783 (After failed evacuation the recovered source compute tries to delete the instance) we noticed that nova tries to PUT an empty '{}' allocations for an instance and that fails on the placement side. As bug #1713783 now seems to be solved by keeping the existing behavior, i.e. deleting the instance after failed evacuation. We have to fix nova not to try to PUT the allocation but actually DELETE the allocation of the instance in placement.
The problem can be reproduced with the regression test proposed in https:/
2017-09-04 11:33:24,989 INFO [nova.service] Starting compute node (version 16.0.1)
2017-09-04 11:33:25,005 INFO [nova.compute.
2017-09-04 11:33:25,060 INFO [nova.api.
2017-09-04 11:33:25,066 INFO [nova.api.
2017-09-04 11:33:25,067 WARNING [nova.scheduler
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
The server could not comply with the request since it is either malformed or otherwise incorrect.<br /><br />
JSON does not validate: {} does not have enough properties
Failed validating 'minProperties' in schema[
'type': 'object'}
On instance[
{}
</body>
</html>
2017-09-04 11:33:25,067 ERROR [nova.compute.
tags: | added: evac |
tags: |
added: evacuate placement removed: evac |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Similar stack trace visible on many tempest logs with live migration: logstash. openstack. org/#dashboard/ file/logstash. json?query= message% 3A%5C%22Failed% 20to%20clean% 20allocation% 20of%5C% 22%20AND% 20tags% 3A%5C%22screen- n-cpu.txt% 5C%22
http://
For example: logs.openstack. org/51/ 489451/ 21/check/ gate-grenade- dsvm-neutron- multinode- live-migration- nv/4959953/ logs/screen- n-cpu.txt# _Sep_05_ 02_53_35_ 188890
http://