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

OSASINFRA-3421: OpenStack: Customizable clientOpts for CheckNetworkEx… #8209

Conversation

2uasimojo
Copy link
Member

@2uasimojo 2uasimojo commented Mar 26, 2024

…tensionAvailability

External consumers of MachineSets(), such as
hive, need to be able to customize the client that queries the OpenStack cloud for trunk support.

A prior commit (#8187 / b99470c), eliminating what looked like tech debt, removed that enablement, which was most recently added via #4638 / 3c4235c, which was itself a revert of a previous commit (#4426 / 05453ef) that had removed it similarly.

Here we reinstate the customizability, and include a docstring explanation to hopefully prevent it being removed again.

OSASINFRA-3421

Needed by HIVE-2476

…tensionAvailability

External consumers of `MachineSets()`, such as
[hive](https://github.com/openshift/hive/), need to be able to customize
the client that queries the OpenStack cloud for trunk support.

A prior commit (openshift#8187 / b99470c), eliminating what looked like tech
debt, removed that enablement, which was most recently added via openshift#4638 /
3c4235c, which was *itself* a revert of a previous commit (openshift#4426 /
05453ef) that had removed it similarly.

Here we reinstate the customizability, and include a docstring
explanation to hopefully prevent it being removed again.

OSASINFRA-3421
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 26, 2024
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Mar 26, 2024

@2uasimojo: This pull request references OSASINFRA-3421 which is a valid jira issue.

In response to this:

…tensionAvailability

External consumers of MachineSets(), such as
hive, need to be able to customize the client that queries the OpenStack cloud for trunk support.

A prior commit (#8187 / b99470c), eliminating what looked like tech debt, removed that enablement, which was most recently added via #4638 / 3c4235c, which was itself a revert of a previous commit (#4426 / 05453ef) that had removed it similarly.

Here we reinstate the customizability, and include a docstring explanation to hopefully prevent it being removed again.

OSASINFRA-3421

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.

1 similar comment
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Mar 26, 2024

@2uasimojo: This pull request references OSASINFRA-3421 which is a valid jira issue.

In response to this:

…tensionAvailability

External consumers of MachineSets(), such as
hive, need to be able to customize the client that queries the OpenStack cloud for trunk support.

A prior commit (#8187 / b99470c), eliminating what looked like tech debt, removed that enablement, which was most recently added via #4638 / 3c4235c, which was itself a revert of a previous commit (#4426 / 05453ef) that had removed it similarly.

Here we reinstate the customizability, and include a docstring explanation to hopefully prevent it being removed again.

OSASINFRA-3421

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.

@2uasimojo
Copy link
Member Author

/assign @pierreprinetti
/cc @patrickdillon

@pierreprinetti
Copy link
Member

For OpenStack:
/approve
/lgtm

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

/approve

Copy link
Contributor

openshift-ci bot commented Mar 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: patrickdillon, 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 /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 Mar 26, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit d1f240d into openshift:master Mar 26, 2024
21 of 26 checks passed
Copy link
Contributor

openshift-ci bot commented Mar 26, 2024

@2uasimojo: The following tests 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-nfv-intel e181b1c link false /test e2e-openstack-nfv-intel
ci/prow/e2e-openstack-proxy e181b1c link false /test e2e-openstack-proxy
ci/prow/okd-e2e-aws-ovn-upgrade e181b1c link false /test okd-e2e-aws-ovn-upgrade

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.

@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

This PR has been included in build ose-installer-altinfra-container-v4.16.0-202403261946.p0.gd1f240d.assembly.stream.el8 for distgit ose-installer-altinfra.
All builds following this will include this PR.

@2uasimojo 2uasimojo deleted the OSASINFRA-3421/customizable-clientopts branch March 27, 2024 15:12
2uasimojo added a commit to 2uasimojo/hive that referenced this pull request Mar 28, 2024
Specifically to pick up openshift/installer#8187
and openshift/installer#8209 so we can fix our
unit tests around MachinePools+OpenStack. But also just because we do
this periodically.

Needed by HIVE-2476
2uasimojo added a commit to 2uasimojo/hive that referenced this pull request Mar 28, 2024
A prior commit revendored installer to pull in
openshift/installer#8187 and
openshift/installer#8209 which decoupled the
OpenStack cloud call for trunk support discovery from the
`MachineSets()` generator.

This commit refactors our invocation of that generator accordingly, and
repairs our long-broken unit test framework around it by attaching a
`trunkSupportDiscoverer` func to the actuator. In the production code
path, this is set to the `CheckNetworkExtensionAvailability` function
publicized by the aforementioned installer PRs, whereas in the unit test
path it is set to a no-op shim. Future tests can make this shim return
any permutation of possible values to exercise different code paths.

Subsequent commits will enhance this unit test suite to reproduce the
issue in the referenced card.

Part of HIVE-2476
2uasimojo added a commit to 2uasimojo/hive that referenced this pull request Mar 28, 2024
A prior commit revendored installer to pull in
openshift/installer#8187 and
openshift/installer#8209 which decoupled the
OpenStack cloud call for trunk support discovery from the
`MachineSets()` generator.

This commit refactors our invocation of that generator accordingly, and
repairs our long-broken unit test framework around it by attaching a
`trunkSupportDiscoverer` func to the actuator. In the production code
path, this is set to the `CheckNetworkExtensionAvailability` function
publicized by the aforementioned installer PRs, whereas in the unit test
path it is set to a no-op shim. Future tests can make this shim return
any permutation of possible values to exercise different code paths.

Subsequent commits will enhance this unit test suite to reproduce the
issue in the referenced card.

Part of HIVE-2476
2uasimojo added a commit to 2uasimojo/hive that referenced this pull request Mar 29, 2024
Specifically to pick up openshift/installer#8187
and openshift/installer#8209 so we can fix our
unit tests around MachinePools+OpenStack. But also just because we do
this periodically.

Needed by HIVE-2476
2uasimojo added a commit to 2uasimojo/hive that referenced this pull request Mar 29, 2024
A prior commit revendored installer to pull in
openshift/installer#8187 and
openshift/installer#8209 which decoupled the
OpenStack cloud call for trunk support discovery from the
`MachineSets()` generator.

This commit refactors our invocation of that generator accordingly, and
repairs our long-broken unit test framework around it by attaching a
`trunkSupportDiscoverer` func to the actuator. In the production code
path, this is set to the `CheckNetworkExtensionAvailability` function
publicized by the aforementioned installer PRs, whereas in the unit test
path it is set to a no-op shim. Future tests can make this shim return
any permutation of possible values to exercise different code paths.

Subsequent commits will enhance this unit test suite to reproduce the
issue in the referenced card.

Part of HIVE-2476
2uasimojo added a commit to 2uasimojo/hive that referenced this pull request Apr 30, 2024
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
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/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

5 participants