Glance does not send PUT request to S3 Server

asked 2017-08-14 07:51:22 -0500

amit-g gravatar image

I have been trying to upload the images from Glance onto the S3 server. It looks like the Glance does contact the S3 server, but does not upload the images. Besides, Glance does not looks to be sending PUT request on the S3 Server. The S3 server is listening on port 3145 Following are the configuration of the api .

[glance_store]
stores = file,http,swift,s3
default_store = s3
s3_store_host = s3.ga34:3145
s3_store_access_key = MGE1M2JhOWxxxBkOTc
s3_store_secret_key = YTgxYThiMWFiOTliYjUzMmUwMWMwxxxyMjdiNmE
s3_store_bucket = glance
# The S3 calling format used to determine the bucket. Either subdomain
# or path can be used. (string value)
#s3_store_bucket_url_format =



subdomain
s3_store_bucket_url_format = path
# What size, in MB, should S3 start chunking image files and do a
# multipart upload in S3. (integer value)
#s3_store_large_object_size = 100
s3_store_large_object_size = 2000

# What multipart upload part size, in MB, should S3 use when uploading
# parts. The size must be greater than or equal to 5M. (integer value)
#s3_store_large_object_chunk_size = 10
s3_store_large_object_chunk_size = 10

Some API Logs ::

Aug/2017 01:25:51] "POST /v1/images HTTP/1.1" 201 763 0.120749
2017-08-14 01:25:51.735 18366 DEBUG glance.api.middleware.version_negotiation [req-d34c2b26-7b40-452c-8e00-c6eaefac7e30 661b5e9aa053480a8b311deb5b9689bf b20fc169510748639a312f4389f058e6 - - -] Determining version of request: PUT /v1/images/8bf4e86d-f804-4013-a4d9-f8e9fa795509 Accept: */* process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:46
2017-08-14 01:25:51.736 18366 DEBUG glance.api.middleware.version_negotiation [req-d34c2b26-7b40-452c-8e00-c6eaefac7e30 661b5e9aa053480a8b311deb5b9689bf b20fc169510748639a312f4389f058e6 - - -] Using url versioning process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:58
2017-08-14 01:25:51.737 18366 DEBUG glance.api.middleware.version_negotiation [req-d34c2b26-7b40-452c-8e00-c6eaefac7e30 661b5e9aa053480a8b311deb5b9689bf b20fc169510748639a312f4389f058e6 - - -] Matched version: v1 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:70
2017-08-14 01:25:51.738 18366 DEBUG glance.api.middleware.version_negotiation [req-d34c2b26-7b40-452c-8e00-c6eaefac7e30 661b5e9aa053480a8b311deb5b9689bf b20fc169510748639a312f4389f058e6 - - -] new path /v1/images/8bf4e86d-f804-4013-a4d9-f8e9fa795509 process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:71
2017-08-14 01:25:51.742 18366 DEBUG glance.common.client [req-55b63428-bb0a-48ee-af77-338e5514af09 661b5e9aa053480a8b311deb5b9689bf b20fc169510748639a312f4389f058e6 - - -] Constructed URL: http://0.0.0.0:9191/images/8bf4e86d-f804-4013-a4d9-f8e9fa795509 _construct_url /usr/lib/python2.7/site-packages/glance/common/client.py:398
2017-08-14 01:25:51.756 18369 DEBUG eventlet.wsgi.server [-] (18369) accepted ('10.209.105.116', 60830) server /usr/lib/python2.7/site-packages/eventlet/wsgi.py:826
2017-08-14 01:25:51.758 18369 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET /v1/images/detail Accept: */* process_request /usr/lib/python2.7/site-packages/glance/api/middleware/version_negotiation.py:46

Any Clues on this.

edit retag flag offensive close merge delete