To deal with the issue in comment #2 above, before we get here:
https://github.com/openstack/nova/blob/e11a8687aef527eee9f7c733db6cccd5b902afbb/nova/virt/ironic/driver.py#L523
We'd have to check if the instance has an allocation in placement for the normalized_rc and if not, add it. That is at most redundant once per instance per compute service restart because of this:
https://github.com/openstack/nova/blob/e11a8687aef527eee9f7c733db6cccd5b902afbb/nova/virt/ironic/driver.py#L559
So we would only process that once.
To deal with the issue in comment #2 above, before we get here:
https:/ /github. com/openstack/ nova/blob/ e11a8687aef527e ee9f7c733db6ccc d5b902afbb/ nova/virt/ ironic/ driver. py#L523
We'd have to check if the instance has an allocation in placement for the normalized_rc and if not, add it. That is at most redundant once per instance per compute service restart because of this:
https:/ /github. com/openstack/ nova/blob/ e11a8687aef527e ee9f7c733db6ccc d5b902afbb/ nova/virt/ ironic/ driver. py#L559
So we would only process that once.