Bug 702524
| Summary: | rhncfg-client does not deploy an file when permission is set to 000 by webUI | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Marcelo Moreira de Mello <mmello> | ||||||
| Component: | Clients | Assignee: | Marcelo Moreira de Mello <mmello> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 1.5 | CC: | jpazdziora, mmello | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 702535 (view as bug list) | Environment: | |||||||
| Last Closed: | 2011-07-21 14:43:00 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: | 695242, 702535 | ||||||||
| Attachments: |
|
||||||||
Working in this bug Cheers, Marcelo Moreira de Mello Created attachment 497274 [details] Patch proposed Hello, Follow attached the patch proposed to fix this bug. This patch were sent to spacewalk-devel mailist for approval. Mail Thread: https://www.redhat.com/archives/spacewalk-devel/2011-May/msg00001.html Cheers, Marcelo Moreira de Mello Created attachment 497371 [details]
Patch proposed (enhanced)
Follow a better formed patch to fix this issue. Patch already sent to spacewalk-devel maillist.
Cheers,
Marcelo Moreira de Mello
Hello, Fixed in spacewalk master git bbc13b8e49e78dbe463b4aaa495a5b9ecef9bc81 Cheers, Marcelo Moreira de Mello Spacewalk 1.5 was released. |
Description of problem: rhncfg-client shows python exception when trying to deploy an file with permission set to 000 Below the python exception: [root@client ~]# rhncfg-client verify /etc/test-dir missing /etc/test-file [root@client ~]# rhncfg-client get 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 25, in run self.options.exclude) File "/usr/share/rhn/config_common/deploy.py", line 53, in deploy_files dep_trans.add_preprocessed(path, processed_path, file_info, dirs_created) File "/usr/share/rhn/config_common/transactions.py", line 192, in add_preprocessed self._chown_chmod_chcon(processed_file_path, dest_path, file_info, strict_ownership=strict_ownership) File "/usr/share/rhn/config_common/transactions.py", line 151, in _chown_chmod_chcon mode = string.atoi(str(mode), 8) File "/usr/lib64/python2.4/string.py", line 403, in atoi return _int(s, base) ValueError: invalid literal for int(): Version-Release number of selected component (if applicable): Spacewalk 1.5 How reproducible: 100% Steps to Reproduce: 1. create a configuration channel 2. create a file with permission set to 000 3. run rhncfg-client get to deploy the files Actual results: rhncfg-client shows an python exception Expected results: rhncfg-client works as expected