pcs cluster auth does not generate "tokens" file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcs (Debian) |
Fix Released
|
Unknown
|
|||
pcs (Ubuntu) |
Opinion
|
Medium
|
Rafael David Tinoco | ||
Bug Description
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/
ls: cannot access '/var/lib/
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/
systemctl stop pacemaker
systemctl stop corosync
rm /etc/corosync/
sudo pcs cluster auth uby2 uby3 -u hacluster
Password:
uby2: Authorized
uby3: Authorized
ls -l /var/lib/
-rw------- 1 root root 168 Nov 10 11:54 /var/lib/
------
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."
I uploaded the following sosreports:
sosreport-
sosreport-
Changed in pcs (Ubuntu): | |
assignee: | nobody → Rafael David Tinoco (inaddy) |
importance: | Undecided → Medium |
description: | updated |
Changed in pcs (Debian): | |
status: | Unknown → New |
Changed in pcs (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.