[Openstack] [glance] Rocky image import stuck

Brian Rosmaita rosmaita.fossdev at gmail.com
Mon Nov 12 14:33:06 UTC 2018


On 11/7/18 8:46 AM, Bernd Bausch wrote:
> Does the new image import process work? Am I missing something? Uploaded
> images stay in an intermediate state, either /uploading/ or /importing/,
> and never become /active.///Where should I look?

Apologies for the late reply to your question.  For anyone else with a
similar question, I replied to your thread on the general list:

http://lists.openstack.org/pipermail/openstack/2018-November/047186.html

> 
> On a stable/Rocky Devstack, I do:
> 
>     openstack image create --disk-format qcow2 myimg
> 
> Image status is /queueing/, as expected.
> 
>     glance image-stage --file devstack/files/Fedora...qcow2 --progress
>     IMAGE_ID
> 
> Image status is /uploading/. A copy of the image is on
> /tmp/staging/IMAGE_ID.
> 
>     glance image-import --import-method glance-direct IMAGE_ID
> 
> Sometimes, the status remains /uploading, /sometimes it turns
> /importing, /never /active./
> 
> glance-api log grep'd for the image ID:
> 
> Nov 07 18:51:36 rocky devstack at g-api.service[1033]: INFO
> glance.common.scripts.image_import.main [None
> req-7a747213-c160-4423-b703-c6cad15b9217 admin admin] Task
> ec4b36fd-dece-4f41-aa8d-337d01c239f1: Got image data uri
> file:///tmp/staging/72a6d7d0-a538-4922-95f2-1649e9702eb2 to be imported
> Nov 07 18:51:37 rocky devstack at g-api.service[1033]: DEBUG
> glance_store._drivers.swift.store [None
> req-7a747213-c160-4423-b703-c6cad15b9217 admin admin] Adding image
> object '72a6d7d0-a538-4922-95f2-1649e9702eb2' to Swift {{(pid=2250) add
> /usr/local/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py:941}}
> Nov 07 18:51:45 rocky devstack at g-api.service[1033]: DEBUG swiftclient
> [None req-7a747213-c160-4423-b703-c6cad15b9217 admin admin] REQ: curl -i
> http://192.168.1.201:8080/v1/AUTH_9495609cff044252965f8c3e5e86f8e0/glance/72a6d7d0-a538-4922-95f2-1649e9702eb2-00001
> -X PUT -H "X-Auth-Token: gAAAAABb4rWowjLQ..." {{(pid=2250) http_log
> /usr/local/lib/python2.7/dist-packages/swiftclient/client.py:167}}
> Nov 07 18:51:45 rocky devstack at g-api.service[1033]: DEBUG
> glance_store._drivers.swift.store [None
> req-7a747213-c160-4423-b703-c6cad15b9217 admin admin] Wrote chunk
> 72a6d7d0-a538-4922-95f2-1649e9702eb2-00001 (1/?) of length 204800000 to
> Swift returning MD5 of content: 5139500edbb5814a1351100d162db333
> {{(pid=2250) add
> /usr/local/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py:1024}}
> 
> And then nothing. So it does send a 200MB chunk to Swift. I can see it
> on Swift, too. But it stops after the first chunk and forgets to send
> the rest.
> 
> After I tried that a few times, now it doesn't even upload the first
> chunk. Nothing in Swift at all. No error in the Glance API log either.
> 
> Same problem with the /image-upload-via-import /command. I also tried
> the /web-download /import method; same result.
> 
> In all these cases, the image remains in an non-active state forever,
> i.e. an hour or so, when I lose patience and delete it.
> 
> "Classic" upload works (/openstack image create --file ..../). The log
> file then shows the expected chunk uploads to Swift.
> 
> 
> _______________________________________________
> 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
> 




More information about the Openstack mailing list