[glance.api.v1.images] Error uploading image: [Errno 111] ECONNREFUSED
Hi guys I'm writing to you because I'm having a problem using glance with swift backed storage, the machine that is running the glance-api and glance-registry services is has ubuntu 10.10 64Bits and the machine that is running all swift services is also ubuntu 10.10 64Bits, here is the trace of glance-api.log:
2011-07-19 17:41:43 DEBUG [glance.
2011-07-19 17:41:43 DEBUG [glance.
2011-07-19 17:41:43 DEBUG [routes.middleware] Matched POST /images
2011-07-19 17:41:43 DEBUG [routes.middleware] Route path: '/images', defaults: {'action': u'create', 'controller': <glance.
2011-07-19 17:41:43 DEBUG [routes.middleware] Match dict: {'action': u'create', 'controller': <glance.
2011-07-19 17:41:43 DEBUG [glance.registry] Adding image metadata...
2011-07-19 17:41:43 DEBUG [glance.registry] container_format: ami
2011-07-19 17:41:43 DEBUG [glance.registry] disk_format: ami
2011-07-19 17:41:43 DEBUG [glance.registry] is_public: True
2011-07-19 17:41:43 DEBUG [glance.registry] name: Centos 5.5 32Bits Image
2011-07-19 17:41:43 DEBUG [glance.registry] size: 0
2011-07-19 17:41:43 DEBUG [glance.registry] status: queued
2011-07-19 17:41:43 DEBUG [glance.registry] Returned image metadata from call to RegistryClient.
2011-07-19 17:41:43 DEBUG [glance.registry] checksum: None
2011-07-19 17:41:43 DEBUG [glance.registry] container_format: ami
2011-07-19 17:41:43 DEBUG [glance.registry] created_at: 2011-07-
2011-07-19 17:41:43 DEBUG [glance.registry] deleted: False
2011-07-19 17:41:43 DEBUG [glance.registry] deleted_at: None
2011-07-19 17:41:43 DEBUG [glance.registry] disk_format: ami
2011-07-19 17:41:43 DEBUG [glance.registry] id: 44
2011-07-19 17:41:43 DEBUG [glance.registry] is_public: True
2011-07-19 17:41:43 DEBUG [glance.registry] location: None
2011-07-19 17:41:43 DEBUG [glance.registry] name: Centos 5.5 32Bits Image
2011-07-19 17:41:43 DEBUG [glance.registry] size: 0
2011-07-19 17:41:43 DEBUG [glance.registry] status: queued
2011-07-19 17:41:43 DEBUG [glance.registry] updated_at: None
2011-07-19 17:41:43 DEBUG [glance.
2011-07-19 17:41:43 DEBUG [glance.registry] Updating image metadata for image 44...
2011-07-19 17:41:43 DEBUG [glance.registry] status: saving
2011-07-19 17:41:43 DEBUG [glance.registry] Returned image metadata from call to RegistryClient.
2011-07-19 17:41:43 DEBUG [glance.registry] checksum: None
2011-07-19 17:41:43 DEBUG [glance.registry] container_format: ami
2011-07-19 17:41:43 DEBUG [glance.registry] created_at: 2011-07-
2011-07-19 17:41:43 DEBUG [glance.registry] deleted: False
2011-07-19 17:41:43 DEBUG [glance.registry] deleted_at: None
2011-07-19 17:41:43 DEBUG [glance.registry] disk_format: ami
2011-07-19 17:41:43 DEBUG [glance.registry] id: 44
2011-07-19 17:41:43 DEBUG [glance.registry] is_public: True
2011-07-19 17:41:43 DEBUG [glance.registry] location: None
2011-07-19 17:41:43 DEBUG [glance.registry] name: Centos 5.5 32Bits Image
2011-07-19 17:41:43 DEBUG [glance.registry] size: 0
2011-07-19 17:41:43 DEBUG [glance.registry] status: saving
2011-07-19 17:41:43 DEBUG [glance.registry] updated_at: 2011-07-
2011-07-19 17:41:43 DEBUG [glance.
2011-07-19 17:41:43 DEBUG [glance.
2011-07-19 17:42:14 ERROR [glance.
2011-07-19 17:42:14 DEBUG [glance.registry] Updating image metadata for image 44...
2011-07-19 17:42:14 DEBUG [glance.registry] status: killed
2011-07-19 17:42:14 DEBUG [glance.registry] Returned image metadata from call to RegistryClient.
2011-07-19 17:42:14 DEBUG [glance.registry] checksum: None
2011-07-19 17:42:14 DEBUG [glance.registry] container_format: ami
2011-07-19 17:42:14 DEBUG [glance.registry] created_at: 2011-07-
2011-07-19 17:42:14 DEBUG [glance.registry] deleted: False
2011-07-19 17:42:14 DEBUG [glance.registry] deleted_at: None
2011-07-19 17:42:14 DEBUG [glance.registry] disk_format: ami
2011-07-19 17:42:14 DEBUG [glance.registry] id: 44
2011-07-19 17:42:14 DEBUG [glance.registry] is_public: True
2011-07-19 17:42:14 DEBUG [glance.registry] location: None
2011-07-19 17:42:14 DEBUG [glance.registry] name: Centos 5.5 32Bits Image
2011-07-19 17:42:14 DEBUG [glance.registry] size: 0
2011-07-19 17:42:14 DEBUG [glance.registry] status: killed
2011-07-19 17:42:14 DEBUG [glance.registry] updated_at: 2011-07-
2011-07-19 17:42:35 DEBUG [eventlet.
Here is the /etc/glance/
[DEFAULT]
# Show more verbose log output (sets INFO log level output)
verbose = True
# Show debugging output in logs (sets DEBUG log level output)
debug = True
# Which backend store should Glance use by default is not specified
# in a request to add a new image to Glance? Default: 'file'
# Available choices are 'file', 'swift', and 's3'
default_store = swift
# Address to bind the API server
bind_host = 10.0.20.243
# Port the bind the API server to
bind_port = 9292
# Address to find the registry server
registry_host = 10.0.20.243
# Port the registry server is listening on
registry_port = 9191
# Log to this file. Make sure you do not set the same log
# file for both the API and registry servers!
log_file = /var/log/
# ============ Filesystem Store Options =======
# Directory that the Filesystem backend store
# writes image data to
filesystem_
# ============ Swift Store Options =======
# Address where the Swift authentication service lives
swift_store_
# User to authenticate against the Swift authentication service
swift_store_user = test:tester
# Auth key for the user authenticating against the
# Swift authentication service
swift_store_key = testing
# Container within the account that the account should use
# for storing images in Swift
swift_store_
# Do we create the container if it does not exist?
swift_store_
[pipeline:
pipeline = versionnegotiation apiv1app
[pipeline:versions]
pipeline = versionsapp
[app:versionsapp]
paste.app_factory = glance.
[app:apiv1app]
paste.app_factory = glance.
[filter:
paste.filter_
And here is the configuration of /etc/swift/
[DEFAULT]
cert_file = /etc/swift/cert.crt
key_file = /etc/swift/cert.key
bind_port = 8080
user = swift
log_facility = LOG_LOCAL1
[pipeline:main]
pipeline = healthcheck cache tempauth proxy-server
[app:proxy-server]
use = egg:swift#proxy
allow_account_
[filter:tempauth]
use = egg:swift#tempauth
user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test_tester3 = testing3
[filter:
use = egg:swift#
[filter:cache]
use = egg:swift#
This is the version of swift I have installed:
root@swift-
ii python-swift 1.4.1-0ubuntu0~
ii swift 1.4.1-0ubuntu0~
ii swift-account 1.4.1-0ubuntu0~
ii swift-container 1.4.1-0ubuntu0~
ii swift-doc 1.4.1-0ubuntu0~
ii swift-object 1.4.1-0ubuntu0~
ii swift-proxy 1.4.1-0ubuntu0~
As I said before the swift machine is running all the swift services inside it, I used a partition of 24Gb as storage and I used SAIO instructions to set it up but I used the packages of the diablo release of swift. Can anyone help me with this issue?
Cheers
Diego
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Diego Lalo
- Solved:
- Last query:
- Last reply: