You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
<snip>
2024-07-10T16:45:39.720+1000 [ERROR] vertex "mso_schema_site_service_graph.schema_site_service_graph_site1" error: No Template found
2024-07-10T16:45:39.727+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:45:39 [DEBUG] Exit from do method
2024-07-10T16:45:39.727+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:45:39 graphcont err No Template found
2024-07-10T16:45:39.727+1000 [ERROR] vertex "mso_schema_site_service_graph.schema_site_service_graph_site1 (expand)" error: No Template found
<snip>
2024-07-10T16:45:39.759+1000 [ERROR] vertex "mso_schema_site_service_graph.schema_site_service_graph_site2" error: No Template found
2024-07-10T16:45:39.767+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:45:39 [DEBUG] Exit from do method
2024-07-10T16:45:39.767+1000 [ERROR] vertex "mso_schema_site_service_graph.schema_site_service_graph_site2 (expand)" error: No Template found
2024-07-10T16:45:39.767+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:45:39 graphcont err No Template found
2024-07-10T16:45:39.770+1000 [INFO] backend/local: plan operation completed
mso_schema_site_contract_service_graph:
2024-07-10T16:52:42.170+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:52:42 [TRACE] HTTP Request Method and URL: PATCH https://xxx/mso/api/v1/schemas/668e2ef2bbcfd63ff84a6a75?validate=false
2024-07-10T16:52:42.170+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:52:42 [TRACE] HTTP Request Body: {[{"op":"add","path":"/sites/6146a02beea713e579d584c0-TEMPLATE1/contracts/CON1/serviceGraphRelationship","value":{"serviceGraphRef":{"schemaId":"668e2ef2bbcfd63ff84a6a75","serviceGraphName":"SG1","templateName":"TEMPLATE1"},"serviceNodesRelationship":[{"consumerConnector":{"clusterInterface":{"dn":"uni/tn-TENANT1/lDevVip-FW1/lIf-INT1"},"redirectPolicy":{"dn":"uni/tn-TENANT1/svcCont/svcRedirectPol-PBR1"},"subnets":[]},"providerConnector":{"clusterInterface":{"dn":"uni/tn-TENANT1/lDevVip-FW1/lIf-INT1"},"redirectPolicy":{"dn":"uni/tn-TENANT1/svcCont/svcRedirectPol-PBR1"}},"serviceNodeRef":{"schemaId":"668e2ef2bbcfd63ff84a6a75","serviceGraphName":"SG1","serviceNodeName":"node1","templateName":"TEMPLATE1"}}]}}]}
2024-07-10T16:52:42.720+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:52:42 [DEBUG] HTTP Request: PATCH https://xxx/mso/api/v1/schemas/668e2ef2bbcfd63ff84a6a75?validate=false
2024-07-10T16:52:42.720+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:52:42 [DEBUG] HTTP Response: 400 400 Bad Request &{400 Bad Request 400 HTTP/1.1 1 1 map[Content-Language:[en] Content-Length:[228] Content-Type:[application/json] Date:[Wed, 10 Jul 2024 06:52:42 GMT] Server:[nginx] Strict-Transport-Security:[max-age=31536000; includeSubDomains] X-Ratelimit-Limit:[-1] X-Ratelimit-Remaining:[-1] X-Ratelimit-Reset:[1559582945]] 0x140005cd180 228 [] false false map[] 0x14000294a00 0x14000540160}
2024-07-10T16:52:42.720+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:52:42 [DEBUG] HTTP response unique string PATCH https://xxx/mso/api/v1/schemas/668e2ef2bbcfd63ff84a6a75?validate=false {"code":400,"message":"site-local Contract CON1 in site SITE2 in template TEMPLATE1: Provider connector in TEMPLATE1 must have uniform redirect policy configured on all sites for node1 and contract CON1","info":null}
2024-07-10T16:52:42.720+1000 [DEBUG] provider.terraform-provider-mso_v1.2.0: 2024/07/10 16:52:42 [DEBUG] Exit from do method
2024-07-10T16:52:42.724+1000 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot
2024-07-10T16:52:42.725+1000 [ERROR] vertex "mso_schema_site_contract_service_graph.schema_site_contract_service_graph_site2" error: "site-local Contract CON1 in site SITE2 in template TEMPLATE1: Provider connector in TEMPLATE1 must have uniform redirect policy configured on all sites for node1 and contract CON1"{}
Expected Behavior
mso_schema_site_service_graph:
This resource should not be dependent on other resources having already been applied in order for a plan to be successful.
mso_schema_site_contract_service_graph:
A separate PATCH operation for each site should be accepted by NDO
Actual Behavior
mso_schema_site_service_graph:
This resource fails to plan/apply unless dependent resources (such as mso_schema and mso_schema_template_service_graph) have already been applied.
mso_schema_site_contract_service_graph:
NDO appears to have introduced a validation rule that won't permit sites in this resource to be configured in separate PATCH requests.
It looks like it will be necessary to update this resource to allow the configuration for all sites to be specified under one instance of the resource.
The text was updated successfully, but these errors were encountered:
Only mso_schema_site_service_graph has been resolved. The problem with mso_schema_site_contract_service_graph for which this issue was originally raised has not yet been resolved.
github-actionsbot
changed the title
'mso_schema_site_contract_service_graph' resource fails validation by NDO
'mso_schema_site_contract_service_graph' resource fails validation by NDO (DCNE-95)
Aug 14, 2024
Community Note
Terraform Version
Terraform v1.5.7
MSO version
APIC version and APIC Platform for Site Level Resources
Affected Resource(s)
Terraform Configuration Files
Debug Output
mso_schema_site_service_graph:
mso_schema_site_contract_service_graph:
Expected Behavior
mso_schema_site_service_graph:
This resource should not be dependent on other resources having already been applied in order for a plan to be successful.
mso_schema_site_contract_service_graph:
A separate PATCH operation for each site should be accepted by NDO
Actual Behavior
mso_schema_site_service_graph:
This resource fails to plan/apply unless dependent resources (such as mso_schema and mso_schema_template_service_graph) have already been applied.
mso_schema_site_contract_service_graph:
NDO appears to have introduced a validation rule that won't permit sites in this resource to be configured in separate PATCH requests.
It looks like it will be necessary to update this resource to allow the configuration for all sites to be specified under one instance of the resource.
The text was updated successfully, but these errors were encountered: