Hi Vivien,<br><br>Thanks for the heads up.<br><br>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 .<br>I guess we didn't notice this bug because we usually put one_auth in the default location.<br>

<br>Regards.<br><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>
Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>


<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>



<br><br><div class="gmail_quote">On Fri, Jun 10, 2011 at 3:47 PM, Vivien Bernet-Rollande <span dir="ltr"><<a href="mailto:vivien.bernet-rollande@nexen.alterway.fr" target="_blank">vivien.bernet-rollande@nexen.alterway.fr</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list.<br>
<br>
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.<br>
<br>
My setup is as follow :<br>
 - oneadmin has it's home in /var/lib/one<br>
 - /var/lib/one/.profile exports ONE_AUTH to the right value<br>
<br>
The startup script does a "su oneadmin -s /bin/sh -c 'one start'".<br>
<br>
The problem is that this will not load the .profile, and oned fails to start, complaining that :<br>
<br>
>You should have ONE_AUTH set the first time you start<br>
>OpenNebula as it is used to set the credentials for<br>
>the administrator user.<br>
<br>
The small patch attached does a "su - oneadmin -s /bin/bash -c 'one start'"<br>
<br>
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.<br>
<br>
I've created an issue here : <a href="http://dev.opennebula.org/issues/674" target="_blank">http://dev.opennebula.org/issues/674</a><br><font color="#888888">
<br>
-- <br>
Vivien Bernet-Rollande<br>
Systems&  Networking Engineer<br>
Alter Way Hosting<br>
<br>
</font><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>