I upgraded to 2.2.2-1.  Now I get the following:

[root@fiat Desktop]# cobbler sync
task started: 2012-04-20_070552_sync
task started (id=Sync, time=Fri Apr 20 07:05:52 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/rhel62-x86_64
removing: /var/lib/tftpboot/images/memtest86+-4.10
Exception occured: <type 'exceptions.OSError'>
Exception value: [Errno 13] Permission denied: 
'/var/lib/tftpboot/images/memtest86+-4.10'
Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 1247, in rmfile
    os.unlink(path)

Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'Error deleting /var/lib/tftpboot/images/memtest86+-4.10'
Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 89, in run
    rc = self._run(self)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 184, 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 110, in 
run
    self.clean_trees()
   File "/usr/lib/python2.6/site-packages/cobbler/action_sync.py", line 211, in 
clean_trees
    utils.rmtree_contents(self.images_dir,logger=self.logger)
   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 1259, in 
rmtree_contents
    rmtree(x,logger=logger)
   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 1264, in 
rmtree
    return rmfile(path,logger=logger)
   File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 1253, in 
rmfile
    raise CX(_("Error deleting %s") % path)

!!! TASK FAILED !!!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart J. Newman
Engineer 4; Systems
Solar Dynamics Observatory (SDO)

Honeywell Technology Solutions Inc

NASA/Goddard Space Flight Center
Building 14, Room E222
Mail Stop 428.2
Greenbelt, MD 20771

Office: (301) 286-5145
EMail: stuart.j.new...@nasa.gov<mailto:stuart.j.new...@nasa.gov>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: This communication, including any attachment, contains information that 
may be confidential or privileged, and is intended solely for the entity or 
individual to whom it is addressed.  If you are not the intended recipient, 
please notify the sender at once, and you should delete this message and are 
hereby notified that any disclosure, copying, or distribution of this message 
is strictly prohibited.  Nothing in this email, including any attachment, is 
intended to be a legally binding signature.

From: James Cammarata [mailto:j...@sngx.net]
Sent: Thursday, April 19, 2012 18:57
To: james.clende...@gmail.com; cobbler mailing list
Cc: Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]
Subject: Re: [cobbler] Problem with 2.2.1

On Thu, Apr 19, 2012 at 5:35 PM, James Clendenan 
<james.clende...@gmail.com<mailto:james.clende...@gmail.com>> 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] 
<stuart.j.new...@nasa.gov<mailto:stuart.j.new...@nasa.gov>> 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<http://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
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
  • [cobble... Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]
    • Re... James Clendenan
      • ... James Cammarata
        • ... Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]

Reply via email to