<div dir="ltr">Hello again, <div><br></div><div>I've resolved the problem in one host. </div><div><br></div><div>As I said in a previous message, I had access errors in the directory /var/lib/one/.ssh after mounting /var/lib/one in the remote host with NFS.</div><div><br></div><div>The problem was the fact that the oneadmin user id wasn't the same as the oneadmin user id in the front-end host so ONE couldn't access the ssh configuration and hosts couldn't comunicate each other without entering the password.</div><div><br></div><div>Now I have a doubt. Since the directory that is mounted is /var/lib/one from the front-end host, at the end, the directory is the same in the remote host and oneadmin has the same ssh key. Is this correct?</div><div><br></div><div>Thank you very much, </div><div><br></div><div>Best regards</div><div><br></div><div> <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-30 9:29 GMT+02:00 Hamada, Ondrej <span dir="ltr"><<a href="mailto:ondrej.hamada@acision.com" target="_blank">ondrej.hamada@acision.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Manuel,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Could you provide more information like the output of `ls –la /var/lib/one/` command?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I suppose the problem might be related to idmapd configuration. I guess you will see all the files owned by ‘nobody:nogroup’. In that case Google is your friend.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ondra<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> <a href="mailto:m.alfonso.lopez@gmail.com" target="_blank">m.alfonso.lopez@gmail.com</a> [mailto:<a href="mailto:m.alfonso.lopez@gmail.com" target="_blank">m.alfonso.lopez@gmail.com</a>]
<b>On Behalf Of </b>Manuel Alfonso López Rourich<br>
<b>Sent:</b> Monday, September 29, 2014 7:38 PM<br>
<b>To:</b> Hamada, Ondrej; <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a></span></p><div><div class="h5"><br>
<b>Subject:</b> Re: [one-users] Deployment files transfer error<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hello again, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In order to share data between the host with the frontend and the target hosts, I followed the guide at <a href="http://docs.opennebula.org/4.6/design_and_installation/quick_starts/qs_ubuntu_kvm.html" target="_blank">http://docs.opennebula.org/4.6/design_and_installation/quick_starts/qs_ubuntu_kvm.html</a>
.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Mainly, I've exported the directory /var/lib/one in the frontend with NFS:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">/var/lib/one/ *(rw,sync,no_subtree_check,root_squash) (in /etc/exports)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">and I mounted the same directory in the host:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">10.12.0.15:/var/lib/one/ /var/lib/one/ nfs soft,intr,rsize=8192,wsize=8192,noauto (in /etc/fstab)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Now, the directory /var/lib/one in the host has a more typical structure but I cannot access /var/lib/one/.ssh even with the root user. It throws a permission denied message. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Any ideas?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you very much, <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2014-09-29 9:16 GMT+02:00 Hamada, Ondrej <<a href="mailto:ondrej.hamada@acision.com" target="_blank">ondrej.hamada@acision.com</a>>:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Manuel,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’m not familiar with the slave zones, so I don’t know what will be the result of mounting the /var/lib/one
in them. But you can always export only the needed datastore and mount it to /var/lib/one/datastores/$datastore_id on the target host.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Ondra</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">
<a href="mailto:m.alfonso.lopez@gmail.com" target="_blank">m.alfonso.lopez@gmail.com</a> [mailto:<a href="mailto:m.alfonso.lopez@gmail.com" target="_blank">m.alfonso.lopez@gmail.com</a>]
<b>On Behalf Of </b>Manuel Alfonso López Rourich<br>
<b>Sent:</b> Monday, September 29, 2014 9:09 AM<br>
<b>To:</b> Hamada, Ondrej<br>
<b>Cc:</b> <a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a><br>
<b>Subject:</b> Re: [one-users] Deployment files transfer error</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Good morning, <u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I've deployed another VM because I deleted the other one. Anyway, the error is the same:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Command execution fail: /var/lib/one/remotes/tm/shared/clone opennebula-worker15:/var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725 10.12.0.18:/var/lib/one//datastores/0/18/disk.0
18 1<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">In the target host, the directory /var/lib/one/datastores/0/18/ is empty. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Do i have to configure /var/lib/one/ in the target hosts as a NFS directory?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you very much<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">2014-09-28 15:35 GMT+02:00 Ondrej Hamada <<a href="mailto:ondrej.hamada@acision.com" target="_blank">ondrej.hamada@acision.com</a>>:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hi Manuel,<br>
you are obviously using shared datastores. Can you check that you can access the file 'var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725' on the target hosts?<br>
<br>
Ondra<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On 09/24/2014 11:03 AM, Manuel Alfonso López Rourich wrote:<u></u><u></u></p>
</div>
</div>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal">Good morning,
<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I have four hosts and I installed OpenNebula in one of them. That installation of ONE is a slave zone.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I added the four hosts and I can deploy VMs in the one where ONE slave is installed but in the other ones I can't. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">It must be some issue related with the files transfer during the deployment, because the errors in the log are:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG I 11 Command execution fail: /var/lib/one/remotes/tm/shared/clone opennebula-worker15:/var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725
10.12.0.18:/var/lib/one//datastores/0/11/disk.0 11 1<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG I 11 clone: Cloning /var/lib/one/datastores/1/2ac54ee0c7b5f0f489216e9a04451725 in 10.12.0.18:/var/lib/one//datastores/0/11/disk.0<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG E 11 clone: Command "cd /var/lib/one/datastores/0/11; cp /var/lib/one/datastores/1/2ac54ee0c7b5f0f489216e9a04451725 /var/lib/one/datastores/0/11/disk.0"
failed: Warning: Permanently added '10.12.0.18' (ECDSA) to the list of known hosts.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG I 11 cp: cannot stat '/var/lib/one/datastores/1/2ac54ee0c7b5f0f489216e9a04451725': No such file or directory<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG E 11 Error copying opennebula-worker15:/var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725 to 10.12.0.18:/var/lib/one//datastores/0/11/disk.0<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Wed Sep 24 10:23:37 2014 [TM][D]: Message received: LOG I 11 ExitCode: 1<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Wed Sep 24 10:23:37 2014 [TM][D]: Message received: TRANSFER FAILURE 11 Error copying opennebula-worker15:/var/lib/one//datastores/1/2ac54ee0c7b5f0f489216e9a04451725 to 10.12.0.18:/var/lib/one//datastores/0/11/disk.0<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I can do ssh between nodes without putting the key. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you very much for your help. Best regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
</div>
</div>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>Users mailing list<u></u><u></u></pre>
<pre><a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><u></u><u></u></pre>
<pre><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><u></u><u></u></pre>
</blockquote>
<p class="MsoNormal"> <u></u><u></u></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain
proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment
and all copies and inform the sender. Thank you for understanding.</span><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain
proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment
and all copies and inform the sender. Thank you for understanding.</span><u></u><u></u></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div><div><div class="h5">
<hr>
<p class="MsoNormal"><span style="font-size:7.5pt;line-height:115%;font-family:"Arial","sans-serif";color:gray">This e-mail and any attachment
<span>is</span> for <span>authorised</span> use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained
or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.</span></p>
</div></div></div>
</blockquote></div><br></div>