[one-users] size of storage reported differently from value set

Eilidh Troup e.troup at epcc.ed.ac.uk
Thu Apr 28 03:50:43 PDT 2011


Hi,
 
When using the OCCI interface, the SIZE of a DATABLOCK storage is created and reported in different units - i.e. the size is reported as 1024 times the requested size. Can I report this as a bug in the OCCI server, please?

curl -vki http://url/storage -d "occixml=
<STORAGE href='http://url/storage'>
<NAME>TEST OCCI</NAME>
<DESCRIPTION>A place to store the log files of the server</DESCRIPTION>
<TYPE>DATABLOCK</TYPE>
<SIZE>2048</SIZE>
<FSTYPE>ext3</FSTYPE>
</STORAGE>"

HTTP/1.1 201 Created 
<STORAGE href="https://url/storage/45">
<ID>45</ID>
<NAME>TEST OCCI</NAME>
<TYPE>DATABLOCK</TYPE>
<DESCRIPTION>A place to store the log files of the server</DESCRIPTION>
<SIZE>2097152</SIZE>
<FSTYPE>ext3</FSTYPE>
<PUBLIC>NO</PUBLIC>
<PERSISTENT>NO</PERSISTENT>
</STORAGE>

From the OpenNebula command line: 
oneimage show 45
IMAGE  INFORMATION                                                              
ID             : 45                  
NAME           : TEST OCCI     
...
SIZE=2048
TYPE=DATABLOCK

Regards,
Eilidh Troup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110428/9cb70804/attachment-0002.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110428/9cb70804/attachment-0001.txt>


More information about the Users mailing list