Troubles running run_tests.sh in OpenStack Nova

I`ve got an error messages while going to run tests in Nova.
So solution is next:
1. Create a development environment.
    Run:
sudo apt-get install python-dev libssl-dev python-pip git-core libxml2-dev libxslt-dev pkg-config libffi-dev

    Than (for Ubuntu):
sudo apt-get build-dep python-mysqldb
2. Create a virtual environment and install dependencies:

./run_tests.sh
In case of an error:

source .venv/bin/activate
Than:
pip install -r requirements.txt && pip install -r test-requirements.txt
It is possible receive error related to PostgreSQL module absence in some cases. So run:

sudo apt-get install libpq-dev
That`s all:)

Comments

Popular posts from this blog

Install Kubeflow locally

RabbitMQ and OpenShift