[one-users] Debian init.d script fails to start oned.
Carlos Martín Sánchez
cmartin at opennebula.org
Fri Jun 10 08:03:54 PDT 2011
Hi Vivien,
Thanks for the heads up.
OpenNebula looks for the one_auth file in the file pointed by the ONE_AUTH
env. variable or, if it isn't found, in ~/.one/one_auth .
I guess we didn't notice this bug because we usually put one_auth in the
default location.
Regards.
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org
On Fri, Jun 10, 2011 at 3:47 PM, Vivien Bernet-Rollande <
vivien.bernet-rollande at nexen.alterway.fr> wrote:
> Hi list.
>
> I had a problem lately. On boot, oned was not started. I had to log in as
> oneadmin to start it. The reason was that the ONE_AUTH variable did not
> exist.
>
> My setup is as follow :
> - oneadmin has it's home in /var/lib/one
> - /var/lib/one/.profile exports ONE_AUTH to the right value
>
> The startup script does a "su oneadmin -s /bin/sh -c 'one start'".
>
> The problem is that this will not load the .profile, and oned fails to
> start, complaining that :
>
> >You should have ONE_AUTH set the first time you start
> >OpenNebula as it is used to set the credentials for
> >the administrator user.
>
> The small patch attached does a "su - oneadmin -s /bin/bash -c 'one start'"
>
> This fixes the problem for me. However, I'm not sure it's the most elegant
> way to fix the problem, so I'm open to suggestions.
>
> I've created an issue here : http://dev.opennebula.org/issues/674
>
> --
> Vivien Bernet-Rollande
> Systems& Networking Engineer
> Alter Way Hosting
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110610/860eda34/attachment-0003.htm>
More information about the Users
mailing list