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

enhancement: do not fail catalystcenter_fabric_l3_handoff_ip_transit apply if api returns "device unreachable" #150

Open
jolstorn opened this issue Nov 21, 2024 · 0 comments

Comments

@jolstorn
Copy link

If a fabric-device is unreachable at the moment we do terraform apply of catalystcenter_fabric_l3_handoff_ip_transit, our pipeline fails. Having some devices unreachable is more or less a normal situation in large networks. It it possible to issue a warning and not error due to the following response from API?

│ Error: Client Error
│ 
│   with catalystcenter_fabric_l3_handoff_ip_transit.l3_handoffs["prep-siteb-bn-lab-02/mtu_1/TenGigabitEthernet1/1/3"],
│   on sda_border.tf line 18, in resource "catalystcenter_fabric_l3_handoff_ip_transit" "l3_handoffs":
│   18: resource "catalystcenter_fabric_l3_handoff_ip_transit" "l3_handoffs" {
│ 
│ Failed to configure object (POST), got error: task
│ '01934df0-4111-7b14-ab49-84ceada1c80d' failed: TASK_MODIFY_PUT, NCDP10000:
│ Configuration failed on device 'prep-siteb-en-01.preprod.lab' due to
│ unreachability.,
│ {"response":{"version":1732179435394,"endTime":1732179435394,"startTime":1732179411217,"data":"workflow_id=609430ba-953a-4460-8b07-29382b3a9ec1;cfs_id=f0817490-8b7f-44b9-9da7-5a[55](https://github.com/SPHF-Nettverk-IaC/datamodel-prephf/actions/runs/11949793843/job/33309981648#step:15:56)f237b737;rollback_status=not_supported;rollback_taskid=0;failure_task=Determination
│ of network intent deployment
│ status:69a315e9-e491-4edb-8333-b36af8765f34;processcfs_complete=true","progress":"TASK_MODIFY_PUT","errorCode":"NCDP10000","lastUpdate":1732179435371,"serviceType":"NCSP","isError":true,"failureReason":"NCDP10000:
│ Configuration failed on device 'prep-siteb-en-01.preprod.lab' due to
│ unreachability.","instanceTenantId":"6446774a7[61](https://github.com/SPHF-Nettverk-IaC/datamodel-prephf/actions/runs/11949793843/job/33309981648#step:15:62)b271fa5e92dd6","id":"01934df0-4111-7b14-ab49-84ceada1c80d"},"version":"1.0"}
╵

I've verified borders and catcenter and the resource has been successfully deployed and the "intent" has been saved for so that offline devices will receive this when they get online.

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

No branches or pull requests

1 participant