Added files to run ranger-agent

Added a script for running ranger-agent along with
minor changes such a requirements.txt to run setup.py
properly and added ord_db.sql to add the ord into the
database.

Change-Id: I0d2f974be8e29bdd5fbe0dc90bf4b96beed923cf
This commit is contained in:
raigax9 2017-08-31 15:41:51 -04:00
parent e73b9dd108
commit 8f7e098726
5 changed files with 29 additions and 6 deletions

View File

@ -3,18 +3,18 @@
# process, which may cause wedges in the gate later.
#
pbr!=0.7,<1.0,>=0.6
oslo.config>=1.9.3,<1.10.0 # Apache-2.0
oslo.messaging>1.8.0,<1.9.0 # Apache-2.0
oslo.serialization>=1.4.0,<1.5.0 # Apache-2.0
oslo.config>=1.9.3,<1.10.0
oslo.messaging>1.8.0,<1.9.0
oslo.serialization>=1.4.0,<1.5.0
pecan>=1.0.2
python-heatclient>=0.4.0
python-keystoneclient>=1.3.4
python-glanceclient>=0.17.3
werkzeug>=0.11.5
eventlet!=0.17.0,>=0.16.1
oslo.db>=1.7.0,<1.8.0 # Apache-2.0
oslo.log>=1.0.0,<1.1.0 # Apache-2.0
oslo.utils>=1.4.0,<1.5.0 # Apache-2.0
oslo.db>=1.7.0,<1.8.0
oslo.log>=1.0.0,<1.1.0
oslo.utils>=1.4.0,<1.5.0
pbr!=0.7,<1.0,>=0.6
SQLAlchemy<=0.9.99,>=0.9.7
sqlalchemy-migrate>=0.9.5

6
tools/clear_install_files.sh Executable file
View File

@ -0,0 +1,6 @@
cd ..
sudo rm -Rf ranger_agent.egg-info/
sudo rm -Rf build/
sudo rm -fr usr/local/lib/python2.7/dist-packages/ord*
sudo rm /etc/ord/*
sudo rm /usr/local/bin/ord-*

2
tools/ranger-agent-db.sh Executable file
View File

@ -0,0 +1,2 @@
source ~/devstack/local.conf &> /dev/null
mysql -uroot -p$MYSQL_PASSWORD < ranger-agent-db.sql &> /dev/null

View File

@ -0,0 +1,2 @@
DROP DATABASE IF EXIST ord;
CREATE DATABASE IF NOT EXIST ord;

13
tools/run_ranger_agent.sh Executable file
View File

@ -0,0 +1,13 @@
#! /usr/bin/env bash
cd ..
sudo -H pip install -r requirements.txt
sudo python setup.py install
echo ""
echo "Running ord-dbsync"
nohup ord-dbsync > /dev/null 2>&1 &
echo ""
echo "Running ord-api"
nohup ord-api > /dev/null 2>&1 &
echo ""
echo "Running ord-engine"
nohup ord-engine > /dev/null 2>&1 &