Bug #598

Units of size of storage reported differently from value set

Added by Tino Vázquez over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:04/28/2011
Priority:NormalDue date:
Assignee:Tino Vázquez% Done:

0%

Category:-
Target version:Release 3.0
Resolution:fixed Pull request:
Affected Versions:

Description

From Eilidh Troup <>
---

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

Associated revisions

Revision 41d76c8f
Added by Tino Vázquez over 9 years ago

bug #598: size of storage reported differently from value set.

History

#1 Updated by Ruben S. Montero over 9 years ago

  • Assignee set to Tino Vázquez
  • Target version set to Release 3.0

#2 Updated by Tino Vázquez over 9 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF