Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 628868

Summary: Release Note - 'rhncfg-client elist' crashes when symlink is in config channel
Product: Red Hat Satellite 5 Reporter: Pavel Novotny <pnovotny>
Component: Docs Release NotesAssignee: John Ha <jha>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Minar <mminar>
Severity: medium Docs Contact:
Priority: high    
Version: 540CC: adstrong, cperry, mkoci, mminar, paji
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: Fixed in the 5.4.0 Release - GA'd 2010-10-27
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-28 14:55:11 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: 608749    

Description Pavel Novotny 2010-08-31 08:54:04 UTC
Description of problem:
'rhncfg-client elist' crashes with stack trace when some symlink is present in config channel that is listed. This version of rhncfg-client has not implemented the ability to deal with symlinks, but it should be fixed to not crash.

Version-Release number of selected component (if applicable):
rhncfg-client-5.9.5-4.el5sat

How reproducible:
Always

Steps to Reproduce:
1. Prerequisite is to have Sat540 (sync is not needed) with registered client
(some of the RHEL3 to RHEL6). 
2. On Sat create a config channel: Configuration -> Configuration Channels ->
create new config channel
3. In the config channel, create some files and symlinks: Configuration ->
Configuration Channels -> Select Channel -> Add Files -> Create
4. On client, run 'rhncfg-client elist'
  
Actual results:

# rhncfg-client elist
Mode          Owner Group          Size Rev       Config Channel    File
Traceback (most recent call last):
  File "/usr/bin/rhncfg-client", line 34, in ?
    sys.exit(Main().main() or 0)
  File "/usr/share/rhn/config_common/rhn_main.py", line 187, in main
    handler.run()
  File "/usr/share/rhn/config_client/rhncfgcli_elist.py", line 106, in run
    permstr = self.ostr_to_sym(finfo['filemode'], finfo['filetype'])
  File "/usr/share/rhn/config_client/rhncfgcli_elist.py", line 8, in ostr_to_sym
    mode = int(str(octstr), 8)
ValueError: invalid literal for int(): 


Expected results:
List of config files, dirs or symlinks.

Additional info:
rhncfg-client-5.9.27-1.el5.noarch works ok, because it has implemented the new feature to deal with symlinks.

Comment 1 Clifford Perry 2010-08-31 12:09:12 UTC
I have asked Partha to track getting a release note added for the release to the effect:

When upgrading to Satellite 5.4, please upgrade rhncfg-* on client systems using configuration management. Older client tooling is not compatible with symlink support added in this release. 

Taking a quick look, I do not see yet, so using this bug. Moving to sat540-docs for John Ha.

Cliff

Comment 5 Clifford Perry 2010-10-28 14:55:11 UTC
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. 


RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332

RHEA-2010:0803 - RHN Tools enhancement update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333

RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334

RHEA-2010:0800 - RHN Satellite Server 5.4.0
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335

Docs are available:

http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html 

Regards,
Clifford