Failed to create Glance image loaded from remote URL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
High
|
MOS Glance | ||
5.1.x |
Fix Committed
|
High
|
MOS Glance | ||
6.0.x |
Invalid
|
High
|
MOS Glance | ||
6.1.x |
Invalid
|
High
|
MOS Glance |
Bug Description
Ran the following command to create Glance image from Ubuntu repo:
glance --debug image-create --name ubuntu-
The command itself succeeded, returning HTTP 201 and image in queued status. After some time (~3-4 minutes) the image disappeared from the list of images. Glance API log contain error from Swift: BackendException: Failed to add object to Swift.
When image is dowloaded manually and added into Glance then the operation succeed.
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "5.1.1"
api: "1.0"
build_number: "17"
build_id: "2014-11-
astute_sha: "702af3db6f5bca
fuellib_sha: "0d3909b9a29188
ostf_sha: "64cb59c681658a
nailgun_sha: "2fc6fc4261092a
fuelmain_sha: "b118fa4475833c
DEPLOYMENT:
HA, 5 nodes, no Ceph, Neutron GRE
Changed in mos: | |
milestone: | none → 5.1.1 |
milestone: | 5.1.1 → none |
description: | updated |
Changed in mos: | |
importance: | Undecided → Medium |
milestone: | none → 5.1.1 |
milestone: | 5.1.1 → 5.1.2 |
tags: | added: release-note |
tags: |
added: release-notes removed: release-note |
tags: | removed: release-notes |
Glance API log:
2014-11- 20T13:05: 46.921041+ 00:00 err: 2014-11-20 13:05:46.913 18408 ERROR glance.store.swift [-] Error during chunked upload to backend, deleting stale chunks python2. 7/dist- packages/ glance/ store/swift. py", line 435, in add length= content_ length) python2. 7/dist- packages/ swiftclient/ client. py", line 1233, in put_object dict=response_ dict) python2. 7/dist- packages/ swiftclient/ client. py", line 1142, in _retry python2. 7/dist- packages/ swiftclient/ client. py", line 1214, in _default_reset 'glance' , 'f6f60be3- 3b7b-4c90- 8e61-164ca179dc de-00001' , ...) failure and no ability to reset contents for reupload. 20T13:05: 46.925646+ 00:00 err: 2014-11-20 13:05:46.924 18408 ERROR glance.store.swift [-] Failed to add object to Swift. 'glance' , 'f6f60be3- 3b7b-4c90- 8e61-164ca179dc de-00001' , ...) failure and no ability to reset contents for reupload. 20T13:05: 46.929666+ 00:00 err: 2014-11-20 13:05:46.927 18408 ERROR glance. api.v1. upload_ utils [-] Failed to upload image f6f60be3- 3b7b-4c90- 8e61-164ca179dc de api.v1. upload_ utils Traceback (most recent call last): api.v1. upload_ utils File "/usr/lib/ python2. 7/dist- packages/ glance/ api/v1/ upload_ utils.py" , line 105, in upload_ data_to_ store api.v1. upload_ utils store) api.v1. upload_ utils File "/usr/lib/ python2. 7/dist- packages/ glance/ store/_ _init__ .py", line 382, in store_add_ to_backend api.v1. upload_ utils (location, size, checksum, metadata) = store.add(image_id, data, size) api.v1. upload_ utils File "/usr/lib/ python2. 7/dist- packages/ glance/ store/swift. py", line 503, in add api.v1. upload_ utils raise glance. store.BackendEx ception( msg) api.v1. upload_ utils BackendException: Failed to add object to Swift. api.v1. upload_ utils Got error from Swift: put_object( 'glance' , 'f6f60be3- 3b7b-4c90- 8e61-164ca179dc de-00001' , ...) failure and no ability to reset contents for reupload. api.v1. upload_ utils
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift Traceback (most recent call last):
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift File "/usr/lib/
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift content_
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift File "/usr/lib/
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift response_
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift File "/usr/lib/
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift reset_func(func, *args, **kwargs)
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift File "/usr/lib/
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift % (container, obj))
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift ClientException: put_object(
2014-11-20 13:05:46.913 18408 TRACE glance.store.swift
2014-11-
Got error from Swift: put_object(
2014-11-
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.
2014-11-20 13:05:46.927 18408 TRACE glance.