From: Juliano Martinez Date: Thu, 31 May 2012 21:51:30 +0000 (-0300) Subject: Bug #1007153 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8894997fd059661813b995c6a3f408250af57baa;p=openstack-build%2Fneutron-build.git Bug #1007153 XS should not have the centos repo enabled by quantum this can break the system, also is possible to get the sqlalchemy from epel and avoid unneeded packages on the system. Using epel rpm and leave it disabled after use Change-Id: If6673e59afc545e51df3625d8259ec3fca9aaefb --- diff --git a/quantum/plugins/openvswitch/agent/xenserver_install.sh b/quantum/plugins/openvswitch/agent/xenserver_install.sh index bc54e4644..a0a2a6f70 100755 --- a/quantum/plugins/openvswitch/agent/xenserver_install.sh +++ b/quantum/plugins/openvswitch/agent/xenserver_install.sh @@ -7,14 +7,12 @@ if [ ! -d /etc/xapi.d/plugins ]; then exit 1 fi +rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm +yum --enablerepo=epel -y install python-sqlalchemy0.5 +yum --enablerepo=base -y install MySQL-python -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 - - +sed -i 's/enabled=1/enabled=0' /etc/yum.repos.d/epel.repo cp ovs_quantum_agent.py /etc/xapi.d/plugins cp ovs_quantum_plugin.ini /etc/xapi.d/plugins