[Spacewalk-list] Error delete a systems - cobbler problem??

Carlo Filippetto carlo.filippetto at gmail.com
Wed Feb 29 15:59:22 UTC 2012


2012/2/29 Milan Zazrivec <mzazrivec at redhat.com>:
> yum install syslinux

done



If I tried to create a kickstart I have from cobbler log:

Wed Feb 29 16:57:44 2012 - INFO | REMOTE new_item(distro); user(carlo)
Wed Feb 29 16:57:44 2012 - DEBUG | authorize; ['carlo', 'new_distro',
None, None, True]
Wed Feb 29 16:57:44 2012 - DEBUG | REMOTE carlo authorization result:
True; user(?)
Wed Feb 29 16:57:44 2012 - INFO | REMOTE modify_item(distro);
user(carlo); object_id(___NEW___distro::ybvLGHHUlrQqXlkzZY2I+vZ2MnPEKeDX/Q==);
attribute(name)
Wed Feb 29 16:57:44 2012 - DEBUG | authorize; ['carlo',
'modify_distro', <cobbler.item_distro.Distro instance at 0xb5c48e0c>,
'name', True]
Wed Feb 29 16:57:44 2012 - DEBUG | REMOTE carlo authorization result:
True; user(?)
Wed Feb 29 16:57:44 2012 - INFO | REMOTE modify_item(distro);
user(carlo); object_id(___NEW___distro::ybvLGHHUlrQqXlkzZY2I+vZ2MnPEKeDX/Q==);
attribute(kernel)
Wed Feb 29 16:57:44 2012 - DEBUG | authorize; ['carlo',
'modify_distro', <cobbler.item_distro.Distro instance at 0xb5c48e0c>,
'kernel', True]
Wed Feb 29 16:57:44 2012 - DEBUG | REMOTE carlo authorization result:
True; user(?)
Wed Feb 29 16:57:44 2012 - INFO | REMOTE modify_item(distro);
user(carlo); object_id(___NEW___distro::ybvLGHHUlrQqXlkzZY2I+vZ2MnPEKeDX/Q==);
attribute(initrd)
Wed Feb 29 16:57:44 2012 - DEBUG | authorize; ['carlo',
'modify_distro', <cobbler.item_distro.Distro instance at 0xb5c48e0c>,
'initrd', True]
Wed Feb 29 16:57:44 2012 - DEBUG | REMOTE carlo authorization result:
True; user(?)
Wed Feb 29 16:57:44 2012 - INFO | REMOTE modify_item(distro);
user(carlo); object_id(___NEW___distro::ybvLGHHUlrQqXlkzZY2I+vZ2MnPEKeDX/Q==);
attribute(ksmeta)
Wed Feb 29 16:57:44 2012 - DEBUG | authorize; ['carlo',
'modify_distro', <cobbler.item_distro.Distro instance at 0xb5c48e0c>,
'ksmeta', True]
Wed Feb 29 16:57:44 2012 - DEBUG | REMOTE carlo authorization result:
True; user(?)
Wed Feb 29 16:57:44 2012 - INFO | REMOTE save_item(distro);
user(carlo); object_id(___NEW___distro::ybvLGHHUlrQqXlkzZY2I+vZ2MnPEKeDX/Q==)
Wed Feb 29 16:57:44 2012 - DEBUG | authorize; ['carlo', 'save_distro',
<cobbler.item_distro.Distro instance at 0xb5c48e0c>, None, True]
Wed Feb 29 16:57:44 2012 - DEBUG | REMOTE carlo authorization result:
True; user(?)
Wed Feb 29 16:57:44 2012 - INFO | add_item(distro);
['CentOS-57:1:SpacewalkDefaultOrganization']
Wed Feb 29 16:57:44 2012 - DEBUG | get_items; ['distro']
Wed Feb 29 16:57:44 2012 - DEBUG | done with get_items; ['distro']
Wed Feb 29 16:57:44 2012 - INFO | Exception occured: <type
'exceptions.TypeError'>
Wed Feb 29 16:57:44 2012 - INFO | Exception value: not all arguments
converted during string formatting
Wed Feb 29 16:57:44 2012 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line
1948, in _dispatch
    return method_handle(*params)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line
942, in save_distro
    return self.save_item("distro",object_id,token,editmode=editmode)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line
938, in save_item
    rc = self.api.add_item(what,obj)
   File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 458, in add_item
    return self.get_items(what).add(ref,check_for_duplicate_names=check_for_duplicate_names,save=save,logger=logger)
   File "/usr/lib/python2.6/site-packages/cobbler/collection.py", line
316, in add
    self.lite_sync.add_single_distro(ref.name)
   File "/usr/lib/python2.6/site-packages/cobbler/action_litesync.py",
line 67, in add_single_distro
    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)







-----------------------

if I update cobbler:


