Skip to content

Enable automatic node cleaning#2019

Merged
berendt merged 1 commit intomainfrom
automated_clean
Feb 21, 2026
Merged

Enable automatic node cleaning#2019
berendt merged 1 commit intomainfrom
automated_clean

Conversation

@janhorstmann
Copy link
Copy Markdown
Contributor

The goal is to automatically clean nodes on undeployment. This can be done by ironic through automated cleaning. Unfortunately this will also enable cleaning when a node transitions from managable to available. This would block osism sync ironic, since it waits sequentially for every node to reach the available state.
An alternative is to add an explicit clean step in python-osism. However the osism manage baremetal undeploy command is currently a oneshot request to ironic. Adding a cleaning step would require turning it inot an asynchronous task.
The taken path is to enable automated cleaning explicitly on a per node basis once it reaches the available state. Care has to be taken to unset it before transitioning to available, since ironic sometimes moves nodes to manageable when errors are encountered.

Depends-On: osism/metalbox#292

The goal is to automatically clean nodes on undeployment. This can be
done by ironic through automated cleaning. Unfortunately this will also
enable cleaning when a node transitions from `managable` to `available`.
This would block `osism sync ironic`, since it waits sequentially for
every node to reach the `available` state.
An alternative is to add an explicit clean step in python-osism. However
the `osism manage baremetal undeploy` command is currently a oneshot
request to ironic. Adding a cleaning step would require turning it inot
an asynchronous task.
The taken path is to enable automated cleaning explicitly on a per node
basis once it reaches the `available` state. Care has to be taken to
unset it before transitioning to `available`, since ironic sometimes
moves nodes to `manageable` when errors are encountered.

Depends-On: osism/metalbox#292

Signed-off-by: Jan Horstmann <horstmann@osism.tech>
@berendt berendt merged commit a9a48bf into main Feb 21, 2026
2 checks passed
@berendt berendt deleted the automated_clean branch February 21, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants