Bug 927060 - koan expecting --pxe
Summary: koan expecting --pxe
Keywords:
Status: CLOSED DUPLICATE of bug 1109276
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Herr
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2013-03-25 01:52 UTC by Mohammed Arafa
Modified: 2017-09-28 18:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-01 20:23:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Mohammed Arafa 2013-03-25 01:52:39 UTC
Description of problem:

i believe i have succesfully create the cobbler kickstart, distro and profile via spacewalk webui.
however when i attempt to provision a vm guest i get this

marafa@kvm:~$ sudo koan --virt --server=spacewalk.marafa.vm --profile="centos6-x86_64:1:SpacewalkDefaultOrganization" --virt-name=koan.marafa.vm --virt-type=kvm  
- looking for Cobbler at http://spacewalk.marafa.vm:80/cobbler_api
- reading URL: http://spacewalk.marafa.vm/cblr/svc/op/ks/profile/centos6-x86_64:1:SpacewalkDefaultOrganization
install_tree: http://spacewalk.marafa.vm/repo/centos6-x86_64/
- adding disk: /var/lib/libvirt/images//koan.marafa.vm-disk0 of size 3 (driver type=raw)
- ['virt-install', '--connect', 'qemu:///system', '--name', 'koan.marafa.vm', '--ram', '512', '--vcpus', '1', '--autostart', '--vnc', '--virt-type', 'kvm', '--machine', 'pc', '--extra-args=ks=http://spacewalk.marafa.vm/cblr/svc/op/ks/profile/centos6-x86_64:1:SpacewalkDefaultOrganization ksdevice=link kssendmac lang= text ', '--arch', 'i386', '--os-variant', 'generic26', '--disk', 'path=/var/lib/libvirt/images//koan.marafa.vm-disk0,size=3,driver_type=raw', '--network', 'bridge=virbr0', '--wait', '0', '--noautoconsole']
ERROR    
An install method must be specified
(--location URL, --cdrom CD/ISO, --pxe, --import, --boot hd|cdrom|...)
command failed (1)

i cant find --pxe in "man koan" nor --location nor cdrom ... something is broken in koan if it is asking for that especially since koan --help shows it is actually "--virt-pxe-boot" (which works!)

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Stephen Herr 2014-07-01 20:23:58 UTC
Your problem is that your koan command needs a --location argument.

Normally when provisioning virt guests through Spacewalk you would initiate the kickstart through the Spacewalk webui and then run rhn_check on the host (or just wait for it to automatically happen), not try to manually create the koan command yourself. This has been broken, but is now fixed in Spacewalk nightly and will be released with the next version of Spacewalk. See bug 1109276.

When it is released please upgrade to those packages and ensure that you have latest version of koan installed on your virt host (either from EPEL if a RHEL or CentOS system or from Fedora repos if Fedora) and virt guest provisioning should work again. On my system it generates a virt-install command like so:

- ['virt-install', '--connect', 'qemu:///system', '--name', 'provisioning-test-1', '--ram', '512', '--vcpus', '1', '--vnc', '--hvm', '--extra-args=ks=http://sherr-spacewalk.usersys.redhat.com/cblr/svc/op/ks/system/sherr-desktop:1:provisioning-test-1 ksdevice=link kssendmac lang= text ', '--location', 'http://sherr-spacewalk.usersys.redhat.com/ty/QphG7fjW/', '--arch', 'x86_64', '--os-variant', 'rhel6', '--disk', 'path=/var/lib/libvirt/images/provisioning-test-1,size=3', '--network', 'bridge=br0', '--mac=00:16:3e:0b:ec:70', '--wait', '0', '--noautoconsole']

*** This bug has been marked as a duplicate of bug 1109276 ***

Comment 2 Eric Herget 2017-09-28 18:10:04 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.


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