CiscoDevNet / terraform-provider-mso

Terraform Cisco MSO provider
https://registry.terraform.io/providers/CiscoDevNet/mso/latest/docs
Mozilla Public License 2.0
7 stars 28 forks source link

mso_schema_template_deploy_ndo / deploy to sites not applyed #257

Closed jjman4 closed 7 months ago

jjman4 commented 7 months ago

Hi,

i've added the mso_schema_template_deploy_ndo into my terraform main config but seems the config was not pushed to all sites. It's still pending on NDO and manually execute "deploy to sites" from ndo postal is still mandatory in order to push into all fabrics. Pls help to investigate.

resource "mso_schema_template_deploy_ndo" "template_deployer" { schema_id = "${data.mso_schema.newObj_schema.id}" template_name = "${data.mso_schema_template.newObj_schema_template.name}" re_deploy = true }

mso_schema_template_deploy_ndo.template_deployer: Creating... mso_schema_template_deploy_ndo.template_deployer: Creation complete after 1s [id=654ded212200008e39e68c78] mso_schema_template_anp.new_ap: Creating... mso_schema_template_anp.new_ap: Creation complete after 1s [id=TERRAFORM] mso_schema_template_bd.new_bd: Creating... mso_schema_template_bd.new_bd: Creation complete after 0s [id=S24-10_246_194] mso_schema_site_bd.new_bd_2: Creating... mso_schema_site_bd.new_bd_2: Creation complete after 1s [id=S24-10_246_194] mso_schema_site_bd.new_bd_1: Creating... mso_schema_site_bd.new_bd_1: Creation complete after 0s [id=S24-10_246_194] mso_schema_template_bd_subnet.new_bd_subnet: Creating... mso_schema_template_bd_subnet.new_bd_subnet: Creation complete after 0s [id=10.246.194.254] mso_schema_site_bd_l3out.site_bd_L3out_2: Creating... mso_schema_site_bd_l3out.site_bd_L3out_2: Creation complete after 0s [id=MIKROTIK] mso_schema_site_bd_l3out.site_bd_L3out_1: Creating... mso_schema_site_bd_l3out.site_bd_L3out_1: Creation complete after 1s [id=MIKROTIK] mso_schema_site_anp.new_ap_2: Creating... mso_schema_site_anp.new_ap_2: Creation complete after 0s [id=TERRAFORM] mso_schema_siteanp.new: Creating... mso_schema_siteanp.new: Creation complete after 0s [id=TERRAFORM] mso_schema_template_anp_epg.new_epg: Creating... mso_schema_template_anp_epg.new_epg: Creation complete after 1s [id=TERRAFORM-APP] mso_schema_site_anp_epg.new_epg_2: Creating... mso_schema_site_anp_epg.new_epg_2: Creation complete after 0s [id=TERRAFORM-APP] mso_schema_site_anp_epg.new_epg_1: Creating... mso_schema_site_anp_epg.new_epg_1: Creation complete after 0s [id=TERRAFORM-APP] mso_schema_site_anp_epg_domain.site_new_epg_domain_2: Creating... mso_schema_site_anp_epg_domain.site_new_epg_domain_2: Creation complete after 0s [id=654ded212200008e39e68c78/sites/5d9850730e00003100c40416-Template1/anps/TERRAFORM/epgs/TERRAFORM-APP/domainAssociations/uni/vmmp-VMware/dom-VMM-VDS-2-02] mso_schema_site_anp_epg_domain.site_new_epg_domain_1: Creating... mso_schema_site_anp_epg_domain.site_new_epg_domain_1: Creation complete after 0s [id=654ded212200008e39e68c78/sites/5d98502210000038006bd141-Template1/anps/TERRAFORM/epgs/TERRAFORM-APP/domainAssociations/uni/vmmp-VMware/dom-VMM-VDS-1-02]

2023-11-30T15:37:38.496+0300 [DEBUG] provider.terraform-provider-mso_v0.11.1: 2023/11/30 15:37:38 [DEBUG] HTTP response unique string POST https://xx.xx.xx.xx/mso/api/v1/task {"schemaversion":"1","id":"656882125925e756f4820f58","siteGr oup":"default","reqDetails":{"schemaId":"654ded212200008e39e68c78","templateName":"Template1","isRedeploy":true,"timeoutSec":3600},"operDetails":{"createdTime":"2023-11-30T12:37:38.289992959Z","startedTime":"0001-01-01T00:00:00Z","comple tionTime":"0001-01-01T00:00:00Z","taskStatus":"Pending","userAuthToken":"eyJhbGciOiJSUzI1NiIsImtpZCI6Imh6MWxwZTZ4Z3Nnc25vcmRlZmhxNHFvZTZndDRqN3luIiwidHlwIjoiSldUIn0.eyJhdnBhaXIiOiJzaGVsbDpkb21haW5zPWFsbC9zaXRlLXBvbGljeS9hcHAtdXNlciIsImNs dXN0ZXIiOiI1NDQ1NGM0ZC00MTAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJleHAiOjE3MDEzNDkwNTcsImlhdCI6MTcwMTM0Nzg1NywiaWQiOiJjNWMyZDY0YmQ3YjI1YzBlNjE4MzNjYTJlZjRjODdlMDgzMWQzNjM0OGM3ZmQxMGRiYmJlYjhjNzExNDk4YzNkIiwiaXNzIjoibmQiLCJpc3MtaG9zdCI6IjEwL jUwLjEwMC4xMSIsInJiYWMiOlt7ImRvbWFpbiI6ImFsbCIsInJvbGVzUiI6MTY3NzcyMTYsInJvbGVzVyI6NDE5NDMwNCwicm9sZXMiOltbInNpdGUtcG9saWN5IiwiV3JpdGVQcml2Il0sWyJhcHAtdXNlciIsIlJlYWRQcml2Il1dfV0sInNlc3Npb25pZCI6IjBxMU5ZNzhVNWJhcm42c0pUcTd2YjEzUCIsInVzZX JmbGFncyI6MCwidXNlcmlkIjoyNTAwMiwidXNlcm5hbWUiOiJuZG90ZXJyYWZvcm0iLCJ1c2VydHlwZSI6ImxvY2FsIn0.Y5M7QpaEMpRqnNAwyIAWmQI4aEkpD0rIrOWw2ejkkK2LfvmAwjLpHcKgQhcGtUUiXgV8IMTPEbVMus58gWtpf3WgxAWnqMwkj0x5lpwJ_GzlcqpNi2mUQIFT9CYCN4j0vu1TG8o3aVYzsaH 4GM0lZZ_H996lHDK7Fy6rIUoZRcR55vHnk4aTcKkRrW1ujp2jygK0_nB2yz1FnlOVuzbOZ4kgW6sZarDoZUK4rBxkNFhXw1VQSp8rzqSgDjsdplPJCtZxxDBGGmjR5Ixwe9EwyCf-FWct8wlxysHCrFqEnqdWCiBv-mMi5aHR9Q0rbqoai4PGQy7oGtxBAM3e4y9IRw"}} 2023-11-30T15:37:38.496+0300 [DEBUG] provider.terraform-provider-mso_v0.11.1: 2023/11/30 15:37:38 [DEBUG] Exit from do method 2023-11-30T15:37:38.496+0300 [DEBUG] provider.terraform-provider-mso_v0.11.1: 2023/11/30 15:37:38 [DEBUG] 654ded212200008e39e68c78: Successful Template Deploy Execution 2023-11-30T15:37:38.497+0300 [WARN] Provider "provider[\"registry.terraform.io/ciscodevnet/mso\"]" produced an unexpected new value for mso_schema_template_deploy_ndo.template_deployer, but we are tolerating it because it is using the l egacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations:

akinross commented 7 months ago

Order of operation issue, where deploy was send prior to config changes and redeploy flag was set for initial deploy. Closing issue after information provided via email exchange.