Bug 1184595 - koan not compatible with virt-install on rhel7.1
Summary: koan not compatible with virt-install on rhel7.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Provisioning
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Lukas Pramuk
URL:
Whiteboard:
: 1180330 (view as bug list)
Depends On:
Blocks: sat570-triage sat570-postga
TreeView+ depends on / blocked
 
Reported: 2015-01-21 18:57 UTC by Lukas Pramuk
Modified: 2015-11-02 12:28 UTC (History)
3 users (show)

Fixed In Version: koan-2.0.7-54
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-03 15:23:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0114 0 normal SHIPPED_LIVE Red Hat Network Tools koan bug fix update 2015-02-03 20:22:11 UTC

Description Lukas Pramuk 2015-01-21 18:57:03 UTC
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)

Comment 2 Lukas Pramuk 2015-01-22 13:36:24 UTC
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)'})

Comment 3 Lukas Pramuk 2015-01-22 13:51:30 UTC
Workaround for RHEL7.1 hypervisor is to downgrade virt-install package to RHEL7.0 version. (virt-install-0.10.0)

Comment 4 Stephen Herr 2015-01-22 15:57:53 UTC
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.

Comment 7 Stephen Herr 2015-01-27 17:12:24 UTC
*** Bug 1180330 has been marked as a duplicate of this bug. ***

Comment 13 errata-xmlrpc 2015-02-03 15:23:14 UTC
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

Comment 14 Brian J. Murrell 2015-10-30 18:33:39 UTC
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.

Comment 15 Brian J. Murrell 2015-10-30 18:39:02 UTC
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

Comment 16 Lukas Pramuk 2015-11-02 11:58:46 UTC
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,,,

Comment 17 Brian J. Murrell 2015-11-02 12:28:17 UTC
(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.


Note You need to log in before you can comment on or make changes to this bug.