]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Bug #994758
authorPiotr Siwczak <psiwczak@mirantis.com>
Fri, 4 May 2012 18:34:57 +0000 (11:34 -0700)
committerPiotr Siwczak <psiwczak@mirantis.com>
Wed, 9 May 2012 18:54:22 +0000 (11:54 -0700)
Work around this bug by installing the sqlalchemy from pip installer.
(fix)

Change-Id: I464080e433b4cad71da4510fb95dd5f902da0616

quantum/plugins/openvswitch/agent/xenserver_install.sh

index e49c47503f05d37f8b72f262a5f745d452e12744..bc54e4644d54e0a05ce36861e74405ace1d41800 100755 (executable)
@@ -7,14 +7,14 @@ if [ ! -d /etc/xapi.d/plugins ]; then
        exit 1
 fi
 
-# Make sure we have sqlalchemy-python
-rpm -qa | grep sqlalchemy-python >/dev/null 2>&1
-if [ $? -ne 0 ]; then
-        echo "sqlalchemy-python not found"
-    echo "Please enable the centos repositories and install sqlalchemy-python:"
-    echo "yum --enablerepo=base -y install sqlalchemy-python"
-    exit 1
-fi
+
+
+sed -i -e 's/enabled=0/enabled=1/' /etc/yum.repos.d/CentOS-Base.repo
+
+yum -y install python-setuptools gcc gcc-c++ MySQL-python
+easy_install pip && pip install sqlalchemy
+
+
 
 cp ovs_quantum_agent.py /etc/xapi.d/plugins
 cp ovs_quantum_plugin.ini /etc/xapi.d/plugins