installing glance with swift backend
I am trying to configure glance to use swift.I have installed swift based on the instructions http://
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
# 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/
# Send logs to syslog (/dev/log) instead of to file specified by `log_file`
use_syslog = False
# ============ Filesystem Store Options =======
# Directory that the Filesystem backend store
# writes image data to
filesystem_
# ============ Swift Store Options =======
swift_store_
# User to authenticate against the Swift authentication service
swift_store_user = system:root
# Auth key for the user authenticating against the
# Swift authentication service
swift_store_key = testpass
# 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_
# Whether to use ServiceNET to communicate with the Swift storage servers.
# (If you aren't RACKSPACE, leave this False!)
#
# To use ServiceNET for authentication, prefix hostname of
# `swift_
# Ex. https:/
swift_enable_snet = False
# ============ Image Cache Options =======
image_cache_enabled = False
# Directory that the Image Cache writes data to
# Make sure this is also set in glance-pruner.conf
image_cache_datadir = /var/lib/
# Number of seconds after which we should consider an incomplete image to be
# stalled and eligible for reaping
image_cache_
# ============ S3 Store Options =======
# Address where the S3 authentication service lives
s3_store_host = 127.0.0.
# User to authenticate against the S3 authentication service
s3_store_access_key = <20-char AWS access key>
# Auth key for the user authenticating against the
# S3 authentication service
s3_store_secret_key = <40-char AWS secret key>
# Container within the account that the account should use
# for storing images in S3. Note that S3 has a flat namespace,
# so you need a unique bucket name for your glance images. An
# easy way to do this is append your AWS access key to "glance".
# S3 buckets in AWS *must* be lowercased, so remember to lowercase
# your AWS access key if you use it in your bucket name below!
s3_store_bucket = <lowercased 20-char aws access key>glance
# Do we create the bucket if it does not exist?
s3_store_
# ============ Delayed Delete Options =======
# Turn on/off delayed delete
delayed_delete = False
[pipeline:
pipeline = versionnegotiation context apiv1app
# To enable Image Cache Management API replace pipeline with below:
# pipeline = versionnegotiation imagecache apiv1app
[pipeline:versions]
pipeline = versionsapp
[app:versionsapp]
paste.app_factory = glance.
[app:apiv1app]
# ============ Delayed Delete Options =======
# Turn on/off delayed delete
delayed_delete = False
[pipeline:
pipeline = versionnegotiation context apiv1app
# To enable Image Cache Management API replace pipeline with below:
# pipeline = versionnegotiation imagecache apiv1app
[pipeline:versions]
pipeline = versionsapp
[app:versionsapp]
paste.app_factory = glance.
[app:apiv1app]
paste.app_factory = glance.
[filter:
paste.filter_
[filter:imagecache]
paste.filter_
[filter:context]
paste.filter_
When I run :
glance-api glance-api.conf --debug
I get :
Traceback (most recent call last):
File "/usr/bin/
server.
File "/usr/lib/
socket = eventlet.
File "/usr/lib/
sock.bind(addr)
File "<string>", line 1, in bind
socket.error: [Errno 98] Address already in use
The log :
2011-10-06 14:10:26 DEBUG [glance-api] *******
2011-10-06 14:10:26 DEBUG [glance-api] Configuration options gathered from config file:
2011-10-06 14:10:26 DEBUG [glance-api] /etc/glance/
2011-10-06 14:10:26 DEBUG [glance-api] =======
2011-10-06 14:10:26 DEBUG [glance-api] bind_host 0.0.0.0
2011-10-06 14:10:26 DEBUG [glance-api] bind_port 9292
2011-10-06 14:10:26 DEBUG [glance-api] debug True
2011-10-06 14:10:26 DEBUG [glance-api] default_store swift
2011-10-06 14:10:26 DEBUG [glance-api] delayed_delete False
2011-10-06 14:10:26 DEBUG [glance-api] filesystem_
2011-10-06 14:10:26 DEBUG [glance-api] image_cache_datadir /var/lib/
2011-10-06 14:10:26 DEBUG [glance-api] image_cache_enabled False
2011-10-06 14:10:26 DEBUG [glance-api] image_cache_
2011-10-06 14:10:26 DEBUG [glance-api] log_file /var/log/
2011-10-06 14:10:26 DEBUG [glance-api] registry_host 0.0.0.0
2011-10-06 14:10:26 DEBUG [glance-api] registry_port 9191
2011-10-06 14:10:26 DEBUG [glance-api] s3_store_access_key <20-char AWS access key>
2011-10-06 14:10:26 DEBUG [glance-api] s3_store_bucket <lowercased 20-char aws access key>glance
2011-10-06 14:10:26 DEBUG [glance-api] s3_store_
2011-10-06 14:10:26 DEBUG [glance-api] s3_store_host 127.0.0.
2011-10-06 14:10:26 DEBUG [glance-api] s3_store_secret_key <40-char AWS secret key>
2011-10-06 14:10:26 DEBUG [glance-api] swift_enable_snet False
2011-10-06 14:10:26 DEBUG [glance-api] swift_store_
2011-10-06 14:10:26 DEBUG [glance-api] swift_store_
2011-10-06 14:10:26 DEBUG [glance-api] swift_store_
2011-10-06 14:10:26 DEBUG [glance-api] swift_store_key testpass
2011-10-06 14:10:26 DEBUG [glance-api] swift_store_user system:root
2011-10-06 14:10:26 DEBUG [glance-api] use_syslog False
2011-10-06 14:10:26 DEBUG [glance-api] verbose True
2011-10-06 14:10:26 DEBUG [glance-api] *******
2011-10-06 14:10:26 DEBUG [routes.middleware] Initialized with method overriding = True, and path info altering = True
The IP address is the proxy ip where the authentication is done. Can someone please help me , I am not sure what is causing the problem.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Glance Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- chistopher
- Solved:
- Last query:
- Last reply: