Bug 738963
| Summary: | rhncfg-manager fails to "add" configuration file with permissions 000 to configuration channel. | ||
|---|---|---|---|
| Product: | Red Hat Satellite 5 | Reporter: | Dimitar Yordanov <dyordano> |
| Component: | Client | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 541 | CC: | cperry, jpazdziora, msuchy |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-15 15:19:54 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: | 677498 | ||
*** This bug has been marked as a duplicate of bug 713098 *** |
Description of problem: rhncfg-manager fails to "add" configuration file with permissions 000 to configuration channel. Version-Release number of selected component (if applicable): rhncfg-5.9.27-18 How reproducible: 100% Steps to Reproduce: 1.Register system to Satellite and add RHN-Tools channel 2.yum insall rhncfg* 3.rhncfg-manager create-channel test_rhncfg_000_channel 4.echo 'File-Test_000' > /tmp/file_test_000 5.chmod 000 /tmp/file_test_000 6.ls -l /tmp/file_test_000 ----------. 1 root root 14 Sep 15 12:15 /tmp/file_test_000 # rhncfg-manager add -c test_rhncfg_000_channel --dest-file=/etc/file_test_000 /tmp/file_test_000 Actual results: Pushing to channel test_rhncfg_000_channel: Traceback (most recent call last): File "/usr/bin/rhncfg-manager", line 46, in <module> 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_management/rhncfg_add.py", line 111, in run delim_end=delim_end) File "/usr/share/rhn/config_management/rpc_repository.py", line 145, in put_file delim_start=delim_start, delim_end=delim_end) File "/usr/share/rhn/config_common/repository.py", line 199, in _make_file_info params.update(self.make_stat_info(local_path, file_stat)) File "/usr/share/rhn/config_common/repository.py", line 104, in make_stat_info ret['mode'] = deci_to_octal(ret['mode'] & 07777) File "/usr/share/rhn/config_common/repository.py", line 51, in deci_to_octal return int(oct_str) ValueError: invalid literal for int() with base 10: '' Expected results: Success. Additional info: