From 718c6f1c2981496a715881772185ce9486df23a1 Mon Sep 17 00:00:00 2001 From: Piotr Siwczak Date: Fri, 4 May 2012 11:34:57 -0700 Subject: [PATCH] Bug #994758 Work around this bug by installing the sqlalchemy from pip installer. (fix) Change-Id: I464080e433b4cad71da4510fb95dd5f902da0616 --- .../plugins/openvswitch/agent/xenserver_install.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/quantum/plugins/openvswitch/agent/xenserver_install.sh b/quantum/plugins/openvswitch/agent/xenserver_install.sh index e49c47503f..990e30cc98 100755 --- a/quantum/plugins/openvswitch/agent/xenserver_install.sh +++ b/quantum/plugins/openvswitch/agent/xenserver_install.sh @@ -7,14 +7,10 @@ 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