osdir.com

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

[Openstack] [glance] Rocky image import stuck


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?/
/

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20181107/44705247/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20181107/44705247/attachment.sig>