Wed Feb 29 16:58:00 2012 - DEBUG | get_items; ['distro']
Wed Feb 29 16:58:00 2012 - DEBUG | done with get_items; ['distro']
Wed Feb 29 16:58:00 2012 - DEBUG | get_items; ['profile']
Wed Feb 29 16:58:00 2012 - DEBUG | done with get_items; ['profile']
Wed Feb 29 16:58:00 2012 - DEBUG | get_items; ['system']
Wed Feb 29 16:58:00 2012 - DEBUG | done with get_items; ['system']
Wed Feb 29 16:58:22 2012 - INFO | REMOTE sync; user(carlo)
Wed Feb 29 16:58:22 2012 - DEBUG | authorize; ['carlo', 'sync', None,
None, True]
Wed Feb 29 16:58:22 2012 - DEBUG | REMOTE carlo authorization result:
True; user(?)
Wed Feb 29 16:58:22 2012 - INFO | sync
Wed Feb 29 16:58:22 2012 - INFO | running pre-sync triggers
Wed Feb 29 16:58:22 2012 - INFO | cleaning trees
Wed Feb 29 16:58:22 2012 - INFO | removing:
/var/lib/tftpboot/pxelinux.cfg/default
Wed Feb 29 16:58:22 2012 - INFO | removing: /var/lib/tftpboot/grub/images
Wed Feb 29 16:58:22 2012 - INFO | removing: /var/lib/tftpboot/grub/efidefault
Wed Feb 29 16:58:22 2012 - INFO | removing:
/var/lib/tftpboot/images/CentOS:1:SpacewalkDefaultOrganization
Wed Feb 29 16:58:22 2012 - INFO | removing:
/var/lib/tftpboot/images/CentOS-57:1:SpacewalkDefaultOrganization
Wed Feb 29 16:58:22 2012 - INFO | removing: /var/lib/tftpboot/s390x/profile_list
Wed Feb 29 16:58:22 2012 - INFO | copying bootloaders
Wed Feb 29 16:58:22 2012 - INFO | copying:
/usr/share/syslinux/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0
Wed Feb 29 16:58:22 2012 - INFO | copying:
/usr/share/syslinux/menu.c32 -> /var/lib/tftpboot/menu.c32
Wed Feb 29 16:58:22 2012 - INFO | copying: /usr/share/syslinux/memdisk
-> /var/lib/tftpboot/memdisk
Wed Feb 29 16:58:22 2012 - INFO | copying distros to tftpboot
Wed Feb 29 16:58:22 2012 - INFO | copying files for distro:
CentOS-57:1:SpacewalkDefaultOrganization
Wed Feb 29 16:58:22 2012 - INFO | running: /usr/bin/sha1sum
/var/distro-trees/images/pxeboot/vmlinuz
Wed Feb 29 16:58:22 2012 - INFO | received on stdout:
fe32bc2d0c570752275237d82f10a1f74e857b96
/var/distro-trees/images/pxeboot/vmlinuz

Wed Feb 29 16:58:22 2012 - DEBUG | received on stderr:
Wed Feb 29 16:58:22 2012 - DEBUG | trying cachelink
/var/distro-trees/images/pxeboot/vmlinuz ->
/var/lib/tftpboot/images/.link_cache/fe32bc2d0c570752275237d82f10a1f74e857b96
-> /var/lib/tftpboot/images/CentOS-57:1:SpacewalkDefaultOrganization/vmlinuz
Wed Feb 29 16:58:22 2012 - INFO | running: /usr/bin/sha1sum
/var/distro-trees/images/pxeboot/initrd.img
Wed Feb 29 16:58:22 2012 - INFO | received on stdout:
5fddbe80fd61681d6015093d785ad9033ed9a41d
/var/distro-trees/images/pxeboot/initrd.img

Wed Feb 29 16:58:22 2012 - DEBUG | received on stderr:
Wed Feb 29 16:58:22 2012 - DEBUG | trying cachelink
/var/distro-trees/images/pxeboot/initrd.img ->
/var/lib/tftpboot/images/.link_cache/5fddbe80fd61681d6015093d785ad9033ed9a41d
-> /var/lib/tftpboot/images/CentOS-57:1:SpacewalkDefaultOrganization/initrd.img
Wed Feb 29 16:58:22 2012 - INFO | copying files for distro:
CentOS:1:SpacewalkDefaultOrganization
Wed Feb 29 16:58:22 2012 - ERROR | kernel not found:
/var/iso-images/CentOS-5.7/images/pxeboot/vmlinuz, distro:
CentOS:1:SpacewalkDefaultOrganization
Wed Feb 29 16:58:22 2012 - INFO | copying images
Wed Feb 29 16:58:22 2012 - INFO | generating PXE configuration files
Wed Feb 29 16:58:22 2012 - INFO | generating PXE menu structure
Wed Feb 29 16:58:22 2012 - INFO | copying files for distro:
CentOS-57:1:SpacewalkDefaultOrganization
Wed Feb 29 16:58:22 2012 - INFO | Exception occured: <type
'exceptions.TypeError'>
Wed Feb 29 16:58:22 2012 - INFO | Exception value: not all arguments
converted during string formatting
Wed Feb 29 16:58:22 2012 - INFO | Exception Info:
  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line
1948, in _dispatch
    return method_handle(*params)
   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1780, in sync
    return self.api.sync()
   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)



THANK'S very mutch




More information about the Spacewalk-list mailing list