Bug 449363 - rhn-satellite-exporter dump incorrect data
rhn-satellite-exporter dump incorrect data
Status: CLOSED DEFERRED
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization (Show other bugs)
502
All Linux
medium Severity high
: ---
: ---
Assigned To: Pradeep Kilambi
Red Hat Satellite QA List
:
Depends On:
Blocks: 459673
  Show dependency treegraph
 
Reported: 2008-06-02 08:45 EDT by Tatsuo Kawasaki
Modified: 2012-12-24 09:39 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-12-24 09:39:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tatsuo Kawasaki 2008-06-02 08:45:14 EDT
Description of problem:
satellite-sync always fail using 5.0.2 exported (dumped) data.
 (using rhn-satellite-exporter on satellite 5.0.2)

Also I couldn't satellite-sync on satellite 5.0.1 and 5.1.0 using this dump. But
if I export channel on satellite 5.0.1, I could sync data on satellite
5.0.1/5.0.2/5.1.0.  


Version-Release number of selected component (if applicable):
rhn-satellite-5.0.2-9-redhat-linux-as-i386-4


How reproducible: Always


Steps to Reproduce:
1. run 'rhn-satellite-exporter' on satellite 5.0.2. 
2. run 'satellite-sync'  using exported channel


---LOG---
root@station8 ~]# rhn-satellite-exporter --list-channels
Channel List:
B = Base Channel
C = Child Channel

B rhel-i386-server-5

[root@station8 ~]# rhn-satellite-exporter -c rhel-i386-server-5 --dir dump
15:20:17 Gathering channel info...
15:20:17 Gathering binary RPM info...
15:20:17 Gathering package info...
15:20:17 Gathering errata info...
15:20:17 Gathering kickstart data...
15:20:17 Gathering kickstart files info...


15:20:17 Exporting channel families...
           ____________________
Exporting: #################### - Done!


    3  ls -l export/
rting: #################### - Done!

<snip>

Exporting: #################### - Done!
[root@station8 ~]#

[root@station8 ~]# satellite-sync -l -m ./dump
15:50:41 Red Hat Network Satellite - file-system synchronization
15:50:41    mp:  /root/dump
15:50:41    db:  rhnsat/<password>@rhnsat
15:50:41
15:50:41 Retrieving / parsing channel-families data
15:50:42 channel-families data complete
15:50:42    WARNING:  ignoring unavailable channel family rhel-client-vt
15:50:42    WARNING:  ignoring unavailable channel family rhel-server-hts
15:50:42
15:50:42 Retrieving / parsing channel data
Exception reported from station8.example.com
Time: Fri May 30 15:50:42 2008
Exception type exceptions.ValueError

Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 123, in process
    self.__parser.parse(self.__stream)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 109,
in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line 123,
in parse
    self.feed(buffer)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 216,
in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 314,
in end_element
    self._cont_handler.endElement(name)
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 216, in endElement
    self.__container.endElement(element)
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 777, in endElement
    self.endItemCallback()
  File "/usr/share/rhn/satellite_tools/sync_handlers.py", line 154, in
endItemCallback
    xmlSource.ChannelContainer.endItemCallback(self)
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 791, in endItemCallback
    item = _createItem(obj)
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 372, in _createItem
    return item.populate(element.attributes, element.subelements)
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 283, in populate
    self.populateFromAttributes(item, attributes)
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 300, in
populateFromAttributes
    obj[key] = _normalizeAttribute(obj.attributeTypes.get(key), value)
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 914, in
_normalizeAttribute
    return int(attribute)
ValueError: invalid literal for int(): None

[root@station8 ~]#
Comment 17 Clifford Perry 2012-12-24 09:39:42 EST
As per EOL Errata. 

https://rhn.redhat.com/errata/RHSA-2012-1546.html

This is the End Of Life notification for RHN Satellite Server 5 versions
released to run on Red Hat Enterprise Linux 4.

On December 1st, 2012, per the life-cycle support policy, the following
versions of Satellite and Proxy products, released on Red Hat Enterprise
Linux 4, exited Production Phase 2 marking the end of their support by
Red Hat.

RHN Satellite & RHN Proxy:
- 5.0
- 5.1
- 5.2 on Red Hat Enterprise Linux 4
- 5.3 on Red Hat Enterprise Linux 4


Marking this specific bug tracking against EOL product as CLOSED. 

Cliff

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