Remove assumption of http error if consumer not exists
The heal_allocations_for_instance assumes that placement GET
/allocations/<instance_uuid> query returns an error code if the consumer
does not exists in placement. However placement returns an empty
allocation instead.
This patch removes such assumption and treates the negative response
from placement as a fatal error.
Reviewed: https:/ /review. opendev. org/669188 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e6f01192629 5e0a36fa06c46f6 9525bcd7fa25dd
Committed: https:/
Submitter: Zuul
Branch: master
commit e6f011926295e0a 36fa06c46f69525 bcd7fa25dd
Author: Balazs Gibizer <email address hidden>
Date: Thu Jul 4 16:15:33 2019 +0200
Remove assumption of http error if consumer not exists
The heal_allocation s_for_instance assumes that placement GET s/<instance_ uuid> query returns an error code if the consumer
/allocation
does not exists in placement. However placement returns an empty
allocation instead.
This patch removes such assumption and treates the negative response
from placement as a fatal error.
Change-Id: I7e2df32029e4cf f57a0dddcd905b6 c1aac207546
Closes-Bug: #1835419