Browse code

Merge "use keystone service port instead of admin port"

Jenkins authored on 2013/08/29 04:13:39
Showing 1 changed files
... ...
@@ -586,7 +586,7 @@ function _configure_neutron_metadata_agent() {
586 586
     iniset $Q_META_CONF_FILE DEFAULT nova_metadata_ip $Q_META_DATA_IP
587 587
     iniset $Q_META_CONF_FILE DEFAULT root_helper "$Q_RR_COMMAND"
588 588
 
589
-    _neutron_setup_keystone $Q_META_CONF_FILE DEFAULT True True
589
+    _neutron_setup_keystone $Q_META_CONF_FILE DEFAULT True True True
590 590
 
591 591
 }
592 592
 
... ...
@@ -699,11 +699,16 @@ function _neutron_setup_keystone() {
699 699
     local section=$2
700 700
     local use_auth_url=$3
701 701
     local skip_auth_cache=$4
702
+    local use_service_port=$5
703
+    local keystone_port=$KEYSTONE_AUTH_PORT
704
+    if [[ -n $use_service_port ]]; then
705
+        keystone_port=$KEYSTONE_SERVICE_PORT
706
+    fi
702 707
     if [[ -n $use_auth_url ]]; then
703
-        iniset $conf_file $section auth_url "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_AUTH_HOST:$KEYSTONE_AUTH_PORT/v2.0"
708
+        iniset $conf_file $section auth_url "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_AUTH_HOST:$keystone_port/v2.0"
704 709
     else
705 710
         iniset $conf_file $section auth_host $KEYSTONE_SERVICE_HOST
706
-        iniset $conf_file $section auth_port $KEYSTONE_AUTH_PORT
711
+        iniset $conf_file $section auth_port $keystone_port
707 712
         iniset $conf_file $section auth_protocol $KEYSTONE_SERVICE_PROTOCOL
708 713
     fi
709 714
     iniset $conf_file $section admin_tenant_name $SERVICE_TENANT_NAME