<div dir="ltr">Nevermind, i forgot to disable the following so it wouldn't allow me to run the commands as sudo remotely<div><br></div><div>In /etc/sudoers</div><div><br></div><div># Defaults requiretty<br><div><br>
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 12:19 AM, Shankhadeep Shome <span dir="ltr"><<a href="mailto:shank15217@gmail.com" target="_blank">shank15217@gmail.com</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>I'm trying to get a handle on the iscsi datastore with open nebula but I notice that its always reporting 0 MB available and when I try to run the monitor script it fails.. any ideas?</div>
<div><br>
</div><div><div>oneadmin@mercury:~/remotes/datastore/iscsi$ ./monitor</div><div>./../xpath.rb:61: undefined method `elements' for nil:NilClass (NoMethodError)</div><div> from ./../xpath.rb:60:in `each'</div>
<div> from ./../xpath.rb:60</div><div>USED_MB=</div><div>TOTAL_MB=</div><div>FREE_MB=</div></div><div><br></div><div><br></div><div>oneadmin@mercury:~$ onedatastore list</div><div> ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM</div>
<div> 0 system - - - 0 sys - shared</div><div> 1 default 75.6G 84% - 0 img fs shared</div><div> 2 files 75.6G 84% - 0 fil fs ssh</div>
<div> 100 TAP-Datastore 2.4T 85% TAPCluster1 16 img fs qcow2</div><div> 104 iSCSI_BS 0M - TAPCluster1 0 img iscsi iscsi</div><div>oneadmin@mercury:~$ onedatastore show 104</div>
<div>DATASTORE 104 INFORMATION</div><div>ID : 104</div><div>NAME : iSCSI_BS</div><div>USER : oneadmin</div><div>GROUP : oneadmin</div><div>CLUSTER : TAPCluster1</div><div>TYPE : IMAGE</div>
<div>DS_MAD : iscsi</div><div>TM_MAD : iscsi</div><div>BASE PATH : /var/lib/one//datastores/104</div><div>DISK_TYPE : FILE</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="iscsi"</div><div>HOST="10.1.11.109"</div><div>TM_MAD="iscsi"</div><div>TYPE="IMAGE_DS"</div><div>VG_NAME="vg-one"</div><div><br></div></div>
</blockquote></div><br></div>