-
Bug
-
Resolution: Cannot Reproduce
-
Undefined
-
None
-
rhel-9.4
-
None
-
Yes
-
Low
-
Regression
-
rhel-sst-virtualization-storage
-
ssg_virtualization
-
None
-
False
-
-
None
-
None
-
None
-
None
-
-
All
-
None
What were you trying to do that didn't work?
Wipe a volume with the dod algorithm
Please provide the package NVR for which bug is seen:
scrub-2.6.1-4.el9.s390x
libvirt-10.0.0-2.el9.s390x
How reproducible:
100%
Steps to reproduce
1. modprobe scsi_debug dev_size_mb=1024
2. mkfs.ext4 /dev/sda; mkdir /tmp/pool_target
3. virsh pool-define pool.xml
cat pool.xml
<?xml version="1.0"?>
<pool type="fs">
<name>vol_clone_wipe_pool</name>
<uuid>d7276a3b-9b52-4cb3-9c0b-c7270563d399</uuid>
<source>
<device path="/dev/sda"/>
<format type="ext4"/>
</source>
<target>
<path>/tmp/pool_target</path>
<permissions>
<mode>0755</mode>
<owner>0</owner>
<group>0</group>
<label>system_u:object_r:unlabeled_t:s0</label>
</permissions>
</target>
</pool>
4. virsh pool-start vol_clone_wipe_pool
5. dd if=/dev/zero of=/tmp/pool_target/vol_1 bs=1 count=0 seek=10M
6. virsh pool-refresh vol_clone_wipe_pool
7. Confirm volume of size 10MB has been recognized:
- virsh vol-info vol_1 --pool vol_clone_wipe_pool
Name: vol_1
Type: file
Capacity: 10.00 MiB
Allocation: 0.00 B
8. virsh vol-clone -vol vol_1 --newname clone_vol_1-pool vol_clone_wipe_pool
9. virsh vol-wipe --vol clone_vol_1 --pool vol_clone_wipe_pool --algorithm dodExpected results
The volume is wiped successfully
Actual results
error: Failed to wipe vol clone_vol_1
error: internal error: Child process (scrub -f -p dod /tmp/pool_target/clone_vol_1) unexpected exit status 1: scrub: /tmp/pool_target/clone_vol_1: verification error
Additional notes:
Auto case: virsh.vol_clone_wipe.positive_test.non_encrypt.non_acl.sparse_file.pool_type.fs