Skip to content

Conversation

@elfosardo
Copy link

@elfosardo elfosardo commented Jan 19, 2026

When deleting a BMH during inspection, power-off could hang because:

  1. After abort, node is in InspectFail with TargetProvisionState still
    set, blocking power changes
  2. Ironic does not auto-clear TargetProvisionState in InspectFail state
  3. PowerOff() misinterpreted the abort message in LastError as a
    power-off failure

Fix by:

  • Explicitly transitioning from InspectFail to manageable to clear
    TargetProvisionState and allow power changes
  • Ignoring "aborted" errors in LastError during power-off

@elfosardo
Copy link
Author

/hold

@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 Jan 19, 2026
@openshift-ci openshift-ci bot requested review from derekhiggins and honza January 19, 2026 10:34
@openshift-ci
Copy link

openshift-ci bot commented Jan 19, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elfosardo

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 Jan 19, 2026
@elfosardo
Copy link
Author

/hold

@elfosardo elfosardo force-pushed the fix-deletion-inspection branch from dbb6309 to a1376a9 Compare January 20, 2026 13:18
@elfosardo elfosardo changed the title Fix deletion hang when BMH deleted during inspection Fix deletion hang when aborting inspection during power-off Jan 20, 2026
@elfosardo elfosardo changed the title Fix deletion hang when aborting inspection during power-off OCPBUGS-65571: Fix deletion hang when aborting inspection during power-off Jan 20, 2026
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jan 20, 2026
@openshift-ci-robot
Copy link

@elfosardo: This pull request references Jira Issue OCPBUGS-65571, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @sgoveas

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

When deleting a BMH during inspection, power-off could hang because:

  1. After abort, node is in InspectFail with TargetProvisionState still
    set, blocking power changes
  2. PowerOff() misinterpreted the abort message in LastError as a
    power-off failure

Fix by:

  • Handling InspectFail state in abortInspectionOrCleaning() to wait
    for TargetProvisionState to clear
  • Ignoring "aborted" errors in LastError during 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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested a review from sgoveas January 20, 2026 13:20
@elfosardo elfosardo requested a review from dtantsur January 20, 2026 13:21
@elfosardo
Copy link
Author

I saw the unit test failing already before but it does not look related to this change

@elfosardo
Copy link
Author

/retest

sgoveas added a commit to sgoveas/release that referenced this pull request Jan 21, 2026
sgoveas added a commit to sgoveas/release that referenced this pull request Jan 22, 2026
When deleting a BMH during inspection, power-off could hang because:

1. After abort, node is in InspectFail with TargetProvisionState still
   set, blocking power changes
2. Ironic does not auto-clear TargetProvisionState in InspectFail state
3. PowerOff() misinterpreted the abort message in LastError as a
   power-off failure

Fix by:
- Explicitly transitioning from InspectFail to manageable to clear
  TargetProvisionState and allow power changes
- Ignoring "aborted" errors in LastError during power-off
@elfosardo elfosardo force-pushed the fix-deletion-inspection branch from a1376a9 to 1693931 Compare January 22, 2026 10:07
sgoveas added a commit to sgoveas/release that referenced this pull request Jan 22, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 22, 2026

@elfosardo: all tests passed!

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.

@sgoveas
Copy link

sgoveas commented Jan 22, 2026

/verified by sgoveas
pre-merge tested

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jan 22, 2026
@openshift-ci-robot
Copy link

@sgoveas: This PR has been marked as verified by sgoveas.

Details

In response to this:

/verified by sgoveas
pre-merge tested

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.

@openshift-ci-robot
Copy link

@elfosardo: This pull request references Jira Issue OCPBUGS-65571, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.22.0) matches configured target version for branch (4.22.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @sgoveas

Details

In response to this:

When deleting a BMH during inspection, power-off could hang because:

  1. After abort, node is in InspectFail with TargetProvisionState still
    set, blocking power changes
  2. Ironic does not auto-clear TargetProvisionState in InspectFail state
  3. PowerOff() misinterpreted the abort message in LastError as a
    power-off failure

Fix by:

  • Explicitly transitioning from InspectFail to manageable to clear
    TargetProvisionState and allow power changes
  • Ignoring "aborted" errors in LastError during 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 openshift-eng/jira-lifecycle-plugin repository.

@elfosardo
Copy link
Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 23, 2026
@jacob-anders
Copy link

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 23, 2026
@openshift-merge-bot openshift-merge-bot bot merged commit 066225b into openshift:main Jan 23, 2026
9 checks passed
@openshift-ci-robot
Copy link

@elfosardo: Jira Issue OCPBUGS-65571: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-65571 has been moved to the MODIFIED state.

Details

In response to this:

When deleting a BMH during inspection, power-off could hang because:

  1. After abort, node is in InspectFail with TargetProvisionState still
    set, blocking power changes
  2. Ironic does not auto-clear TargetProvisionState in InspectFail state
  3. PowerOff() misinterpreted the abort message in LastError as a
    power-off failure

Fix by:

  • Explicitly transitioning from InspectFail to manageable to clear
    TargetProvisionState and allow power changes
  • Ignoring "aborted" errors in LastError during 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 openshift-eng/jira-lifecycle-plugin 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. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. 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. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants