Bug 628858 - 'rhncfg-client get' crashes when called twice and more times in a row
Summary: 'rhncfg-client get' crashes when called twice and more times in a row
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: 540
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Partha Aji
QA Contact: Pavel Novotny
URL:
Whiteboard:
Depends On:
Blocks: sat540-cfg-symlinks
TreeView+ depends on / blocked
 
Reported: 2010-08-31 08:24 UTC by Pavel Novotny
Modified: 2010-10-28 14:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-28 14:55:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pavel Novotny 2010-08-31 08:24:13 UTC
Description of problem:
'rhncfg-client get' command crashes with stack trace when it is called twice and more times in a row. The first execution is successful.

Version-Release number of selected component (if applicable):
rhncfg-client-5.9.27-1.el5

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 get' twice in a row

  
Actual results:
First run successfully deploys all config files/dirs/symlinks from the config channel. Second run crashes with stack trace. See Additional info.

Expected results:
'rhncfg-client get' command should not crash no matter how many times it is executed.

Additional info:
Here is the command-line output:

# rhncfg-client get

Deploying /tmp/test-dir
Deploying /tmp/eclipse-prefs-ln2.bak
Deploying /tmp/TESTOUT-ln.log
Deploying /tmp/TESTOUT.log
Deploying /tmp/eclipse-prefs-symlink1.bak
Deploying /tmp/test-dir-symlink
Deploying /tmp/eclipse-prefs.bak
Deploying /tmp/test-dir

# rhncfg-client get

Deploying /tmp/test-dir
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_get.py", line 101, in run
    dep_trans.rollback()
  File "/usr/share/rhn/config_common/transactions.py", line 241, in rollback
    self._chown_chmod_chcon(d, d, val)
  File "/usr/share/rhn/config_common/transactions.py", line 107, in _chown_chmod_chcon
    if file_info['filetype'] != 'symlink':
KeyError: 'filetype'

Comment 5 Pavel Novotny 2010-09-03 09:33:04 UTC
Changed to state VERIFIED.

Comment 6 Šimon Lukašík 2010-10-22 11:27:29 UTC
Verified in stage with
Satellite-5.4.0-RHEL5-re20101019.0-i386-embedded

Comment 7 Clifford Perry 2010-10-28 14:50:55 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


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