Bug 614345

Summary: ISS doesn't work, raise IOError, 'Not a gzipped file'
Product: [Community] Spacewalk Reporter: Petr Sklenar <psklenar>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: urgent    
Version: 1.1CC: jhutar
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-19 08:24:47 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: 487678, 585232    

Description Petr Sklenar 2010-07-14 07:55:03 UTC
Description of problem:
ISS doesn't work between two spacewalks or between spacewalk and satellite 

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

iss_parent=spacewalk.nightly
iss_slave=sat530+upgrade


How reproducible:
always

Steps to Reproduce:
1. iss-parent=spacewalk.nightly, iptables and selinux are switched off
         /etc/rhn/rhn.conf
         allowed_iss_slaves=ultraman-1.lab.eng.brq.redhat.com,ultraman-1,10.34.56.136,rlx-0-08.rhndev.redhat.com
         disable_iss=0

2. iss-slave=sat530,iptables and selinux are switched off, start sync from parent

Actual results:

on iss slave (sat530):
.qa.[root@rlx-0-08 ~]# satellite-sync --iss-parent=superman-1.lab.eng.brq.redhat.com  -l --ca-cert=/usr/share/rhn/superman-cert 
03:18:21 Red Hat Network Satellite - live synchronization
03:18:21    url: https://superman-1.lab.eng.brq.redhat.com
03:18:21    debug/output level: 1
03:18:22    db:  rhnsat/<password>@rhnsat
03:18:22 
03:18:22 Retrieving / parsing channel-families data
Exception reported from rlx-0-08.rhndev.redhat.com
Time: Wed Jul 14 03:18:23 2010
Exception type exceptions.IOError

Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/satellite_tools/xmlSource.py", line 132, in process
    self.__parser.parse(self.__stream)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line 121, in parse
    buffer = file.read(self._bufsize)
  File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 797, in read
    return self.file_obj.read(amt)
  File "/usr/lib/python2.4/gzip.py", line 225, in read
    self._read(readsize)
  File "/usr/lib/python2.4/site-packages/gzipstream.py", line 156, in _read
    self._read_gzip_header()
  File "/usr/lib/python2.4/gzip.py", line 162, in _read_gzip_header
    raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file

03:18:23 *** SYSTEM INTERRUPT CALLED **

Expected results:
I can ISS between sat530 and spacewalk.nightly , I can ISS between two spacewalk

Additional info:
ISS between two spacewalks doesn't work either.
I cannot sync from sat530 parent neither spacewalk parent. But there is no log on spacewalk machine.
Spacewalk shows only:

[root@ultraman-1 rhn-activation]# satellite-sync --iss-parent=rlx-0-14.rhndev.redhat.com  -l --ca-cert=/usr/share/rhn/rlx-0-14
07:36:29 Red Hat Network Satellite - live synchronization
07:36:29    url: https://rlx-0-14.rhndev.redhat.com
07:36:29    debug/output level: 1
07:36:30 
07:36:30 
ERROR: The Server listed within iss-parent is not configured for ISS 
       capability.
       Please review your configuration before trying again.

Comment 1 Michael Mráka 2010-08-11 13:39:19 UTC
Fixed in master by
commit 115baede7cd40f9827cfbb6c146aa193793d264e
    Automatic commit of package [spacewalk-backend] release [1.2.1-1].
commit c7eea3989727bcb4f8119044171b039224a515b1
    614345 - fixed ISS server component name

Fix included in package spacewalk-backend-1.2.1-1.

Comment 2 Milan Zázrivec 2010-08-19 08:24:47 UTC
Spacewalk 1.1 has been released.

Comment 4 Petr Sklenar 2010-08-24 12:23:09 UTC
I tried another ISS and all works as expected with spacewalk-backend-1.2.7-1.el5 on spacewalk

ISS between:
sat530(parent) and spacewalk(slave) , used option --dump-version 3.4 on spacewalk
spacewalk(parent) and spacewalk(slave)
spacewalk(parent) and sat530(slave), only for sha1 channel with md5sum packages