[RFE] During cleaning, remove also disk labels (not just partitions)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ironic-lib |
Fix Released
|
Wishlist
|
Dmitry Tantsur |
Bug Description
In addition to wipefs [0], could Ironic disk_utils also call `sgdisk -Z` or similar?
This issue affects TripleO Ceph deployments as `ceph-disk prepare` is called which in turn calls `sgdisk --mbrtogpt`. While testing a 1020 disk deployment with TripleO, when `sgdisk --mbrtogpt` was called it failed for 143 of the disks but succeeded for the other 877 of the disks; all 1020 of the disks had gone through Ironic cleaning [1]. The 143 disks all had unrecognised disk labels and the issue was worked around by labeling the disks and resuming the deployment to get all 1020 disks activated. I've verified also that `ceph-disk prepare` works with disks which have had `sgdisk -Z` run on them. Using something like `ceph-disk zap` in a preboot script can achieve the same effect, but it seems preferable for TripleO users to just let the Ironic cleaning take care of it.
AFAICT, `wipefs --all` removes partitions but not disk labels. Is there any reason why Ironic cleaning should leave pre-existing GPT/MBR (or even EFI) labels on a disk if the user already opted to have the disk cleaned?
[0] https:/
[1] As implemented in https:/
summary: |
- RFE for Ironic disk cleaning to ensure removal of disk labels (not just - partitions) + [RFE] During cleaning, remove also disk labels (not just partitions) |
Changed in ironic: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
Changed in ironic-lib: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
tags: | added: cleaning low-hanging-fruit rfe |
tags: |
added: rfe-approved removed: rfe |
Changed in ironic-lib: | |
assignee: | nobody → Dmitry Tantsur (divius) |
no longer affects: | ironic |
I'm +1 on this.