Change-Id: Iaf1848ecabf100171f741fde0efee5d8f65b7795
Fixes: Bug #1214921
| ... | ... |
@@ -577,7 +577,7 @@ function _configure_neutron_metadata_agent() {
|
| 577 | 577 |
iniset $Q_META_CONF_FILE DEFAULT nova_metadata_ip $Q_META_DATA_IP |
| 578 | 578 |
iniset $Q_META_CONF_FILE DEFAULT root_helper "$Q_RR_COMMAND" |
| 579 | 579 |
|
| 580 |
- _neutron_setup_keystone $Q_META_CONF_FILE DEFAULT True True |
|
| 580 |
+ _neutron_setup_keystone $Q_META_CONF_FILE DEFAULT True True True |
|
| 581 | 581 |
|
| 582 | 582 |
} |
| 583 | 583 |
|
| ... | ... |
@@ -690,11 +690,16 @@ function _neutron_setup_keystone() {
|
| 690 | 690 |
local section=$2 |
| 691 | 691 |
local use_auth_url=$3 |
| 692 | 692 |
local skip_auth_cache=$4 |
| 693 |
+ local use_service_port=$5 |
|
| 694 |
+ local keystone_port=$KEYSTONE_AUTH_PORT |
|
| 695 |
+ if [[ -n $use_service_port ]]; then |
|
| 696 |
+ keystone_port=$KEYSTONE_SERVICE_PORT |
|
| 697 |
+ fi |
|
| 693 | 698 |
if [[ -n $use_auth_url ]]; then |
| 694 |
- iniset $conf_file $section auth_url "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_AUTH_HOST:$KEYSTONE_AUTH_PORT/v2.0" |
|
| 699 |
+ iniset $conf_file $section auth_url "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_AUTH_HOST:$keystone_port/v2.0" |
|
| 695 | 700 |
else |
| 696 | 701 |
iniset $conf_file $section auth_host $KEYSTONE_SERVICE_HOST |
| 697 |
- iniset $conf_file $section auth_port $KEYSTONE_AUTH_PORT |
|
| 702 |
+ iniset $conf_file $section auth_port $keystone_port |
|
| 698 | 703 |
iniset $conf_file $section auth_protocol $KEYSTONE_SERVICE_PROTOCOL |
| 699 | 704 |
fi |
| 700 | 705 |
iniset $conf_file $section admin_tenant_name $SERVICE_TENANT_NAME |