Skip to content

lib/vdi: Add VDI resize support and integrate into VM & linstor operations #273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
9 changes: 9 additions & 0 deletions tests/storage/linstor/test_linstor_sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ def test_snapshot(self, vm_on_linstor_sr):
finally:
vm.shutdown(verify=True)

@pytest.mark.small_vm
@pytest.mark.big_vm
def test_resize_vdi(self, vm_on_linstor_sr):
vm = vm_on_linstor_sr
logging.info("* VDI Resize started *")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want * marker in the logs?

for vdi_uuid in vm.vdi_uuids():
vm.vdi_resize(vdi_uuid)
logging.info("* VDI Resize completed *")

# *** tests with reboots (longer tests).

@pytest.mark.reboot
Expand Down