Install dependencies while installing valence

install_valence.sh doesn't install dependencies from requirements.txt,
hence failing to start the service. This commit automate the installation
of dependencies too while running the script

Change-Id: I3b0d0766436161018d4686d8d3795f513232798a
Closes-Bug: #1640021
This commit is contained in:
Anusha Ramineni 2016-11-08 10:08:34 +05:30
parent da241b473f
commit 457a17b5d8
3 changed files with 12 additions and 11 deletions

View File

@ -28,25 +28,22 @@ Valence installation
``$ git clone https://git.openstack.org/openstack/rsc``
3. Install all necessary software pre-requisites using the pip requirements file.
``$ pip install -r requirements.txt``
5. Execute the 'install_valence.sh' file the Valence root directory.
3. Execute the 'install_valence.sh' file present in the Valence root directory.
The install script will automatically install the dependencies listed in the requirements.txt file.
``$ sudo bash install_valence.sh``
6. Check the values in valence.conf located at /etc/valence/valence.conf
4. Check the values in valence.conf located at /etc/valence/valence.conf
``set the ip/credentials of podm for which this Valence will interact``
7. Check the PYTHON_HOME and other variables in /etc/init/valence.conf
5. Check the PYTHON_HOME and other variables in /etc/init/valence.conf
8. Start valence service
6. Start valence service
``$ sudo service valence start``
9. Logs are located at /var/logs/valence/
7. Logs are located at /var/logs/valence/
****************
GUI installation

View File

@ -38,10 +38,14 @@ cp etc/valence/valence.conf.sample /etc/valence/valence.conf
mkdir /var/log/valence
chown ${USER}:${USER} /var/log/valence
echo "Installing dependencies from requirements.txt" >> $install_log
pip install -r requirements.txt
echo "Invoking setup.py" >> $install_log
python setup.py install
if [ $? -ne 0 ]; then
echo "ERROR: setup.py failed. Please fix the error and retry."
echo "ERROR: setup.py failed. Please check $install_log for details.
Please fix the error and retry."
exit
fi

View File

@ -5,7 +5,7 @@ description-file =
README.rst
author = Intel Corporation
author-email = openstack-dev@lists.openstack.org
home-page = https://launchpad.net/plasma
home-page = https://launchpad.net/openstack-valence
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology