yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #14384
[Bug 1231406] Re: cannot create image from file when swift is configured as backend
yes, this was a problem with the installer that created a 1GB disks on the swift storage servers.
it was resolved by changing the installer.
closing.
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1231406
Title:
cannot create image from file when swift is configured as backend
Status in OpenStack Image Registry and Delivery Service (Glance):
Invalid
Bug description:
i configured swift to be glance's backend and tried to create an image with --file.
we get an error:
Request returned failure status.
500 Internal Server Error
Failed to upload image cca7a691-2346-4bcd-9cc3-9888324c1813
(HTTP 500)
log shows:
2013-09-26 14:45:49.581 383 DEBUG swiftclient [-] RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>
http_log /usr/lib/python2.6/site-packages/swiftclient/client.py:82
2013-09-26 14:45:50.582 383 ERROR glance.store.swift [42035704-d1d6-467e-980c-e58bc21e8e46 f029a90f77bf4df5898d79c64e176738 b5311177ffd44e9c91af030911f0b9d4] Failed to add object to Swift.
Got error from Swift: put_object('glance', 'cca7a691-2346-4bcd-9cc3-9888324c1813', ...) failure and no ability to reset contents for reupload.
2013-09-26 14:45:50.582 383 ERROR glance.api.v1.upload_utils [42035704-d1d6-467e-980c-e58bc21e8e46 f029a90f77bf4df5898d79c64e176738 b5311177ffd44e9c91af030911f0b9d4] Failed to upload image cca7a691-2346-4bcd-9cc3-9888324c1813
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 101, in upload_data_to_store
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils store)
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 333, in store_add_to_backend
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils (location, size, checksum, metadata) = store.add(image_id, data, size)
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.6/site-packages/glance/store/swift.py", line 441, in add
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils raise glance.store.BackendException(msg)
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils BackendException: Failed to add object to Swift.
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils Got error from Swift: put_object('glance', 'cca7a691-2346-4bcd-9cc3-9888324c1813', ...) failure and no ability to reset contents for reupload.
2013-09-26 14:45:50.582 383 TRACE glance.api.v1.upload_utils
2013-09-26 14:45:50.584 383 DEBUG glance.registry.client.v1.api [42035704-d1d6-467e-980c-e58bc21e8e46 f029a90f77bf4df5898d79c64e176738 b5311177ffd44e9c91af030911f0b9d4] Updating image metadata for image cca7a691-2346-4bcd-9cc3-9888324c1813... update_image_metadata /usr/lib/python2.6/site-packages/glance/registry/client/v1/api.py:192
I can create images using --location http://
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1231406/+subscriptions