OK, so this is indeed invalid. We do a server-side retry on creating allocations already:
https://github.com/openstack/nova/blob/8ca24bf1ff80f39b14726aca22b5cf52603ea5a0/nova/objects/resource_provider.py#L1757-L1759
which is called from AllocationList.create_all():
https://github.com/openstack/nova/blob/8ca24bf1ff80f39b14726aca22b5cf52603ea5a0/nova/objects/resource_provider.py#L1839
OK, so this is indeed invalid. We do a server-side retry on creating allocations already:
https:/ /github. com/openstack/ nova/blob/ 8ca24bf1ff80f39 b14726aca22b5cf 52603ea5a0/ nova/objects/ resource_ provider. py#L1757- L1759
which is called from AllocationList. create_ all():
https:/ /github. com/openstack/ nova/blob/ 8ca24bf1ff80f39 b14726aca22b5cf 52603ea5a0/ nova/objects/ resource_ provider. py#L1839