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:
parent
da241b473f
commit
457a17b5d8
15
README.rst
15
README.rst
@ -28,25 +28,22 @@ Valence installation
|
|||||||
|
|
||||||
``$ git clone https://git.openstack.org/openstack/rsc``
|
``$ git clone https://git.openstack.org/openstack/rsc``
|
||||||
|
|
||||||
3. Install all necessary software pre-requisites using the pip requirements file.
|
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.
|
||||||
``$ pip install -r requirements.txt``
|
|
||||||
|
|
||||||
5. Execute the 'install_valence.sh' file the Valence root directory.
|
|
||||||
|
|
||||||
``$ sudo bash install_valence.sh``
|
``$ 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``
|
``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``
|
``$ sudo service valence start``
|
||||||
|
|
||||||
9. Logs are located at /var/logs/valence/
|
7. Logs are located at /var/logs/valence/
|
||||||
|
|
||||||
****************
|
****************
|
||||||
GUI installation
|
GUI installation
|
||||||
|
@ -38,10 +38,14 @@ cp etc/valence/valence.conf.sample /etc/valence/valence.conf
|
|||||||
mkdir /var/log/valence
|
mkdir /var/log/valence
|
||||||
chown ${USER}:${USER} /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
|
echo "Invoking setup.py" >> $install_log
|
||||||
python setup.py install
|
python setup.py install
|
||||||
if [ $? -ne 0 ]; then
|
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
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ description-file =
|
|||||||
README.rst
|
README.rst
|
||||||
author = Intel Corporation
|
author = Intel Corporation
|
||||||
author-email = openstack-dev@lists.openstack.org
|
author-email = openstack-dev@lists.openstack.org
|
||||||
home-page = https://launchpad.net/plasma
|
home-page = https://launchpad.net/openstack-valence
|
||||||
classifier =
|
classifier =
|
||||||
Environment :: OpenStack
|
Environment :: OpenStack
|
||||||
Intended Audience :: Information Technology
|
Intended Audience :: Information Technology
|
||||||
|
Loading…
x
Reference in New Issue
Block a user