[Spacewalk-list] problem provisioning a VM through spacewalk

Paul Robert Marino prmarino1 at gmail.com
Mon Mar 10 15:15:58 UTC 2014


This is a Known bug in Koan 2.4 if you downgrade to koan 2.2 it will work fine
I reported it a while ago here is the ticket
https://bugzilla.redhat.com/show_bug.cgi?id=1047350
there hasn't been any followup on it from the cobbler maintainers though.

On Wed, Mar 5, 2014 at 10:51 AM, Bill Gunter <bill.gunter at ni.com> wrote:
> Ah, there's a missing RPM dependency somewhere:
>
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "/usr/share/rhn/actions/kickstart_guest.py", line 23, in ?
>     from spacewalkkoan import spacewalkkoan
>   File "/usr/share/rhn/spacewalkkoan/spacewalkkoan.py", line 29, in ?
>     from koan.app import Koan
>   File "/usr/lib/python2.4/site-packages/koan/app.py", line 64, in ?
>     import configurator
>   File "/usr/lib/python2.4/site-packages/koan/configurator.py", line 36, in
> ?
>     import simplejson as json
> ImportError: No module named simplejson
>
> Installed python-simplejson and I'm getting past the error, now.
>
> Thanks!
>
> --
> Bill Gunter, RHCSA  | Unix Administrator | National Instruments Ireland |
> bill.gunter at ni.com  | Ph:+353 1 247 5935
>
>
>
> From:        Milan Zázrivec <mzazrivec at redhat.com>
> To:        spacewalk-list at redhat.com,
> Date:        05/03/2014 15:43
>
> Subject:        Re: [Spacewalk-list] problem provisioning a VM through
> spacewalk
> Sent by:        spacewalk-list-bounces at redhat.com
> ________________________________
>
>
>
> On Wednesday 05 March 2014 11:56:09 Bill Gunter wrote:
>> Ah, yes, sorry, I was misinterpreting what's happening in the code.
>>
>> Anyway, I've tried both an HVM and a PVM and get the "Invalid function
>> call attempted" for both. Here's the error for a PVM:
>>
>> D: handle_action{'action': "<?xml
>> version='1.0'?>\n<methodCall>\n<methodName>kickstart
>> _guest.initiate</methodN
>
>>
>> ame>\n<params>\n<param>\n<value><string>kyle.natinst.com</string></value>\n<
>>
>> /param>\n<param>\n<value><string>viola:1:destiny1</string></value>\n</param>
>>
>> \n<param>\n<value><string>xenpv</string></value>\n</param>\n<param>\n<value>
>>
>> <int>46</int></value>\n</param>\n<param>\n<value><string>destiny1</string></
>>
>> value>\n</param>\n<param>\n<value><int>2048</int></value>\n</param>\n<param>
>>
>> \n<value><int>7</int></value>\n</param>\n<param>\n<value><int>50</int></valu
>>
>> e>\n</param>\n<param>\n<value><string>xenbr0</string></value>\n</param>\n<pa
>>
>> ram>\n<value><string>/var/lib/xen/images/destiny1</string></value>\n</param>
>> \n<param>\n<value><string>
>> </string></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2,
>> 'id': 8318}
>> D: handle_action actionid = 8318, version = 2
>> D: do_call kickstart_guest.initiate('kyle.natinst.com',
>> 'viola:1:destiny1', 'xenpv', 46, 'destiny1', 2048, 7, 50, 'xenbr0',
>> '/var/lib/xen/images/destiny1', ' '){'cache_only': None}
>> D: Attempt to call an unsupported action
>> kickstart_guest.initiate('kyle.natinst.com', 'viola:1:destiny1', 'xenpv',
>> 46, 'destiny1', 2048, 7, 50, 'xenbr0', '/var/lib/xen/images/destiny1', '
>> ')
>> D: Sending back response(6, 'Invalid function call attempted', {})
>
> Hard to say what's up.
>
> Could you run the following on your Xen host (as root, all one line):
>
> $ PYTHONPATH=/usr/share/rhn python -c 'from actions import kickstart_guest;
> kickstart_guest.initiate("kyle.natinst.com", "viola:1:destiny1", "xenfv",
> 44,
> "destiny1", 2048, 7, 50, "xenbr0", "/var/lib/xen/images/destiny1", " ")'
>
> and show the output? It's the same thing as shown above, just called
> manually,
> without rhn_check (which could be catching some interesting error /
> exception
> here).
>
> Thanks
> -MZ
>
>> On Tuesday 04 March 2014 17:11:00 Bill Gunter wrote:
>> > I've been trying to initiate a kickstart on a Xen host and running into
>>
>> a
>>
>> > problem. I've tried this with both Spacewalk 2.0 and 2.1 (installed just
>> > today).  rhn_check -vvvv is throwing this:
>> >
>> > D: logininfo:{'X-RHN-Server-Id': 1000010670, 'X-RHN-Auth-Server-Time':
>> > '1393952210.29', 'X-RHN-Auth': 'P/qYAiT/RnrstqsawvaYqA==',
>> > 'X-RHN-Auth-Channels': [['oracle5-base-x86_64', '20130220083757', '1',
>> > '1'], ['oracle-epel5-x86_64', '20140221052303', '0', '1'],
>> > ['oracle-spacewalk-client-x86_64', '20140304094033', '0', '1'],
>> > ['oracle5-ni-x86_64', '20130408082427', '0', '1'],
>>
>> ['oracle5-q313-x86_64',
>>
>> > '20130604030750', '0', '1']], 'X-RHN-Auth-User-Id': '',
>> > 'X-RHN-Auth-Expire-Offset': '3600.0'}
>> > D: handle_action{'action': "<?xml
>>
>> version='1.0'?>\n<methodCall>\n<methodName>kickstart
>> _guest.initiate</methodN
>
>>
>>
>> ame>\n<params>\n<param>\n<value><string>kyle.natinst.com</string></value>\n<
>>
>>
>> /param>\n<param>\n<value><string>viola:1:destiny1</string></value>\n</param>
>>
>>
>> \n<param>\n<value><string>xenfv</string></value>\n</param>\n<param>\n<value>
>>
>>
>> <int>44</int></value>\n</param>\n<param>\n<value><string>destiny1</string></
>>
>>
>> value>\n</param>\n<param>\n<value><int>2048</int></value>\n</param>\n<param>
>>
>>
>> \n<value><int>7</int></value>\n</param>\n<param>\n<value><int>50</int></valu
>>
>>
>> e>\n</param>\n<param>\n<value><string>xenbr0</string></value>\n</param>\n<pa
>>
>>
>> ram>\n<value><string>/var/lib/xen/images/destiny1</string></value>\n</param>
>> > \n<param>\n<value><string>
>> > </string></value>\n</param>\n</params>\n</methodCall>\n", 'version': 2,
>> > 'id': 8299}
>> > D: handle_action actionid = 8299, version = 2
>> > D: do_call kickstart_guest.initiate('kyle.natinst.com',
>> > 'viola:1:destiny1', 'xenfv', 44, 'destiny1', 2048, 7, 50, 'xenbr0',
>> > '/var/lib/xen/images/destiny1', ' '){'cache_only': None}
>> > D: Attempt to call an unsupported action
>> > kickstart_guest.initiate('kyle.natinst.com', 'viola:1:destiny1',
>>
>> 'xenfv',
>>
>> > 44, 'destiny1', 2048, 7, 50, 'xenbr0', '/var/lib/xen/images/destiny1', '
>> > ')
>> > D: Sending back response(6, 'Invalid function call attempted', {})
>> >
>> > I checked /usr/share/rhn/actions/kickstart_guest.py on the host (from
>> > spacewalk-koan-2.1.4-1.el5) and see that the import of kickstart _guest
>>
>> is
>>
>> > remmed out:
>> >
>> > import sys
>> >
>> > rhnpath="/usr/share/rhn"
>> >
>> > if rhnpath not in sys.path:
>> >     sys.path.append(rhnpath)
>> >
>> > #from rhnkickstart import kickstart_guest
>> > from spacewalkkoan import spacewalkkoan
>> >
>> > Why is spacewalk asking the host to run something that seems to be
>> > deprecated?
>>
>> This is OK, it's just an unnedded import (I removed it now).
>>
>> Calling  kickstart_guest.initiate() by rhn_check translates to
>> calling initiate() from /usr/share/rhn/actions/kickstart_guest.py
>>
>> Do I understand correctly that you're trying to create a fully virtualized
>> xen guest?
>>
>> -MZ
>>
>> _______________________ __
>> ______________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>>
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>>
>>
>>
>> National Instruments Ireland Resources Ltd.
>> Unit 302 | Omni Business Park | Swords Road | Santry | Dublin 9
>> Registered Office: 39/40 Upper Mount Street, Dublin 1
>> Company Registered No.377471
>> Tel: +353 1 2475900
>
> _________________________ ______________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
> National Instruments Ireland Resources Ltd.
> Unit 302 | Omni Business Park | Swords Road | Santry | Dublin 9
> Registered Office: 39/40 Upper Mount Street, Dublin 1
> Company Registered No.377471
> Tel: +353 1 2475900
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list