-
Notifications
You must be signed in to change notification settings - Fork 10
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
Bug bloc data dns view #138
Comments
a precision I talked about data bloc but we just use the data bloc for the terraform import of the view. Once we have imported the view and aligned the configuration we saw this difference:
Which was not even in the configuration of csp.eu.infoblox.com |
Hi @SamirT-hub, |
Hi, viewname = { My module: I have done import of all the views here is one example: When I look at the state what is strange si that all my 9 views have public key dns sec and aaa acl configured whereas I configured via dns properties uncheck dns sec and aaa acl is configured by default to any. As I am not managing this part in the dns view terraform and it is inherited I never mentionned it in my code + state imported is false as we have unchecked DNS sec. What is more strange is that the action of modify is done only in 3 of my 9 zones here is a plan of the changes: |
Hi mathewab, Do you need anything else ? Thank you. Samir TENNAH. |
Hi Samir, Thank you for sharing the config. As I understand, the issue that you are facing is during the "terraform import". The state has additional values in the config that you didn't expect. The extra values that you see in the state might already be in the object in the API. In the UI, you might not be seeing it since the "override" toggle hides it. If you turn on the toggle, you might be able to see the values in the UI as well. Since they are not overridden, the applied config will not have these values, but are still present in the object. The A workaround to this would be to explicitly set filter_aaaa_acl as below and run
|
Hi Samir, There is an issue with the UI that adds these values to filter_aaaa_acl when you edit the view (even without any changes made to the view). This behaviour is not seen when the view is first created. As a result, it may be that only three of the views were updated with these values in the UI. Since there are only 3 views that have these problem, I understand that you don't want to add this config for all views since you use a module for it. I understand that you tried to apply the plan without the config change and it didn't work. That is because of an issue with the provider where setting null values for list doesn't unset the list. Having In the meantime, for unsetting, you can do a workaround that involves 2 steps.
|
Hi =, Unfortunately still the same :/ Samir TENNAH. |
Hello, Any news ? Thank you. Samir TENNAH. |
Hello,
Hope you are going well. We have used the bloc data to have the characteristics of the dns view. and align our pipeline terraform so we take back the exact same configuration.
FYI, the DNS sec was disable in the global properties + EDNS enable for certain domain. The views are in inherited mode from global properties.
But what is strange is that we observed in the stated of all the views, normally in the state we should nothing:
dnssec_root_keys = [
- {
- algorithm = 8 -> null
- protocol_zone = "." -> null
- public_key = "AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU=" -> null
- sep = true -> null
- zone = "." -> null
},
] -> (known after apply)
- filter_aaaa_acl = [
- {
- access = "allow" -> null
- address = "" -> null
- element = "any" -> null
},
]
But what is stranger is when we force push in the view we have which is normal as we have not dns sec configured in dns global properties or aaa acl:
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to module.iac--bloxone-dns-view["ari-test-iac"].bloxone_dns_view.bloxone_dns_view, provider
│ "provider["registry.terraform.io/infobloxopen/bloxone"]" produced an unexpected new value: .filter_aaaa_acl: was null, but now
│ cty.ListVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"access":cty.StringVal("allow"), "acl":cty.NullVal(cty.String),
│ "address":cty.StringVal(""), "element":cty.StringVal("any"),
│ "tsig_key":cty.NullVal(cty.Object(map[string]cty.Type{"algorithm":cty.String, "comment":cty.String, "key":cty.String,
│ "name":cty.String, "protocol_name":cty.String, "secret":cty.String}))})}).
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
The text was updated successfully, but these errors were encountered: