cobbler import fails

Bug #918357 reported by Steve Conklin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cobbler (Ubuntu)
Fix Released
Undecided
Unassigned
Oneiric
Invalid
High
Unassigned

Bug Description

Cobbler import fails as follows:

sconklin@bucket:~$ sudo cobbler import
[sudo] password for sconklin:
task started: 2012-01-18_131641_import
task started (id=Media import, time=Wed Jan 18 13:16:41 2012)
Exception occured: <type 'exceptions.AttributeError'>
Exception value: 'NoneType' object has no attribute 'endswith'
Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 93, in run
    rc = self._run(self)
   File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 227, in runner
    self.logger
   File "/usr/lib/python2.7/dist-packages/cobbler/api.py", line 753, in import_tree
    (found,pkgdir) = manager.check_for_signature(mirror_url,breed)
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/manage_import_suse.py", line 78, in check_for_signature
    d = os.path.join(path,signature)
   File "/usr/lib/python2.7/posixpath.py", line 68, in join
    elif path == '' or path.endswith('/'):

!!! TASK FAILED !!!

This was on a precise fresh install from the 1/18 daily

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Steve,

Are you still experiencing this issue?

Revision history for this message
Andrew Ernst (ubuntubugs-x) wrote :
Download full text (3.4 KiB)

I am also experiencing this:
root@jimdb:/home/OUTPOST/ernst# cobbler sync
task started: 2012-02-14_123247_sync
task started (id=Sync, time=Tue Feb 14 12:32:47 2012)
running pre-sync triggers
cleaning trees
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/rhel57-x86_64
removing: /var/lib/tftpboot/images/memtest86+_multiboot.bin
removing: /var/lib/tftpboot/images/rhel5_7-x86_64
removing: /var/lib/tftpboot/images/memtest86+.bin
removing: /var/lib/tftpboot/s390x/profile_list
copying bootloaders
trying hardlink /var/lib/cobbler/loaders/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0
copying: /var/lib/cobbler/loaders/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0
trying hardlink /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32
copying: /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32
trying hardlink /boot/memtest86+_multiboot.bin -> /var/lib/tftpboot/images/memtest86+_multiboot.bin
trying hardlink /boot/memtest86+.bin -> /var/lib/tftpboot/images/memtest86+.bin
trying hardlink /var/lib/cobbler/loaders/grub-x86_64.efi -> /var/lib/tftpboot/grub/grub-x86_64.efi
trying hardlink /var/lib/cobbler/loaders/grub-x86.efi -> /var/lib/tftpboot/grub/grub-x86.efi
copying distros to tftpboot
copying files for distro: rhel57-x86_64
trying hardlink /var/www/cobbler/ks_mirror/rhel57-x86_64/images/pxeboot/vmlinuz -> /var/lib/tftpboot/images/rhel57-x86_64/vmlinuz
trying hardlink /var/www/cobbler/ks_mirror/rhel57-x86_64/images/pxeboot/initrd.img -> /var/lib/tftpboot/images/rhel57-x86_64/initrd.img
copying files for distro: rhel5_7-x86_64
trying hardlink /var/www/cobbler/ks_mirror/rhel5_7-x86_64/images/pxeboot/vmlinuz -> /var/lib/tftpboot/images/rhel5_7-x86_64/vmlinuz
trying hardlink /var/www/cobbler/ks_mirror/rhel5_7-x86_64/images/pxeboot/initrd.img -> /var/lib/tftpboot/images/rhel5_7-x86_64/initrd.img
copying images
trying cachelink /share/local/IT/ISO/rhel-server-5.7-x86_64-dvd.iso -> /var/lib/tftpboot/.link_cache/905ca609e3578260c2ccb4bb93d86568e5eccf40 -> /var/lib/tftpboot/images2/rhel5_7
copying: /share/local/IT/ISO/rhel-server-5.7-x86_64-dvd.iso -> /var/lib/tftpboot/images2/rhel5_7
generating GPXE/PXE configuration files
generating PXE menu structure
Exception occured: <type 'exceptions.AttributeError'>
Exception value: 'NoneType' object has no attribute 'os_version'
Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 93, in run
    rc = self._run(self)
   File "/usr/lib/python2.7/dist-packages/cobbler/remote.py", line 183, in runner
    return self.remote.api.sync(self.options.get("verbose",False),logger=self.logger)
   File "/usr/lib/python2.7/dist-packages/cobbler/api.py", line 698, in sync
    return sync.run()
   File "/usr/lib/python2.7/dist-packages/cobbler/action_sync.py", line 114, in run
    self.tftpd.sync(self.verbose)
   File "/usr/lib/python2.7/dist-packages/cobbler/modules/manage_in_tftpd.py", line 186, in sync
    self.pxegen.make_pxe_menu()
   File "/usr/lib/python2.7/dist-packages/cobbler/pxegen.py", line 312, in make_pxe_menu
    self.make_actual_pxe_menu()
   File "/usr/lib/p...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cobbler (Ubuntu):
status: New → Confirmed
C de-Avillez (hggdh2)
Changed in cobbler (Ubuntu Oneiric):
status: New → Triaged
importance: Undecided → High
Revision history for this message
C de-Avillez (hggdh2) wrote :

Duh. Somehow I ended up on the wring bug. Invaliding Oneiric task.

Changed in cobbler (Ubuntu Oneiric):
status: Triaged → Invalid
Revision history for this message
C de-Avillez (hggdh2) wrote :

@Andrew: yours is a different issue (different backtrace). It happens I also see it, so I will look for a bug on it, or open a new one if needed.

Revision history for this message
Nish Aravamudan (nacc) wrote :

This no longer occurs with the 16.10 cobbler.

Changed in cobbler (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.