Public bug reported:
PCS cluster auth does not generate a tokens file when /etc/corosync.conf
is present, but still shows that authorization completed successfully.
----------------->%-----------------
lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
-----------------%<-----------------
apt-cache policy pcs
pcs:
Installed: 0.9.149-1
Candidate: 0.9.149-1
Version table:
*** 0.9.149-1 500
----------------->%-----------------
sudo pcs cluster auth uby2 uby3 -u hacluster
Password:
uby2: Authorized
uby3: Authorized
ls -l /var/lib/pcsd/tokens
ls: cannot access '/var/lib/pcsd/tokens': No such file or directory
sudo pcs cluster setup uby2 uby3 --name jmclus2
Error: uby2: error checking node availability: Unable to authenticate to uby2 -
(HTTP error: 401), try running 'pcs cluster auth'
Error: uby3: error checking node availability: Unable to authenticate to uby3 -
(HTTP error: 401), try running 'pcs cluster auth'
Error: nodes availability check failed, use --force to override. WARNING: This
will destroy existing cluster on the nodes.
-------------------------
If corosync and pacemaker are stopped and /etc/corosync.conf is removed, then
/var/lib/pcsd/tokens gets created successfully.
systemctl stop pacemaker
systemctl stop corosync
rm /etc/corosync/corosync.conf
sudo pcs cluster auth uby2 uby3 -u hacluster
Password:
uby2: Authorized
uby3: Authorized
ls -l /var/lib/pcsd/tokens
-rw------- 1 root root 168 Nov 10 11:54 /var/lib/pcsd/tokens
----------------->%-----------------
It seems like "pcs cluster auth" should exit with an error message if it
can't generate a tokens file. Furthermore, should corosync and
pacemaker be started by default when installed as dependencies of "pcs?"
pcs cluster start will start these services. Right now the only way to
set up a cluster after running "apt-get install pcs" is to manually stop
corosync and pacemaker, delete corosync.conf, run "pcs cluster auth",
"pcs cluster setup", and then "pcs cluster start."
** Affects: pcs (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1640923
Title:
pcs cluster auth does not generate "tokens" file
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcs/+bug/1640923/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs