-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
OpenStack: plan always shows changes to resource #1784
Comments
I was able to "solve" most of the perceived changes by setting the default values explicitly in my resource configurations. However, one remained, which is a value that gets set dynamically, and I can't/don't want to predict beforehand. So this certainly looks like a bug:
there is a second one bugged right now, but that is one I build and haven't pushed a PR for yet, but here's the output anyway:
|
I am seeing this issue as well, and while specifying explicit default values helps somewhat, it is rather annoying, especially with the If the IP address of the router interface resource were available (it is visible in the OpenStack dashboard, but is not exposed as an attribute) it might be possible to make the
|
I think these issues were stemming from parameters that were not "computed" but should have been. There have been some recent commits that should resolve this. WRT the |
I am also seeing this with OpenStack volumes and their
I can set the |
Right, Testing on version 0.5.0, which was released prior to those changes, I'm not actually seeing the volume destroyed and recreated when doing a refresh and apply. The only issue I see is that Terraform is always reporting that values need changed. Which is annoying... The only parameter oddity that is still left to work out is the volume attach metadata. I've reported that problem in #1830 and will make some noise about it now. If you're seeing situations where resources are actually being destroyed and recreated (new IDs and all), can you provide a sanitized version of the Terraform configuration you're using? Regarding If there are no volume types defined in your cloud (which is entirely possible / normal), the value will be None. That's not very intuitive, though. You should be able to see the volume types available to you by running: $ nova volume-type-list I hope that helps 😄 |
As a quick follow-up, #1957 should resolve the rest of the volume-related refresh issues. |
@jtopjian - just built terraform from master with your #1957 merged and my openstack problems are gone - thanks so much for getting this fixed so quickly, and thanks to @phinze and @mitchellh for the related work in #1824 and quick merges. I literally went to sleep at crazy o'clock (I'm in Berlin) and woke up to find the magic cyber elves had fixed my problems. I'm still having some issues with getting openstack_compute_floatingip_v2.XXX.fixed_ip values into my DNS (cloudflare provider reports |
@JeanMertz you might want to try build from master and see if your problems are fixed too, then this could probably be closed. |
One more small issue (that could well be separated, as it is entirely benign), a re-apply shows a lot of meaningless changes on my security groups:
(the ids are same as I provided on an earlier run, but the diff checker is looking at the names). |
@dupuy awesome -- glad to hear things are working much better 😄 Regarding the floating IP / cloudflare issue, can you provide a sample Terraform config so I can reproduce it and work with it locally? Regarding security groups, this might be fixed in #1848. I haven't had time to look into verifying that PR or trying to reproduce it on my end. |
Unless I'm mistaken, this issue can be closed. The initial reported problems were all fixed with later PRs. Other problems mentioned later in this issue have had separate issues created. |
Sounds good! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What happens:
What I expected to happen:
A couple of notes:
resource below)
openstack_networking_port_v2
), andhave noticed that (some/all) OpenStack Go tests never fail, even when changing
their expected outcomes
The text was updated successfully, but these errors were encountered: