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
| ... | ... |
@@ -450,7 +450,7 @@ function configure_auth_token_middleware {
|
| 450 | 450 |
|
| 451 | 451 |
iniset $conf_file $section cafile $SSL_BUNDLE_FILE |
| 452 | 452 |
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 |
|
| 454 | 454 |
} |
| 455 | 455 |
|
| 456 | 456 |
# init_keystone() - Initialize databases, etc. |