libvirt-python: issue on fedora

Hello, ran into oddish glitch on fedora 30 cloud image with tooling based on libvirt-python onpython3.7. *qemu-img *is installed though. Could anyone have a look. Build reference, hope it works: https://travis-ci.com/cherusk/godon/builds/144068483?utm_medium=notification&utm_source=email Essential stretch: ** ----- Image fedora30 Added Adding a profile named fedora30 with default values + kcli list image +--------------------------------------------+ | Images | +--------------------------------------------+ | /srv/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 | +--------------------------------------------+ + kcli create plan -f /opt/infra/machines.yml micro_fedora Deploying Networks... Network vm_net deployed Deploying Vms... Traceback (most recent call last): File "/usr/bin/kcli", line 11, in <module> load_entry_point('kcli==99.0', 'console_scripts', 'kcli')() File "/usr/lib/python3.7/site-packages/kvirt/cli.py", line 2482, in cli args.func(args) File "/usr/lib/python3.7/site-packages/kvirt/cli.py", line 1071, in create_plan overrides=overrides, wait=wait) File "/usr/lib/python3.7/site-packages/kvirt/config.py", line 1345, in plan plan=plan, basedir=currentplandir, client=vmclient, onfly=onfly, planmode=True) File "/usr/lib/python3.7/site-packages/kvirt/config.py", line 610, in create_vm pcidevices=pcidevices) File "/usr/lib/python3.7/site-packages/kvirt/kvm/__init__.py", line 893, in create storagepool.createXML(volxml, 0) File "/usr/lib64/python3.7/site-packages/libvirt.py", line 3417, in createXML if ret is None:raise libvirtError('virStorageVolCreateXML() failed', pool=self) *libvirt.libvirtError: internal error: creation of non-raw images is not supported without qemu-img * ----- ** -- Regards Matthias Tafelmeier

On Wed, Jan 15, 2020 at 07:04:06PM +0100, Matthias Tafelmeier wrote:
Hello,
ran into oddish glitch on fedora 30 cloud image with tooling based on libvirt-python onpython3.7. *qemu-img *is installed though. Could anyone have a look.
I don't see qemu-img installed there. You've requested 'qemu-kvm' and 'qemu-system-x86' which provide the system emulator. qemu-img is part of the 'qemu-utils' package, which is a Recommended dependancy of qemu-system-x86, but you've not told apt to install recommendations AFAICT from that log Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

Hi Daniel,
ran into oddish glitch on fedora 30 cloud image with tooling based on libvirt-python onpython3.7. *qemu-img *is installed though. Could anyone have a look.
I don't see qemu-img installed there. You've requested 'qemu-kvm' and 'qemu-system-x86' which provide the system emulator. qemu-img is part of the 'qemu-utils' package, which is a Recommended dependancy of qemu-system-x86, but you've not told apt to install recommendations AFAICT from that log
Thanks for coming back. With greatest respect, I can see it clearly installed here: https://travis-ci.com/cherusk/godon/builds/144068483#L432 Probably you're right, but find the separately packaged *qemu-img *non-intiutitive or confusing then. ** -- Regards Matthias

On Thu, Jan 16, 2020 at 02:34:21PM +0100, Matthias Tafelmeier wrote:
Hi Daniel,
ran into oddish glitch on fedora 30 cloud image with tooling based on libvirt-python onpython3.7. *qemu-img *is installed though. Could anyone have a look.
I don't see qemu-img installed there. You've requested 'qemu-kvm' and 'qemu-system-x86' which provide the system emulator. qemu-img is part of the 'qemu-utils' package, which is a Recommended dependancy of qemu-system-x86, but you've not told apt to install recommendations AFAICT from that log
Thanks for coming back. With greatest respect, I can see it clearly installed here:
https://travis-ci.com/cherusk/godon/builds/144068483#L432
Probably you're right, but find the separately packaged *qemu-img *non-intiutitive or confusing then. **
Oh you have two installs of libvirt here. One in the Ubuntu image that's running the job. This one lacks qemu-img. The second install is the Docker container you've built which contains Fedora and has qemu-img. I can't tell which libvirt install your error is coming from, but I'd guess the "host" Ubuntu one which lacks qemu-img Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

Hi Daniel
Thanks for coming back. With greatest respect, I can see it clearly installed here:
https://travis-ci.com/cherusk/godon/builds/144068483#L432
Probably you're right, but find the separately packaged *qemu-img *non-intiutitive or confusing then. ** Oh you have two installs of libvirt here. One in the Ubuntu image that's running the job. This one lacks qemu-img. The second install is the Docker container you've built which contains Fedora and has qemu-img.
I can't tell which libvirt install your error is coming from, but I'd guess the "host" Ubuntu one which lacks qemu-img
ignorant me, you're right!!! Ran also into issues for host/container libvirt pool discrepancies earlier on. Highly likely it's the host lacking qemu-img. -- Friendly Matthias

Hi Daniel
Oh you have two installs of libvirt here. One in the Ubuntu image that's running the job. This one lacks qemu-img. The second install is the Docker container you've built which contains Fedora and has qemu-img.
I can't tell which libvirt install your error is coming from, but I'd guess the "host" Ubuntu one which lacks qemu-img
ignorant me, you're right!!! Ran also into issues for host/container libvirt pool discrepancies earlier on. Highly likely it's the host lacking qemu-img.
Confirming, cured it. Heaps of thanks for review! -- All best! Matthias

On 1/16/20 2:34 PM, Matthias Tafelmeier wrote:
Hi Daniel,
I don't see qemu-img installed there. You've requested 'qemu-kvm' and 'qemu-system-x86' which provide the system emulator. qemu-img is part of the 'qemu-utils' package, which is a Recommended dependancy of qemu-system-x86, but you've not told apt to install recommendations AFAICT from that log
Thanks for coming back. With greatest respect, I can see it clearly installed here:
https://travis-ci.com/cherusk/godon/builds/144068483#L432
Probably you're right, but find the separately packaged *qemu-img *non-intiutitive or confusing then.
Also, am not using apt?! I'm based on rpm, in the container image. Further, now I'm getting consternated, look: ---- 14:35:46 Thu Jan 16 jobs:0 root@ punraz :~# dnf search qemu-utils Last metadata expiration check: 0:45:00 ago on Thu 16 Jan 2020 01:50:51 PM CET. No matches found. ---- 14:36:17 Thu Jan 16 jobs:0 root@ punraz :~# dnf repolist Last metadata expiration check: 0:46:19 ago on Thu 16 Jan 2020 01:50:51 PM CET. repo id repo name status copr:copr.fedorainfracloud.org:gumieri:sway Copr repo for sway owned by gumieri 94 copr:copr.fedorainfracloud.org:karmab:kcli Copr repo for kcli owned by karmab 18 copr:copr.fedorainfracloud.org:thozza:XMind Copr repo for XMind owned by thozza 2 copr:copr.fedorainfracloud.org:tofik:sway Copr repo for sway owned by tofik 25 *fedora Fedora 30 - x86_64 56,578 *fedora-debuginfo Fedora 30 - x86_64 - Debug 33,069 *fedora-modular Fedora Modular 30 - x86_64 135 *fedora-source Fedora 30 - Source 21,292 *rpmfusion-free RPM Fusion for Fedora 30 - Free 616 *rpmfusion-free-updates RPM Fusion for Fedora 30 - Free - Updates 331 *rpmfusion-nonfree RPM Fusion for Fedora 30 - Nonfree 227 *rpmfusion-nonfree-updates RPM Fusion for Fedora 30 - Nonfree - Updates 87 skype-stable skype (stable) 5 *updates Fedora 30 - x86_64 - Updates 14,867 *updates-modular Fedora Modular 30 - x86_64 - Updates 142 --- -- Kindly Matthias
participants (2)
-
Daniel P. Berrangé
-
Matthias Tafelmeier