[openstack-dev] [nova] [glance] How to deal with aborted image read?

Chris Friesen chris.friesen at windriver.com
Tue Jun 9 16:21:49 UTC 2015


On 06/08/2015 06:26 PM, Robert Collins wrote:
> On 9 June 2015 at 07:53, Chris Friesen <chris.friesen at windriver.com> wrote:
>>  From what I understand, the iterator (in the glance-api process) normally
>> breaks out of the while loop once the whole file has been read and the
>> read() call returns an empty string.
>>
>> It's not clear to me how an error in the nova process (which causes it to
>> stop reading the file from glance-api)  will cause glance-api to break out
>> of the while loop in ChunkedFile.__iter__().
>
> AIUI the conclusion of our IRC investigation was:
>   - with caching middleware, the fd is freed, just after ~4m.
>   - without caching middleware, the fd is freed after ~90s.

Correct. I went back and tried it out in a hardware lab and those are the 
results I got.  Sorry for the noise (though it'd be nice to get rid of the 
4-minute delay).

I did a bit more digging and we've apparently got another similar issue reported 
where taking a snapshot fails because the filesystem fills up and the space 
never gets reclaimed even though the snapshot failed.  I'll make sure I can 
reproduce that one before going further.

Chris



More information about the OpenStack-dev mailing list