Image import fails with python 3.5, image stuck in importing state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Critical
|
Abhishek Kekane | ||
Queens |
Fix Committed
|
Critical
|
Abhishek Kekane |
Bug Description
New image import api with glance-direct or web-download fails to import image if cloud is using python3.5. Image stuck in importing state forever.
Steps:
1. Ensure you are running glance on python 3.5
Add below lines in your devstack/local.conf
WSGI_
USE_PYTHON3=True
PYTHON3_
2. Source devstack/openrc using "$ source devstack/openrc admin admin"
3. Create image using new import api
$ glance image-create-
g-api logs:
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: |__Flow 'api_image_import': TypeError: Unicode-objects must be encoded before hashing
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: ERROR glance.
Mar 28 08:36:01 ubuntu-3 glance-api[23449]: DEBUG glance.
Changed in glance: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
summary: |
- Image import fails with python 3.5, image stuck in uploading state + Image import fails with python 3.5, image stuck in importing state |
description: | updated |
tags: | added: queens-backport-potential |
Changed in glance: | |
importance: | Undecided → Critical |
Changed in glance: | |
milestone: | none → rocky-1 |
Fix proposed to branch: master /review. openstack. org/557673
Review: https:/