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

🐛 Don't check for ironic capacity in 'deleting' state #1259

Merged
merged 2 commits into from May 15, 2023

Conversation

zaneb
Copy link
Member

@zaneb zaneb commented Apr 24, 2023

Ironic doesn't do any work to speak of in the host's 'deleting' state. It appears this was added (in c3c2c88) due to confusion between ironic's 'deleting' (i.e. the 'deprovisioning' state in Metal³) and Metal³'s 'deleting' state.

A result of this was that hosts in the 'unmanaged' state could not be deleted, because by definition they do not have BMC credentials, but the check for Ironic capacity required them. Since unmanaged hosts do not go through 'deprovisioning', removing this unnecessary check from the 'deleting' state should be enough to allow them to be deleted again.

Ironic doesn't do any work to speak of in the host's 'deleting' state.
It appears this was added (in c3c2c88)
due to confusion between ironic's 'deleting' (i.e. the 'deprovisioning'
state in Metal³) and Metal³'s 'deleting' state.

A result of this was that hosts in the 'unmanaged' state could not be
deleted, because by definition they do not have BMC credentials, but the
check for Ironic capacity required them. Since unmanaged hosts do not go
through 'deprovisioning', removing this unnecessary check from the
'deleting' state should be enough to allow them to be deleted again.
@zaneb
Copy link
Member Author

zaneb commented Apr 24, 2023

/cc @dtantsur

@metal3-io-bot metal3-io-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 24, 2023
@zaneb
Copy link
Member Author

zaneb commented Apr 24, 2023

/test-centos-e2e-integration-main
/test-ubuntu-integration-main
/cc andfasano

@dtantsur
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 24, 2023
@dtantsur
Copy link
Member

/test-centos-e2e-integration-main
/test-ubuntu-integration-main

@zaneb
Copy link
Member Author

zaneb commented May 8, 2023

/assign @andfasano

This is no longer needed now that we don't wait for provisioner capacity
when going from deprovisioning->deleting.
@metal3-io-bot metal3-io-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 11, 2023
@zaneb
Copy link
Member Author

zaneb commented May 11, 2023

/test-centos-e2e-integration-main
/test-ubuntu-integration-main

1 similar comment
@zaneb
Copy link
Member Author

zaneb commented May 15, 2023

/test-centos-e2e-integration-main
/test-ubuntu-integration-main

@andfasano
Copy link
Member

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label May 15, 2023
@dtantsur
Copy link
Member

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dtantsur

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

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 15, 2023
@metal3-io-bot metal3-io-bot merged commit e59dd39 into metal3-io:main May 15, 2023
10 checks passed
rhjanders pushed a commit to rhjanders/baremetal-operator that referenced this pull request May 23, 2023
🐛 Don't check for ironic capacity in 'deleting' state

(cherry picked from commit e59dd39)
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. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants