glance service can't start up ,GOT KEYERROR(filecoder)
when i start up the glance service, the following info came out and nothing happen.
root@cloudcontr
ERROR: Unable to load glance-api-keystone from configuration file /etc/glance/
Got: KeyError(
my glance-
root@cloudcontr
# Default minimal pipeline
[pipeline:
#pipeline = versionnegotiation context rootapp
pipeline = versionnegotiation unauthenticated
# Use the following pipeline for keystone auth
# i.e. in glance-api.conf:
# [paste_deploy]
# flavor = keystone
#
[pipeline:
#pipeline = versionnegotiation authtoken context rootapp
pipeline = versionnegotiation authtoken context rootapp
# Use the following pipeline to enable transparent caching of image files
# i.e. in glance-api.conf:
# [paste_deploy]
# flavor = caching
#
#[pipeline:
#pipeline = versionnegotiation unauthenticated
# Use the following pipeline for keystone auth with caching
# i.e. in glance-api.conf:
# [paste_deploy]
# flavor = keystone+caching
#
[pipeline:
pipeline = versionnegotiation authtoken context cache rootapp
# Use the following pipeline for keystone auth with cache management
# i.e. in glance-api.conf:
# [paste_deploy]
# flavor = keystone+
#
[pipeline:
pipeline = versionnegotiation authtoken context cache cachemanage rootapp
[composite:rootapp]
use = egg:Paste#urlmap
/: apiversions
/v1: apiv1app
/v2: apiv2app
[app:apiversions]
paste.app_factory = glance.
[app:apiv1app]
paste.app_factory = glance.
[app:apiv2app]
paste.app_factory = glance.
[filter:
paste.filter_
[filter:cache]
paste.filter_
[filter:
paste.filter_
[filter:context]
paste.filter_
[filter:
paste.filter_
[filter:authtoken]
paste.filter_
service_protocol = http
service_host = 127.0.0.1
service_port = 5000
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
auth_uri = http://
admin_tenant_name = serviceTenant
admin_user = glanceUser
admin_password = glanceUser
my glance-api.conf
root@cloudcontr
[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 scheme should Glance use by default is not specified
# in a request to add a new image to Glance? Known schemes are determined
# by the known_stores option below.
# Default: 'file'
default_store = file
# List of which store classes and store class locations are
# currently known to glance at startup.
# known_stores = glance.
# glance.
# glance.
# glance.
# glance.
# Address to bind the API server
bind_host = 0.0.0.0
# Port the bind the API server to
bind_port = 9292
# 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/
# Backlog requests when creating socket
backlog = 4096
# SQLAlchemy connection string for the reference implementation
# registry server. Any valid SQLAlchemy connection string is fine.
# See: http://
sql_connection = mysql:/
# 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
"glance-api.conf" 272L, 9704C 1,1 Top
# When sending images to S3, the data will first be written to a
# temporary buffer on disk. By default the platform's temporary directory
# will be used. If required, an alternative directory can be specified here.
# s3_store_
# ============ RBD Store Options =======
# Ceph configuration file path
# If using cephx authentication, this file should
# include a reference to the right keyring
# in a client.<USER> section
rbd_store_ceph_conf = /etc/ceph/ceph.conf
# RADOS user to authenticate as (only applicable if using cephx)
rbd_store_user = glance
# RADOS pool in which images are stored
rbd_store_pool = images
# Images will be chunked into objects of this size (in megabytes).
# For best performance, this should be a power of two
rbd_store_
# ============ Delayed Delete Options =======
# Turn on/off delayed delete
delayed_delete = False
# Delayed delete time in seconds
scrub_time = 43200
# Directory that the scrubber will use to remind itself of what to delete
# Make sure this is also set in glance-
scrubber_datadir = /var/lib/
# =============== Image Cache Options =======
# Base directory that the Image Cache uses
image_cache_dir = /var/lib/
[paste_deploy]
flavor = keystone
When i use other flavors in [paste_deploy] , the same thing happen.
And when i remove authtoken from pipeline ,and glance-api works.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Glance Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Wall Lee
- Solved:
- Last query:
- Last reply: