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 1906517: OpenStack: Skip collecting info for empty subnet IDs #4474
Bug 1906517: OpenStack: Skip collecting info for empty subnet IDs #4474
Conversation
Some clouds may return a generic 404 error instead of an `ErrResourceNotFound` error, causing the installer to fail with: FATAL failed to fetch Install Config: failed to generate asset "Install Config": failed to generate OpenStack cloud info: failed to fetch machine subnet info: Resource not found We need to not gather subnet information unless a machine subnet was provided.
@mandre: This pull request references Bugzilla bug 1906517, 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
In 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. |
/label platform/openstack |
/test e2e-openstack |
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 do you think about checking for the zero value one level down the stack, on line 156?
if ic.OpenStack.MachinesSubnet != "" {
ci.MachinesSubnet, err = ci.getSubnet(ic.OpenStack.MachinesSubnet)
if err != nil {
return errors.Wrap(err, "failed to fetch machine subnet info")
}
}
It would make it more explicit that you're leaving ci.MachinesSubnet
unchanged, IMHO.
However, that's just a nit, and LGTM otherwise
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pierreprinetti The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
I considered it, but I have a slight preference for returning early on invalid values rather than having this logic implemented in the calling function. Plus we're already using this pattern in /hold cancel |
/retest Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
3 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/skip |
/retest Please review the full test history for this PR and help us cut down flakes. |
@mandre: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
@mandre: All pull requests linked via external trackers have merged: Bugzilla bug 1906517 has been moved to the MODIFIED state. In 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. |
/cherry-pick release-4.6 |
@mandre: new pull request created: #4527 In 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. |
Some clouds may return a generic 404 error instead of an
ErrResourceNotFound
error, causing the installer to fail with:We need to not gather subnet information unless a machine subnet was
provided.