Description of problem: rhncfg-client verify and WebUI compare displays different results for selinux context if selinux is disabled on client server. from cli it doesnt check weather selinux is enabled or not on the target system, but for GUI results it check for selinux status. So if selinux is disabled on client server, it end up with different results. For GUI results it always pass actual value as blank [] so always displays differences exists, but from client it takes actual value of selinux context weather its disabled or not. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Add a file in a config channel and set selinux context. 2. Deploy file on client server rhncfg-client get 3. disable selinux on client 4. Now schedule compare from GUI. 5. From cli run rhncfg-client verify Actual results: Using GUI its always displays differences exist in this case, but different results from client side Expected results: Both results should be same Additional info:
For GUI "file_utils.py": try: cur_sectx = lgetfilecon(path)[1] except OSError: # workarounding BZ 690238 cur_sectx = None if not is_selinux_enabled(): cur_sectx = None if cur_sectx == None: cur_sectx = '' if file_struct.has_key('selinux_ctx') and file_struct['selinux_ctx']: if cur_sectx != file_struct['selinux_ctx']: sectx_result = "SELinux contexts differ: actual: [%s], expected: [%s]\n" % (cur_sectx, file_struct['selinux_ctx']) Here is selinux is disabled sending actual value as blank "" if not is_selinux_enabled(): cur_sectx = None Regards, Neha
spacewalk.git master: 0dac0283cb9e285c3491a70b0a7c2c7490fabf3b
Switching MODIFIED Spacewalk bugs to ON_QA before 2.1 release.
Spacewalk 2.1 has been released. https://fedorahosted.org/spacewalk/wiki/ReleaseNotes21