eaa3716838
This commit was bulk generated and pushed by the OpenDev sysadmins as a part of the Git hosting and code review systems migration detailed in these mailing list posts: http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html Attempts have been made to correct repository namespaces and hostnames based on simple pattern matching, but it's possible some were updated incorrectly or missed entirely. Please reach out to us via the contact information listed at https://opendev.org/ with any questions you may have. |
||
---|---|---|
debian | ||
doc | ||
etc | ||
ord | ||
ranger_agent_tempest_tests | ||
releasenotes | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.testr.conf | ||
AUTHORS | ||
CHANGES | ||
Dockerfile | ||
HACKING.rst | ||
MANIFEST.in | ||
Makefile | ||
README.rst | ||
babel.cfg | ||
bandit.yaml | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
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
- You can include ranger-agent repository in local.conf when running devstack.
-
enable_plugin ranger-agent https://git.openstack.org/openstack/ranger-agent
- 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:
- $ cd ranger-agent
- 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.
- $ sudo docker build -t ranger-agent .
- $ 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
- This docker container will be used by helm chart to deploy ranger-agent.
Manual: ------
- $ cd ranger-agent/tools
- Run ./ranger-agent-db.sh for setting up the database.
- Run ./with_venv.sh.
- Run ./run_ranger_agent.sh and it should have ranger-agent running.
- If run_ranger_agent.sh is not running properly, please do the following:
-
- cd to the root folder.
- source localrc
- sudo -H pip install -r requirements.txt
- sudo python setup.py install
- sudo nohup ord-dbsync > /dev/null 2>&1 &
- sudo nohup ord-engine > /dev/null 2>&1 &
- If you want to reinstall and run ranger-agent again, make sure you run ./clear_install_files.sh to remove previous installation files.