Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR: Unable to load glance-registry from configuration file /etc/glance/glance-registry-paste.ini.
- Got: LookupError("No section 'auth-context' (prefixed by 'filter') found in config /etc/glance/glance-registry-paste.ini",)
- ---------------
- glance-registry-paste.ini:
- # Default minimal pipeline
- [pipeline:glance-registry]
- pipeline = authtoken auth-context context registryapp
- # Use the following pipeline for keystone auth
- # i.e. in glance-registry.conf:
- # [paste_deploy]
- # flavor = keystone
- #
- [pipeline:glance-registry-keystone]
- pipeline = authtoken context registryapp
- [app:registryapp]
- paste.app_factory = glance.common.wsgi:app_factory
- glance.app_factory = glance.registry.api.v1:API
- [filter:context]
- context_class = glance.registry.context.RequestContext
- paste.filter_factory = glance.common.wsgi:filter_factory
- glance.filter_factory = glance.common.context:ContextMiddleware
- [filter:authtoken]
- paste.filter_factory = keystone.middleware.auth_token:filter_factory
- 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://127.0.0.1:5000/
- admin_tenant_name = XXX
- admin_user = XXX
- admin_password = XXX
- -------------------------------------
- glance-registry.conf:
- [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
- debug = True
- # 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/glance/glance-registry.log
- # Send logs to syslog (/dev/log) instead of to file specified by `log_file`
- use_syslog = False
- # SQLAlchemy connection string for the reference implementation
- # registry server. Any valid SQLAlchemy connection string is fine.
- # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
- #sql_connection = sqlite:////var/lib/glance/glance.sqlite
- sql_connection = mysql://glance:XXX@172.16.1.3/glance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement