This is my first ON install, and I am struggling big time with the password setup.
I installed ON on one machine, and a KVM node on another.
On the ON, I installed MySQL / MariaDB. First start, I had my clear password in /var/lib/one/.one/one_auth . That worked. I was able to login to ON and change my default password.
Every time I use the command “oneuser login oneadmin” , I enter my new password , then it asks me
Do you want to overwrite the file /var/lib/one/.one/one_auth? (Y|N):
which I answer YES to, then it update a token somewhere.
In the /var/log/one/oned.log though, I constantly have this error message:
**Wed Sep 19 12:41:03 2018 [Z0][ReM][D]: Req:6784 UID:-1 one.zone.raftstatus invoked ** Wed Sep 19 12:41:03 2018 [Z0][ReM][E]: Req:6784 UID:- one.zone.raftstatus result FAILURE [one.zone.raftstatus] User couldn’t be authenticated, aborting call.
I am not sure what folder I should update in /var/lib/one/.one/*_auth -> Every time I touch one of those, something else does not work anymore.
First of all oneuser login does not work as you think, browsing in the cli help we see the next:
login username Creates the login token for authentication. The token can be used together with any authentication driver. The
token will be stored in $HOME/.one/one_auth, and can be used subsequently to authenticate with oned through API, CLI or Sun‐
stone.
That means that you need to use login command to generate a token.
So, how do u can change your password for oneadmin? easy: