Re: [one-users] Authentication problem. Opennebula 3.0 on debian squeeze

2011-11-17 Thread Jaime Melis
Hello Alberto,

we have created a new issue [1] to generate the ONE_AUTH file in
/var/lib/one/.one/one_auth which is where OpenNebula expects it to be.
This should fix your problem.

[1] http://dev.opennebula.org/issues/987

Thanks for reporting this.

Cheers,
Jaime

On Thu, Nov 10, 2011 at 8:59 PM, Alberto Molina Coballes
 wrote:
> Hi,
>
> Installing opennebula 3.0 on debian squeeze using [1], I've found a
> authentication problem with oneadmin.
>
> The installation process creates oneadmin properly, generates the pair
> ssh keys and oned is launched by oneadmin.
>
> In order to verify installation:
>
> oneadmin@mut:~$ onevm list
> ONE_AUTH file not present
>
> This is OK, oneadmin password is not defined in ~/.one/one_auth
>
> oneadmin@mut:~$ mkdir ~/.one
> oneadmin@mut:~$ echo "oneadmin:password" > ~/.one/one_auth
> oneadmin@mut:~$ chmod 600 ~/.one/one_auth
> oneadmin@mut:~$ one stop
> oneadmin@mut:~$ one start
>
> oneadmin@mut:~$ onevm list
> [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
>
> What's the problem?
>
> I've found the SHA1 hash password for oneadmin in one.db doesn't match
> with the password defined in ~/.one/one_auth. If hash password is
> modified to proper value or one.db is deleted, after stop/start one
> authentication becomes operative.
>
> Making a new clean installation, /var/lib/one/one.db exists and oneadmin
> user is defined with a hashed password before oneadmin password was set
> in /var/lib/one/.one/one_auth. Is this correct or is a bug?
>
> Thanks
>
> [1]
> http://dev.opennebula.org/packages/opennebula-3.0.0/Debian-6.0.2/opennebula_3.0.0-1_amd64.deb
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>


-- 
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jme...@opennebula.org
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Authentication problem. Opennebula 3.0 on, debian squeeze

2011-11-14 Thread Rolandas Naujikas
Hi,

In case of Debian 6.0.2 install of opennebula 3.0 init script
(/etc/init.d/opennebula) creates /var/lib/one/auth with random oneadmin
password and initialize DB with it (and setups env
ONE_AUTH=/var/lib/one/auth for server). I also lost several hours trying
to find the cause of authentication errors.

Regards, Rolandas Naujikas

P.S. My solution was to make a symlink auth -> .one/one_auth in
/var/lib/one (before moving working auth file to .one/one_auth).
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Authentication problem. Opennebula 3.0 on debian squeeze

2011-11-14 Thread Ruben S. Montero
Hi

The oneadmin password is set in the DB the first time OpenNebula is
started. This password is read etiher from $ONE_LOCATION or
$HOME/one/.one_auth. You have to use those credentials to authenticate
as oneadmin.

So the behavior you describe seems to be the intended one.

Cheers

Ruben

On Thu, Nov 10, 2011 at 8:59 PM, Alberto Molina Coballes
 wrote:
> Hi,
>
> Installing opennebula 3.0 on debian squeeze using [1], I've found a
> authentication problem with oneadmin.
>
> The installation process creates oneadmin properly, generates the pair
> ssh keys and oned is launched by oneadmin.
>
> In order to verify installation:
>
> oneadmin@mut:~$ onevm list
> ONE_AUTH file not present
>
> This is OK, oneadmin password is not defined in ~/.one/one_auth
>
> oneadmin@mut:~$ mkdir ~/.one
> oneadmin@mut:~$ echo "oneadmin:password" > ~/.one/one_auth
> oneadmin@mut:~$ chmod 600 ~/.one/one_auth
> oneadmin@mut:~$ one stop
> oneadmin@mut:~$ one start
>
> oneadmin@mut:~$ onevm list
> [VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.
>
> What's the problem?
>
> I've found the SHA1 hash password for oneadmin in one.db doesn't match
> with the password defined in ~/.one/one_auth. If hash password is
> modified to proper value or one.db is deleted, after stop/start one
> authentication becomes operative.
>
> Making a new clean installation, /var/lib/one/one.db exists and oneadmin
> user is defined with a hashed password before oneadmin password was set
> in /var/lib/one/.one/one_auth. Is this correct or is a bug?
>
> Thanks
>
> [1]
> http://dev.opennebula.org/packages/opennebula-3.0.0/Debian-6.0.2/opennebula_3.0.0-1_amd64.deb
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - The Open Source Toolkit for Data Center Virtualization
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Authentication problem. Opennebula 3.0 on debian squeeze

2011-11-10 Thread Alberto Molina Coballes
Hi,

Installing opennebula 3.0 on debian squeeze using [1], I've found a
authentication problem with oneadmin.

The installation process creates oneadmin properly, generates the pair
ssh keys and oned is launched by oneadmin.

In order to verify installation:

oneadmin@mut:~$ onevm list
ONE_AUTH file not present

This is OK, oneadmin password is not defined in ~/.one/one_auth

oneadmin@mut:~$ mkdir ~/.one
oneadmin@mut:~$ echo "oneadmin:password" > ~/.one/one_auth
oneadmin@mut:~$ chmod 600 ~/.one/one_auth
oneadmin@mut:~$ one stop
oneadmin@mut:~$ one start

oneadmin@mut:~$ onevm list
[VirtualMachinePoolInfo] User couldn't be authenticated, aborting call.

What's the problem?

I've found the SHA1 hash password for oneadmin in one.db doesn't match
with the password defined in ~/.one/one_auth. If hash password is
modified to proper value or one.db is deleted, after stop/start one
authentication becomes operative.

Making a new clean installation, /var/lib/one/one.db exists and oneadmin
user is defined with a hashed password before oneadmin password was set
in /var/lib/one/.one/one_auth. Is this correct or is a bug?

Thanks

[1]
http://dev.opennebula.org/packages/opennebula-3.0.0/Debian-6.0.2/opennebula_3.0.0-1_amd64.deb



___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org