diff options
| author | Derek Higgins <derekh@redhat.com> | 2021-12-08 09:56:46 +0000 |
|---|---|---|
| committer | Derek Higgins <derekh@redhat.com> | 2021-12-08 15:56:05 +0000 |
| commit | 12f5f30e630b98c8b69d4aa201f5c23b2ca85824 (patch) | |
| tree | 51ed04e1afd3a27ff3043eca0ceec5ae24facfa4 /ironic_python_agent/tests | |
| parent | a35c77e62e726e32b578c50c4c32d93905647fa2 (diff) | |
| download | ironic-python-agent-12f5f30e630b98c8b69d4aa201f5c23b2ca85824.tar.gz | |
Instruct qemu-img to write image zeros to disk.
Doing this will cause it not to zero out the entire
block device which can be very costly on a slow HDD.
Story: 2009227
Task: 43315
Change-Id: I62ba2afc037d9844387e6b0984fe5008779d95d2
Diffstat (limited to 'ironic_python_agent/tests')
| -rw-r--r-- | ironic_python_agent/tests/unit/extensions/test_standby.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic_python_agent/tests/unit/extensions/test_standby.py b/ironic_python_agent/tests/unit/extensions/test_standby.py index 559a15bb..bce88a00 100644 --- a/ironic_python_agent/tests/unit/extensions/test_standby.py +++ b/ironic_python_agent/tests/unit/extensions/test_standby.py @@ -182,7 +182,8 @@ class TestStandbyExtension(base.IronicAgentTest): convert_mock.assert_called_once_with(location, device, out_format='host_device', cache='directsync', - out_of_order=True) + out_of_order=True, + sparse_size='0') wipe_mock.assert_called_once_with(device, '') udev_mock.assert_called_once_with() rescan_mock.assert_called_once_with(device) |
