Project

General

Profile

action #17824

Images are not available on svirt VM hosts

Added by thehejik over 4 years ago. Updated over 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
michalnowak
Category:
Bugs in existing tests
Target version:
-
Start date:
2017-03-20
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Probably due changes with openqa NFS share we are facing to problems with svirt_xen/kvm where is not possible to generate backup image by qemu-img create command:

From https://openqa.suse.de/tests/824276/file/autoinst-log.txt:
Command executed: qemu-img create /var/lib/libvirt/images/openQA-SUT-1a.img -f qcow2 -b /var/lib/openqa/pool/13/SUSE-CaaS-Platform-1.0-XEN.x86_64-1.0.0-Build14.11.qcow2
Command's stderr:
qemu-img: /var/lib/libvirt/images/openQA-SUT-1a.img: Could not open '/var/lib/openqa/pool/13/SUSE-CaaS-Platform-1.0-XEN.x86_64-1.0.0-Build14.11.qcow2': No such file or directory

Problem is in HDD_1 variable content where the path is not valid for svirt hosts:
"HDD_1" : "/var/lib/openqa/pool/13/SUSE-CaaS-Platform-1.0-XEN.x86_64-1.0.0-Build14.11.qcow2",

Correct path is (NFS mounted into /var/lib/openqa/share):
"HDD_1" : "/var/lib/openqa/share/factory/hdd/SUSE-CaaS-Platform-1.0-XEN.x86_64-1.0.0-Build9.17.qcow2",

Possible workaround would be to use xen/kvm libvirt host directly as worker... but this is probably not possible on zkvm.

History

#1 Updated by michalnowak over 4 years ago

  • Subject changed from sshVirtsh.pm for svirt is not able to create backup image by qemu-img due incorrect path to Images are not available on svirt VM hosts
  • Category changed from 132 to Concrete Bugs

I just deployed "hot-fix" for images on the Xen VM host to revive CaaSP testing: essentially it's again using NFS share, but it should not use much resource, about 2 jobs per build.

Xen PV: https://openqa.suse.de/tests/829857
Xen HVM: https://openqa.suse.de/tests/829862

Not sure what is the right solution for images on svirt atm. Perhaps a downloader_svirt test module downloading requested images before the actual bootloader_svirt run. Or making the VM host an openQA worker.

#3 Updated by michalnowak over 4 years ago

  • Project changed from openQA Project to openQA Tests
  • Category changed from Concrete Bugs to Bugs in existing tests
  • Assignee set to michalnowak

That ought to work, thanks.

#4 Updated by michalnowak over 4 years ago

  • Status changed from New to In Progress

#6 Updated by michalnowak over 4 years ago

  • Status changed from Feedback to Resolved

It's all in. Verified on yesterday's CaaSP Beta2 testing & JeOS daily reviews.

Also available in: Atom PDF