kubevirt/fix-virsh-domcapabilities-error.patch
James Fehlig e72904e345 Accepting request 887252 from home:vulyanov:branches:Virtualization
- Disable changelog generation via tar_scm service (too verbose)

- Update to version 0.40.0
  Release notes https://github.com/kubevirt/kubevirt/releases/tag/v0.40.0

- Package node-labeller.sh along with virt-launcher

- Fix issue when calling `virsh-domcapabilities`
  fix-virsh-domcapabilities-error.patch

OBS-URL: https://build.opensuse.org/request/show/887252
OBS-URL: https://build.opensuse.org/package/show/Virtualization/kubevirt?expand=0&rev=41
2021-04-21 15:24:29 +00:00

28 lines
1.3 KiB
Diff

Fix 'virsh domcapabilities' error
Calling `virsh domcapabilities ...` produces an error with some older
versions of libvirt:
error: failed to get emulator capabilities
error: invalid argument: unable to find any emulator to serve 'x86_64' architecture
The issue seems fixed if `virsh capabilites` is run first.
diff --git a/cmd/virt-launcher/node-labeller/node-labeller.sh b/cmd/virt-launcher/node-labeller/node-labeller.sh
index 8ea181963..55a920bdd 100755
--- a/cmd/virt-launcher/node-labeller/node-labeller.sh
+++ b/cmd/virt-launcher/node-labeller/node-labeller.sh
@@ -13,8 +13,10 @@ chmod o+rw /dev/kvm
libvirtd -d
+virsh capabilities > /dev/null
+
virsh domcapabilities --machine q35 --arch x86_64 --virttype kvm > /var/lib/kubevirt-node-labeller/virsh_domcapabilities.xml
cp -r /usr/share/libvirt/cpu_map /var/lib/kubevirt-node-labeller
-virsh domcapabilities --machine q35 --arch x86_64 --virttype kvm | virsh hypervisor-cpu-baseline --features /dev/stdin --machine q35 --arch x86_64 --virttype kvm > /var/lib/kubevirt-node-labeller/supported_features.xml
\ No newline at end of file
+virsh domcapabilities --machine q35 --arch x86_64 --virttype kvm | virsh hypervisor-cpu-baseline --features /dev/stdin --machine q35 --arch x86_64 --virttype kvm > /var/lib/kubevirt-node-labeller/supported_features.xml