I’m trying to create federation with opennebula 5.6.2 and have auth problem on slave side, while i’m trying to auth in sunstone i get error:
Server is not running or there was a server exception. Please check the server logs.
and this in oned.log:
[Z101][ReM][D]: Request_ID:416 UID:0 User:oneadmin Group_ID:0 Group:oneadmin Method_name:one.user.info Invoked:, -1
[Z101][ReM][D]: Req:416 UID:0 one.user.info result SUCCESS, "<USER><ID>0</ID><GID..."
[Z101][AuM][D]: Message received: LOG I 41 Command execution failed (exit code: 255): /var/lib/one/remotes/auth/server_cipher/authenticate
[Z101][AuM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/auth/server_cipher/authenticate
[Z101][AuM][D]: Message received: LOG E 41 bad decrypt
[Z101][AuM][I]: bad decrypt
[Z101][AuM][D]: Message received: AUTHENTICATE FAILURE 41 bad decrypt
[Z101][AuM][E]: Auth Error: bad decrypt
[Z101][ReM][D]: Request_ID:4768 UID:-1 User: Group_ID:-1 Group: Method_name:one.user.info Invoked:, -1
[Z101][ReM][E]: Req:4768 UID:- one.user.info result FAILURE [one.user.info] User couldn't be authenticated, aborting call.
in the same time i can use cli on master and slave without any problem, i see that the db is in synced state. I copied necessary files from /var/lib/one/.one
so the problem was solved with nginx restart.
but here is another issue, we can’t switch between zones if we use nginx, when we stop nginx and start opennebula-sunstone service, switching starts work.
the question is - how we can make it work with nginx
yes, I put underscores_in_headers on; and proxy_pass_request_headers on; under http section in nginx.conf on both zones of my federation, but it doesn’t help.
I faced another issue, that vnc consoles disappeared from the slave cluster, if I switch to slave from master with WEB UI they visible ok, but if I try to log in on slave cluster directly that is no vnc picture neither in the list of vm nor in the vm settings. but if vm’s settings load not too quick I see VNC picture and after a moment it disappears.