osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openstack] [glance] task in pending state, image in uploading state


On 11/12/18 7:29 PM, Bernd Bausch wrote:
> Thanks Brian. It's great to get an email from Mr. Glance.
> 
> I managed to patch Devstack, and a first test was successful. Perfect!

Glad it worked!

> A bit late, I then found numerous warnings in release notes and other
> documents that UWSGI should not be used when deploying Glance. My
> earlier web searches flew by these documents without noticing them.

We haven't made it easy for you in devstack, though.  As you can see
from the patch, it requires coordination across a few different teams to
make the appropriate changes to get all tests passing and the patch
merged.  When everyone's back from the summit, I'll see if I can get a
coordinated push across teams to get this done for Stein milestone 2.

This won't solve the larger problem of Glance not running in uWSGI,
though.  I'd refer people interested in having that happen to my
statement about this issue in the Queens release notes [0]; the
situation described there still stands.

[0]
https://docs.openstack.org/releasenotes/glance/queens.html#relnotes-16-0-0-stable-queens-known-issues


> Bernd
> 
> On 11/12/2018 11:27 PM, Brian Rosmaita wrote:
>> On 11/12/18 5:07 AM, Bernd Bausch wrote:
>>> Trying Glance's new import process, my images are all stuck in status
>>> uploading (both methods glance-direct and web-download).
>>>
>>> I can see that there are tasks for those images; they are pending. The
>>> Glance API log doesn't contain anything that clues me in (debug logging
>>> is enabled).
>>>
>>> The source code is too involved for my feeble Python and OpenStack
>>> Internals skills.
>>>
>>> *How can I find out what blocks the tasks? *
>>>
>>> This is a stable Rocky Devstack without any customization of the Glance
>>> config.
>>>
>> The tasks engine Glance uses to facilitate the "new" (experimental in
>> Pike, current in Queens) image import process does not work when Glance
>> is deployed as a WSGI application using uWSGI [0]; as you observed, the
>> tasks remain stuck in 'pending'.  You can apply this patch [1] to your
>> devstack Glance and restart devstack at g-api and image import should work
>> without additional glance api-changes (the patch applied cleanly last
>> time I checked, which was a Stein-1 milestone devstack; it should apply
>> cleanly to your stable Rocky devstack).  You may also want to take a
>> look at the Glance admin guide [2] to see what configuration options are
>> available.
>>
>> [0]
>> https://docs.openstack.org/releasenotes/glance/queens.html#relnotes-16-0-0-stable-queens-known-issues
>>
>> [1] https://review.openstack.org/#/c/545483/
>> [2]
>> https://docs.openstack.org/glance/latest/admin/interoperable-image-import.html
>>
>>
>>> _______________________________________________
>>> Mailing list:
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>> Post to     : openstack at lists.openstack.org
>>> Unsubscribe :
>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>>
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack at lists.openstack.org
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> 
> 
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>