-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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/openstack Proposal: drop floating_ip from instances #6580
Comments
Of course, one of benefits to using top level at the moment is the fact that it doesnt have the same bug, as network. Luckily, I fixed this bug in this PR: #6579 |
@Fodoj Thank you for your input. I agree with you that having two ways of specifying a floating IP can be confusing. The As discussed previously, the top-level floating IP used to be the only way to specify a floating IP to an instance. The caveat, as mentioned in the docs you posted, is that it will only attach to the first specified network. Those docs also mention one very important piece:
The public cloud providers in Terraform have it easy ( 😏 ) because there's only one way to use the cloud service. OpenStack environments can differ from site to site. One of those differences is the inability for users to define networks. It sounds crazy, but those types of environments exist and I'd hate for Terraform to be useless to a subset of users because while Terraform could have accounted for the use-case, it didn't. This is why I try to account for all use-cases. It gets messy and it can suck at times, but it's also a fun challenge. I sympathize with any frustration you have with usability. In hindsight, maybe there could have been a better way to implement the per-network floating IPs:
Unfortunately in this case, we can't just drop this functionality, though. I'm open to alternative ways of implementing this as well as patches to fix issues like the one you described (there are other pieces that have had the same issue you describe - we didn't just drop those). I'm going to go ahead and close this, but please feel free to re-open if you feel very strongly about the removal and we can discuss further. |
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. |
From documentation:
There is a major problem with top-level floating_ip: it does not react to changes in actual infrastructure.
Its easy to check it: create an instance with top-level FIP, then deassociate this FIP in Nova and then re-run terraform. Terraform won't notice any changes and will behave as if FIP is still associated with this instance.
There are two ways to fix it:
I believe dropping it completely is a way to go. FIP is always associated with one of networks anyways, and having it top level is both confusing and adds weird bugs.
The text was updated successfully, but these errors were encountered: