Skip to content

MachinePools/OpenStack: Fix nil pointer exception#2274

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mce-2.5from
2uasimojo:HIVE-2476/osp-npe-mce-2.5
Aug 8, 2024
Merged

MachinePools/OpenStack: Fix nil pointer exception#2274
openshift-merge-bot[bot] merged 1 commit intoopenshift:mce-2.5from
2uasimojo:HIVE-2476/osp-npe-mce-2.5

Conversation

@2uasimojo
Copy link
Member

@2uasimojo 2uasimojo commented Apr 30, 2024

This is not a cherry-pick of #2253 / (c6b37ee & f59f327). That solution revendored installer to pick up the fix from upstream. In older branches, this would have dragged in too many dependencies, so we instead fix it "locally" with an explicit nil check.

Note also that the original fix added unit tests. We can't do that here either because the new tests rely on the OpenStack UT suite being un-broken [1], which again relied on upstream changes [2][3] we can't pull into older branches.

[1] #2251
[2] openshift/installer#8187
[3] openshift/installer#8209

HIVE-2476

This is *not* a cherry-pick of openshift#2253 / (c6b37ee & f59f327). That
solution revendored installer to pick up the fix from upstream. In older
branches, this would have dragged in too many dependencies, so we
instead fix it "locally" with an explicit nil check.

Note also that the original fix added unit tests. We can't do that here
either because the new tests rely on the OpenStack UT suite being
un-broken [1], which again relied on upstream changes [2][3] we can't pull into
older branches.

[1] openshift#2251
[2] openshift/installer#8187
[3] openshift/installer#8209

HIVE-2476
@openshift-ci openshift-ci bot requested review from jstuever and suhanime April 30, 2024 16:35
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 30, 2024
@codecov
Copy link

codecov bot commented Apr 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 59.30%. Comparing base (6a94876) to head (980b2d8).
Report is 14 commits behind head on mce-2.5.

Files Patch % Lines
pkg/controller/machinepool/openstackactuator.go 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           mce-2.5    #2274      +/-   ##
===========================================
+ Coverage    57.87%   59.30%   +1.43%     
===========================================
  Files          187      187              
  Lines        26074    28508    +2434     
===========================================
+ Hits         15090    16907    +1817     
- Misses        9719    10269     +550     
- Partials      1265     1332      +67     
Files Coverage Δ
pkg/controller/machinepool/openstackactuator.go 18.75% <0.00%> (-0.35%) ⬇️

... and 18 files with indirect coverage changes

@suhanime
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 2uasimojo, suhanime

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@2uasimojo
Copy link
Member Author

Thanks @suhanime!

/hold for testing

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 30, 2024
@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 30, 2024
@2uasimojo
Copy link
Member Author

2uasimojo commented Aug 8, 2024

/remove-lifecycle stale

/hold cancel

/override "Red Hat Konflux / hive-mce-25-on-pull-request"

The segfault issue has been addressed; the autoscaling problem will be investigated separately (HIVE-2590).

@openshift-ci openshift-ci bot removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Aug 8, 2024
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 8, 2024

@2uasimojo: Overrode contexts on behalf of 2uasimojo: Red Hat Konflux / hive-mce-25-on-pull-request

Details

In response to this:

/remove-lifecycle stale

/hold cancel

/override "Red Hat Konflux / hive-mce-25-on-pull-request"

The segfault issue has been addressed; the autoscaling problem will be investigated separately (HIVE-2590).

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-sigs/prow repository.

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 7bc174f and 2 for PR HEAD 980b2d8 in total

@2uasimojo
Copy link
Member Author

/override ci/prow/security

#2387

/override "Red Hat Konflux / hive-mce-25-on-pull-request"

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 8, 2024

@2uasimojo: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • Red Hat Konflux / hive-mce-25-on-pull-request

Only the following failed contexts/checkruns were expected:

  • ci/prow/coverage
  • ci/prow/e2e
  • ci/prow/e2e-pool
  • ci/prow/images
  • ci/prow/security
  • ci/prow/unit
  • ci/prow/verify
  • pull-ci-openshift-hive-master-coverage
  • pull-ci-openshift-hive-master-e2e
  • pull-ci-openshift-hive-master-e2e-pool
  • pull-ci-openshift-hive-master-images
  • pull-ci-openshift-hive-master-security
  • pull-ci-openshift-hive-master-unit
  • pull-ci-openshift-hive-master-verify
  • tide

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

Details

In response to this:

/override ci/prow/security

#2387

/override "Red Hat Konflux / hive-mce-25-on-pull-request"

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-sigs/prow repository.

@2uasimojo
Copy link
Member Author

/override ci/prow/security

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 8, 2024

@2uasimojo: Overrode contexts on behalf of 2uasimojo: ci/prow/security

Details

In response to this:

/override ci/prow/security

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-sigs/prow repository.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 8, 2024

@2uasimojo: 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/security 980b2d8 link true /test security

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit f421191 into openshift:mce-2.5 Aug 8, 2024
@2uasimojo 2uasimojo deleted the HIVE-2476/osp-npe-mce-2.5 branch August 8, 2024 22:57
@2uasimojo
Copy link
Member Author

/cherry-pick mce-2.4

@openshift-cherrypick-robot

@2uasimojo: new pull request created: #2410

Details

In response to this:

/cherry-pick mce-2.4

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-sigs/prow repository.

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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants