commit | 2892f750b7eaa013fcd197ed8a3df9d4d7a81e68 | [log] [tgz] |
---|---|---|
author | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | Fri Jan 31 14:02:33 2025 +0000 |
committer | Pavlo Shchelokovskyy <shchelokovskyy@gmail.com> | Tue Feb 11 14:16:43 2025 +0000 |
tree | 207701be7e5646c0b9f39d2e022beb78afb10d50 | |
parent | cc90a9b3fcab84230fbf8823794464990e96a75a [diff] |
Follow-up to I7e4c5bc7df5d4ee2d489c3a0edc197fecc5782a2 create partition table and partition first instead of creating a filesystem on a raw block device. Apparently this has some impact when using ecrypted volumes. Related-Issue: PRODX-37480 Change-Id: I072c22fa2f53fc69880412fbfda3149c4e6129c7 (cherry picked from commit 56dcfd4edb01243e15fe64ac106a9c3994ab3502)
diff --git a/heat_tempest_plugin/tests/scenario/templates/test_volumes_create_from_backup.yaml b/heat_tempest_plugin/tests/scenario/templates/test_volumes_create_from_backup.yaml index 37c4cb9..2c8600e 100644 --- a/heat_tempest_plugin/tests/scenario/templates/test_volumes_create_from_backup.yaml +++ b/heat_tempest_plugin/tests/scenario/templates/test_volumes_create_from_backup.yaml
@@ -75,9 +75,9 @@ sleep 1 done dev_name=$(basename $(dirname $(find /sys -name 'serial' -exec grep -l $vol_id {} +))) - if grep -q $dev_name /proc/partitions + if grep -q ${dev_name}1 /proc/partitions then - mount /dev/$dev_name /mnt + mount /dev/${dev_name}1 /mnt TESTDATA=$(cat /mnt/testfile) curl wc_extra_args -X PUT -H 'Content-Type:' --data-binary '{"Status": "SUCCESS", "Reason": "Test Complete", "Data": "Volume Data:'$TESTDATA'", "UniqueId": "instance1"}' "wc_url" else
diff --git a/heat_tempest_plugin/tests/scenario/templates/test_volumes_delete_snapshot.yaml b/heat_tempest_plugin/tests/scenario/templates/test_volumes_delete_snapshot.yaml index 1864ebd..3ce0f62 100644 --- a/heat_tempest_plugin/tests/scenario/templates/test_volumes_delete_snapshot.yaml +++ b/heat_tempest_plugin/tests/scenario/templates/test_volumes_delete_snapshot.yaml
@@ -84,8 +84,9 @@ dev_name=$(basename $(dirname $(find /sys -name 'serial' -exec grep -l $vol_id {} +))) if grep -q $dev_name /proc/partitions then - mkfs.ext4 /dev/$dev_name - mount /dev/$dev_name /mnt + echo 'type=83' | sfdisk /dev/$dev_name + mkfs.ext4 /dev/${dev_name}1 + mount /dev/${dev_name}1 /mnt echo "test_string" > /mnt/testfile sync -f /mnt/testfile umount /mnt