On 03.05.2012 [17:20:36 +0200], mad wrote:
> > On 05/03/2012 01:54 AM, mad wrote:
> > > Hello,
> > >
> > > I just wanted to create a memtest profile with the documentation
> > >
> > > https://github.com/cobbler/cobbler/wiki/Memtest
> > >
> > > The result is:
> > >
> > > # cobbler image add --name=memtest86+ --file=/boot/memtest86+-4.10
> > > --image- type=direct
> > > ### ERROR ###
> > > Unexpected remote error, check the server side logs for further info
> > > <type 'exceptions.AttributeError'>:'NoneType' object has no attribute
> > > 'os_version'
> > >
> > > # cobbler --version
> > > Cobbler 2.2.2
> > >
> > > Anybody knows the problem or how to solve that?
> >
> > I'm using Cobbler 2.0.10 and haven't tried this yet, but the error message
> > would seem to indicate it wants you to pass another argument:
> >
> > --os-version=OS_VERSION
> > OS Version (ex: rhel4) (valid options:
> > ,dapper,etch,fe dora10,fedora11,fedora12,fedora13,fedora14,fedora15,fe
> > dora5,fedora6,fedora7,fedora8,fedora9,freebsd6,generic
> > ,generic24,generic26,hardy,intrepid,jaunty,lenny,msdos
> > ,netware4,netware5,netware6,openbsd4,other,rhel2.1,rhe
> > l3,rhel4,rhel5,rhel6,sid,sles10,solaris10,solaris9,squ
> > eeze,stable,testing,unstable,virtio26,vista,win2k,win2 k3,winxp)
>
> I tried that, too:
>
> # cobbler image add --name=memtest --
> file=/var/www/cobbler/ks_mirror/memtest/memtest --image-type=direct --os-
> version=generic26 --arch=i386 --breed=generic
> ### ERROR ###
> Unexpected remote error, check the server side logs for further info
> <type 'exceptions.AttributeError'>:'NoneType' object has no attribute
> 'os_version'
For reference, were you who I (nacc) was talking to on IRC?
Seemed, like this should have been fixed in c7c4b77a, which is in 2.2.2.
The line in question (diff) was:
- elif distro.os_version.startswith("esxi"):
+ elif distro and distro.os_version.startswith("esxi"):
Is that the same one throwing the error for you (determinable from the
tracelog)?
Would you be willing to munge that up a bit on your local machine and
see if maybe distro is set (for an unknown reason) and so the elif is
triggering, but os_version is not set?
Thanks,
Nish
--
Nishanth Aravamudan <[email protected]>
IBM Linux Technology Center
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler