-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Bug 1838032: Better docs for using custom subnets #3647
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
Bug 1838032: Better docs for using custom subnets #3647
Conversation
|
@iamemilio: This pull request references Bugzilla bug 1838032, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
docs/user/openstack/customization.md
Outdated
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.
The user-provided subnet needs to have a DHCP server. This will likely always be the case, but better be explicit about the requirement.
Also, we should explain how to avoid potential IP address conflicts with the API and Ingress VIPs. These IP should be picked outside of the DHCP range and passed to the installer via the apiVIP and ingressVIP options. It would actually be better if we could let the DHCP assign the VIPs on the ports.
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.
How would we have dhcp assign the ports? I looked into allowing the ports to be set dynamically in the installer and the way things are right now, it is not doable.
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.
Using the CLI, by specifying --fixed-ip "subnet=<my-subnet>", it's possible to let the DHCP assign an IP to the port:
$ openstack port create --network mandre-krc6g-openshift --security-group mandre-krc6g-worker --fixed-ip "subnet=mandre-krc6g-nodes" --tag openshiftClusterID="mandre-krc6g" "mandre-krc6g-test-port"
$ openstack port show mandre-krc6g-test-port -f value -c fixed_ips
[{'subnet_id': 'c72ac7d7-2f46-4698-92ad-22458089de7d', 'ip_address': '10.0.128.34'}]
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.
the installer doesn't let you pass a port, it only lets you pass it an IP address to make a port from. I am proposing changing it to allow you to pass the ports directly here though: openshift/enhancements#342
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.
Well, the installer creates the port. It's the same thing. I showed how it worked with the CLI. In terraform, you'd have to pass a fixed_ip stuct with a subnet_id for the port creation.
https://www.terraform.io/docs/providers/openstack/r/networking_port_v2.html#fixed_ip
|
/lgtm |
|
/hold until I close all the comments |
|
/hold cancel |
docs/user/openstack/customization.md
Outdated
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.
Seems like this addition has nothing to do here :)
docs/user/openstack/customization.md
Outdated
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'd like a comment somewhere saying that apiVIP and ingressVIP should be picked outside of the DHCP allocation range in order to avoid any IP address conflicts.
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.
hmm yeah that is wise, I will add that
ebfca77 to
6debf76
Compare
docs/user/openstack/customization.md
Outdated
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.
@iamemilio "machiensSubnet" -> "machinesSubnet"
6debf76 to
f681266
Compare
docs/user/openstack/customization.md
Outdated
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.
s/tage/tag/
Do we track the support (or lack of) custom subnets and provider networks somewhere? Not asking to put the link in the doc.
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 am not sure, but this has come up a few times as a common misunderstanding. If not here, we should make a note of it somewhere at least
f681266 to
fb30018
Compare
|
I personally find it a little too verbose. Not a bit deal, it still provides good information. We can rework the docs later if it's really bothering us. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Fedosin 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 |
|
@iamemilio: Bugzilla bug 1838032 is in an unrecognized state (VERIFIED) and will not be moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This beefs up the openstack docs for installing with a custom subnet.
/cc @pierreprinetti @maxwelldb @morenod
/label platform/openstack