Skip to content

Bug 2009850: Fix fallback for ironic drivers that don't support soft power off#182

Closed
zaneb wants to merge 2 commits intoopenshift:masterfrom
zaneb:openshift-4.9/soft-power-off-fallback
Closed

Bug 2009850: Fix fallback for ironic drivers that don't support soft power off#182
zaneb wants to merge 2 commits intoopenshift:masterfrom
zaneb:openshift-4.9/soft-power-off-fallback

Conversation

@zaneb
Copy link
Copy Markdown
Member

@zaneb zaneb commented Oct 1, 2021

Fix a regression in metal3-io#841 that caused ironic drivers that don't support soft power off (such as Fujitsu when the agent is not available) to fail in an infinite loop instead of falling back to a hard power off.

zaneb added 2 commits October 1, 2021 15:11
The code to check whether a previous PowerOff command succeeded is
essentially the same between the hard and soft power off modes, so check
it once at the start instead of duplicating it.

(cherry picked from commit 9ba2fd2)
If the ironic driver does not support soft power off, we need to fall
back to hard power off. Due to an oversight in
67a27dc we stopped checking for this
and just returned a transient error in this case.

While returning a failure would have resulted in retrying with a hard
power off (albeit after reporting an error to the user), returning a
transient error means that it will retry the soft power off forever.

Restore the fallback and add tests to cover this case. Because we can't
set the dummy ironic server to return different responses on subsequent
calls we will always get an error, so check that it is from the fallback
hard power off.

(cherry picked from commit f75c6b7)
@openshift-ci openshift-ci Bot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Oct 1, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 1, 2021

@zaneb: This pull request references Bugzilla bug 2009850, which is invalid:

  • expected the bug to target the "4.10.0" release, but it targets "4.9.z" instead

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

Details

In response to this:

Bug 2009850: Fix fallback for ironic drivers that don't support soft power off

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.

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 1, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 1, 2021

@zaneb: PR needs rebase.

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/test-infra repository.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 1, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zaneb

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

@openshift-ci openshift-ci Bot requested review from hardys and honza October 1, 2021 20:39
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 1, 2021
@zaneb
Copy link
Copy Markdown
Member Author

zaneb commented Oct 1, 2021

Bah, wrong branch.

@zaneb zaneb closed this Oct 1, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 1, 2021

@zaneb: 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/lint 249598e link true /test lint
ci/prow/e2e-metal-ipi-ovn-ipv6 249598e link true /test e2e-metal-ipi-ovn-ipv6
ci/prow/images 249598e link true /test images
ci/prow/unit 249598e link true /test unit
ci/prow/e2e-metal-ipi-serial-ipv4 249598e link true /test e2e-metal-ipi-serial-ipv4

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

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. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant