| Summary: | "rhncfg-client diff" fails on missing symlink | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Brian <hiryuu> |
| Component: | Clients | Assignee: | Milan Zázrivec <mzazrivec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.5 | CC: | slukasik |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-22 16:46:49 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 723481 | ||
Thank you for the bug report, problem fixed in: spacewalk.git master: 57cd8d0a5150bf37ca613f0df2da0c3ec2056919 That fixes when it's missing, but it also might not be a symlink even when it exists:
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 184, in main
handler.run()
File "/usr/share/rhn/config_client/handler_base.py", line 66, in run
self._process_file(src, dst, file, ftype, file_info)
File "/usr/share/rhn/config_client/rhncfgcli_diff.py", line 35, in _process_file
destlink = os.readlink(dst)
OSError: [Errno 22] Invalid argument: '/etc/snmp/snmpd.options'
Thank you for the feedback, problem fixed in spacewalk.git master in commit: d58d87aa29cabe68983dfa02aa85dbba1e747d2c Spacewalk 1.6 has been released. |
Description of problem: rhncfg-client crashes out if the Config channel has a symlink that does not exist on the client, or it isn't a symlink. Version-Release number of selected component (if applicable): Spacewalk Client 1.5 on RHEL6 How reproducible: Steps to Reproduce: 1. Add a symlink to a client's config channel 2. Make sure that path does not exist on the client 3. Run 'rhncfg-client diff' on the client Actual results: Traceback (most recent call last): File "/usr/bin/rhncfg-client", line 34, in <module> sys.exit(Main().main() or 0) File "/usr/share/rhn/config_common/rhn_main.py", line 184, in main handler.run() File "/usr/share/rhn/config_client/handler_base.py", line 66, in run self._process_file(src, dst, file, ftype, file_info) File "/usr/share/rhn/config_client/rhncfgcli_diff.py", line 31, in _process_file destlink = os.readlink(dst) OSError: [Errno 2] No such file or directory: '/etc/nss_ldap.conf' *** or if it exists but isn't a symlink *** OSError: [Errno 22] Invalid argument: '/etc/nss_ldap.conf' Expected results: rhncfg-client should report the file as "missing" or "not a symlink" as needed. Additional info: