does glance bzr129 version support swift
Hi Everyone, I configured a virtual machine with swift using this guide:
http://
and in the cloud controller I'm using glance imaging service, here is the config file of 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 = False
[app:glance-api]
paste.app_factory = glance.
# 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 = 0.0.0.0
# Port the bind the API server to
bind_port = 9292
# Address to find the registry server
registry_host = 0.0.0.0
# 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_
[app:glance-
paste.app_factory = glance.
# Address to bind the registry server
bind_host = 0.0.0.0
# Port the bind the registry server to
bind_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/
# SQLAlchemy connection string for the reference implementation
# registry server. Any valid SQLAlchemy connection string is fine.
# See: http://
sql_connection = sqlite:
# Period in seconds after which SQLAlchemy should reestablish its connection
# to the database.
#
# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
# before MySQL can drop the connection.
sql_idle_timeout = 3600
When I tried to add an image to glance I got the following error:
glance add --verbose name="Centos 5.5 Qcow2-2-SWIFT" is_public=true disk_format=qcow2 container_
Failed to add image. Got error:
400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
Error uploading image: No module named swift.common
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
Completed in 10.5975 sec.
root@openstack-
Failed to add image. Got error:
400 Bad Request
The server could not comply with the request since it is either malformed or otherwise incorrect.
Error uploading image: No module named swift.common
Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
Completed in 4.1984 sec.
Do I have to install something else to make swift work or is not supported for the moment?
Cheers
Diego
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Glance Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Diego Lalo for more information if necessary.