A Resource Distributor API Framework
Go to file
jh629g a376a02e2e Create editable Ranger-Agent Configuration
When ranger-agent is deployed in kubernetes,
the configuration becomes uneditable without
editing secrets and restarting the pod.
This patchset will add configuration to the
database so that values can be overriden as
needed to serve development needs. This
includes such needs as altering logging level
and changing the ranger site which ranger-agent
points at.

Change-Id: Id8b9f16668914e3c071639359d33aba0eee076c2
2020-05-26 17:50:10 +00:00
debian Updated ranger-agent README and added tempest and debian directories 2017-11-06 12:15:02 -05:00
doc Merge Python3 branch 2019-10-29 14:26:10 -05:00
etc Ranger-Agent: Update heat send logic 2019-11-19 15:24:01 +00:00
ord Create editable Ranger-Agent Configuration 2020-05-26 17:50:10 +00:00
ranger_agent_tempest_tests Updated ranger-agent README and added tempest and debian directories 2017-11-06 12:15:02 -05:00
releasenotes Merge Python3 branch 2019-10-29 14:26:10 -05:00
tools Ranger-Agent Add Image Build & Publish 2019-11-21 17:14:29 -06:00
.coverage Ranger-Agent: Update heat send logic 2019-11-19 15:24:01 +00:00
.coveragerc Add coverage to ranger-agent 2017-08-15 13:46:15 -07:00
.gitignore Create editable Ranger-Agent Configuration 2020-05-26 17:50:10 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:50:36 +00:00
.stestr.conf Ranger-Agent: Update heat send logic 2019-11-19 15:24:01 +00:00
.zuul.yaml Ranger Agent add tag and push of latest 2019-11-22 11:46:25 -06:00
AUTHORS Create editable Ranger-Agent Configuration 2020-05-26 17:50:10 +00:00
babel.cfg Intial Commit 2017-07-26 16:16:49 -05:00
bandit.yaml Bandit Scans for the ranger-agent 2019-01-09 23:31:07 +05:30
ChangeLog Create editable Ranger-Agent Configuration 2020-05-26 17:50:10 +00:00
CHANGES Intial Commit 2017-07-26 16:16:49 -05:00
Dockerfile Dockerfile fix modular variable 2020-01-22 13:37:13 -06:00
HACKING.rst Fix link in HACKING.rst 2018-11-16 08:50:34 +08:00
Makefile create new tagging method in ranger-agent makefile 2020-01-23 13:39:21 -06:00
MANIFEST.in Intial Commit 2017-07-26 16:16:49 -05:00
README.rst Replace openstack.org git:// URLs with https:// 2019-03-24 20:36:00 +00:00
requirements.txt Merge Python3 branch 2019-10-29 14:26:10 -05:00
run_tests.sh Intial Commit 2017-07-26 16:16:49 -05:00
setup.cfg Merge Python3 branch 2019-10-29 14:26:10 -05:00
setup.py change script and configuration file name to ranger-agent 2018-02-28 13:02:34 -06:00
test-requirements.txt Create editable Ranger-Agent Configuration 2020-05-26 17:50:10 +00:00
tox.ini Create editable Ranger-Agent Configuration 2020-05-26 17:50:10 +00:00

Ranger-Agent

This is the ranger-agent project. At the highest view, provides an API interface for users to move OpenStack templates from CodeCloud into OS Heat.

This project is designed to show a recommended set of modules for creating a simple API server and Engine, with a versioned API, clean separation of modules, a standard way of structuring both unit and functional tests, configuration files, and documentation.

Devstack Installation

  1. You can include ranger-agent repository in local.conf when running devstack.

    enable_plugin ranger-agent https://git.openstack.org/openstack/ranger-agent

  2. Make sure MYSQL_PASSWORD is included for creating and accessing the database.

Installation

Clone the repo and go to the tools directory.

$ git clone https://git.openstack.org/openstack/ranger-agent

Docker Container:

  1. $ cd ranger-agent
  2. Update /ranger-agent/tools/.ssh/ranger_agent with your ssh key to your git repo containing heat templates. You can clone https://github.com/ranger-agent , but pull requests won't be accepted.
  3. $ sudo docker build -t ranger-agent .
  4. $ sudo docker run -h "ranger-agent" --net host -it --privileged ranger-agent bash Creating docker image and publish will be done by deployment jobs. For Refernce and validation manually image could push using. a). $ docker login <docker_user_id> b). $ docker tag ranger-agent <docker_user_id>/ranger-agent:0.1.0 c). $ docker push <docker_user_id>/ranger-agent:0.1.0
  5. This docker container will be used by helm chart to deploy ranger-agent.

Manual: ------

  1. $ cd ranger-agent/tools
  2. Run ./ranger-agent-db.sh for setting up the database.
  3. Run ./with_venv.sh.
  4. Run ./run_ranger_agent.sh and it should have ranger-agent running.
  5. If run_ranger_agent.sh is not running properly, please do the following:
    1. cd to the root folder.
    2. source localrc
    3. sudo -H pip install -r requirements.txt
    4. sudo python setup.py install
    5. sudo nohup ord-dbsync > /dev/null 2>&1 &
    6. sudo nohup ord-engine > /dev/null 2>&1 &
  6. If you want to reinstall and run ranger-agent again, make sure you run ./clear_install_files.sh to remove previous installation files.