-
Notifications
You must be signed in to change notification settings - Fork 1.5k
openstack: Support setting network UUID via terraform variable. #794
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: Support setting network UUID via terraform variable. #794
Conversation
If this is truly the case, then we should not be adding this as an option in install-config.yml. The barrier for entry into that file should be high. The rare customer that needs to use the network UUID will need to bear the burden of manually modifying the assets generated in later stages. In the near future, there will be an installer target that creates the tfvars (JIRA 917), which the end user can modify to accomplish this. |
|
Ok, that sounds good. I’ll drop the install config part and leave it as a
tfvar that can be manually set in the rare case. Thanks.
On Fri, Dec 7, 2018 at 10:53 PM Matthew Staebler ***@***.***> wrote:
We would expect almost every deployment to be using a unique name for its
external network, though.
If this is truly the case, then we should not be adding this as an option
in install-config.yml. The barrier for entry into that file should be high.
The rare customer that needs to use the network UUID will need to bear the
burden of manually modifying the assets generated in later stages. In the
near future, there will be an installer target that creates the tfvars (JIRA
917 <https://jira.coreos.com/browse/CORS-917>), which the end user can
modify to accomplish this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#794 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAS4Cun0h5jWYqBcJ8zftO0LR9CC-khdks5u2zeYgaJpZM4ZFH2j>
.
--
Russell Bryant
|
|
I tested this today and it looks good - kinda unfortunate that we can't hide the name/id interface in the terraform provider or gophercloud but this seems reasonable assuming we want to enable some cases where an ID is preferred over the name. Happy to approve but wasn't sure if we're waiting on a re-review from @staebler ? |
|
I was going to rework this once the "tfvars" installer target was added. Then I'd drop this from install config, and we'd just have a terraform variable you can hack in the rare case it's needed. I should probably mark this as WIP or something. |
|
/hold |
ae087dc to
f9a665c
Compare
|
The PR and commit-message subjects seem stale since the shift to Terraform variables. |
|
Thanks, I'll fix the PR and commit message. I rebased just to keep the code current, but have the PR marked as blocked until the tfvars target is available which would make this usable in the way we discussed earlier in the PR. |
f9a665c to
04189cf
Compare
flaper87
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, one question inline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if someone "accidentally" sets both, name and id, and these 2 don't correspond to the same network? Will neutron fail or will it give precedence to the id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know for sure since I haven't tested it, but I think terraform will fail because it won't be able to find a network that matches that name + UUID. I do know that setting both works, if you set them properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did test this. Terraform will fail because it can't find a matching network with that name + UUID.
04189cf to
f6ad9ac
Compare
|
@russellb you planning to update this? |
|
I was waiting on a tfvars installer target but maybe that’s not going to
get added? There is already the TF_VAR style env variables that would make
this usable so maybe we don’t need to wait?
On Tue, Feb 5, 2019 at 7:55 AM Flavio Percoco ***@***.***> wrote:
@russellb <https://github.com/russellb> you planning to update this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#794 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAS4CrjS7MAjdDrNzWb8Yb9z48Zq23fHks5vKX8mgaJpZM4ZFH2j>
.
--
Russell Bryant
|
f6ad9ac to
3749707
Compare
|
/hold cancel I think this is ready to go now. @flaper87 |
3749707 to
ce2c18d
Compare
|
@russellb sorry it took me long to get back to this. If you do another rebase, I'll send it through. it looks good |
ce2c18d to
6f9355d
Compare
|
@flaper87 rebase done |
|
/lgtm |
Technically, network names in OpenStack are not unique. We would expect almost every deployment to be using a unique name for its external network, though. In the rare case where you must disambiguate networks, it's possible to specify the UUID via a terraform variable. $ env TF_VAR_openstack_external_network_id="6a32627e-d98d-40d8-9324-5da7cf1452fc" \ > bin/openshift-install create cluster
6f9355d to
8d0847c
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flaper87, russellb The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/test e2e-aws |
Through c8b3b55 (Merge pull request openshift#1338 from flaper87/sec-groups-update, 2019-05-01). I've left 8d0847c (openstack: Support setting network UUID via terraform variable, 2018-12-05, openshift#794) undocumented, since it seems like an unstable-enough user-facing API approach that I don't think we want to noise it about and deal with the fall-out when we change the API ;). That commit also made it into this history via 44a9cd3 (openshift#1294). I've also left off eecf496 (openstack: remove neutron dns, 2019-02-19, openshift#1294), because I have no idea what that's about ;). I'll fill in an entry for it later once one of the OpenStack devs explains it to me :p.
Uh oh!
There was an error while loading. Please reload this page.