Skip to content

Commit 84a03e0

Browse files
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
1 parent e347b99 commit 84a03e0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

stack.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ if is_service_enabled q-svc; then
651651
# quantum
652652
git_clone $QUANTUM_REPO $QUANTUM_DIR $QUANTUM_BRANCH
653653
fi
654-
if is_service_enabled q-svc horizon; then
654+
if is_service_enabled quantum; then
655655
git_clone $QUANTUM_CLIENT_REPO $QUANTUM_CLIENT_DIR $QUANTUM_CLIENT_BRANCH
656656
fi
657657

@@ -688,7 +688,7 @@ fi
688688
if is_service_enabled q-svc; then
689689
cd $QUANTUM_DIR; sudo python setup.py develop
690690
fi
691-
if is_service_enabled q-svc horizon; then
691+
if is_service_enabled quantum; then
692692
cd $QUANTUM_CLIENT_DIR; sudo python setup.py develop
693693
fi
694694
if is_service_enabled m-svc; then
@@ -784,9 +784,6 @@ if is_service_enabled horizon; then
784784
# Install apache2, which is NOPRIME'd
785785
apt_get install apache2 libapache2-mod-wsgi
786786

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
790787

791788
# Remove stale session database.
792789
rm -f $HORIZON_DIR/openstack_dashboard/local/dashboard_openstack.sqlite3
@@ -795,11 +792,6 @@ if is_service_enabled horizon; then
795792
local_settings=$HORIZON_DIR/openstack_dashboard/local/local_settings.py
796793
cp $FILES/horizon_settings.py $local_settings
797794

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-
803795
# Initialize the horizon database (it stores sessions and notices shown to
804796
# users). The user system is external (keystone).
805797
cd $HORIZON_DIR

0 commit comments

Comments
 (0)