Hello .*,
I was seeing this error pop up in oned.log. To fix it I thought I would change serveradmin password, update dotfiles, restart oned and sunstone and be good to go.
This deployment runs OpenNebula 4.6 on Debian Wheezy 7.7.
$ dpkg -l | grep opennebula
ii opennebula 4.6.2-1 amd64 controller which executes the OpenNebula cluster services
After doing the above operations I was still receiving the following errors in oned.log:
Wed Mar 4 10:37:09 2015 [AuM][E]: Auth Error: bad decrypt
Wed Mar 4 10:37:09 2015 [ReM][E]: Req:4352 UID:- DocumentPoolInfo result FAILURE [DocumentPoolInfo] User couldn't be authenticated, aborting call.
Wed Mar 4 10:37:34 2015 [ReM][E]: Req:2624 UID:- VirtualMachinePoolInfo result FAILURE [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
Wed Mar 4 10:37:34 2015 [ReM][E]: Req:736 UID:- VirtualMachinePoolInfo result FAILURE [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
Wed Mar 4 10:37:34 2015 [ReM][E]: Req:736 UID:- VirtualMachinePoolInfo result FAILURE [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
Wed Mar 4 10:37:35 2015 [ReM][E]: Req:8304 UID:- VirtualMachinePoolInfo result FAILURE [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
So I thought I could erase serveradmin, recreate it with server_cipher driver, update the auth files, restart daemons and be ok :). Well, that didn’t happen. I have executed the following as oneadmin user.
$ oneuser delete serveradmin
$ oneuser create serveradmin --driver server_cipher parola
Modified ~/.one/sunstone_auth with new password hash taken from oneuser list.
Javi suggested I look if the MySQL databases has the same hash as oneuser list
or echo -n parola | sha1sum.
So I did that, the strings are the same.
$ oneuser list | grep serveradmin
8 serveradmin oneadmin 6f9d3382f361c2181997336f8be4483098ea6328 server_cipher
$ mysql -e 'select body from user_pool where uid = 8' opennebula_main | awk -F"<PASSWORD>" ' { print $2 } ' | awk -F"</PASSWORD>" ' { print $1 }'
6f9d3382f361c2181997336f8be4483098ea6328
I have also checked /etc/one/sunstone-server.conf for auth parameteres.
$ cat /etc/one/sunstone-server.conf | grep core_auth
:core_auth: cipher
I am still receiving the same error :|. Can someone please help me somehow.
Best,
Valentin