Resource Management API Framework
Go to file
stewie925 2caafdc8aa Build Ranger CLI image and fix bandit error
Create Dockerfile and Makefile for Ranger CLI.

Changes made to CLI code to account for separate URLs
for each ranger service.

Minor update to flavor code to fix error detected during
bandit scan.

Change-Id: If787e3dda4039d8755abd5dad05cacf685113565
2018-12-12 15:42:50 -08:00
doc Update document building tox target 2018-08-10 22:46:55 -05:00
etc Add flavor series p1 2018-11-28 11:45:00 -08:00
orm Build Ranger CLI image and fix bandit error 2018-12-12 15:42:50 -08:00
public initial commit 2017-07-27 09:14:42 -05:00
ranger-tempest-plugin Ranger tempest changes: 2018-10-30 16:36:18 -07:00
releasenotes Add releasenotes 2018-05-08 02:07:01 -05:00
tools Ranger Changes - 2018-09-18 14:43:17 +00:00
.coveragerc Add coverage to ranger 2017-08-15 14:04:01 -07:00
.gitignore Change X-AIC-ORM to X-RANGER 2017-09-22 11:05:39 -05:00
.gitreview Added .gitreview 2017-05-29 07:18:45 +00:00
.testr.conf Set up tox to run unit tests 2017-08-09 12:44:14 -05:00
babel.cfg initial commit 2017-07-27 09:14:42 -05:00
config.py initial commit 2017-07-27 09:14:42 -05:00
Dockerfile [456932] Armada Manifest changes for configmap and endpoints 2018-09-06 17:03:20 +00:00
Dockerfile-Ranger-Client Build Ranger CLI image and fix bandit error 2018-12-12 15:42:50 -08:00
Makefile Add conditional proxy values to Makefile 2018-07-23 11:22:27 -05:00
Makefile-Ranger-Client Build Ranger CLI image and fix bandit error 2018-12-12 15:42:50 -08:00
MANIFEST.in initial commit 2017-07-27 09:14:42 -05:00
README.rst Fix Ranger issues 2018-08-20 17:14:14 +00:00
requirements.txt :[US356394] NC 1.0 - Update Ranger CLI and Keystone code for Ocata 2018-09-24 19:02:19 +00:00
setup.cfg [456932] Armada Manifest changes for configmap and endpoints 2018-09-06 17:03:20 +00:00
setup.py Cleanup Ranger config and db setup files 2018-08-24 19:53:17 +00:00
test-requirements.txt Add releasenotes 2018-05-08 02:07:01 -05:00
tox.ini Merge "Ensure the old files before build" 2018-08-29 18:09:43 +00:00

Ranger

Ranger is an OpenStack Resource Management tool capable of managing different types of clouds into one platform. Here are the following of what it provides:

  • Multi-region common resource management.
  • Light weight, stateless and interface with external self-service portals.
  • Runs on DCP.
  • Resource agents will run on LCP to orchestrate and keep resources in sync from a

    centralized repository.

Before Setting Up

Make sure ranger-agent is running before installing and running ranger since that is required for connecting with Openstack.

Devstack Installation

  1. Add the following line in local.conf to include ranger repository in your devstack.

    enable_plugin ranger git://git.openstack.org/openstack/ranger

  2. Make sure MYSQL_PASSWORD is included for creating and accessing the database.
  3. Run ./stack.sh from devstack directory.

Installation

1. Navigate to ranger/tools directory:

$ cd /opt/stack/ranger/tools

2. To make changes to the port numbers and other configurations, please go to base_config.py under

the orm folder before continuing to the next steps.

  1. Run ./ranger_create_db.sh to create ranger databases.
  2. Run ./setup_apache.sh to create conf files for each of the services to apache.
  3. Run stack_orm.sh to set up ranger.
  4. If stack_orm.sh is not running properly, navigate to /opt/stack/ranger and run the following:
    1. sudo pip install -r requirements.txt
    2. sudo python setup.py develop 2>&1 | tee $root_dir/tools/install.log

Generate ranger.conf file

$tox -e genconfig

A blank configuration file will be generated at etc/ranger.conf

Running Ranger Services

To run each of the services, type in these commands in order to run each of the services.
  • Audit: orm-audit
  • Uuidgen: orm-uuidgen
  • RDS (Resource Distributor Service): orm-rds
  • RMS (Resource Management Service): orm-rms
  • FMS (Flavor Management Service): orm-fms
  • CMS (Customer Management Service): orm-cms
  • IMS (Image Management Service): orm-ims

For RMS, FMS, CMS, and IMS to be running, Audit, Uuidgen, and RDS must also be running properly as well in order to use them.

Docker Container:

  1. $ cd ranger
  2. Update /ranger/tools/.ssh/ranger with your ssh key to your git repo containing heat templates. You can clone https://github.com/ranger , but pull requests won't be accepted.
  3. $ sudo docker build -t ranger .
  4. $ sudo docker run -h "ranger" --net host -it --privileged ranger 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 <docker_user_id>/ranger:0.1.0 c). $ docker push <docker_user_id>/ranger:0.1.0
  5. This docker container will be used by helm chart to deploy ranger.