Browse code

Fix bug 921845

Update stack.sh and stackrc to support new Quantum server/client
repo split.

Change-Id: Iea8df5270f765a635a444c0e39a22809473a605f

Dave Lapsley authored on 2012/01/26 07:22:15
Showing 2 changed files
... ...
@@ -184,6 +184,7 @@ NOVNC_DIR=$DEST/noVNC
184 184
 SWIFT_DIR=$DEST/swift
185 185
 SWIFT_KEYSTONE_DIR=$DEST/swift-keystone2
186 186
 QUANTUM_DIR=$DEST/quantum
187
+QUANTUM_CLIENT_DIR=$DEST/python-quantumclient
187 188
 
188 189
 # Default Quantum Plugin
189 190
 Q_PLUGIN=${Q_PLUGIN:-openvswitch}
... ...
@@ -624,6 +625,7 @@ fi
624 624
 if [[ "$ENABLED_SERVICES" =~ "q-svc" ]]; then
625 625
     # quantum
626 626
     git_clone $QUANTUM_REPO $QUANTUM_DIR $QUANTUM_BRANCH
627
+    git_clone $QUANTUM_CLIENT_REPO $QUANTUM_CLIENT_DIR $QUANTUM_CLIENT_BRANCH
627 628
 fi
628 629
 
629 630
 # Initialization
... ...
@@ -743,12 +745,9 @@ if [[ "$ENABLED_SERVICES" =~ "horizon" ]]; then
743 743
     # Install apache2, which is NOPRIME'd
744 744
     apt_get install apache2 libapache2-mod-wsgi
745 745
 
746
-    # Horizon currently imports quantum even if you aren't using it.  Instead
747
-    # of installing quantum we can create a simple module that will pass the
748
-    # initial imports
749
-    mkdir -p  $HORIZON_DIR/openstack-dashboard/quantum || true
750
-    touch $HORIZON_DIR/openstack-dashboard/quantum/__init__.py
751
-    touch $HORIZON_DIR/openstack-dashboard/quantum/client.py
746
+    # Link to quantum client directory.
747
+    rm -fr ${HORIZON_DIR}/openstack-dashboard/quantum
748
+    ln -s ${QUANTUM_CLIENT_DIR}/quantum ${HORIZON_DIR}/openstack-dashboard/quantum
752 749
 
753 750
 
754 751
     # ``local_settings.py`` is used to override horizon default settings.
... ...
@@ -1386,7 +1385,7 @@ if [[ "$ENABLED_SERVICES" =~ "q-svc" ]]; then
1386 1386
         # Make sure we're using the openvswitch plugin
1387 1387
         sed -i -e "s/^provider =.*$/provider = quantum.plugins.openvswitch.ovs_quantum_plugin.OVSQuantumPlugin/g" $QUANTUM_PLUGIN_INI_FILE
1388 1388
     fi
1389
-    screen_it q-svc "cd $QUANTUM_DIR && PYTHONPATH=.:$PYTHONPATH python $QUANTUM_DIR/bin/quantum-server $QUANTUM_DIR/etc/quantum.conf"
1389
+   screen_it q-svc "cd $QUANTUM_DIR && PYTHONPATH=.:$QUANTUM_CLIENT_DIR:$PYTHONPATH python $QUANTUM_DIR/bin/quantum-server $QUANTUM_DIR/etc/quantum.conf"
1390 1390
 fi
1391 1391
 
1392 1392
 # Quantum agent (for compute nodes)
... ...
@@ -43,6 +43,10 @@ OPENSTACKX_BRANCH=master
43 43
 QUANTUM_REPO=https://github.com/openstack/quantum
44 44
 QUANTUM_BRANCH=master
45 45
 
46
+# quantum client
47
+QUANTUM_CLIENT_REPO=https://github.com/openstack/python-quantumclient
48
+QUANTUM_CLIENT_BRANCH=master
49
+
46 50
 # CI test suite
47 51
 CITEST_REPO=https://github.com/openstack/tempest.git
48 52
 CITEST_BRANCH=master