-
Notifications
You must be signed in to change notification settings - Fork 33
Bug 1955969: - Makes port names unique. #181
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
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
mandre
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.
Seems reasonable.
|
/test e2e-openstack |
|
/test e2e-openstack-ipi |
|
@adduarte: The specified target(s) for
Use
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. |
|
/test e2e-openstack |
|
/hold |
05fd220 to
200009b
Compare
|
/hold cancel |
|
/hold |
|
/test e2e-openstack |
|
/hold cancel |
|
@adduarte: No Bugzilla bug is referenced in the title of this pull request. 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. |
|
@adduarte: This pull request references Bugzilla bug 1955969, 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
No GitHub users were found matching the public email listed for the QA contact in Bugzilla ([email protected]), skipping review request. 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 is ready to merge once we get a green on ci/prow/e2e-openstack |
|
@adduarte: This pull request references Bugzilla bug 1955969, which is valid. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla ([email protected]), skipping review request. 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. |
|
Do you plan on changing port names in Terraform as well? Also this requires a review by the Kuryr folk: |
|
@pierreprinetti: GitHub didn't allow me to request PR reviews from the following users: maysamacedo. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
| portName = name | ||
| } | ||
| if len(portName) > PortNameMaxSize { | ||
| portName = portName[len(portName)-PortNameMaxSize:] |
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 logic for shortening the the port name in case it's too long takes the last 255 chars, I would have personally kept the first chars since the name is supposed to be for humans. Not that it matters, I expect we never end up in a situation where the port name is that long anyway...
|
@adduarte I hope you don't mind, I changed the commit message. Your commit still had the WIP tag in its subject. |
|
/hold Thank you. |
The bugzilla in question is rooted on attempting to create ports with the same name. This patch uses the subnet and netids as name suffixes for ports. Also limits the length of the port name to no more than 255 characters, which is in line with what the current neutron db schema can tolerate.
You're entirely correct, I've made the requested change. |
|
Please note that backporting this to 4.7 will break CNO's ability to deploy an API LB through Octavia, effectively breaking installation with Kuryr. It'd require some more effort to make it work. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mandre 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 |
|
@adduarte: All pull requests linked via external trackers have merged: Bugzilla bug 1955969 has been 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. |
* Make yaml lint happy * Add filter key for networks
The bugzilla in question is rooted on attempting to create
ports with the same name.
This patch uses the subnet and netids as name suffixes for ports.
Also limits the length of the port name to no more than 255 characters, which is in line with what the current neutron db schema can tolerate.
https://issues.redhat.com/browse/OCPBUGSM-28624