Skip to content

[release-4.9] Bug 2009850: Fix fallback for ironic drivers that don't support soft power off#184

Merged
openshift-merge-robot merged 2 commits intoopenshift:release-4.9from
zaneb:openshift-4.9/soft-power-off-fallback
Oct 30, 2021
Merged

[release-4.9] Bug 2009850: Fix fallback for ironic drivers that don't support soft power off#184
openshift-merge-robot merged 2 commits intoopenshift:release-4.9from
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.9.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:

[release-4.9] 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 requested review from mhrivnak and sadasu October 1, 2021 20:46
@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 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 4, 2021

/retest-required

@dtantsur
Copy link
Copy Markdown
Member

/bugzilla refresh

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 11, 2021

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

  • expected the bug to target the "4.9.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:

/bugzilla 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.

@dtantsur
Copy link
Copy Markdown
Member

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 11, 2021
@openshift-bot
Copy link
Copy Markdown

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 12, 2021

@openshift-bot: This pull request references Bugzilla bug 2009850, which is invalid:

  • expected the bug to target the "4.9.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:

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

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-bot
Copy link
Copy Markdown

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 13, 2021

@openshift-bot: This pull request references Bugzilla bug 2009850, which is invalid:

  • expected the bug to target the "4.9.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:

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

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-bot
Copy link
Copy Markdown

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 14, 2021

@openshift-bot: This pull request references Bugzilla bug 2009850, which is invalid:

  • expected the bug to target the "4.9.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:

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

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-bot
Copy link
Copy Markdown

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 15, 2021

@openshift-bot: This pull request references Bugzilla bug 2009850, which is invalid:

  • expected the bug to target the "4.9.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:

/bugzilla refresh

Recalculating validity in case the underlying Bugzilla bug has changed.

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.

@sdodson
Copy link
Copy Markdown
Member

sdodson commented Oct 15, 2021

/bugzilla refresh

@openshift-ci openshift-ci Bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Oct 15, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 15, 2021

@sdodson: This pull request references Bugzilla bug 2009850, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.9.z) matches configured target release for branch (4.9.z)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 2006101 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), CLOSED (CURRENTRELEASE))
  • dependent Bugzilla bug 2006101 targets the "4.10.0" release, which is one of the valid target releases: 4.10.0
  • bug has dependents

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

Details

In response to this:

/bugzilla 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.

@openshift-ci openshift-ci Bot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Oct 15, 2021
@dtantsur
Copy link
Copy Markdown
Member

/label backport-risk-assessed

@openshift-ci openshift-ci Bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Oct 21, 2021
@stleerh stleerh added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Oct 30, 2021
@openshift-merge-robot openshift-merge-robot merged commit defb8e0 into openshift:release-4.9 Oct 30, 2021
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Oct 30, 2021

@zaneb: All pull requests linked via external trackers have merged:

Bugzilla bug 2009850 has been moved to the MODIFIED state.

Details

In response to this:

[release-4.9] 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.

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants