[[email protected] ~]# cobbler import --path=/iso/ --name=Redhat --arch=6.5
task started: 2016-05-18_075525_import
task started (id=Media import, time=Wed May 18 07:55:25 2016)
Found a candidate signature: breed=redhat, version=rhel6
Found a matching signature: breed=redhat, version=rhel6
Adding distros from path /var/www/cobbler/ks_mirror/Redhat-6.5:
Exception occured: <class ‘cexceptions.CX‘>
Exception value: ‘Given arch (6.5) not found on imported tree /var/www/cobbler/ks_mirror/Redhat-6.5‘
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 126, in die
raise CX(msg)
Exception occured: <class ‘cexceptions.CX‘>
Exception value: ‘Given arch (6.5) not found on imported tree /var/www/cobbler/ks_mirror/Redhat-6.5‘
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 87, in run
rc = self._run(self)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 231, in runner
self.logger
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 936, in import_tree
return import_module.run(path,mirror_name,network_root,kickstart_file,arch,breed,os_version)
File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_import_signatures.py", line 140, in run
os.path.walk(self.path, self.distro_adder, distros_added)
File "/usr/lib64/python2.6/posixpath.py", line 236, in walk
walk(name, func, arg)
File "/usr/lib64/python2.6/posixpath.py", line 236, in walk
walk(name, func, arg)
File "/usr/lib64/python2.6/posixpath.py", line 228, in walk
func(arg, top, names)
File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_import_signatures.py", line 255, in distro_adder
adtls.append(self.add_entry(dirname,kernel,initrd))
File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_import_signatures.py", line 291, in add_entry
utils.die(self.logger, "Given arch (%s) not found on imported tree %s"%(self.arch,self.path))
File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 134, in die
raise CX(msg)
!!! TASK FAILED !!!
原文地址:https://blog.51cto.com/sedawk/2448858