Update on running pcs 0.9.151-1 on Ubuntu 16.04.

1. pacemaker and especially corosync must be stopped:

systemctl stop pacemaker corosync

2. Remove (or rename) /etc/corosync/corosync.conf 
Without that "pcs cluster auth" won't create "tokens" file.

3. Modify /usr/lib/python2.7/dist-packages/pcs/cluster.py to avoid
searching in /var/lib/lxcfs directory (mountpoint for fuse.lxcfs)

root@u16a:~# diff cluster.py.org cluster.py
1628c1628
<             os.system("find /var/lib -name '"+name+"' -exec rm -f \{\} \;")
---
>             os.system("find /var/lib -path '/var/lib/lxcfs' -prune -o -name 
> '"+name+"' -exec rm -f \{\} \;")

Setting starting-point to "/var/lib/pacemaker/cib" is probably better solution.
Without that "pcs cluster setup" will hang. 
find command will get stuck on all nodes i.e.

 7071 ?        Ssl    0:02 /usr/bin/ruby -C/var/lib/pcsd -I/usr/share/pcsd -- 
/usr/share/pcsd/ssl.rb & > /dev/null &
 7782 ?        S      0:00  \_ /usr/bin/python /usr/sbin/pcs cluster destroy
 7945 ?        S      0:00      \_ sh -c find /var/lib -name 'cib-*' -exec rm 
-f \{\} \;
 7946 ?        S      0:00          \_ find /var/lib -name cib-* -exec rm -f {} 
;

root@u16a:~#  strace -p `pgrep find` -s256
strace: Process 7946 attached
write(2, 
"'/var/lib/lxcfs/cgroup/devices/system.slice/cloud-init-local.service/devices.deny'",
 82

root@u16a:~# find /var/lib -name 'cib-*' |& grep 'Permission denied' | wc -l
462

4. After all those steps pcs cluster auth, setup, start etc. should work
fine.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1584365

Title:
  pcs cluster auth unable to connect

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcs/+bug/1584365/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to