The metal_reserved_ip block accepts a project_id, metro, and type and attempts to find or create a matching IP reservation. If multiple reservations of the specified type exist in the specified project & metro, the module fails with the following error:
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Exception: found more than one metal_ip_reservation with name ['<type>', '<metro>']
SUMMARY
The
metal_reserved_ip
block accepts aproject_id
,metro
, andtype
and attempts to find or create a matching IP reservation. If multiple reservations of the specified type exist in the specified project & metro, the module fails with the following error:This is a problem because VRFs can have multiple IP reservations, Metal will automatically add private IPv4 ranges to a project as needed, and customers can reserve multiple public IPv4 blocks.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS