File glance-2011.3.patch of Package openstack-glance
Index: etc/glance-api.conf
===================================================================
--- etc/glance-api.conf.orig
+++ etc/glance-api.conf
@@ -132,9 +132,9 @@ image_cache_stall_timeout = 86400
delayed_delete = False
[pipeline:glance-api]
-pipeline = versionnegotiation context apiv1app
+# pipeline = versionnegotiation context apiv1app
# NOTE: use the following pipeline for keystone
-# pipeline = versionnegotiation authtoken context apiv1app
+pipeline = versionnegotiation authtoken context apiv1app
# To enable Image Cache Management API replace pipeline with below:
# pipeline = versionnegotiation context imagecache apiv1app
@@ -165,7 +165,7 @@ service_protocol = http
service_host = 127.0.0.1
service_port = 5000
auth_host = 127.0.0.1
-auth_port = 5001
+auth_port = 35357
auth_protocol = http
auth_uri = http://127.0.0.1:5000/
admin_token = 999888777666
Index: etc/glance-registry.conf
===================================================================
--- etc/glance-registry.conf.orig
+++ etc/glance-registry.conf
@@ -21,7 +21,7 @@ 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:///glance.sqlite
+sql_connection = sqlite:////var/lib/glance/glance.sqlite
# Period in seconds after which SQLAlchemy should reestablish its connection
# to the database.
@@ -41,9 +41,9 @@ api_limit_max = 1000
limit_param_default = 25
[pipeline:glance-registry]
-pipeline = context registryapp
+# pipeline = context registryapp
# NOTE: use the following pipeline for keystone
-# pipeline = authtoken keystone_shim context registryapp
+pipeline = authtoken keystone_shim context registryapp
[app:registryapp]
paste.app_factory = glance.registry.server:app_factory
@@ -58,7 +58,7 @@ service_protocol = http
service_host = 127.0.0.1
service_port = 5000
auth_host = 127.0.0.1
-auth_port = 5001
+auth_port = 35357
auth_protocol = http
auth_uri = http://127.0.0.1:5000/
admin_token = 999888777666
Index: etc/glance-scrubber.conf
===================================================================
--- etc/glance-scrubber.conf.orig
+++ etc/glance-scrubber.conf
@@ -24,7 +24,7 @@ wakeup_time = 300
# 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:///glance.sqlite
+sql_connection = sqlite:////var/lib/glance/glance.sqlite
# Period in seconds after which SQLAlchemy should reestablish its connection
# to the database.