CLI fails to connect a passive manager after set-active

Description

Bootstrap two managers from two different CLI's (cli1, cli2), (m1, m2)
Steps to reproduce:
1. SSH cli2 and start cluster on m1
2. Connect to m2 and join him to the cluster
3. Set active m2 from cli2
4. SSH cli1 and try to connect to m2 (the active manager)

The error occurs when trying to connect the manager:
[centos@cli ~]$ cfy profiles use 10.239.1.206 -u admin -p 147eMJ5XzRFT -t default_tenant
Attempting to connect...
Can't use manager 10.239.1.206
401: User unauthorized: Authentication failed for <User username=`admin`>.

Activity

Show:
Łukasz Maksymczuk
September 10, 2017, 11:06 AM

please retest, I can't seem to reproduce. There has been several issues with `set-active` not working correctly (being too slow, or returning too fast - before leader was transitioned, or transitioning leader for 1 second and then going back...), however they've been fixed already.

But, I'm not sure this issue is related to them. Please remember that after a node joins the cluster, it now contains a replica of the manager's database, so for `cfy profiles use` you need to use the credentials from the master. (even after you switch master later, just the credentials from the first master - the one with `cfy cluster start` - are stored)

I'll close this for now as i can't reproduce anymore so that it goes away from my list Please reopen if necessary.

Fixed

Assignee

Unassigned

Reporter

Uri Wygodny

Labels

Bug Type

None

Target Version

None

Severity

None

Epic Link

Fix versions

Affects versions

Configure