Comment 12 for bug 1584365

Revision history for this message
Mariusz B (yota-kun) wrote :

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.