Bug 1023996
Summary: | glance api: using --location in swift backend will cause image to be created locally | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Dafna Ron <dron> | ||||
Component: | openstack-glance | Assignee: | Jon Bernard <jobernar> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Tzach Shefi <tshefi> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 4.0 | CC: | abaron, dallan, dron, eglynn, fpercoco, jruzicka, tshefi, yeylon | ||||
Target Milestone: | --- | ||||||
Target Release: | 5.0 (RHEL 7) | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | storage | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-01-13 09:58:40 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Dafna Ron
2013-10-28 14:33:05 UTC
This doesn't look like glanceclient problem to me. Client doesn't know/care about glance backend, it just sends a command as instructed. If this special case should be handled in any way, it should be done in glance. Linked upstream bug is filed about glance as well. Also, I don't think this is a high priority bug, but I'll let the future assignee decide that. If you don't want to use the HTTP store, you need to remove it from the `known_stores` config parameter. That will disable the store and fail if `--location http://` is used. Unfortunately, this will also make `--copy-from http://` fail. I don't think redirection to `--copy-from` is the right thing to do. Glance is designed to use multiple stores and it's up to the user to specify into which location an image should be uploaded. As for the issue you hit, I can't replicate it. I installed glance + swift and used `--location http://` and it just worked. One more thing, I couldn't find in the API logs the creation of the image using `--location`, I think the log level was not low enough. Could you please use `debug = True` and `verbose = True` ? Also unable to replicate error. Glance+swift (backend full), uploaded new image via --location http. Image created ok, instance booted up ok from image. openstack-glance-2013.2.1-2.el6ost.noarch openstack-swift-1.10.0-2.el6ost.noarch openstack-swift-account-1.10.0-2.el6ost.noarch openstack-swift-object-1.10.0-2.el6ost.noarch openstack-swift-proxy-1.10.0-2.el6ost.noarch openstack-selinux-0.1.3-2.el6ost.noarch openstack-utils-2013.2-2.el6ost.noarch openstack-swift-container-1.10.0-2.el6ost.noarch openstack-swift-plugin-swift3-1.0.0-0.20120711git.1.el6ost.noarch Ok, that sounds like the right behavior! Closing as won't fix since the expected result is not compliant with how glance works. |