terraform-provider-iosxe icon indicating copy to clipboard operation
terraform-provider-iosxe copied to clipboard

Database locked errors during iosxe_interface_ethernet parallel creation with source_templates

Open coffmant opened this issue 10 months ago • 12 comments

IOS-XE 17.9.5

We are using a for_each loop to create iosxe_interface_ethernet interfaces en masse. Each port is using an iosxe_template to supply the interface parameters.

The first creation succeeds. Other creates that are running in parallel fail with this lock error.

Error: Client Error

with iosxe_interface_ethernet.ports["4/0/32"], on iosxe_interface_ethernet.ports.tf line 1, in resource "iosxe_interface_ethernet" "ports": 1: resource "iosxe_interface_ethernet" "ports" {

Failed to configure object (PATCH), got error: HTTP Request failed: StatusCode 409, RESTCONF errors {Error:[{ErrorType:application ErrorTag:lock-denied ErrorAppTag: ErrorPath:/Cisco-IOS-XE-native:native/interface/GigabitEthernet ErrorMessage:the configuration database is locked by session 18 yang_mgmt_infra tcp (system from 127.0.0.1) on since 2024-12-13 17:52:56 IOS-XE YANG Infrastructure ErrorInfo:}]} {PatchId: GlobalStatus:{Ok:false Errors:{Error:[]}} EditStatus:{Edit:[]} Errors:{Error:[]}}

coffmant avatar Dec 13 '24 20:12 coffmant