<div dir="ltr">Well, the patch was simply to add a mkdir -p $DATASTORE_LOCATION to the monitor_ds.sh script at the top. Can you try it and let us know if that works for you?<div><br></div></div><div class="gmail_extra"><br>

<br><div class="gmail_quote">On Fri, Apr 4, 2014 at 3:50 PM, Hyun Woo Kim <span dir="ltr"><<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi Jaime and Carlos,</div>
<div><br>
</div>
<div>Thanks very much for the explanations.</div>
<div>Until you release a new version that deals with this bug,</div>
<div>we can manually mkdir /var/lib/one/datastores in each of our VMHosts to avoid this issue.</div>
<div><br>
</div>
<div>Thanks again!</div>
<div>HyunWoo KIM</div>
<div>FermiCloud</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none">


<span style="font-weight:bold">From: </span>Jaime Melis <<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>><br>
<span style="font-weight:bold">Date: </span>Friday, April 4, 2014 6:53 AM<br>
<span style="font-weight:bold">To: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>users <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>>, Carlos Martín Sánchez <<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>><div class="">

<br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] data store not created in VMHosts<br>
</div></div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi Hyun,
<div><br>
</div>
<div>I've looked at this issue and you're completely right. If /var/lib/one/datastores does not exist in the VMHost it will report that it doesn't have free space and therefore it will never deploy the VM, which means that the directory will never be created,
 which is a Catch 22.</div>
<div><br>
</div>
<div>We haven't noticed this earlier because usually people share /var/lib/one/datastores and therefore you don't hit this issue. And people using SSH and upgrading from earlier version will not hit it because in previous pervious the disk capacity wasn't checked
 so it always created the directory.</div>
<div><br>
</div>
<div>Long story short, bug confirmed, applying patch to monitor_ds.sh</div>
<div><br>
</div>
<div>Thanks for the heads up.</div>
<div><br>
</div>
<div>Cheers,<br>
Jaime</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Mar 31, 2014 at 11:25 AM, Carlos Martín Sánchez <span dir="ltr">
<<a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">Hi,<br>
<br>
<div class="gmail_quote">
<div>On Fri, Mar 28, 2014 at 7:40 PM, Hyun Woo Kim <span dir="ltr"><<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>If HostXML::test_<span style="font-style:italic">ds_</span>capacity only creates  $DATASTORE_LOCATION/<id> assuming  $DATASTORE_LOCATION itself exists,</div>
<div>my next question here might be,  </div>
<div>which code creates  $DATASTORE_LOCATION itself and when?</div>
<div><br>
</div>
<div>I don't think I missed an instruction to create  $DATASTORE_LOCATION manually in the ON documentation..</div>
<div>i.e.  $DATASTORE_LOCATION must be created by ON codes (maybe) during the first VM deployment.</div>
<div><br>
</div>
<div>But like I described in the original email, our test ON4.4  fails at this.</div>
<div><br>
</div>
<div>Hyunwoo Kim</div>
<div>FermiCloud</div>
</div>
</blockquote>
<div><br>
</div>
</div>
<div>The $DATASTORE_LOCATION/<id> dir is created by the tm drivers on the first deployment, using the ssh_make_path function (mkdir -p). As I said, I think the problem is not the dir creation, is with the mechanism to decide the first deployment on a new host.</div>


<div>
<div><br>
</div>
<div>Regards</div>
<br>
--<br>
<div>Carlos Martín, MSc<br>
Project Engineer</div>
<div>OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-size:13px;font-family:arial,sans-serif"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span></div>


</div>
</div>
</div>
</div>
</div>
<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>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div>Jaime Melis<br>
Project Engineer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">
jmelis@opennebula.org</a></div>
</div>
</div>
</div>
</div>
</div></div></span>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Jaime Melis<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a></div>

</div>
</div>