Hide Forgot
Description of problem: We need a capability to bind pcsd on a specific address. Version-Release number of selected component (if applicable): pcs-0.9.143-15 Additional info: The issue is resolved: https://github.com/ClusterLabs/pcs/issues/77 https://github.com/ClusterLabs/pcs/commit/81a952d8a6db4bba0408fc4d874e4e3c90a68286 Please, do a package update/backport.
This is already included in the package due to rebase. See https://github.com/ClusterLabs/pcs/issues/77 for details.
Created attachment 1280991 [details] proposed fix
After fix: [root@rh73-node1:~]# rpm -q pcs pcs-0.9.158-2.el7.x86_64 [root@rh73-node1:~]# grep PCSD_BIND_ADDR /etc/sysconfig/pcsd PCSD_BIND_ADDR='10.15.105.32' [root@rh73-node1:~]# systemctl -l restart pcsd [root@rh73-node1:~]# cat /var/log/pcsd/pcsd.log I, [2017-05-26T13:01:34.096139 #9347] INFO -- : Running: /usr/bin/openssl x509 -modulus -noout I, [2017-05-26T13:01:34.096205 #9347] INFO -- : CIB USER: hacluster, groups: I, [2017-05-26T13:01:34.108314 #9347] INFO -- : Return Value: 0 I, [2017-05-26T13:01:34.108399 #9347] INFO -- : Running: /usr/bin/openssl rsa -modulus -noout I, [2017-05-26T13:01:34.108425 #9347] INFO -- : CIB USER: hacluster, groups: I, [2017-05-26T13:01:34.115442 #9347] INFO -- : Return Value: 0 I, [2017-05-26T13:01:34.170936 #9347] INFO -- : Listening on 10.15.105.32 port 2224 [2017-05-26 13:01:34] INFO WEBrick 1.3.1 [2017-05-26 13:01:34] INFO ruby 2.0.0 (2015-12-16) [x86_64-linux] [2017-05-26 13:01:34] WARN TCPServer Error: Cannot assign requested address - bind(2) E, [2017-05-26T13:01:34.171798 #9347] ERROR -- : Unable to bind to specified address(es), exiting E, [2017-05-26T13:01:34.171825 #9347] ERROR -- : Cannot assign requested address - bind(2) [root@rh73-node1:~]# grep PCSD_BIND_ADDR /etc/sysconfig/pcsd PCSD_BIND_ADDR='192.168.122.131,::' [root@rh73-node1:~]# systemctl -l restart pcsd [root@rh73-node1:~]# cat /var/log/pcsd/pcsd.log I, [2017-05-26T13:05:09.172769 #9796] INFO -- : Running: /usr/bin/openssl x509 -modulus -noout I, [2017-05-26T13:05:09.172846 #9796] INFO -- : CIB USER: hacluster, groups: I, [2017-05-26T13:05:09.184929 #9796] INFO -- : Return Value: 0 I, [2017-05-26T13:05:09.185010 #9796] INFO -- : Running: /usr/bin/openssl rsa -modulus -noout I, [2017-05-26T13:05:09.185037 #9796] INFO -- : CIB USER: hacluster, groups: I, [2017-05-26T13:05:09.192344 #9796] INFO -- : Return Value: 0 I, [2017-05-26T13:05:09.251670 #9796] INFO -- : Listening on 192.168.122.131 port 2224 [2017-05-26 13:05:09] INFO WEBrick 1.3.1 I, [2017-05-26T13:05:09.252130 #9796] INFO -- : Running: /usr/sbin/corosync-cmapctl totem.cluster_name [2017-05-26 13:05:09] INFO ruby 2.0.0 (2015-12-16) [x86_64-linux] [2017-05-26 13:05:09] INFO Certificate: {...snip...} I, [2017-05-26T13:05:09.252971 #9796] INFO -- : CIB USER: hacluster, groups: I, [2017-05-26T13:05:09.252809 #9796] INFO -- : Adding listener on :: port 2224 [2017-05-26 13:05:09] WARN TCPServer Error: Address already in use - bind(2) E, [2017-05-26T13:05:09.254099 #9796] ERROR -- : Unable to bind to specified address(es), exiting E, [2017-05-26T13:05:09.254133 #9796] ERROR -- : Address already in use - bind(2)
Created attachment 1283294 [details] fix exit code
After Fix: [vm-rhel72-1 ~] $ rpm -q pcs pcs-0.9.158-3.el7.x86_64 [vm-rhel72-1 ~] $ grep PCSD_BIND_ADDR /etc/sysconfig/pcsd PCSD_BIND_ADDR='10.15.105.32' [vm-rhel72-1 ~] $ systemctl -l restart pcsd Job for pcsd.service failed because the control process exited with error code. See "systemctl status pcsd.service" and "journalctl -xe" for details
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1958
McDonald's Customer Satisfaction Survey - www.mcdvoice.com McDonald's Customer Satisfaction Survey, powered by Service Management Group, at www.mcdvoice.com is meant to measure customers' approval or disapproval with the company's products and customer service. http://www.mcd-voice.xyz