-
Notifications
You must be signed in to change notification settings - Fork 50
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
Provider version 1.21.0 - Undefined attributes being updated #335
Comments
Hi @zippanto , Thank you for bringing this issue to our attention. You are correct; our provider has recently begun comparing all arguments to support the unset feature, which may have caused this problem. As a temporary solution, you may consider downgrading Terraform FOS to the previous version or ignoring these arguments in the lifecycle configuration. We are actively working on a patch to address this issue and expect to release it soon. We sincerely apologize for any inconvenience this may have caused, and we greatly appreciate your continued support of our product. Let me know if you still have other questions.
Thanks, |
Hi @MaxxLiu22, Thanks for the swift response. No problem at all we were only testing the new provider version in the lab so there was no inconvenience. Thanks. |
Hi @MaxxLiu22, We are testing the new version 1.21.1. Unfortunately it seems some things are still not working as expected. One issue that was not apparent to us and so we didn't highlight it in the original report is that there seems to be a change in behaviour when setting an attribute to null on a resource. Previously when the attribute was set to null it would mean the value of that attribute on the firewall would not be changed. In this version when the attribute is set to null it unsets the attribute. Could you please clarify what the intended behaviour is? Would that be the intended behaviour across all resources and attributes? It's important for us to understand as we have been relying on the previous behaviour. Please see below for an example:
An example where an id is trying to be set. As mentioned before this will update successfully, but the same change will be shown as an update on every subsequent apply.
An example where attributes that are not defined on the resource are trying to be set null. As mentioned before this will error, because one of the attributes cannot be unset (vlanid in this example).
Please advise. Thanks. |
A few more examples where an id is trying to be set:
Thanks. |
Hi @zippanto , "Apologies for any inconvenience. Starting from version 1.21.0, in Terraform for FortiOS, setting attributes to null is sending Our aim is to offer flexibility to unset any arguments where an empty value is meaningful. In cases where id is set to null (0), this is not meaningful, and FortiOS does not accept it even no error raised. We plan to improve this behavior on the Terraform side. However, Thanks, |
Hi,
With the new provider version 1.21.0 we are seeing the following behaviour. Presumably this is caused by the fix for #332 / Fix variables could not been removed/reset issue.
When applying the plan resources that have certain attributes undefined are being updated to null value. Some of these will cause an error - for example fortios_system_global > gui_device_lattitude - some others will not cause an error, but will be updated on every subsequent apply - for example fortios_router_ospf > summary_address > id. I don't think this behaviour is intended. Please see below for a few examples where this issue is apparent:
Please advise.
Thanks.
The text was updated successfully, but these errors were encountered: