glance fails to upload to S3 store
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Brian Waldon |
Bug Description
When I upload an image to glance it fails to upload (or even connect) to an S3 store. I am using Swift to provide S3 storage, however Glance fails to even attempt to connect and so the actual storage provider is not a factor.
The host that glance seems to attempt to connect to is: ${s3_store_
By adding a bogus entry for this "host" to my /etc/hosts file I can at least get glance to attempt to connect.
glance-api.conf:
default_store = s3
s3_store_host = 127.0.0.1
s3_store_access_key = xxxxxxxxxxxxxxx
s3_store_secret_key = xxxxxxxxxxxxxxx
s3_store_bucket = s3bucket
s3_store_
/var/log/
2012-05-10 13:59:36 32732 DEBUG [glance.
2012-05-10 13:59:36 32732 DEBUG [glance.
2012-05-10 13:59:36 32732 DEBUG [keystone.
2012-05-10 13:59:36 32732 DEBUG [keystone.
2012-05-10 13:59:37 32732 DEBUG [routes.middleware] Matched POST /images
2012-05-10 13:59:37 32732 DEBUG [routes.middleware] Route path: '/images', defaults: {'action': u'create', 'controller': <glance.
2012-05-10 13:59:37 32732 DEBUG [routes.middleware] Match dict: {'action': u'create', 'controller': <glance.
2012-05-10 13:59:37 32732 DEBUG [glance.registry] Adding image metadata...
2012-05-10 13:59:37 32732 DEBUG [glance.
2012-05-10 13:59:37 32732 DEBUG [glance.registry] Updating image metadata for image abff1de6-
2012-05-10 13:59:37 32732 DEBUG [glance.
2012-05-10 13:59:37 32732 DEBUG [boto] path=/
2012-05-10 13:59:37 32732 DEBUG [boto] auth_path=
2012-05-10 13:59:37 32732 DEBUG [boto] path=/?&max-keys=0
2012-05-10 13:59:37 32732 DEBUG [boto] auth_path=
2012-05-10 13:59:37 32732 DEBUG [boto] Method: GET
2012-05-10 13:59:37 32732 DEBUG [boto] Path: /?&max-keys=0
2012-05-10 13:59:37 32732 DEBUG [boto] Data:
2012-05-10 13:59:37 32732 DEBUG [boto] Headers: {}
2012-05-10 13:59:37 32732 DEBUG [boto] Host: s3bucket.127.0.0.1
2012-05-10 13:59:37 32732 DEBUG [boto] establishing HTTP connection: kwargs={}
2012-05-10 13:59:37 32732 DEBUG [boto] Token: None
2012-05-10 13:59:37 32732 DEBUG [boto] StringToSign:
GET
Thu, 10 May 2012 13:59:37 GMT
/s3bucket/
[...]
2012-05-10 14:00:02 32732 DEBUG [boto] encountered gaierror exception, reconnecting
2012-05-10 14:00:02 32732 DEBUG [boto] establishing HTTP connection: kwargs={}
2012-05-10 14:00:36 32732 ERROR [glance.
File "/usr/lib/
image_size)
File "/usr/lib/
create_
File "/usr/lib/
s3_
File "/usr/lib/
bucket.
File "/usr/lib/
'', headers, **params)
File "/usr/lib/
query_args=s)
File "/usr/lib/
override_
File "/usr/lib/
return self._mexe(
File "/usr/lib/
raise e
gaierror: [Errno -2] Name or service not known
Server and package information:
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
# dpkg-query --show glance* python-boto*
glance 2012.1-0ubuntu2
glance-api 2012.1-0ubuntu2
glance-client 2012.1-0ubuntu2
glance-common 2012.1-0ubuntu2
glance-registry 2012.1-0ubuntu2
python-boto 2.2.2-0ubuntu2
tags: | added: canonistack |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | folsom-rc1 → 2012.2 |
This definitely works with Amazon S3. Are we depending on unofficial behavior?