Bug 628858
| Summary: | 'rhncfg-client get' crashes when called twice and more times in a row | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Pavel Novotny <pnovotny> |
| Component: | Client | Assignee: | Partha Aji <paji> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Novotny <pnovotny> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 540 | CC: | cperry, slukasik |
| 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-10-28 14:55:45 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: | 608776 | ||
Changed to state VERIFIED. Verified in stage with Satellite-5.4.0-RHEL5-re20101019.0-i386-embedded 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 |
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'