-
Notifications
You must be signed in to change notification settings - Fork 7
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
resource "catalystcenter_virtual_network_to_fabric_site" "nvName" #171
Comments
#Getting Site ID
data "catalystcenter_site" "xx" {
name_hierarchy = "Global/xx"
}
#Getting Fabric Site ID
data "catalystcenter_fabric_site" "xxx" {
site_id = data.catalystcenter_site.xx.id
}
#Creating a Virtual Network within the fabric Site (xxx)
resource "catalystcenter_fabric_l3_virtual_network" "MDI_TERRAFORM_VN" {
for_each = local.range
virtual_network_name = "abc${each.key}_VN"
fabric_ids = [data.catalystcenter_fabric_site.xxx.id]
} im using this ressource to create VN within a fabric site, but im getting this error. Warning Failed to configure object (POST), got error: task '0194b403-d099-7946-b359-b431193bd158' failed: TASK_MODIFY_PUT, NCSP11051: Error occurred while processing the 'modify' request. A different i think, that CC doesnt support parallel Creation of VNs from the same user at the same time. that is why for solving the problem i used -parallelism=1. |
@tali1974 The Catalyst Center API for creating Layer 3 Virtual Networks is designed to be executed sequentially. Each API request must be completed before initiating the next one. Concurrent execution may result in conflicts or unexpected behavior. As @Mrhailaf mentioned you can use terraform apply with |
Hi. iam using
dnac Version 2.3.7.7-70047
terrfarom verion v1.9.6
catalystcenter = {
source = "CiscoDevNet/catalystcenter"
version = "0.1.19"
}
I try to add 9 VN ( one of the VN is an INFRA_NV)
with this code
resource "catalystcenter_virtual_network_to_fabric_site" "nvName" {
.....
depends_on = [
catalystcenter_fabric_site.CreateFabric
]
}
terraform apply
do start adding the VNs to the fabric.. after 3-5 vn are added I get this error...
╷
│ Error: Client Error
│
│ with module.site_mm_fabric_labsma1.catalystcenter_virtual_network_to_fabric_site.name_vn,
│ on ../modules/Mod_fabricOnBoardingV1/Fabric.tf line 2, in resource "catalystcenter_virtual_network_to_fabric_site" "name_vn":
│ 2: resource "catalystcenter_virtual_network_to_fabric_site" "name_vn" {
│
│ Failed to configure object (POST), got error: HTTP Request failed: StatusCode 429, {
│ "error" : "Rate Limit exceeded; BapiName: Add VN in fabric, RateLimit config details: RateLimitContext{rate=50, windowUnit='minute', windowDuration=1, maxConcurrentExecutionsPermitted=1}",
│ "bapiExtendedStatusCode" : "REJECTED_ABOVE_MAX_CONCURRENCY_LIMIT",
│ "bapiExtendedStatusDescription" : "For BAPI: Add VN in fabric, DNACP Runtime is at maximum allowed concurrent BAPI executions: 1"
│ }
But it I run terraform apply -parallelism=1 then it works fine..
The text was updated successfully, but these errors were encountered: