Bug 1047350

Summary: koan 2.4 has a broken API
Product: [Fedora] Fedora EPEL Reporter: Paul Robert Marino <prmarino1>
Component: cobblerAssignee: James C. <jimi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: jimi, mzazrivec, orion, scott, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/cobbler/cobbler/pull/866
Whiteboard:
Fixed In Version: cobbler-2.4.4-1.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-03 19:57:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paul Robert Marino 2013-12-30 15:22:08 UTC
Description of problem:
EPEL did it to us again there was an update to cobbler from 2.2 to 2.4 from the server side it doesn't seam to be a big problem so far, but the syntax for koan seems to have changed. this specifically causes a problem with visualization and visualization platform



Version-Release number of selected component (if applicable):
any version of spacewalk >= 1.8 with koan 2.4.x

How reproducible:
install the Virtualization or Virtualization Platform package group on a spacewalk managed host.

stop osad on the virtualization host so you can manually trigger rhn_check latter to view the output

entitle the box for Virtualization or Virtualization Platform in spacewalk
go to Virtualization -> Provisioning for the host.

attempt to create a VM

from the command line on the virtualization host run rhn_check


Actual results:
the build will fail and rhn_check will give you output like this
"
- looking for Cobbler at https://Spacewalk.host.name:443/cobbler_api
- reading URL: http://Spacewalk.host.name/cblr/svc/op/ks/system/my.test.host:1
install_tree: http://Spacewalk.host.name/ty/tXZ5SDzz
downloading initrd initrd.img to /boot/initrd.img_koan
url=http://Spacewalk.host.name/cobbler/images/Scientific-Linux-64-x86_64:1:Testing/initrd.img
- reading URL: http://Spacewalk.host.name/cobbler/images/Scientific-Linux-64-x86_64:1:Testing/initrd.img
downloading kernel vmlinuz to /boot/vmlinuz_koan
url=http://Spacewalk.host.name/cobbler/images/Scientific-Linux-64-x86_64:1:Testing/vmlinuz
- reading URL: http://Spacewalk.host.name/cobbler/images/Scientific-Linux-64-x86_64:1:Testing/vmlinuz
- reading URL: http://Spacewalk.host.name/cblr/svc/op/ks/system/my.test.host:1
<type 'exceptions.TypeError'>
not enough arguments for format string
  File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line 167, in initiate
    k.run()
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 429, in run
    self.replace()
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 1168, in replace
    return self.net_install(after_download)
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 669, in net_install
    after_download(self, profile_data)
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 1041, in after_download
    profile_data
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 1213, in build_initrd
    fd.write(self.get_insert_script(initrd))
   File "/usr/lib/python2.6/site-packages/koan/app.py", line 1195, in get_insert_script
    """ % initrd

"

Expected results:

Virtual machine to be created

Additional info:

Comment 1 Milan Zázrivec 2014-01-03 15:40:30 UTC
This is a bug in cobbler / koan, not in Spacewalk.

It was caused by the following cobbler.git commit:

    21b3c1a3eb77269ddb354313795a9edc05693e4f

Since, the commit added another %s into the return string of get_insert_script()
routine, another initrd needs to be added at the end for proper expansion.

Comment 2 Orion Poplawski 2014-04-21 17:47:27 UTC
Filed upstream, working on an update

Comment 3 Fedora Update System 2014-04-21 20:33:53 UTC
cobbler-2.4.3-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/cobbler-2.4.3-1.el6

Comment 4 Fedora Update System 2014-04-22 15:34:28 UTC
cobbler-2.4.4-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.fc20

Comment 5 Fedora Update System 2014-04-22 15:35:36 UTC
cobbler-2.4.4-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.fc19

Comment 6 Fedora Update System 2014-04-22 15:36:41 UTC
cobbler-2.4.4-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.el6

Comment 7 Fedora Update System 2014-04-22 15:37:38 UTC
cobbler-2.4.4-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/cobbler-2.4.4-1.el5

Comment 8 Fedora Update System 2014-04-22 19:56:49 UTC
Package cobbler-2.4.4-1.el5:
* should fix your issue,
* was pushed to the Fedora EPEL 5 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing cobbler-2.4.4-1.el5'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-1211/cobbler-2.4.4-1.el5
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-05-03 19:57:57 UTC
cobbler-2.4.4-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2014-05-08 22:00:27 UTC
cobbler-2.4.4-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2014-05-09 02:57:11 UTC
cobbler-2.4.4-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2014-05-09 22:02:28 UTC
cobbler-2.4.4-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.