From: Piotr Siwczak Date: Fri, 4 May 2012 18:34:57 +0000 (-0700) Subject: Bug #994758 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=c4a59c1af8136ab44e04940b65061af280bfb246;p=openstack-build%2Fneutron-build.git Bug #994758 Work around this bug by installing the sqlalchemy from pip installer. (fix) Change-Id: I464080e433b4cad71da4510fb95dd5f902da0616 --- diff --git a/quantum/plugins/openvswitch/agent/xenserver_install.sh b/quantum/plugins/openvswitch/agent/xenserver_install.sh index e49c47503..bc54e4644 100755 --- a/quantum/plugins/openvswitch/agent/xenserver_install.sh +++ b/quantum/plugins/openvswitch/agent/xenserver_install.sh @@ -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