Bug 564278

Summary: rhn-satellite-activate activates satellite, but ends up with error
Product: [Community] Spacewalk Reporter: Jiri Kastner <jkastner>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Kastner <jkastner>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.8CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-05 14:57:23 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: 559281    

Description Jiri Kastner 2010-02-12 08:25:50 UTC
Description of problem:
rhn-satellite-activate activates satellite channel in hosted, but exits with error for client version mismatch

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


How reproducible:
always with spacewalk-nightly

Steps to Reproduce:
1. install spacewalk
2. register to hosted
3. run rhn-satellite-activate
  
Actual results:
+++ sending log as an email +++


Standard-error: 
SYNC ERROR:

(Check logs/email for potentially more detail)

RhnSyncException('\nError Message:\n    Client version 3.5 does not match server version 3.4\nError Class Code: 3012\nError Class Info: Mismatching versions\n',)

Error Message:
    Client version 3.5 does not match server version 3.4
Error Class Code: 3012
Error Class Info: Mismatching versions





ERROR: Population of the Channel Family permissions failed.


Expected results:
no error

Additional info:

when changed PROTOCOL_VERSION = 3.5 in /usr/share/rhn/satellite_tools/constants.py to PROTOCOL_VERSION = 3.4 activation passes.
i suppose that more appropriate place is /etc/rhn/rhn.conf or put default value to 3.4 and for 3.5 use satellite-sync with --dump-version

Comment 1 Michael Mráka 2010-03-17 15:00:48 UTC
Added --dump-version option to rhn-satellite-activate.

Modified in spacewalk git:

commit 5b4c191060cc1905ed4e3770cec28bec36477d2c
    564278 - pass --dump-version to satellite-sync

Comment 2 Michael Mráka 2010-03-17 15:01:25 UTC
Testplan:

rhn-satellite-activate --dump-version 3.4

Comment 3 Miroslav Suchý 2010-05-05 14:57:23 UTC
This bug has been fixed in Spacewalk 1.0.
Closing.