On Thu, Apr 19, 2012 at 5:35 PM, James Clendenan <[email protected]>wrote:
> Hi Stuart, > > This sounds like it might be related to some of the issues we were seeing > in 2.2.1. Can you try updating to 2.2.2 and give that a try? I believe it > should be available in the testing repos now. > > Unless James, or someone else sees something I'm missing in this. > > Thanks, > > James > > On Thu, Apr 19, 2012 at 12:07 PM, Newman, Stuart J. (GSFC-444.0)[HONEYWELL > TECHNOLOGY SOLUTIONS INC] <[email protected]> wrote: > >> Cobbler sync returned en exception after an import of a distro.**** >> >> ** ** >> >> [root@fiat Desktop]# cobbler sync**** >> >> task started: 2012-04-19_150306_sync**** >> >> task started (id=Sync, time=Thu Apr 19 15:03:06 2012)**** >> >> running pre-sync triggers**** >> >> cleaning trees**** >> >> removing: /var/lib/tftpboot/pxelinux.cfg/default**** >> >> removing: /var/lib/tftpboot/grub/efidefault**** >> >> removing: /var/lib/tftpboot/grub/images**** >> >> removing: /var/lib/tftpboot/grub/grub-x86_64.efi**** >> >> removing: /var/lib/tftpboot/grub/grub-x86.efi**** >> >> removing: /var/lib/tftpboot/images/memtest86+-4.10**** >> >> removing: /var/lib/tftpboot/s390x/profile_list**** >> >> copying bootloaders**** >> >> copying: /var/lib/cobbler/loaders/pxelinux.0 -> >> /var/lib/tftpboot/pxelinux.0**** >> >> copying: /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32* >> *** >> >> copying: /boot/memtest86+-4.10 -> /var/lib/tftpboot/images/memtest86+-4.10 >> **** >> >> copying: /var/lib/cobbler/loaders/yaboot -> /var/lib/tftpboot/yaboot**** >> >> copying: /var/lib/cobbler/loaders/grub-x86_64.efi -> >> /var/lib/tftpboot/grub/grub-x86_64.efi**** >> >> copying: /var/lib/cobbler/loaders/grub-x86.efi -> >> /var/lib/tftpboot/grub/grub-x86.efi**** >> >> copying distros to tftpboot**** >> >> copying files for distro: rhel62-x86_64**** >> >> trying hardlink >> /var/www/cobbler/ks_mirror/rhel62-x86_64/images/pxeboot/vmlinuz -> >> /var/lib/tftpboot/images/rhel62-x86_64/vmlinuz**** >> >> trying hardlink >> /var/www/cobbler/ks_mirror/rhel62-x86_64/images/pxeboot/initrd.img -> >> /var/lib/tftpboot/images/rhel62-x86_64/initrd.img**** >> >> copying images**** >> >> generating PXE configuration files**** >> >> generating PXE menu structure**** >> >> copying files for distro: rhel62-x86_64**** >> >> Exception occured: <type 'exceptions.TypeError'>**** >> >> Exception value: not all arguments converted during string formatting**** >> >> Exception Info:**** >> >> File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 93, in >> run**** >> >> rc = self._run(self)**** >> >> File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 188, >> in runner**** >> >> return >> self.remote.api.sync(self.options.get("verbose",False),logger=self.logger) >> **** >> >> File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 701, in >> sync**** >> >> return sync.run()**** >> >> File "/usr/lib/python2.6/site-packages/cobbler/action_sync.py", line >> 123, in run**** >> >> self.settings.webdir,True)**** >> >> File "/usr/lib/python2.6/site-packages/cobbler/pxegen.py", line 146, >> in copy_single_distro_files**** >> >> utils.mkdir(distro_dir)**** >> >> File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 1285, >> in mkdir**** >> >> raise CX(_("Error creating") % path)**** >> >> ** ** >> >> !!! TASK FAILED !!! >> > Yeah I'd say this is probably SELinux related, but there appears to be a bug in the raise line that was fixed on 2011-12-08. This is the mkdir() call as it stands now: def mkdir(path,mode=0755,logger=None): try: if logger is not None: logger.info("mkdir: %s" % path) return os.makedirs(path,mode) except OSError, oe: if not oe.errno == 17: # already exists (no constant for 17?) if logger is not None: log_exc(logger) raise CX(_("Error creating %s") % path) So you can either hand-edit the utils.py file on that line and put the '%s' in yourself or you can upgrade. I got the notification that 2.2.2-1 has been in testing for 7 days and is eligible to be pushed up to stable so I'll work on that tonight.
_______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
