]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Bug #1007153
authorJuliano Martinez <juliano.martinez@locaweb.com.br>
Thu, 31 May 2012 21:51:30 +0000 (18:51 -0300)
committerJuliano Martinez <juliano.martinez@locaweb.com.br>
Mon, 4 Jun 2012 19:09:40 +0000 (16:09 -0300)
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

quantum/plugins/openvswitch/agent/xenserver_install.sh

index bc54e4644d54e0a05ce36861e74405ace1d41800..a0a2a6f7055c73f76f66ace3f6a65c53f3751005 100755 (executable)
@@ -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