Juniper / terraform-provider-apstra

Apstra Terraform Provider
Apache License 2.0
13 stars 2 forks source link

Unrecoverable error #690

Open williampincek47 opened 6 days ago

williampincek47 commented 6 days ago

Hi,

I understand that I should not do this. I just happened to accidentally perform the following, and at a minimum, it broke the Staged > Virtual > Routing Zones UI page (may have caused other unknown problems but not sure)....

I accidentally created a configuration that allocates IPv4 resource pools to allocation groups that do not exist in a routing zone (Finance in my config). I was able to successfully apply the configuration with no errors from Terraform. Then, using the UI to navigate to Staged > Virtual > Routing Zones, I noticed the page was completely blank. Then, I used Terraform to destroy the apstra_datacenter_resource_pool_allocation resource that caused the problem but the Routing Zones page remained blank in the UI. I had to restore my Apstra server to a previous backup and start all over with Terraform to recover.

I've attached the blueprint.tf file that caused the problem. There are local variables defined to help in the allocation on lines 31-34. The apstra_datacenter_resource_pool_allocation resource that caused the problem is on lines 221-227.

Hope that helps,

Will Pincek bad-blueprint.txt

chrismarget-j commented 6 days ago

Hey Will,

This is a known issue in Apstra: AOS-42106 (September of ’23)

Unfortunately, I don’t think there’s anything we can do to defend against it in terraform.

/chris

Juniper Business Use Only From: williampincek47 @.> Date: Friday, June 28, 2024 at 11:31 AM To: Juniper/terraform-provider-apstra @.> Cc: Subscribed @.***> Subject: [Juniper/terraform-provider-apstra] Unrecoverable error (Issue #690) [External Email. Be cautious of content]

Hi,

I understand that I should not do this. I just happened to accidentally perform the following, and at a minimum, it broke the Staged > Virtual > Routing Zones UI page (may have caused other unknown problems but not sure)....

I accidentally created a configuration that allocates IPv4 resource pools to allocation groups that do not exist in a routing zone (Finance in my config). I was able to successfully apply the configuration with no errors from Terraform. Then, using the UI to navigate to Staged > Virtual > Routing Zones, I noticed the page was completely blank. Then, I used Terraform to destroy the apstra_datacenter_resource_pool_allocation resource that caused the problem but the Routing Zones page remained blank in the UI. I had to restore my Apstra server to a previous backup and start all over with Terraform to recover.

I've attached the blueprint.tf file that caused the problem. There are local variables defined to help in the allocation on lines 31-34. The apstra_datacenter_resource_pool_allocation resource that caused the problem is on lines 221-227.

Hope that helps,

Will Pincek bad-blueprint.txthttps://urldefense.com/v3/__https:/github.com/user-attachments/files/16032840/bad-blueprint.txt__;!!NEt6yMaO-gk!CDO2D2RWDkswry61BpyN4thxmjTJahVZZOPn033Rsz4W1VmWZEYvN9Ajg2-EeLCorbx6E0qL-ZLFur9t5ajrSXE_$

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Juniper/terraform-provider-apstra/issues/690__;!!NEt6yMaO-gk!CDO2D2RWDkswry61BpyN4thxmjTJahVZZOPn033Rsz4W1VmWZEYvN9Ajg2-EeLCorbx6E0qL-ZLFur9t5TwUOMbR$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AXLT6LHDIOOR6FYNUFX7LGTZJV6V3AVCNFSM6AAAAABKCDUQXGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DANRYGYZTSNI__;!!NEt6yMaO-gk!CDO2D2RWDkswry61BpyN4thxmjTJahVZZOPn033Rsz4W1VmWZEYvN9Ajg2-EeLCorbx6E0qL-ZLFur9t5XDM0sW0$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

williampincek47 commented 6 days ago

Ok cool. No problem.

Thanks for looking at it.

Will Pincek

On Jun 28, 2024, at 11:37 AM, chrismarget-j @.***> wrote:



Hey Will,

This is a known issue in Apstra: AOS-42106 (September of ’23)

Unfortunately, I don’t think there’s anything we can do to defend against it in terraform.

/chris

Juniper Business Use Only From: williampincek47 @.> Date: Friday, June 28, 2024 at 11:31 AM To: Juniper/terraform-provider-apstra @.> Cc: Subscribed @.***> Subject: [Juniper/terraform-provider-apstra] Unrecoverable error (Issue #690) [External Email. Be cautious of content]

Hi,

I understand that I should not do this. I just happened to accidentally perform the following, and at a minimum, it broke the Staged > Virtual > Routing Zones UI page (may have caused other unknown problems but not sure)....

I accidentally created a configuration that allocates IPv4 resource pools to allocation groups that do not exist in a routing zone (Finance in my config). I was able to successfully apply the configuration with no errors from Terraform. Then, using the UI to navigate to Staged > Virtual > Routing Zones, I noticed the page was completely blank. Then, I used Terraform to destroy the apstra_datacenter_resource_pool_allocation resource that caused the problem but the Routing Zones page remained blank in the UI. I had to restore my Apstra server to a previous backup and start all over with Terraform to recover.

I've attached the blueprint.tf file that caused the problem. There are local variables defined to help in the allocation on lines 31-34. The apstra_datacenter_resource_pool_allocation resource that caused the problem is on lines 221-227.

Hope that helps,

Will Pincek bad-blueprint.txthttps://urldefense.com/v3/__https:/github.com/user-attachments/files/16032840/bad-blueprint.txt__;!!NEt6yMaO-gk!CDO2D2RWDkswry61BpyN4thxmjTJahVZZOPn033Rsz4W1VmWZEYvN9Ajg2-EeLCorbx6E0qL-ZLFur9t5ajrSXE_$

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/Juniper/terraform-provider-apstra/issues/690__;!!NEt6yMaO-gk!CDO2D2RWDkswry61BpyN4thxmjTJahVZZOPn033Rsz4W1VmWZEYvN9Ajg2-EeLCorbx6E0qL-ZLFur9t5TwUOMbR$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AXLT6LHDIOOR6FYNUFX7LGTZJV6V3AVCNFSM6AAAAABKCDUQXGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DANRYGYZTSNI__;!!NEt6yMaO-gk!CDO2D2RWDkswry61BpyN4thxmjTJahVZZOPn033Rsz4W1VmWZEYvN9Ajg2-EeLCorbx6E0qL-ZLFur9t5XDM0sW0$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/Juniper/terraform-provider-apstra/issues/690#issuecomment-2197194645, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQKV3WFHA7ZEY7J4BE23QSLZJV7M3AVCNFSM6AAAAABKCDUQXGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJXGE4TINRUGU. You are receiving this because you authored the thread.Message ID: @.***>