-
Notifications
You must be signed in to change notification settings - Fork 112
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
vcd_vapp_vm: network: Update of is_primary from false to true does not work for first interface #549
Comments
Thanks for it. Just double checking - did the release version also gave you this problem or we broke something that is untested yet? |
only tested on VCD 10.1, |
Tested with 2.9 release on VCD 10.1: Does not work as well, same behaviour |
Hi @jpbuecken, could test #556 PR? - we improved is_primary handling. Would like to have external confirmation :) |
Accidentally I could rollout The behavior is: After every apply the roles of "is_primary" switches. Funny. Not sure if this should be taken care of by the provider.
|
The situation is better now. The plan still does not show that is_primary = true will be set to false .
But the more important part of this bug seems to be fixed. After i applied the above, I switched back roles again (first interface to primary). No I can apply and it is applied afterwards. (Start point of this bug was that after you can apply multiple times and it was still not changed at this point) -> OK EDIT: Check was done with PR #568 including merge of " Merge branch 'master' into vm-hot-netw-removal a3e37cf" ~3 hours ago |
Yep, HCL doesn't allow to configure such validation. If were will be complains from users who expect different behaviour we will think about internal(apply phase) validation. |
Version
Used a self compiled version based on #543.
It includes the changes from #388
Tested with 2.9 release on VCD 10.1 as well. Same behaviour
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
In the above HCL, switch roles of is_primary.
terraform plan should show that is_primary will be switched.
If you apply, then the roles should have been switched. This means: First interface will be false, second interface will be primary.
NOW: If you switch back again the roles should switch again.
Actual Behavior
The plan only shows change for the interface that switches from false -> true:
Apply this anyway.
NOW: Switch back:
Apply this
Now, run terraform plan again: It did not work to set the first interface as primary again. It still shows the diff.
The text was updated successfully, but these errors were encountered: