erase_devices_iterations controls the number of random passes, not total passes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Low
|
Mathieu Mitchell |
Bug Description
Currently, the [deploy] erase_devices_
Ironic reads the setting from the config, and pushes it to IPA:
https:/
Ironic defaults to one unless provided in the configuration file:
https:/
IPA reads it and defaults to "1":
https:/
However, invoking shred on the command line reveals the following:
ubuntu@ubuntu:~$ shred --force --zero --verbose --iterations 1 my_block_device
shred: my_block_device: pass 1/2 (random)...
shred: my_block_device: pass 2/2 (000000)...
Running shred with --iterations 0 is probably was was intended, aka only one pass and only zeroes:
ubuntu@ubuntu:~$ shred --force --zero --verbose --iterations 0 my_block_device
shred: my_block_device: pass 1/1 (000000)...
Changed in ironic: | |
assignee: | nobody → Mathieu Mitchell (mat128) |
status: | New → In Progress |
Changed in ironic: | |
importance: | Undecided → Low |
Reviewed: https:/ /review. openstack. org/304101 /git.openstack. org/cgit/ openstack/ ironic/ commit/ ?id=c47c6d2ab54 f88a054c9e1566c 02c219bd1a79c0
Committed: https:/
Submitter: Jenkins
Branch: master
commit c47c6d2ab54f88a 054c9e1566c02c2 19bd1a79c0
Author: Mathieu Mitchell <email address hidden>
Date: Mon Apr 11 08:27:08 2016 -0400
Allow configuring shred's final overwrite with zeros
Introduce shred_final_ overwrite_ with_zeros, a new configuration option iterations to random_ overwrite_ iterations to clarify the true meaning of this
to control whether devices will receive a final overwrite with zeros
during cleaning. Additionally, rename erase_devices_
shred_
configuration option.
Also, ensure a warning is raised in the logs to raise awareness around with_zeros= False.
the potential security risk of running cleaning with iterations=0 and
overwrite_
Change-Id: I0dd3f488ab2cd0 df778f34a5a2394 8fa0c6c4334 737b535ee601e6f b71284d4a83
Closes-Bug: #1568811
Depends-On: I7053034f5b5bc6