Cannot add new node to cluster after failover

Description

After a cluster start, the encryption key (and other stuff) is stored in /etc/cloudify/cluster on the manager you use for the `cfy cluster start` command. The other managers don't have this data so if they become master later, new nodes can't join the cluster.

Steps to reproduce:
1) Bootstrap 3 managers
2) Start cluster on manager1
cfy profiles use <node1_ip>
cfy cluster start --cluster-node-name manager1

3) Join cluster on manager2
cfy profiles use <node2_ip>
cfy cluster join <node1_ip> --cluster-node-name manager2

4) Set manager2 as active
cfy cluster set-active manager2

5) Join manager3 to cluster via manager2
cfy profiles use <node3_ip>
cfy cluster join <node2_ip> --cluster-node-name manager3

Step 5 fails with the following error on manager2:

Status

Assignee

Unassigned

Reporter

Kieran Spear

Labels

Bug Type

None

Target Version

None

Severity

None

Fix versions

Affects versions

Configure