Thursday, July 9, 2015

SELinux and OSAd

SELinux can sometimes prevent OSA from connecting to the upstream jabber server. Below is a fix:

[root@server ~]# service osad status
osad (pid  5539) is running...
[root@server ~]# service osad restart
Shutting down osad:                                        [  OK  ]
Starting osad: cTraceback (most recent call last):
  File "/usr/share/rhn/osad/jabber_lib.py", line 252, in setup_connection
    c = self._get_jabber_client(js)
  File "/usr/share/rhn/osad/jabber_lib.py", line 309, in _get_jabber_client
    c.connect()
  File "/usr/share/rhn/osad/jabber_lib.py", line 567, in connect
    jabber.Client.connect(self)
  File "/usr/lib/python2.6/site-packages/jabber/xmlstream.py", line 488, in connect
    raise socket.error("Unable to connect to the host and port specified")
error: Unable to connect to the host and port specified

                                                           [  OK  ]
[root@server ~]# semanage permissive -a osad_t
[root@server ~]# service osad restart
Shutting down osad:                                        [  OK  ]
Starting osad:                                             [  OK  ]
[root@server ~]# rhn_check -vvv

No comments:

Post a Comment

Parallel rsync

Following steps did the job for me: Run the  rsync --dry-run  first in order to get the list of files those would be affected. rsync -...