Bug 604615

Summary: rhncfg-client verify: KeyError: 'selinux_ctx'
Product: [Community] Spacewalk Reporter: Jiri Kastner <jkastner>
Component: ClientsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.1Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-19 08:24:39 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: 585232    

Description Jiri Kastner 2010-06-16 10:52:46 UTC
Description of problem:
rhncfg-client verify fails with traceback.

Version-Release number of selected component (if applicable):


How reproducible:
spacewalk clients 1.0 + nightly

Steps to Reproduce:
1. enale selinux
2. install rhncfg-client
3. deploy some file
4. run all rhncfg-client commands, except verify
5. all passed
6. run rhncfg-client verify
7. fails
  
Actual results:
rhncfg-client verify
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 187, in main
    handler.run()
  File "/usr/share/rhn/config_client/rhncfgcli_verify.py", line 83, in run
    ret_dict = self._process_file(src, dst, file, ftype, file_info)
  File "/usr/share/rhn/config_client/rhncfgcli_verify.py", line 243, in _process_file
    src_selinux = info['selinux_ctx']
KeyError: 'selinux_ctx'


Expected results:
rhncfg-client verify
 modified /etc/motd (or other file deployed)


Additional info:

Comment 1 Milan Zázrivec 2010-08-04 16:01:30 UTC
Works for me with rhncfg-client-5.9.26-1.fc13.noarch

Please reopen if you disagree.

Comment 2 Milan Zázrivec 2010-08-04 16:13:19 UTC
Actually, I think I found the valid reproducer for this -- you need
to be registered w/ RHN or RHN Satellite 5.3.0 and older.

Comment 3 Milan Zázrivec 2010-08-04 16:26:05 UTC
spacewalk.git master: 5e60c4bcbcd6bae58c0dc161ad2886af4c115e95

Comment 4 Milan Zázrivec 2010-08-19 08:24:39 UTC
Spacewalk 1.1 has been released.