Skip to content

Commit b2330c8

Browse files
committed
Fix memcached_servers setting
By default memcached is bound to 127.0.0.1 and we have no code in place to change that. So instead of using the $SERVICE_HOST variable, we hardcode it to localhost, just as we do for the cache settings, see [1]. This also avoids a bug that occurs when $SERVICE_HOST contains an IPv6 address, as in that case it would have to be prefixed by "inet6:" [2]. [1] I95d798d122e2a95e27eb1d2c4e786c3cd844440b [2] https://bugs.launchpad.net/swift/+bug/1610064 Change-Id: I46bed8a048f4b0d669dfc65b28ddeb36963553e0 Partial-Bug: 1656329
1 parent 6c87f36 commit b2330c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/keystone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ function configure_auth_token_middleware {
450450

451451
iniset $conf_file $section cafile $SSL_BUNDLE_FILE
452452
iniset $conf_file $section signing_dir $signing_dir
453-
iniset $conf_file $section memcached_servers $SERVICE_HOST:11211
453+
iniset $conf_file $section memcached_servers localhost:11211
454454
}
455455

456456
# init_keystone() - Initialize databases, etc.

0 commit comments

Comments
 (0)