Skip to content

Commit

Permalink
test: Use bigger disks for TestStorageLvm2.testRaidRepair
Browse files Browse the repository at this point in the history
There is a race between the kernel and lvconvert which might cause
lvconvert to hang when the kernel is done repairing before lvconvert
has resumed all device mapper devices.

Let's try to slow down the repair process by making the disks bigger.

See https://bugzilla.redhat.com/show_bug.cgi?id=2256433
  • Loading branch information
mvollmer authored and martinpitt committed Jan 3, 2024
1 parent e918e8f commit 4b8d7e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/verify/check-storage-lvm2
Original file line number Diff line number Diff line change
Expand Up @@ -457,10 +457,10 @@ class TestStorageLvm2(storagelib.StorageCase):

self.login_and_go("/storage")

disk1 = self.add_ram_disk()
disk2 = self.add_loopback_disk(name="loop10")
disk3 = self.add_loopback_disk(name="loop11")
disk4 = self.add_loopback_disk(name="loop12")
disk1 = self.add_ram_disk(size=200)
disk2 = self.add_loopback_disk(name="loop10", size=400)
disk3 = self.add_loopback_disk(name="loop11", size=400)
disk4 = self.add_loopback_disk(name="loop12", size=400)

# Make a volume group with three physical volumes

Expand Down Expand Up @@ -525,7 +525,7 @@ class TestStorageLvm2(storagelib.StorageCase):
b.click(self.card_button("LVM2 logical volume", "Repair"))
self.dialog_wait_open()
self.dialog_apply()
self.dialog_wait_error("pvs", "An additional 46.1 MB must be selected")
self.dialog_wait_error("pvs", "An additional 206 MB must be selected")
self.dialog_set_val("pvs", {disk4: True})
self.dialog_apply()
self.dialog_wait_close()
Expand Down

0 comments on commit 4b8d7e7

Please sign in to comment.