Hello,<div><br></div><div>thank you both for reporting these issues. There is indeed a problem with /var/lock/one and /var/run/one directories getting removed on system restart. The problem is not OpenNebula Express but the binary packages themselves. We have opened an issue to provide init scripts which will recreate these directories.</div>


<div><br></div><div>This will be fixed in the upcoming 2.0.1 maintanence release.</div><div><br></div><div>There is one other thing that is still unclear to us: Daniel, you said that /var/lib/one wasn't created with the correct permissions, could you please elaborate? We think 755 are the correct permissions for that directory and not 777. Why do you need it to be world-writable? </div>


<div><br></div><div>Regards,</div><div>Jaime</div><div><br></div><div><div class="gmail_quote">On Sat, Nov 6, 2010 at 8:49 AM,  <span dir="ltr"><<a href="mailto:Daniel.MOLDOVAN@cs.utcluj.ro" target="_blank">Daniel.MOLDOVAN@cs.utcluj.ro</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think that the error is related to "export ONE_AUTH=/$HOME/.one-auth"<br>
and it means that there is no one_auth file. This file should contain<br>
username:pasword of the opennebula user. but it might also be from some<br>
broken/missing ruby dependencies. You can also try install ruby-full from<br>
a package manager.<br>
<br>
Now about installing nebula. Using the express install is the easiest way<br>
of getting things working(I am still talking of installing on a Ubuntu<br>
distribution).<br>
1. You run the install on the client machine(using sudo install.sh or<br>
something). The install script creates a "oneadmin" user and generates a<br>
"rsa" key for this user. When it generates the "node-install.sh" it copies<br>
that key to the node-install script.<br>
<br>
2. If you add a node using "tm_ssh"( i have only used ssh, never nfs<br>
because i am new at this too) then OpenNebula will get the host info by<br>
using a "scp" to copy the "remotes" folder in the node /tmp/one and then<br>
will connect using "ssh" to the node and call those ruby scripts.<br>
<br>
NOTE1: one start must be done from the oneadmin user( so log in as<br>
oneadmin , because this is why the instalation script creates it ) and DO<br>
NOT USE sudo. If you use SUDO for "sudo start one", nebula will try  to<br>
ssh as root.<br>
NOTE2: to log in as oneadmin (i don't know the default oneadmin password)<br>
i do a sudo passwd oneadmin and input another password.<br>
<br>
3. The commands:<br>
<div>>> 1. export ONE_AUTH=/$HOME/.one-auth<br>
>> 2. export ONE_XMLRPC=<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a><br>
>> 3. sudo mkdir /var/run/one<br>
>> 4. sudo mkdir /var/lock/one<br>
>> 5. sudo chmod 0777 /var/run/one<br>
>> 6. sudo chmod 0777 /var/lock/one<br>
>> 7. one start<br>
</div>    Need to be performed on the client machine from the "oneadmin" user<br>
logged in.<br>
NOTE1: The install script should had created the /$HOME/.one-auth<br>
containing oneadmin:oneadmin inside.<br>
NOTE2: The password in the one_auth file does NOT NEED TO match the<br>
password of the oneadmin user. They are two separate things. The one_auth<br>
file is used for opennebula requests for client validation.<br>
<br>
4. To install opennebula-node just run the node-install.sh on each node.<br>
The node-install script also creates a oneadmin user. And more important,<br>
it creates a  $HOME/.ssh (hidden folder, use Ctrl+H to see it in a file<br>
manager). In this folder it creates(if not already existing) a file called<br>
authorized_keys. Here the "rsa" key generated on the client is placed.<br>
This file contains all the "rsa" keys used by anywone which wants to be<br>
able to connect remotely to this node trough ssh. If the key is not<br>
present a password is requested when issuing a ssh.<br>
<br>
NOTE1: after running node-install, generate a password for oneadmin user<br>
and log in as oneadmin. If you remain logged as other user the nebula<br>
client will not be able to connect to the node to get info.<br>
<br>
NOTE2: this steps only enable onehost add and onevm submit methods to<br>
work. Migrate and onevm stop will fail because when migrating the nebula<br>
nodes communicate directly. And when issuing a stop the node will try to<br>
save the state of the virtual machine and copy back the machine to the<br>
nebula client. This two methods will fail because the nodes do not have<br>
the "rsa" key of the other nodes in their $HOME/.ssh/authorized_keys file.<br>
And also the nebula client does not have the keys of the nebula nodes. So,<br>
on each node, do a "ssh-keygen -t rsa". It will generate a id_rsa.pub.<br>
Copy the key from the .pub file to the authorized_keys file on the nebula<br>
client and of the other nebula nodes. Do this for each node. If the<br>
authorized_keys file does not exist create it but see in the node-install<br>
sh how is that created. VERRY IMPORTANT it must have certain access rights<br>
and owner. A chmod 0600 and chown -R oneadmin $HOME/.ssh  is necesary. But<br>
search in the node-install script. There are the correct values.<br>
<br>
Īn Vin, Noiembrie 5, 2010 6:42 pm, KING LABS a scris:<br>
> Hi Daniel,<br>
><br>
><br>
> What you said is right , I am still struggling to get things right .... I<br>
>  dont find opennebula docs to be straigt forward for a newbei , can you<br>
> ask you for help .<br>
><br>
> I am hoping if you can brief me the steps to install opennebula from<br>
> source or using express script in brief for me. I would really appreciate<br>
> it.<br>
><br>
> also can you help me to understand this error<br>
><br>
> *onehost list*<br>
> */usr/lib/one/ruby/OpenNebula.rb:77:in `initialize': ONE_AUTH file not<br>
> present (RuntimeError)* * **from<br>
> /usr/lib/one/ruby/client_utilities.rb:239:in `new'*<br>
> * **from /usr/lib/one/ruby/client_utilities.rb:239:in `get_one_client'*<br>
> * **from /usr/bin/onehost:343*<br>
><br>
><br>
><br>
> Regards,<br>
> Kanthi<br>
<div><div></div><div>><br>
><br>
> On Thu, Nov 4, 2010 at 7:06 PM, <<a href="mailto:Daniel.MOLDOVAN@cs.utcluj.ro" target="_blank">Daniel.MOLDOVAN@cs.utcluj.ro</a>> wrote:<br>
><br>
><br>
>> There are several peculiar issues regarding the opennebula node.<br>
>> Firstly,<br>
>> it copies some files in /tmp/ and they get deleted on system restart.<br>
>> Second, i found that it did not create /var/lib/one with coresponding<br>
>> access rights.<br>
>><br>
>> So, in order to make the opennebula node work you need to take some<br>
>> steps each time the node is restarted(i am using Ubuntu server): 1. Copy<br>
>> the content of /usr/lib/one/remotes from the machine where nebula client<br>
>> is installed to /tmp/one ( create /tmp/one) on the nebula node 2. sudo<br>
>> "mkdir /var/lib/one" (if folder does not exist)<br>
>> 3. sudo "chmod 0777 -R /var/lib/one" (just to be certain give anyone<br>
>> rights to access one)<br>
>><br>
>> Also, i have found that on the nebula client machine i need to perform<br>
>> some similar tasks after system restart because folders keept<br>
>> disappearing:<br>
>> 1. export ONE_AUTH=/$HOME/.one-auth<br>
>> 2. export ONE_XMLRPC=<a href="http://localhost:2633/RPC2" target="_blank">http://localhost:2633/RPC2</a><br>
>> 3. sudo mkdir /var/run/one<br>
>> 4. sudo mkdir /var/lock/one<br>
>> 5. sudo chmod 0777 /var/run/one<br>
>> 6. sudo chmod 0777 /var/lock/one<br>
>> 7. one start<br>
>><br>
>><br>
>> Hope this helps, because even with the express install configuring<br>
>> nebula takes time. For example, the express install does not have any<br>
>> means of adding the rsa key to the authorized_keys of the nebula client<br>
>> so even if the deploy will work, the "stop" of a virtual machine fails.<br>
>> In this case<br>
</div></div>>> the authorization keys have to be passed manually. The  same applies<br>
>> between nebula nodes(in order to enable migration).<br>
<div><div></div><div>>><br>
>>> Hi All,<br>
>>><br>
>>><br>
>>><br>
>>> I think that the express installation script has some issues, I have<br>
>>> been struggling for successful installation of OpenNebula 2.0 for past<br>
>>><br>
>> few<br>
>>> days.<br>
>>><br>
>>> The variable *ONE_LOCATION=/srv/cloud/one *is used in the script but<br>
>>> I do<br>
>>> not see any such folder created by the script later. When I try to<br>
>>> deploy vms , it get created in  /var/lib/one/ and the error logs<br>
>>> shows<br>
>> that<br>
>>> theres some permission issues.<br>
>>><br>
>>> Please let me know if anyone has also face the same issue and got it<br>
>>> resolved.<br>
>>><br>
>>> Regards.<br>
>>> KINGLABS<br>
</div></div><div><div></div><div>>>> _______________________________________________<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>
>>><br>
>>><br>
>><br>
>><br>
>><br>
><br>
<br>
<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>
</div></div></blockquote></div><br></div>