Enable cleaning in undercloud Ironic
The cleaning process in Ironic ensures that the node is in a sane state before it can become available for next deployments. It runs before the nodes becomes "available" for the first time, and then after every tear down. As it might be time consuming, we've had it disabled in TripleO for quite some time.
However, this has at least one very nasty consequence: without cleaning partitioning on all disks, deployment can end up randomly reusing partitions from previous deployments. E.g. I've encountered a bug when a deployment ended up with two config drive partitions. I'm not sure if we should get back to upstream defaults and enable cleaning, but we at least need it well supported and documented.
Rough actions items:
1. Ensure enrolling workflows are ready for manageable-
2. Configure cleaning network to "ctlplane" (requires https:/
3. Configure Ironic to run only metadata cleaning by default (set ironic:
4. Modify one of the CI jobs to run with cleaning.
5. Optional: enable cleaning by default (set clean_nodes to True by default in undercloud.conf)
Blueprint information
- Status:
- Complete
- Approver:
- Emilien Macchi
- Priority:
- Medium
- Drafter:
- Dmitry Tantsur
- Direction:
- Approved
- Assignee:
- Dmitry Tantsur
- Definition:
- Approved
- Series goal:
- Accepted for ocata
- Implementation:
-
Implemented
- Milestone target:
-
ocata-3
- Started by
- Dmitry Tantsur
- Completed by
- Dmitry Tantsur
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Only erase disk metadata if automated cleaning is enabled
Gerrit topic: https:/
Addressed by: https:/
Create a workflow for running manual cleaning on nodes
Addressed by: https:/
Set Ironic cleaning network to ctlplane
CI update: https:/
UPD: cleaning causes strange failures in CI. Postponing this subtask until better times.
Addressed by: https:/
Document using manual_cleaning workflow to wipe hard drives
Work Items
Dependency tree
![](deptree.png)
* Blueprints in grey have been implemented.