Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual circuit model throws an error when trying to add BGP settings to a VRF virtual circuit #241

Closed
ctreatma opened this issue Oct 9, 2024 · 1 comment · Fixed by #242

Comments

@ctreatma
Copy link
Contributor

ctreatma commented Oct 9, 2024

SUMMARY

I created a Metal-billed VRF interconnection and then attempted to add BGP peering settings to the interconnection's virtual circuit using the metal_virtual_circuit module, but the module failed with the following error:

TASK [configure BGP for interconnection virtual circuit] ***********************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Exception: attribute 'customer_ip' (to map to 'customer_ip') not found in response_dict: {'created_at': datetime.datetime(2024, 10, 9, 17, 1, 11, tzinfo=TzInfo(UTC)), 'id': 'ffe8fb69-25b8-4c1a-9c2a-2b01c6ea3b1a', 'name': 'layer2 interconnection-VC-primary', 'nni_vlan': 1859, 'port': {'href': '/metal/v1/connections/c3f8a43e-540b-41da-b755-6003d6e67274/ports/12efb031-d718-4c3d-8136-98ca5bf58896', 'id': '12efb031-d718-4c3d-8136-98ca5bf58896'}, 'project': {'href': '/metal/v1/projects/615dcae9-b05d-4dcb-b018-ef1db18da0ae', 'id': '615dcae9-b05d-4dcb-b018-ef1db18da0ae'}, 'speed': 500000000, 'status': 'waiting_on_peering_details', 'tags': [], 'type': 'vrf', 'updated_at': datetime.datetime(2024, 10, 9, 17, 50, 37, tzinfo=TzInfo(UTC)), 'vrf': {'bill': False, 'href': '/metal/v1/vrfs/2ef0ba5d-6fca-4ad9-b0d8-ffedd6239cd5', 'id': '2ef0ba5d-6fca-4ad9-b0d8-ffedd6239cd5'}}

It appears to fail during initial load and never make the update request (note the waiting_on_peering_details status in the error message. If I manually add the peering details in the Equinix console, the task runs successfully after that, although it can't accomplish much due to #237.

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION

CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

Copy link

This issue has been resolved in version 0.11.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant