-
Notifications
You must be signed in to change notification settings - Fork 32
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
BD with DHCP Relay Fails. NDO Version 4.1.2e and provider version 0.10.0 #221
Comments
From the API Browser I am able to see a Bridge Domain with DHCP Relay policies attached. This doesn't seem to be a problem with the API. It seems to be a problem with the provider in my testing. I used the rest resource and adding a few other calls to see how it interacts. It seems to be able to read a dhcp policy with the mso_rest data
outputs with this
|
Might be already fixed by #220 |
Hi @scotttyso, I just tested the mso_schema_template_bd resource issue with the latest master source code. The Atoi Issue was fixed with another PR: #220. |
@sajagana - When will it be released? |
I just released v0.11.0. Please let us know if this issue is fixed now. |
@scotttyso Have you had the time to check if the latest release has fixed the issue? |
@lhercot When I run a plan/apply. The first attempt says it is successful
But when I go to NDO the value in the dhcp relay policies is blank Running a plan again it says it is going to delete and re-add Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following
symbols:
~ update in-place
Terraform will perform the following actions:
# module.tenants["terraform"].mso_schema_template_bd.bridge_domains["10.88.203.0"] will be updated in-place
~ resource "mso_schema_template_bd" "bridge_domains" {
id = "10.88.203.0"
name = "10.88.203.0"
# (18 unchanged attributes hidden)
- dhcp_policies {
- dhcp_option_policy_version = 0 -> null
- name = "dummy" -> null
- version = 0 -> null
}
+ dhcp_policies {
+ dhcp_option_policy_name = (known after apply)
+ dhcp_option_policy_version = (known after apply)
+ name = "dummy"
+ version = 3
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: main.plan
To perform exactly these actions, run the following command to apply:
terraform apply "main.plan" This second round actually impacts the bridge domain subnet, and the next plan starts the re-create of the relay and subnet associations: Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following
symbols:
+ create
~ update in-place
Terraform will perform the following actions:
# module.tenants["terraform"].mso_schema_template_bd.bridge_domains["10.88.203.0"] will be updated in-place
~ resource "mso_schema_template_bd" "bridge_domains" {
id = "10.88.203.0"
name = "10.88.203.0"
# (18 unchanged attributes hidden)
- dhcp_policies {
- dhcp_option_policy_version = 0 -> null
- name = "dummy" -> null
- version = 0 -> null
}
+ dhcp_policies {
+ dhcp_option_policy_name = (known after apply)
+ dhcp_option_policy_version = (known after apply)
+ name = "dummy"
+ version = 3
}
}
# module.tenants["terraform"].mso_schema_template_bd_subnet.bridge_domain_subnets["10.88.203.0:10.88.203.1/24"] will be created
+ resource "mso_schema_template_bd_subnet" "bridge_domain_subnets" {
+ bd_name = "10.88.203.0"
+ description = (known after apply)
+ id = (known after apply)
+ ip = "10.88.203.1/24"
+ no_default_gateway = false
+ querier = false
+ schema_id = "64703625321af62f63df94b5"
+ scope = "public"
+ shared = false
+ template_name = "terraform"
}
Plan: 1 to add, 1 to change, 0 to destroy.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Saved the plan to: main.plan
To perform exactly these actions, run the following command to apply:
terraform apply "main.plan"
tyscott@TYSCOTT-DESKTOP:~/terraform-cisco-modules/ndo-test$ |
This issue is not solved. I am sorry for the delay but I had other customer requests for a while Right now I just pushed a new SCHEMA with 2 BDs/EPGs/domains etc. If I do a terraform plan it shows there are no changes
If I now add in the DHCP policies to the resources You will see the only update is the DHCP Policies
And now the state is corrupt and I can't do anything with terraform. The only way to recover is to delete the terraform state. Manually delete the objects in the UI or painfully re-import the objects one at a time. |
Community Note
Terraform Version
v1.4.5
MSO version
APIC version and APIC Platform for Site Level Resources
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
the DHCP Relay Policies are failing to apply. It added two dhcp relay policies to the BD with empty values.
After completing the plan I get the following fault from terraform
I cleared my terraform state and commented out the resource and tried to read the bd object and I then get the same error message.
I then created a BD manually in the UI and tried to read it with the same data source and got the same error messages.
I removed the dhcp relay policies from both BD's that I created and the plan works.
I added the dhcp relay policy back to the BD and ran with just the data resource and it failed with the same error message.
It seems to be a bug with the provider.
Actual Behavior
Steps to Reproduce
Attempt to add or read a bridge domain with a dhcp relay policy attached in NDO version 4.1 with the provider 0.10.0
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: