Bug 678598 - Import of Rhel6 to an Satellite 5.4 fails (disconnected)
Summary: Import of Rhel6 to an Satellite 5.4 fails (disconnected)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 540
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-18 15:07 UTC by marc
Modified: 2011-02-21 13:15 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-21 13:15:08 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description marc 2011-02-18 15:07:00 UTC
Description of problem:
Import of Rhel6 32/64bit to Satellite 5.4 fails

Version-Release number of selected component (if applicable):

Satellite: 5.4.0 (embedded DB)
System: Rhel 5.6 x86_64(2.6.18-238.1.1.el5)
Failed ISO´s:
rhn-export-rhel-i386-6-20101207.0-01.iso
rhn-export-rhel-i386-6-20101207.0-02.iso
rhn-export-rhel-x86_64-6-20101207.0-01.iso
rhn-export-rhel-x86_64-6-20101207.0-02.iso

How reproducible:

Install an disconected Satellite 5.4.0 (with embedded DB) on a RedHat Enterprise Linux Server release 5.6 (Tikanga) an try to import Rhel 6 from an Mountpoint
 
Steps to Reproduce:
1. Satellite install: ./install.pl --disconnected --skip-selinux-test
ISO: satellite-embedded-oracle-5.4.0-20101025-rhel-5-x86_64.iso

2. Rhel iso copy:
Mount each iso and copy the whole thing:

#mount -o loop rhn-export-rhel-x86_64-6-20101207.0-01.iso /satcd/
#cp -ruv /satcd/* /mnt/rhnimport/rhel6/64bit/
#umount /satcd

#mount -o loop rhn-export-rhel-x86_64-6-20101207.0-02.iso /satcd/
#cp -ruv /satcd/* /mnt/rhnimport/rhel6/64bit/
#umount /satcd

3. Import a channel
#satellite-sync -c rhel-x86_64-client-6 --mount-point /mnt/rhnimport/rhel6/64bit/

Actual results:
Import Fails:
SYNC ERROR: unhandled exception occurred:

Exception reported from lx-satellite.munich-airport.de
Time: Fri Feb 18 14:34:49 2011
Exception type exceptions.AttributeError

Exception Handler Information
Traceback (most recent call last):
  File "/usr/bin/satellite-sync", line 143, in main
    return satsync.Runner().main()
  File "/usr/share/rhn/satellite_tools/satsync.py", line 226, in main
    ret = method()
  File "/usr/share/rhn/satellite_tools/satsync.py", line 342, in _step_packages
    self._affected_channels = self.syncer.import_packages()
  File "/usr/share/rhn/satellite_tools/satsync.py", line 1757, in import_packages
    sync_handlers.import_packages(batch, sources)
  File "/usr/share/rhn/satellite_tools/sync_handlers.py", line 433, in import_packages
    importer.run()
  File "/usr/share/rhn/server/importlib/importLib.py", line 650, in run
    self.fix()
  File "/usr/share/rhn/server/importlib/packageImport.py", line 301, in fix
    ChannelPackageSubscription.fix(self)
  File "/usr/share/rhn/server/importlib/packageImport.py", line 71, in fix
    self.backend.lookupChecksums(self.checksums)
  File "/usr/share/rhn/server/importlib/backend.py", line 431, in lookupChecksums
    h.execute(ctype=ctype, csum=csum)
  File "/usr/share/rhn/server/rhnSQL/sql_base.py", line 168, in execute
    return apply(self._execute_wrapper, (self._execute, ) + p, kw)
  File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 100, in _execute_wrapper
    ret = self._get_oracle_error_info(e)
  File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 200, in _get_oracle_error_info
    return (e.code, e.message, self.sql)
AttributeError: 'str' object has no attribute 'code'

Expected results:
Successful import of the base channel


Additional info:
- Rhel5 import does work.
- Rhel6 32/64bit does not work

Comment 1 Miroslav Suchý 2011-02-18 15:46:39 UTC
What version of spacewalk-backend do you have?

Please make sure you have http://rhn.redhat.com/errata/RHBA-2010-0974.html applied. I think this errata will solve your problem.

Comment 2 Miroslav Suchý 2011-02-18 16:00:18 UTC
Please beware that updating is not enough to upgrade packaged. In description is described steps to do...

Comment 3 marc 2011-02-21 13:15:08 UTC
Hi Miroslav,

thanks for your fast response, that errata solved my problem. Sorry for opening this bug i didn´t saw that this is allready solved. Next time i will use the search function with more care :)

Greetings,
Marc Proepper


Note You need to log in before you can comment on or make changes to this bug.