Upgrading to 4.2 has resolved this issue.<div><br></div><div>Thanks Everyone,</div><div>Jon A<br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 9:27 PM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jamie,<div><br></div><div>Ok, I did that, my sudoers for opennebula now looks like:</div><div><br></div><div> oneadmin ALL=(ALL) NOPASSWD: /usr/bin/ovs-ofctl, /usr/bin/ovs-vsctl, /usr/bin/rados</div>
<div><br></div>
<div>the oneadmin user also has the ability to run all ceph/rados commands without sudo (I created a ceph group, added the oneadmin user to the group, then chgrp ceph /etc/ceph/ceph.keyring ).</div><div><br></div><div>I am able to run the rados command as oneadmin, and running what looks to be the monitor command is successful:</div>
<div><br></div><div><div>> oneadmin@red6:~$ sudo rados df | awk '{</div><div>> if ($1 == "total") {</div><div>> </div><div>> space = int($3/1024)</div><div>> </div><div>> if ($2 == "used") {var = "USED_MB"}</div>
<div>> else if ($2 == "avail") {var = "FREE_MB"}</div><div>> else if ($2 == "space") {var = "TOTAL_MB"}</div><div>> </div><div>> print var "=" space</div>
<div>> }</div><div>> }'</div><div>> USED_MB=1221077</div><div>> FREE_MB=3544932</div><div>> TOTAL_MB=4766009</div><div><br></div></div><div>However, when I run the full command found in the logs, I get an error:</div>
<div><br></div><div><div>oneadmin@red6:~$ /var/lib/one/remotes/datastore/ceph/monitor PERTX0RSSVZFUl9BQ1RJT05fREFUQT48REFUQVNUT1JFPjxJRD4xMDE8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT5yYmQtMTwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+MTwvR1JPVVBfVT48R1JPVVBfTT4wPC9HUk9VUF9NPjxHUk9VUF9BPjA8L0dST1VQX0E+PE9USEVSX1U+MDwvT1RIRVJfVT48T1RIRVJfTT4wPC9PVEhFUl9NPjxPVEhFUl9BPjA8L09USEVSX0E+PC9QRVJNSVNTSU9OUz48RFNfTUFEPmNlcGg8L0RTX01BRD48VE1fTUFEPmNlcGg8L1RNX01BRD48QkFTRV9QQVRIPi92YXIvbGliL29uZS9kYXRhc3RvcmVzLzEwMTwvQkFTRV9QQVRIPjxUWVBFPjA8L1RZUEU+PERJU0tfVFlQRT4zPC9ESVNLX1RZUEU+PENMVVNURVJfSUQ+LTE8L0NMVVNURVJfSUQ+PENMVVNURVI+PC9DTFVTVEVSPjxUT1RBTF9NQj4wPC9UT1RBTF9NQj48RlJFRV9NQj4wPC9GUkVFX01CPjxVU0VEX01CPjA8L1VTRURfTUI+PElNQUdFUz48L0lNQUdFUz48VEVNUExBVEU+PERTX01BRD48IVtDREFUQVtjZXBoXV0+PC9EU19NQUQ+PFRNX01BRD48IVtDREFUQVtjZXBoXV0+PC9UTV9NQUQ+PFRZUEU+PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1RZUEU+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L0RTX0RSSVZFUl9BQ1RJT05fREFUQT4= 101</div>
<div>ERROR: monitor: Command "" failed: </div><div>ERROR MESSAGE --8<------</div><div>Cannot monitor sudo rados df | awk '{</div><div> if ($1 == "total") {</div><div><br></div><div> space = int($3/1024)</div>
<div><br></div><div> if ($2 == "used") {var = "USED_MB"}</div><div> else if ($2 == "avail") {var = "FREE_MB"}</div><div> else if ($2 == "space") {var = "TOTAL_MB"}</div>
<div><br></div><div> print var "=" space</div><div> }</div><div>}'</div><div>ERROR MESSAGE ------>8--</div></div><div><br></div><div>The full log message is:</div><div><br></div><div><div>Fri Jul 19 21:16:45 2013 [ImM][I]: Datastore files (2) successfully monitored.</div>
<div>Fri Jul 19 21:16:45 2013 [ImM][I]: Datastore default (1) successfully monitored.</div><div>Fri Jul 19 21:16:45 2013 [ImM][I]: Command execution fail: /var/lib/one/remotes/datastore/ceph/monitor PERTX0RSSVZFUl9BQ1RJT05fREFUQT48REFUQVNUT1JFPjxJRD4xMDE8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT5yYmQtMTwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+MTwvR1JPVVBfVT48R1JPVVBfTT4wPC9HUk9VUF9NPjxHUk9VUF9BPjA8L0dST1VQX0E+PE9USEVSX1U+MDwvT1RIRVJfVT48T1RIRVJfTT4wPC9PVEhFUl9NPjxPVEhFUl9BPjA8L09USEVSX0E+PC9QRVJNSVNTSU9OUz48RFNfTUFEPmNlcGg8L0RTX01BRD48VE1fTUFEPmNlcGg8L1RNX01BRD48QkFTRV9QQVRIPi92YXIvbGliL29uZS9kYXRhc3RvcmVzLzEwMTwvQkFTRV9QQVRIPjxUWVBFPjA8L1RZUEU+PERJU0tfVFlQRT4zPC9ESVNLX1RZUEU+PENMVVNURVJfSUQ+LTE8L0NMVVNURVJfSUQ+PENMVVNURVI+PC9DTFVTVEVSPjxUT1RBTF9NQj4wPC9UT1RBTF9NQj48RlJFRV9NQj4wPC9GUkVFX01CPjxVU0VEX01CPjA8L1VTRURfTUI+PElNQUdFUz48L0lNQUdFUz48VEVNUExBVEU+PERTX01BRD48IVtDREFUQVtjZXBoXV0+PC9EU19NQUQ+PFRNX01BRD48IVtDREFUQVtjZXBoXV0+PC9UTV9NQUQ+PFRZUEU+PCFbQ0RBVEFbSU1BR0VfRFNdXT48L1RZUEU+PC9URU1QTEFURT48L0RBVEFTVE9SRT48L0RTX0RSSVZFUl9BQ1RJT05fREFUQT4= 101</div>
<div>Fri Jul 19 21:16:45 2013 [ImM][I]: ExitCode: 255</div><div>Fri Jul 19 21:16:45 2013 [ImM][E]: Error monitoring datastore 101: -</div></div><div><br></div><div>I'm really not sure where to go from here.</div><div>
<br></div><div>Is there a way to set a hard limit on a datastore, or would storage limits be configured only at a user level?</div><div><br></div><div>Thanks,</div><div>Jon A</div><div class="HOEnZb"><div class="h5"><div>
<br></div><div><br></div><div><br></div>
<div><div class="gmail_quote">On Fri, Jul 19, 2013 at 2:50 AM, Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@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">Hi Jon,<div><br></div><div>thanks for the feedback.</div><div><br></div><div>Can you try again adding the rados command to the NOPASSWD sudoers commands in the $HOST of the Ceph datastore?</div><div><br></div>
<div>cheers,</div><div>Jaime</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Fri, Jul 19, 2013 at 7:47 AM, Jon <span dir="ltr"><<a href="mailto:three18ti@gmail.com" target="_blank">three18ti@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hello,<div><br></div><div>I've basically performed a fresh install of the New OpenNebula.</div>
<div><br></div><div>
I'm attempting to create a new image on a ceph datastore. When I click submit in sunstone, I get an error "<span style="background-color:rgb(243,153,153);color:rgb(102,0,0);font-family:Tahoma,Arial,Helvetica,sans-serif;font-size:14px;line-height:14px">Not enough space in datastore"</span></div>
<div><br></div><div><font face="Tahoma, Arial, Helvetica, sans-serif"><span style="font-size:14.44444465637207px;line-height:13.993056297302246px">The config of the datastore clearly shows 0/0/0M total/used/free. Off the top of my head, I also don't remember there being a path for RBD datastores in 4.0.</span></font></div>
<div><font face="Tahoma, Arial, Helvetica, sans-serif"><span style="font-size:14.44444465637207px;line-height:13.993056297302246px"><br></span></font></div><div><font face="Tahoma, Arial, Helvetica, sans-serif"><span style="font-size:14.44444465637207px;line-height:13.993056297302246px">Is there a way to set the size of the datastore? I'm unable to edit it via sunstone and there is no size parameter when I run `onedatastore update 100`.</span></font></div>
<div><font face="Tahoma, Arial, Helvetica, sans-serif"><span style="font-size:14.44444465637207px;line-height:13.993056297302246px"><br></span></font></div><div><font face="Tahoma, Arial, Helvetica, sans-serif"><span style="font-size:14.44444465637207px;line-height:13.993056297302246px">I don't see anything in the docs about setting the size for a ceph datastore: </span></font><a href="http://opennebula.org/documentation:rel4.2:ceph_ds" target="_blank">http://opennebula.org/documentation:rel4.2:ceph_ds</a></div>
<div>but maybe the docs haven't been updated yet?</div><div><br></div><div>Any ideas as to what I'm missing?</div><div><br></div><div>Thanks,</div><div>Jon A</div><div><font face="Tahoma, Arial, Helvetica, sans-serif"><span style="font-size:14.44444465637207px;line-height:13.993056297302246px"><br>
</span></font></div><div><font face="Tahoma, Arial, Helvetica, sans-serif"><span style="font-size:14.44444465637207px;line-height:13.993056297302246px"><br></span></font></div><div><font face="Tahoma, Arial, Helvetica, sans-serif"><span style="font-size:14.44444465637207px;line-height:13.993056297302246px"><div>
oneadmin@red6:~$ onedatastore show 100</div><div>DATASTORE 100 INFORMATION </div><div>ID : 100 </div><div>NAME : rbd-1 </div>
<div>USER : oneadmin </div><div>GROUP : oneadmin </div><div>CLUSTER : - </div><div>TYPE : IMAGE </div><div>DS_MAD : ceph </div>
<div>TM_MAD : ceph </div><div>BASE PATH : /var/lib/one/datastores/100</div><div>DISK_TYPE : RBD </div><div><br></div><div>DATASTORE CAPACITY </div>
<div>TOTAL: : 0M </div><div>USED: : 0M </div><div>FREE: : 0M </div><div><br></div><div>PERMISSIONS </div>
<div>OWNER : um- </div><div>GROUP : u-- </div><div>OTHER : --- </div><div><br></div><div>DATASTORE TEMPLATE </div>
<div>DS_MAD="ceph"</div><div>TM_MAD="ceph"</div><div>TYPE="IMAGE_DS"</div><div><br></div><div>IMAGES </div><div><br></div><div><br></div></span></font></div>
<br></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></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Join us at <a href="http://opennebulaconf.com/" style="color:rgb(17,85,204)" target="_blank">OpenNebulaConf2013</a> in Berlin, <span><span>24-26 September, 2013</span></span><br>
--<div>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<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>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>