Bug 170664

Summary: rhn-satellite-exporter needs a --step option
Product: [Retired] Red Hat Network Reporter: John Wregglesworth <wregglej>
Component: RHN/BackendAssignee: John Wregglesworth <wregglej>
Status: CLOSED CURRENTRELEASE QA Contact: Fanny Augustin <fmoquete>
Severity: medium Docs Contact:
Priority: medium    
Version: rhn410CC: rhn-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhn405 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-25 05:45:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 128866    

Description John Wregglesworth 2005-10-13 17:21:22 UTC
Description of problem: The new tool called rhn-satellite-exporter needs an
option called --step that will stop an export at a specific step in the export
process.

Comment 1 John Wregglesworth 2005-11-14 15:49:46 UTC
Test Plan:
1. Run rhn-satellite-exporter with the --list-steps option to get a list of the
available steps.
      
      rhn-satellite-exporter --list-steps

2. Try running rhn-satellite-exporter with the --step option, using one of the
steps listed in #1.

      rhn-satellite-exporter --step=channels

3. rhn-satellite-exporter should perform the steps up to but not including the
step you included with the --step option. 


Comment 2 John Wregglesworth 2005-11-14 15:57:39 UTC
The example command in step 2 is incomplete. It should look something like this:

      rhn-satellite-exporter --step=channels --dir=exports-dir -crhel-i386-as-4


Comment 3 Fanny Augustin 2005-11-22 17:43:53 UTC
The tool is broken.  Please see the two tracebacks below:


[root@rlx-3-14 ~]# rhn-satellite-exporter --channel=rhel-i386-as-4 --dir=myexports
Traceback (most recent call last):
  File "/usr/bin/rhn-satellite-exporter", line 5, in ?
    from satellite_tools.intersat_sync import iss
  File "/usr/share/rhn/satellite_tools/intersat_sync/iss.py", line 8, in ?
    import dumper
  File "/usr/share/rhn/satellite_tools/intersat_sync/dumper.py", line 20, in ?
    from string_buffer import StringBuffer
ImportError: No module named string_buffer


[root@rlx-3-14 ~]# rhn-satellite-exporter --help
Traceback (most recent call last):
  File "/usr/bin/rhn-satellite-exporter", line 5, in ?
    from satellite_tools.intersat_sync import iss
  File "/usr/share/rhn/satellite_tools/intersat_sync/iss.py", line 8, in ?
    import dumper
  File "/usr/share/rhn/satellite_tools/intersat_sync/dumper.py", line 20, in ?
    from string_buffer import StringBuffer
ImportError: No module named string_buffer


ISO: rhn-satellite-4.0.5-2-redhat-linux-as-i386-4-embedded-oracle.iso

Comment 4 John Wregglesworth 2005-11-29 17:46:26 UTC
The reason it failed was because I missed a file in the Makefile and spec file.
string_buffer.py has been added and the rhns packages rebuilt. The changes are
in the 4.0.5-28 or later rhns-satellite-tools package.

Comment 5 Fanny Augustin 2005-12-05 20:53:43 UTC
Looks good on QA

Comment 6 Todd Warner 2006-01-25 05:45:20 UTC
Released.