Skip to content

Commit b83cca8

Browse files
committed
test: Lower memory allocation for created VMs
In RHEL 8 gating machines these often hit the roof of the gating test VM: qemu-kvm: cannot set up guest memory 'pc.ram': Cannot allocate memory We don't expect these VMs to actually do much, so lower the RAM requirement from 300 to 130 MiB. Also see 33272e4b91ca8a2
1 parent 45682b9 commit b83cca8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: test/check-machines-create

+5-5
Original file line numberDiff line numberDiff line change
@@ -1481,9 +1481,9 @@ class TestMachinesCreate(VirtualMachinesCase):
14811481
# Change memory settings
14821482
b.click("#vm-VmNotInstalled-memory-count button")
14831483
b.wait_visible("#vm-memory-modal")
1484-
b.set_input_text("#vm-VmNotInstalled-memory-modal-max-memory", "400")
1484+
b.set_input_text("#vm-VmNotInstalled-memory-modal-max-memory", "150")
14851485
b.blur("#vm-VmNotInstalled-memory-modal-max-memory")
1486-
b.set_input_text("#vm-VmNotInstalled-memory-modal-memory", "300")
1486+
b.set_input_text("#vm-VmNotInstalled-memory-modal-memory", "130")
14871487
b.blur("#vm-VmNotInstalled-memory-modal-memory")
14881488
b.click("#vm-VmNotInstalled-memory-modal-save")
14891489
b.wait_not_present(".pf-c-modal-box__body")
@@ -1579,14 +1579,14 @@ class TestMachinesCreate(VirtualMachinesCase):
15791579
wait(lambda: "char device" in self.machine.execute("cat {0}".format(logfile)), delay=3)
15801580
self.performAction("VmNotInstalled", "forceOff", False)
15811581
b.wait_in_text("#vm-VmNotInstalled-state", "Shut off")
1582-
wait(lambda: "307200" in m.execute("virsh dominfo VmNotInstalled | grep 'Used memory'"), delay=1) # Wait until memory parameters get adjusted after shutting the VM
1582+
wait(lambda: "133120" in m.execute("virsh dominfo VmNotInstalled | grep 'Used memory'"), delay=1) # Wait until memory parameters get adjusted after shutting the VM
15831583

15841584
# Check configuration changes survived installation
15851585
# Check memory settings have persisted
15861586
b.click("#vm-VmNotInstalled-memory-count button")
15871587
b.wait_visible("#vm-VmNotInstalled-memory-modal-memory")
1588-
b.wait_val("#vm-VmNotInstalled-memory-modal-max-memory", "400")
1589-
b.wait_val("#vm-VmNotInstalled-memory-modal-memory", "300")
1588+
b.wait_val("#vm-VmNotInstalled-memory-modal-max-memory", "150")
1589+
b.wait_val("#vm-VmNotInstalled-memory-modal-memory", "130")
15901590
b.click("#vm-VmNotInstalled-memory-modal-cancel")
15911591
b.wait_not_present(".pf-c-modal-box__body")
15921592

0 commit comments

Comments
 (0)