improve partition wipe

Bug #1298052 reported by Andrew Woodward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Wishlist
Andrew Woodward

Bug Description

Hi all,

I have 2 cents to add in pre-script in a kickstart file.
Instead of using dd if=/dev/zero of=/dev/sda bs=1M count=10
we can use the following commands:
# sgdisk --zap-all /dev/sda
# parted -s /dev/sda mklabel gpt

from man sgdisk: Zap (destroy) the GPT and MBR data structures and then exit. This option works much like -z, but as it wipes the MBR as well as the GPT, it's more suitable if you want to repartition a disk after using this option

from man parted: mklabel Create a new disklabel (partition table) of label-type.
Thank you.

Best Regards,
Aleksandr Dobdin.
--

As I understand, we will simply modify a couple of lines in a file https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/cobbler/templates/scripts/pmanager.py

--
We should also check the wipe task that astute does

Mike Scherbakov (mihgen)
Changed in fuel:
milestone: none → 5.0
Revision history for this message
Mike Scherbakov (mihgen) wrote :

Source of the info for ticket: http://<email address hidden>/msg00662.html

Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Vladimir Kozhukalov (kozhukalov)
Revision history for this message
Vladimir Sharshov (vsharshov) wrote :

Should we use such commands for erase_node task instead of 'dd if=/dev/zero of=/dev/sda bs=1M count=10'?

Revision history for this message
Andrew Woodward (xarses) wrote :

@vsharshov, I think so

Changed in fuel:
milestone: 5.0 → 5.1
Changed in fuel:
importance: Medium → High
Changed in fuel:
assignee: Vladimir Kozhukalov (kozhukalov) → Andrew Woodward (xarses)
Revision history for this message
Andrew Woodward (xarses) wrote :

After discussion we have determined that the sgdisk command doesn't do anything more than what the dd does, and does nothing to avoid issues we have with dd. At this time since we have a known track record with dd, we have opted to keep using dd

Changed in fuel:
status: Triaged → Won't Fix
importance: High → Wishlist
Changed in fuel:
milestone: 5.1 → 6.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.