Browse code

Ensures that Quantum sets the correct signing directory

Change-Id: I4f01a171f0ced73ba6b6000d225c8f5811f1874a

Gary Kotton authored on 2012/11/28 19:05:53
Showing 1 changed files
... ...
@@ -6,6 +6,7 @@ XTRACE=$(set +o | grep xtrace)
6 6
 set +o xtrace
7 7
 
8 8
 export QUANTUM_TEST_CONFIG_FILE=${QUANTUM_TEST_CONFIG_FILE:-"/etc/quantum/debug.ini"}
9
+QUANTUM_AUTH_CACHE_DIR=${QUANTUM_AUTH_CACHE_DIR:-/var/cache/quantum}
9 10
 
10 11
 # Configures keystone integration for quantum service and agents
11 12
 function quantum_setup_keystone() {
... ...
@@ -22,6 +23,12 @@ function quantum_setup_keystone() {
22 22
     iniset $conf_file $section admin_tenant_name $SERVICE_TENANT_NAME
23 23
     iniset $conf_file $section admin_user $Q_ADMIN_USERNAME
24 24
     iniset $conf_file $section admin_password $SERVICE_PASSWORD
25
+    if [[ "$KEYSTONE_TOKEN_FORMAT" == "PKI" ]]; then
26
+        iniset $conf_file $section signing_dir $QUANTUM_AUTH_CACHE_DIR
27
+        # Create cache dir
28
+        sudo mkdir -p $QUANTUM_AUTH_CACHE_DIR
29
+        sudo chown `whoami` $QUANTUM_AUTH_CACHE_DIR
30
+    fi
25 31
 }
26 32
 
27 33
 function quantum_setup_ovs_bridge() {