Bug 604615 - rhncfg-client verify: KeyError: 'selinux_ctx'
Summary: rhncfg-client verify: KeyError: 'selinux_ctx'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 1.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space11
TreeView+ depends on / blocked
 
Reported: 2010-06-16 10:52 UTC by Jiri Kastner
Modified: 2010-08-19 08:24 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-08-19 08:24:39 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.