HIVE-2476: OpenStack.MachineSets(): Allow nil Replicas#8227
HIVE-2476: OpenStack.MachineSets(): Allow nil Replicas#8227openshift-merge-bot[bot] merged 1 commit intoopenshift:masterfrom 2uasimojo:HIVE-2476/osp-msets-nil-replicas
Conversation
|
@2uasimojo: This pull request references HIVE-2476 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
/assign @EmilienM Now that I'm resurrecting hive's unit tests around OpenStack MachinePools, this has come to light -- and is in fact the subject of the referenced card. The provenance of this goes through #7380 I believe. This one I can work around on the hive side if necessary by making |
pierreprinetti
left a comment
There was a problem hiding this comment.
/approve
It's very interesting for us to know that our code is used in ways we didn't expect. We might need to drop some assumptions tied to the Installer itself.
I have a comment, but otherwise this LGTM!
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
We have a long-standing wishlist item to get rid of our vendoring of installer entirely. It would massively reduce our git footprint as well as making ongoing maintenance way easier. Unfortunately it would be a pretty massive undertaking, and I don't have high hopes we'll actually get around to it ever :( But yeah, in short, we call into installer code for two main things:
|
Indeed, in our CI tooling we call |
A nil pointer exception occurs when the OpenStack MachineSets() func is called with `Replicas==nil`, as it would be when hive is attempting to generate autoscaling MachineSets -- we set the replica count later on after we find out how many MachineSets to spread the autoscaling min/max across. Add a safeguard to default to zero in this scenario. Needed by HIVE-2476
|
/lgtm |
|
/retest-required |
|
/retest-required |
|
@2uasimojo: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
[ART PR BUILD NOTIFIER] This PR has been included in build ose-installer-altinfra-container-v4.16.0-202404051443.p0.g304af67.assembly.stream.el8 for distgit ose-installer-altinfra. |
...to pick up openshift/installer#8227 which should fix the nil pointer exception described in the referenced card. HIVE-2476
A nil pointer exception occurs when the OpenStack MachineSets() func is called with
Replicas==nil, as it would be when hive is attempting to generate autoscaling MachineSets -- we set the replica count later on after we find out how many MachineSets to spread the autoscaling min/max across.Add a safeguard to default to zero in this scenario.
Needed by HIVE-2476