Sorry, replied to the wrong thread.

William Sweat
Senior Operations Manager

E-Mail:         [email protected]
Direct:  (310) 556-4440 x.29
Cell:    (310) 556-4441

        Findology Interactive Media, Inc.
1801 Avenue of the Stars, Suite 1240
Los Angeles, CA 90067
www.findology.com

Toll-Free: (888) 632-8640
Fax: (310) 556-4441


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of William Sweat
Sent: Monday, July 13, 2009 10:06 AM
To: cobbler mailing list
Subject: RE: [PATCH] Re: Provision vm with many hard drives

I feel not so smart :P  The issue was the version of koan I had used on the 
client servers.  It was version .5, the latest is 1.6.  Once I installed the 
correct version, the cobbler server responded correctly.

[r...@someserver ~]# koan --list=profiles -s cobblerserver
- looking for Cobbler at http://cobbler0.targetsaver.com/cobbler_api
centos-5.3-x86_64
centos-5.3-xen-x86_64
rescue-centos-5.3-x86_64

_Will
________________________________________
From: [email protected] 
[mailto:[email protected]] On Behalf Of Michael DeHaan
Sent: Monday, July 13, 2009 7:57 AM
To: cobbler mailing list
Subject: Re: [PATCH] Re: Provision vm with many hard drives

On 07/07/2009 03:33 AM, Jasper Capel wrote:
----- "Thomas S Hatch" <[email protected]> wrote:


So here is my command, but it dosen't work:
cobbler system edit --virt-file-size="50 25" --name="docs"

Here is the error:

local variable 'inum' referenced before assignment
File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 83,
in main
rc = BootCLI().run(sys.argv)

File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line 61,
in run
return self.loader.run(args)

File "/usr/lib/python2.5/site-packages/cobbler/commands.py", line 122,
in run
return fn.run()

File "/usr/lib/python2.5/site-packages/cobbler/modules/cli_system.py",
line 165, in run
obj.set_virt_file_size(self.options.virt_file_size)

File "/usr/lib/python2.5/site-packages/cobbler/item_system.py", line
540, in set_virt_file_size
return utils.set_virt_file_size(self,num)

File "/usr/lib/python2.5/site-packages/cobbler/utils.py", line 1164,
in set_virt_file_size
raise CX(_("invalid virt file size (%s)" % inum))




This error is an error while raising an exception, not the real error. It would 
most likely say something like "invalid virt file size (somenumber)". This 
patch fixes the error message (it was already good in the master branch, so 
only applied to release16):
https://bender.newnewyork.nl/git/gitweb.cgi?p=cobbler/.git;a=commit;h=0043eacebba480cf728103f324ebc2698ce649d4

-Jasper
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler


This should be merged in with the other branch stuff, also also thanks!

--Michael

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to