Skip to content

Commit

Permalink
Bug #994758
Browse files Browse the repository at this point in the history
Work around this bug by installing the sqlalchemy from pip installer.
(fix)

Change-Id: I464080e433b4cad71da4510fb95dd5f902da0616
  • Loading branch information
Piotr Siwczak authored and Gary Kotton committed Jun 11, 2012
1 parent b226e0c commit 718c6f1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions quantum/plugins/openvswitch/agent/xenserver_install.sh
Expand Up @@ -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
Expand Down

0 comments on commit 718c6f1

Please sign in to comment.