The MSO Terraform Provider v1.5.1 crashes with a runtime panic when attempting to refresh the state of service graph resources marked for deletion in stretched (multi-site) schemas. The crash occurs during the terraform plan phase, before any changes are applied. Error:
panic: runtime error: index out of range [1] with length 0
he provider crashes with:
panic: runtime error: index out of range [1] with length 0
goroutine 78095 [running]:
github.com/CiscoDevNet/terraform-provider-mso/mso.setSiteContractServiceGraphAttrs()
resource_mso_schema_site_contract_service_graph.go:322 +0x1433
github.com/CiscoDevNet/terraform-provider-mso/mso.resourceMSOSchemaSiteContractServiceGraphRead()
resource_mso_schema_site_contract_service_graph.go:176 +0x215
Terraform diagnostic:
Error: The terraform-provider-mso_v1.5.1 plugin crashed!
This is always indicative of a bug within the plugin.
Impact
- Severity: Critical - Complete deployment blockage
- Scope: Affects stretched schema service graph deletions