Header Shadow Image


VirtualMachinePoolInfo result FAILURE [VirtualMachinePoolInfo] User couldn’t be authenticated, aborting call.

For the error VirtualMachinePoolInfo result FAILURE [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call. 7 this is likely due to wrong passwords for the oneadmin user.  You can reset it here.

However, this can also be due to the oned service not recycling using one stop then one start. When we try this:

[oneadmin@opennebula01 ~]$ one stop
oned and scheduler stopped
[oneadmin@opennebula01 ~]$ one start
oned failed to start
[oneadmin@opennebula01 ~]$ one stop
oned and scheduler stopped
[oneadmin@opennebula01 ~]$ pgrep -lf oned
1024 oned
41244 tail
[oneadmin@opennebula01 ~]$

To kill it, simply use the kill command and recycle.  The running daemon was still using the old password, hence the authentication failures.  Issuing a basic kill without a -9 should gracefully stop the agent:

Wed Mar 30 12:21:46 2016 [Z0][ACL][I]: ACL Manager stopped.
Wed Mar 30 12:21:46 2016 [Z0][LCM][I]: Stopping Life-cycle Manager…
Wed Mar 30 12:21:46 2016 [Z0][ImM][I]: Stopping Image Manager…
Wed Mar 30 12:21:46 2016 [Z0][TrM][I]: Stopping Transfer Manager…
Wed Mar 30 12:21:46 2016 [Z0][DiM][I]: Stopping Dispatch Manager…
Wed Mar 30 12:21:46 2016 [Z0][DiM][I]: Dispatch Manager stopped.
Wed Mar 30 12:21:46 2016 [Z0][VMM][I]: Stopping Virtual Machine Manager…
Wed Mar 30 12:21:46 2016 [Z0][ReM][I]: Stopping Request Manager…
Wed Mar 30 12:21:46 2016 [Z0][HKM][I]: Stopping Hook Manager…
Wed Mar 30 12:21:46 2016 [Z0][InM][I]: Stopping Information Manager…
Wed Mar 30 12:21:46 2016 [Z0][LCM][I]: Life-cycle Manager stopped.
Wed Mar 30 12:21:46 2016 [Z0][ReM][I]: XML-RPC server stopped.
Wed Mar 30 12:21:46 2016 [Z0][ReM][I]: Request Manager stopped.
Wed Mar 30 12:21:47 2016 [Z0][TrM][I]: Transfer Manager stopped.
Wed Mar 30 12:21:47 2016 [Z0][HKM][I]: Hook Manager stopped.
Wed Mar 30 12:21:47 2016 [Z0][ImM][I]: Image Manager stopped.
Wed Mar 30 12:21:48 2016 [Z0][VMM][I]: Virtual Machine Manager stopped.
Wed Mar 30 12:21:49 2016 [Z0][InM][I]: Information Manager stopped.
Wed Mar 30 12:21:49 2016 [Z0][ONE][I]: All modules finalized, exiting.

If that doesn't work we will check the hash passwords stored in the DB vs the files:

[oneadmin@opennebula01 one]$ sqlite3 /var/lib/one/one.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select body from user_pool where name='serveradmin';
<USER><ID>1</ID><GID>0</GID><GROUPS><ID>0</ID></GROUPS><GNAME>oneadmin</GNAME><NAME>serveradmin</NAME><PASSWORD>4987bfaa9b688a59ac4c3ed4c1d9b02276831dbe</PASSWORD><AUTH_DRIVER>server_cipher</AUTH_DRIVER><ENABLED>1</ENABLED><LOGIN_TOKEN/><TEMPLATE><TOKEN_PASSWORD><![CDATA[1ca6ef8b8530f50001301c69dac1da095b40075e]]></TOKEN_PASSWORD></TEMPLATE></USER>
sqlite>

[oneadmin@opennebula01 .one]$ for service in occi sunstone ec2 oneflow onegate; do cat ${service}_auth; done
serveradmin:a29082b94205a6f1bb8f17538c563acdf7340095
serveradmin:a29082b94205a6f1bb8f17538c563acdf7340095
serveradmin:a29082b94205a6f1bb8f17538c563acdf7340095
serveradmin:a29082b94205a6f1bb8f17538c563acdf7340095
serveradmin:a29082b94205a6f1bb8f17538c563acdf7340095
[oneadmin@opennebula01 .one]$ pwd
/var/lib/one/.one
[oneadmin@opennebula01 .one]$

If it is not the same, copy the DB password too the files or set the serveradmin pass in the DB to the one saved in the configuration files.  If that doesn't work, copy the oneadmin password to be used as the serveradmin password:

[oneadmin@opennebula01 .one]$ sqlite3 /var/lib/one/one.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select body from user_pool where name='oneadmin';
<USER><ID>0</ID><GID>0</GID><GROUPS><ID>0</ID></GROUPS><GNAME>oneadmin</GNAME><NAME>oneadmin</NAME><PASSWORD>ac1bf93cba27488935f522a78b764f5f65ae208a</PASSWORD><AUTH_DRIVER>core</AUTH_DRIVER><ENABLED>1</ENABLED><LOGIN_TOKEN/><TEMPLATE><SSH_PUBLIC_KEY><![CDATA[ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+s5dZEwpCXE0OM9ZX+v6KvIS+o+NIyFzg1OYOgIemb60eu4E5T1z918vadr6LD15o1CC2TQRB8LqUAmrMOHXa2DusdLzDrVYOS60Z56Sc0e23ZbO/KnubgFRzeiTngnJDnUzuxfIrlaGqUmNvOUP02+aJP3T9+AzMgKw/lQvUp7MCX2ZAZKNuEvMlVluCcEzbB9XHG4puB6AEU7505nfSgavDxCEVFmEtmJHvv8a6LwPk/3AaPM5souLQL6yjD8/Y7gQ8qz1BHlaVTr9UwTGM0Ccecr8QQtzGxPKNE3no2ASdbTuQh0f1/UsOgm1hHGuHQnzvD9gpw+RXorU/UJHJ oneadmin@opennebula01]]> sqlite>

sqlite> select body from user_pool where name='serveradmin';
<USER><ID>1</ID><GID>0</GID><GROUPS><ID>0</ID></GROUPS><GNAME>oneadmin</GNAME><NAME>serveradmin</NAME><PASSWORD>4987bfaa9b688a59ac4c3ed4c1d9b02276831dbe</PASSWORD><AUTH_DRIVER>server_cipher</AUTH_DRIVER><ENABLED>1</ENABLED><LOGIN_TOKEN/><TEMPLATE><TOKEN_PASSWORD><![CDATA[1ca6ef8b8530f50001301c69dac1da095b40075e]]></TOKEN_PASSWORD></TEMPLATE></USER>
sqlite> .quit

 

And then update the ~/.one/*_auth files mentioned above.  

If that doesn't work to resolve the above, also change the hash inside the ~/.one/one_key file to match the hash above.

Restart using one stop and one start and enjoy!

Cheers,
TK

 

 

One Response to “VirtualMachinePoolInfo result FAILURE [VirtualMachinePoolInfo] User couldn’t be authenticated, aborting call.”

  1. [...] « VirtualMachinePoolInfo result FAILURE [VirtualMachinePoolInfo] User couldn’t be authenticated,… [...]

Leave a Reply

 


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License