Description of problem: KVM guest provisioning fails on rhel 7.1 hypervisor. RHEL 7.1 contains new incompatible virt-install version: virt-install-1.1.0-10.el7 While RHEL 7.0 contains: virt-install-0.10.0-20.el7 Version bump 0.10.0 -> 1.1.0 indicates suspected incompatibility. Version-Release number of selected component (if applicable): virt-install-1.1.0-10.el7.noarch koan-2.0.7-53.el7sat.noarch spacewalk-koan-2.3.0-2.el7sat.noarch How reproducible: 100% Steps to Reproduce: 1.schedule kvm-guest provisioning using RHEL7.1 hypervisor against Satellite 5.7 2.@hypervisor: pickup scheduled action: # rhn_check -vv ... D: do_call kickstart_guest.initiate('<SAT570>', '<VHOST_RHEL71>:1:kvm-rhel7', 'qemu', 28, 'kvm-rhel7', 1024, 1, 3, 'virbr0', '/var/lib/libvirt/images/kvm-rhel7', ' '){'cache_only': None} - looking for Cobbler at http://<SAT570>/cobbler_api - reading URL: http://<SAT570>/cblr/svc/op/ks/system/<VHOST_RHEL71>:1:kvm-rhel7 install_tree: http://<SAT570>/ty/PnR7KSFw - ['rpm', '-q', 'virt-install'] - ['virt-install', '--version'] - ['virt-install', '--os-variant', 'list'] - warning: virt-install doesn't know this os_version, defaulting to generic26 - adding disk: /var/lib/libvirt/images/kvm-rhel7 of size 3 (driver type=None) - ['virt-install', '--connect', 'qemu:///system', '--name', 'kvm-rhel7', '--ram', '1024', '--vcpus', '1', '--autostart', '--vnc', '--virt-type', 'qemu', '--machine', 'pc', '--hvm', '--extra-args=ks=http://<SAT570>/cblr/svc/op/ks/system/<VHOST_RHEL71>:1:kvm-rhel7 ksdevice=link kssendmac lang= text ', '--location', 'http://<SAT570>/ty/PnR7KSFw/', '--os-variant', 'generic26', '--disk', 'path=/var/lib/libvirt/images/kvm-rhel7,size=3', '--network', 'bridge=virbr0,mac=00:16:3e:1b:26:55', '--wait', '0', '--noautoconsole'] ERROR Host does not support virtualization type 'hvm' command failed (1) D: Sending back response(1, 'Virtual kickstart failed. Koan error.', {'koan': 'command failed (1)'}) Actual results: provisioning fails Expected results: provisioning succeeds Additional info: also you can't use rhel 7.0 virt-install on rhel 7.1 vhost (to workaround this problem by downgrading virt-install to rhel7.0 version)
Please disregard the error output in comment#0 - such output is caused by missing libvirt-daemon-kvm package. After package installation I got the appropriate error output: ... D: do_call kickstart_guest.initiate('<SAT570>', '<VHOST_RHEL71>:1:kvm-rhel7', 'qemu', 34, 'kvm-rhel7', 1024, 1, 3, 'virbr0', '/var/lib/libvirt/images/kvm-rhel7', ' '){'cache_only': None} - looking for Cobbler at http://<SAT570>/cobbler_api - reading URL: http://<SAT570>/cblr/svc/op/ks/system/<VHOST_RHEL71>:1:kvm-rhel7 install_tree: http://<SAT570>/ty/mqsi7QU2 - ['rpm', '-q', 'virt-install'] - ['virt-install', '--version'] - ['virt-install', '--os-variant', 'list'] - warning: virt-install doesn't know this os_version, defaulting to generic26 - adding disk: /var/lib/libvirt/images/kvm-rhel7 of size 3 (driver type=None) - ['virt-install', '--connect', 'qemu:///system', '--name', 'kvm-rhel7', '--ram', '1024', '--vcpus', '1', '--autostart', '--vnc', '--virt-type', 'kvm', '--machine', 'pc', '--extra-args=ks=http://<SAT570>/cblr/svc/op/ks/system/<VHOST_RHEL71>:1:kvm-rhel7 ksdevice=link kssendmac lang= text ', '--location', 'http://<SAT570>/ty/mqsi7QU2/', '--os-variant', 'generic26', '--disk', 'path=/var/lib/libvirt/images/kvm-rhel7,size=3', '--network', 'bridge=virbr0,mac=00:16:3e:0a:75:f7', '--wait', '0', '--noautoconsole'] ERROR Error validating install location: Distro 'generic26' does not exist in our dictionary command failed (1) D: Sending back response(1, 'Virtual kickstart failed. Koan error.', {'koan': 'command failed (1)'})
Workaround for RHEL7.1 hypervisor is to downgrade virt-install package to RHEL7.0 version. (virt-install-0.10.0)
Yes, more info: The virt-install version in RHEL 7.1 has changed substantially, and in not-backwards-compatible ways. Specifically the "virt-install --os-variant list" command is not longer valid, being replaced by "osinfo-query os". The "generic26" and "rhel7" variants are no longer valid, now it has to be "rhel7.0", and there is no replacement for generic26. I'll have to update koan to be able to properly interact with new virt-install.
*** Bug 1180330 has been marked as a duplicate of this bug. ***
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0114.html
So, which version of koan actually has the fix for this issue included? That would be useful information in the ticket. Unfortunately this ticket doesn't say so and so when one has what one thinks is an up-to-date system and this problem still persists one is in the dark about the whole mess. One doesn't have version numbers to try to determine how up to date one's system really is.
Ahh. Just noticed in the bugzilla header/metadata: Fixed In Version: koan-2.0.7-54 Should I take that to be accurate? My system says I have: koan-2.6.3-1.el7.noarch
With satellite5 you are supposed to use RHN Tools koan (2.0.7) It seems that you are using upstream version of koan (2.6) if you experience any issues try using RHN Tools version of koan,,,
(In reply to Lukas Pramuk from comment #16) > With satellite5 you are supposed to use RHN Tools koan (2.0.7) I did not realize this ticket was specifically for satellite5. I will open a new ticket for the broken koan in EPEL7.