Skip to content

Commit ecdd8fc

Browse files
committed
Remove service_ and admin_token.
- Remove cache = swift.cache as well from swift config as not needed as well. Change-Id: I39f0b7ed48e6ee8926cdc011a46fdd2d01880a89
1 parent 6aef757 commit ecdd8fc

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

files/glance-api-paste.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ glance.filter_factory = glance.common.context:ContextMiddleware
3030

3131
[filter:authtoken]
3232
paste.filter_factory = keystone.middleware.auth_token:filter_factory
33-
# FIXME(dtroyer): remove these service_* entries after auth_token is updated
34-
service_host = %KEYSTONE_SERVICE_HOST%
35-
service_port = %KEYSTONE_SERVICE_PORT%
36-
service_protocol = %KEYSTONE_SERVICE_PROTOCOL%
3733
auth_host = %KEYSTONE_AUTH_HOST%
3834
auth_port = %KEYSTONE_AUTH_PORT%
3935
auth_protocol = %KEYSTONE_AUTH_PROTOCOL%

files/glance-registry-paste.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ glance.filter_factory = glance.common.context:ContextMiddleware
1414

1515
[filter:authtoken]
1616
paste.filter_factory = keystone.middleware.auth_token:filter_factory
17-
# FIXME(dtroyer): remove these service_* entries after auth_token is updated
18-
service_host = %KEYSTONE_SERVICE_HOST%
19-
service_port = %KEYSTONE_SERVICE_PORT%
20-
service_protocol = %KEYSTONE_SERVICE_PROTOCOL%
2117
auth_host = %KEYSTONE_AUTH_HOST%
2218
auth_port = %KEYSTONE_AUTH_PORT%
2319
auth_protocol = %KEYSTONE_AUTH_PROTOCOL%

files/swift/proxy-server.conf

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ account_autocreate = true
1919
paste.filter_factory = keystone.middleware.swift_auth:filter_factory
2020
operator_roles = Member,admin
2121

22+
# NOTE(chmou): s3token middleware is not updated yet to use only
23+
# username and password.
2224
[filter:s3token]
2325
paste.filter_factory = keystone.middleware.s3_token:filter_factory
2426
service_port = %KEYSTONE_SERVICE_PORT%
@@ -29,21 +31,15 @@ auth_protocol = %KEYSTONE_AUTH_PROTOCOL%
2931
auth_token = %SERVICE_TOKEN%
3032
admin_token = %SERVICE_TOKEN%
3133

32-
[filter:tokenauth]
34+
[filter:authtoken]
3335
paste.filter_factory = keystone.middleware.auth_token:filter_factory
34-
# FIXME(dtroyer): remove these service_* entries after auth_token is updated
35-
service_port = %KEYSTONE_SERVICE_PORT%
36-
service_host = %KEYSTONE_SERVICE_HOST%
37-
auth_port = %KEYSTONE_AUTH_PORT%
3836
auth_host = %KEYSTONE_AUTH_HOST%
37+
auth_port = %KEYSTONE_AUTH_PORT%
3938
auth_protocol = %KEYSTONE_AUTH_PROTOCOL%
40-
auth_token = %SERVICE_TOKEN%
41-
# FIXME(dtroyer): remove admin_token after auth_token is updated
42-
admin_token = %SERVICE_TOKEN%
39+
auth_uri = %KEYSTONE_SERVICE_PROTOCOL%://%KEYSTONE_SERVICE_HOST%:%KEYSTONE_SERVICE_PORT%/
4340
admin_tenant_name = %SERVICE_TENANT_NAME%
4441
admin_user = %SERVICE_USERNAME%
4542
admin_password = %SERVICE_PASSWORD%
46-
cache = swift.cache
4743

4844
[filter:swift3]
4945
use = egg:swift#swift3

stack.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ if is_service_enabled swift; then
10791079
# which has some default username and password if you have
10801080
# configured keystone it will checkout the directory.
10811081
if is_service_enabled key; then
1082-
swift_auth_server="s3token tokenauth keystone"
1082+
swift_auth_server="s3token authtoken keystone"
10831083
else
10841084
swift_auth_server=tempauth
10851085
fi
@@ -1092,6 +1092,7 @@ if is_service_enabled swift; then
10921092
s,%SERVICE_TENANT_NAME%,$SERVICE_TENANT_NAME,g;
10931093
s,%SERVICE_USERNAME%,swift,g;
10941094
s,%SERVICE_PASSWORD%,$SERVICE_PASSWORD,g;
1095+
s,%KEYSTONE_SERVICE_PROTOCOL%,$KEYSTONE_SERVICE_PROTOCOL,g;
10951096
s,%SERVICE_TOKEN%,${SERVICE_TOKEN},g;
10961097
s,%KEYSTONE_SERVICE_PORT%,${KEYSTONE_SERVICE_PORT},g;
10971098
s,%KEYSTONE_SERVICE_HOST%,${KEYSTONE_SERVICE_HOST},g;

0 commit comments

Comments
 (0)