Hi ,
I want to setup lab controller as Beaker-0.5-Administration_Guide-en-US.pdf, but when it comes to the step :
"$ cobbler import --path=/net/${NFSSERVER}/${NFSPATH} \ -- name=$DISTRONAME \ --availableas= > > nfs://${NFSSERVER}:/${NFSPATH}"
It just fails and shows that :
[root@localhost ~]# cobbler import --path=/root/ubuntu-10.04-rc-alternate-amd64 --name=ubuntu --arch=x86_64 > > task started: 2010-08-20_152939_import > > task started (id=Media import, time=Fri Aug 20 15:29:39 2010) > > running: rsync -a '/root/ubuntu-10.04-rc-alternate-amd64/'
/var/www/cobbler/ks_ mirror/ubuntu-x86_64 --exclude-from=/etc/cobbler/rsync.exclude --progress > > sending incremental file list > > rsync: change_dir "/root/ubuntu-10.04-rc-alternate-amd64" failed: Permission denied (13) > > rsync: ERROR: cannot stat destination "/var/www/cobbler/ks_mirror/ubuntu-x86_64": Permission denied (13) > > rsync error: errors selecting input/output files, dirs (code
3) at main.c(554) [receiver=3.0.5] > > rsync: connection unexpectedly closed (9 bytes received so far) [sender] > > rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.5] > > returned: 12 > > Exception occured: <class 'cobbler.cexceptions.CX'> > > Exception value: 'Command failed' > > Exception Info: > > File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 122, in die > > raise CX(msg)
Exception occured: <class 'cobbler.cexceptions.CX'> > > Exception value: 'Command failed' > > Exception Info: > > File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 95, in run > > rc = self._run(self) > > File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 224, in runner > > self.logger > > File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 657, in import_tree > > return importer.run() > > File "/usr/lib/python2.6/site-packages/cobbler/action_import.py", line 181, in run > > self.run_this(rsync_cmd, (spacer, self.mirror, self.settings.webdir, self.mirror_name)) > > File "/usr/lib/python2.6/site-packages/cobbler/action_import.py", line 262, in run_this > > utils.die(self.logger,"Command failed") > > File
"/usr/lib/python2.6/site-packages/cobbler/utils.py", line 130, in die > > raise CX(msg)
!!! TASK FAILED !!! > > You have new mail in /var/spool/mail/root.
It's weird that it shows that I don't have the permission of /root/ubuntu-10.04-rc-alternate-amd64,but when I used "ls -l /root/",it shows that:
[root@localhost ~]# ls -l /root/ > > total 80 > > -rw-------. 1 root root 1656 2010-08-20 23:27 anaconda-ks.cfg > > -rw-r--r--. 1 root root 58748 2010-08-20 23:27 install.log > > -rw-r--r--. 1 root root 4843 2010-08-20 23:27 install.log.syslog > > drwxr-xr-x. 10 root root 4096 2010-08-20 15:11 ubuntu-10.04-rc-alternate-amd64 > >
Thanks,
Junyou |