Skip to content

Commit

Permalink
Bug #1007153
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ncode authored and Gary Kotton committed Jun 11, 2012
1 parent 718c6f1 commit 2dc269c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions quantum/plugins/openvswitch/agent/xenserver_install.sh
Expand Up @@ -7,10 +7,12 @@ if [ ! -d /etc/xapi.d/plugins ]; then
exit 1
fi

sed -i -e 's/enabled=0/enabled=1/' /etc/yum.repos.d/CentOS-Base.repo
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

yum -y install python-setuptools gcc gcc-c++ MySQL-python
easy_install pip && pip install sqlalchemy
yum --enablerepo=epel -y install python-sqlalchemy0.5
yum --enablerepo=base -y install MySQL-python

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
Expand Down

0 comments on commit 2dc269c

Please sign in to comment.