Skip to content
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

OCPBUGS-16692: OpenStack: fix crash with empty platform in machinepool #7363

Merged

Conversation

mandre
Copy link
Member

@mandre mandre commented Jul 25, 2023

Passing an empty platform in machinepools caused the installer to exit with an ugly stack trace. This commit fixes the convertOpenStack() function to account for cases where the platform is not defined in the machine pools.

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jul 25, 2023
@openshift-ci-robot
Copy link
Contributor

@mandre: This pull request references Jira Issue OCPBUGS-16692, which is invalid:

  • expected the bug to target the "4.14.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Passing an empty platform in machinepools caused the installer to exit with an ugly stack trace. This commit fixes the convertOpenStack() function to account for cases where the platform is not defined in the machine pools.

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.

@mandre
Copy link
Member Author

mandre commented Jul 25, 2023

I expect openstack-manifests to fail, due to the bug I'm fixing here. Once I proved it failed, I'll remove the revert.

@mandre
Copy link
Member Author

mandre commented Jul 25, 2023

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jul 25, 2023
@openshift-ci-robot
Copy link
Contributor

@mandre: This pull request references Jira Issue OCPBUGS-16692, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (itbrown@redhat.com), skipping review request.

In response to this:

/jira refresh

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.

@mandre
Copy link
Member Author

mandre commented Jul 25, 2023

@dulek
Copy link
Contributor

dulek commented Jul 25, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 25, 2023
@mandre
Copy link
Member Author

mandre commented Jul 25, 2023

/retest

@mandre
Copy link
Member Author

mandre commented Jul 25, 2023

/assign pawanpinjarkar

mandre and others added 3 commits July 27, 2023 10:27
Passing an empty platform in machinepools caused the installer to exit
with an ugly stack trace. This commit fixes the convertOpenStack()
function to account for cases where the platform is not defined in the
machine pools.
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 27, 2023
@EmilienM
Copy link
Member

@mandre I added unit tests which will help as well with testing. The openstack-manifest addition is nice as well btw.
I've tested these new unit tests before your PR and they fail; so your addition + unit tests is helping.

@EmilienM
Copy link
Member

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 27, 2023
@EmilienM
Copy link
Member

/retest-required

@EmilienM
Copy link
Member

/retest-required

@mandre
Copy link
Member Author

mandre commented Jul 27, 2023

/retest

@mandre
Copy link
Member Author

mandre commented Jul 27, 2023

The openstack jobs were all successful before the rebase, which didn't change installer code.

@mandre
Copy link
Member Author

mandre commented Jul 28, 2023

/retest

@EmilienM
Copy link
Member

The 2 errors (openstack-ovn and parallel) are not related to this PR and can safely be ignored, I had a look.

@dulek
Copy link
Contributor

dulek commented Jul 28, 2023

/approve

@stephenfin
Copy link
Contributor

/lgtm
/retest-required

Copy link
Contributor

@r4f4 r4f4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dulek, EmilienM, r4f4

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 8f032c2 and 2 for PR HEAD 7e1de0d in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD b2617aa and 1 for PR HEAD 7e1de0d in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 29, 2023

@mandre: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-openstack-sdn-parallel 7e1de0d link false /test e2e-openstack-sdn-parallel

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.

@stephenfin
Copy link
Contributor

/retest-required

@openshift-merge-robot openshift-merge-robot merged commit 66cc2e5 into openshift:master Jul 29, 2023
27 of 28 checks passed
@openshift-ci-robot
Copy link
Contributor

@mandre: Jira Issue OCPBUGS-16692: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-16692 has been moved to the MODIFIED state.

In response to this:

Passing an empty platform in machinepools caused the installer to exit with an ugly stack trace. This commit fixes the convertOpenStack() function to account for cases where the platform is not defined in the machine pools.

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.

@EmilienM EmilienM deleted the openstack-platform-none branch July 29, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants