Bishop .. that did it man!! Thanks for your help!!! Feel a bit dumb..
but I'm sure I've learned from this experience!! The disk is imported
and cobbler is syncing.. good work!!!
On Wed, Sep 22, 2010 at 8:30 AM, Byron Pezan <BPezan(a)secureworks.com> wrote:
the error implies that your media doesn't contain any x86_64
packages. are you sure that the media is x86_64 and not i386?
what does something like this return? ` ls /mnt/DVD/CentOS/ | grep x86_64 | head` if i
mount a CentOS 5.5 x86_64 DVD and run that command i can see that there are indeed x86_64
pkgs:
uname@server:~$ ls /mnt/loop/CentOS/ | grep x86_64 | head
a2ps-4.13b-57.2.el5.x86_64.rpm
acl-2.2.39-6.el5.x86_64.rpm
acpid-1.0.4-9.el5_4.2.x86_64.rpm
adaptx-0.9.13-3jpp.1.x86_64.rpm
adaptx-doc-0.9.13-3jpp.1.x86_64.rpm
adaptx-javadoc-0.9.13-3jpp.1.x86_64.rpm
adjtimex-1.20-2.1.x86_64.rpm
agg-2.4-2.1.x86_64.rpm
agg-devel-2.4-2.1.x86_64.rpm
aide-0.13.1-6.el5.x86_64.rpm
if run against a CentOS 5.5 i386 DVD it should return nothing.
HTH
byron
-----Original Message-----
From: cobbler-bounces(a)lists.fedorahosted.org
[mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Tim Dunphy
Sent: Wednesday, September 22, 2010 12:00 AM
To: cobbler mailing list
Subject: Re: importing images
Hey bish!
thanks for the help.. well this seemed to be the winning combination....
cobbler import --name centos55 --arch x86_64 --path /mnt/DVD
UNTIL
Exception occured: cobbler.cexceptions.CX Exception value: 'Given arch (x86_64) not
found on imported tree /var/www/cobbler/ks_mirror/centos55-x86_64/CentOS'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 95, in run
rc = self._run(self)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 224, in
runner
self.logger
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 657, in
import_tree
return importer.run()
File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 215, in run
os.path.walk(self.path, self.distro_adder, distros_added)
File "/usr/lib/python2.4/posixpath.py", line 298, in walk
walk(name, func, arg)
File "/usr/lib/python2.4/posixpath.py", line 298, in walk
walk(name, func, arg)
File "/usr/lib/python2.4/posixpath.py", line 290, in walk
func(arg, top, names)
File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 554, in distro_adder
adtls.append(self.add_entry(dirname,kernel,initrd))
File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 588, in add_entry
utils.die(self.logger, "Given arch (%s) not found on imported tree
%s"%(self.arch,importer.get_pkgdir()))
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 130, in die
raise CX(msg)
!!! TASK FAILED !!!
close but no cigar... :( I appreciate the tip but still could use some help with this
I am including a more complete error but I was not able to get the entire error because
my terminal wasn't big enough to capture it all..
thanks
On Tue, Sep 21, 2010 at 9:06 PM, bishop <bishop(a)platypus.bc.ca> wrote:
> Hey Tim,
>
> Double up on the hyphens. --name, --mirror
>
> I usually toss an --arch in there too, as I don't want to clean up
> that once in a million where it can't figure it out itself.
>
> so
> cobbler import \
> --name centos55 \
> --arch x86_64 \
> --mirror /misc/cd
>
> or so.
>
> G'luck, and drop me a note if I can help a bit more offline over the
> next few hours.
>
> - bish
>
>
> Tim Dunphy wrote:
>> Hey guys,
>>
>> I am attmepting to import images into my cobbler config as per this
>> tutorial
>>
>>
>>
http://magazine.redhat.com/2007/08/10/cobbler-how-to-set-up-a-network
>> -boot-server-in-10-minutes/
>>
>> [root@virtCent14:~]#cobbler import name=CentOS-55 mirror=/mnt/DVD
>
> --
> I would go postal, but I have such bad aim.
> Neil Bateman, 20090720, GTalk
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler