Found a solution. We use glance v1 the problem was causing openstack to get
the image size. First option was taking the size by openning a url
connection and getting the size from the header then passing it in
CreatImageOptions.
Second option witch we eventually used was creating a StringPayload with
empty string (its mandatory to send the create command with a payload :-(
)  and sending the location url in the CreatImageOptions
That causes glance to get the size from the URL on its own...

             Thank you very much for the
              Help. Regards Inbar Stolberg.
On Jan 8, 2014 8:38 PM, "Jeremy Daggett" <[email protected]>
wrote:

>  Hi Avi,
>
>  What version of the Glance API is implemented in your RDO environment?
> v2?
>
>  Can you please upload more code that shows how you are creating the
> glanceApi in line 17?  Thanks!
>
>  /jd
>
>   From: Avi Ben-Harush <[email protected]>
> Reply-To: "[email protected]" <[email protected]>
> Date: Monday, January 6, 2014 at 10:40 PM
> To: "[email protected]" <[email protected]>
> Subject: Re: image upload zero size using glance with rbd plugin
>
>   Hi,
>
> I'm using RDO Havana and Ceph Dumpling.
>
> here's the code snip http://pastie.org/8609014
>
>  the following issues seems to be related, but the release I'm using has
> those fixes
>
>  
> https://bugs.launchpad.net/glance/+bug/1213880<https://mail.eu.alcatel-lucent.com/owa/redir.aspx?C=1e5aa165c32e4a149d176605cdc9ef4a&URL=https%3a%2f%2fbugs.launchpad.net%2fglance%2f%2bbug%2f1213880>
> https://bugs.launchpad.net/python-glanceclient/+bug/1220197<https://mail.eu.alcatel-lucent.com/owa/redir.aspx?C=1e5aa165c32e4a149d176605cdc9ef4a&URL=https%3a%2f%2fbugs.launchpad.net%2fpython-glanceclient%2f%2bbug%2f1220197>
>
> https://www.mail-archive.com/[email protected]/msg04131.html<https://mail.eu.alcatel-lucent.com/owa/redir.aspx?C=1e5aa165c32e4a149d176605cdc9ef4a&URL=https%3a%2f%2fwww.mail-archive.com%2fopenstack-dev%40lists.openstack.org%2fmsg04131.html>
>
>
>
>
> On Mon, Jan 6, 2014 at 9:28 PM, Jeremy Daggett <
> [email protected]> wrote:
>
>>  Hi Avi,
>>
>>  Can you please provide some example code on what you are trying to do
>> here?  What version of OpenStack are you testing this against?
>>
>>  If you could please provide either a pastie[1] or a gist[2], that would
>> be great, thanks!
>>
>>  /jd
>>
>>  [1] http://pastie.org/
>> [2] https://gist.github.com/
>>
>>   From: Avi Ben-Harush <[email protected]>
>> Reply-To: "[email protected]" <[email protected]>
>> Date: Monday, January 6, 2014 at 10:55 AM
>> To: "[email protected]" <[email protected]>
>> Subject: image upload zero size using glance with rbd plugin
>>
>>     Hi,
>>
>>  I've recently changed my glance default store to rbd (
>> http://docs.openstack.org/developer/glance/configuring.html).
>>
>>  all works well using OpenStack CLI and Hosrizon so the node seems to be
>> fine.
>>
>> problem is I can't upload image using JClouds. every image I upload gets
>> a zero size.
>>
>>  note that everything is working fine with JClouds when using the basic
>> file system configuration.
>>
>>  did anyone encounter this issue?
>>
>> --
>> Avi Ben-Harush
>>
>
>
>
> --
> Avi Ben-Harush
>

Reply via email to