Merge lp:~raharper/charm-helpers/use-dd-in-zap-disk into lp:charm-helpers
Proposed by
Ryan Harper
Status: | Merged |
---|---|
Merged at revision: | 141 |
Proposed branch: | lp:~raharper/charm-helpers/use-dd-in-zap-disk |
Merge into: | lp:charm-helpers |
Diff against target: |
56 lines (+22/-7) 2 files modified
charmhelpers/contrib/storage/linux/utils.py (+11/-3) tests/contrib/storage/test_linux_storage_utils.py (+11/-4) |
To merge this branch: | bzr merge lp:~raharper/charm-helpers/use-dd-in-zap-disk |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Page | Pending | ||
Review via email: mp+212660@code.launchpad.net |
Description of the change
Update zap_disk to use dd to ensure complete wipe of MBR and GPT data on a disk; sgdisk doesn't always remove the data from the disk even if the command returns without error. This was observed on a cinder install which attempts to pvcreate on a disk, but refuses if there is any GPT related partition table (as observed via fdisk -l /dev/XXX which will complain about GPT tables). This patch has been in use in branches of the cinder/ceph charm here:
lp:~raharper/charms/precise/ceph/use-dd-zap-disk
lp:~raharper/charms/precise/cinder/use-dd-zap-disk
and I've successfully deployed each charm hundreds of times since the change.
To post a comment you must log in.