Browse code

Remove default quantum-keystoneclient dep.

* Don't automatically install q-cli with horizon
* Always install q-cli if ENABLED_SERVICES includes 'quantum'
* Completely remove quantum config from horizon (there is no quantum+horizon in essex)

Change-Id: I0897437326abd757b6c792fd6ec946fa6e7981c9

Anthony Young authored on 2012/03/16 03:27:13
Showing 1 changed files
... ...
@@ -651,7 +651,7 @@ if is_service_enabled q-svc; then
651 651
     # quantum
652 652
     git_clone $QUANTUM_REPO $QUANTUM_DIR $QUANTUM_BRANCH
653 653
 fi
654
-if is_service_enabled q-svc horizon; then
654
+if is_service_enabled quantum; then
655 655
     git_clone $QUANTUM_CLIENT_REPO $QUANTUM_CLIENT_DIR $QUANTUM_CLIENT_BRANCH
656 656
 fi
657 657
 
... ...
@@ -688,7 +688,7 @@ fi
688 688
 if is_service_enabled q-svc; then
689 689
     cd $QUANTUM_DIR; sudo python setup.py develop
690 690
 fi
691
-if is_service_enabled q-svc horizon; then
691
+if is_service_enabled quantum; then
692 692
     cd $QUANTUM_CLIENT_DIR; sudo python setup.py develop
693 693
 fi
694 694
 if is_service_enabled m-svc; then
... ...
@@ -784,9 +784,6 @@ if is_service_enabled horizon; then
784 784
     # Install apache2, which is NOPRIME'd
785 785
     apt_get install apache2 libapache2-mod-wsgi
786 786
 
787
-    # Link to quantum client directory.
788
-    rm -fr ${HORIZON_DIR}/openstack_dashboard/quantum
789
-    ln -s ${QUANTUM_CLIENT_DIR}/quantum ${HORIZON_DIR}/openstack_dashboard/quantum
790 787
 
791 788
     # Remove stale session database.
792 789
     rm -f $HORIZON_DIR/openstack_dashboard/local/dashboard_openstack.sqlite3
... ...
@@ -795,11 +792,6 @@ if is_service_enabled horizon; then
795 795
     local_settings=$HORIZON_DIR/openstack_dashboard/local/local_settings.py
796 796
     cp $FILES/horizon_settings.py $local_settings
797 797
 
798
-    # Enable quantum in dashboard, if requested
799
-    if is_service_enabled quantum; then
800
-        sudo sed -e "s,QUANTUM_ENABLED = False,QUANTUM_ENABLED = True,g" -i $local_settings
801
-    fi
802
-
803 798
     # Initialize the horizon database (it stores sessions and notices shown to
804 799
     # users).  The user system is external (keystone).
805 800
     cd $HORIZON_DIR