ranger/orm/orm_client/ormcli
stewie925 d376b60597 Cleanup Ranger logging logic and authentication
Cleanup Ranger logging logic  and allow the following logging option:
- logging to console only
- logging to logfile only
= logging to console AND logfile

Also cleanup authentication logic as well.

Change-Id: I8e422a1c9e44c4f58078d93d4f2a5a009df91ba1
2018-09-26 13:04:13 +00:00
..
__init__.py Added orm_client codebase 2017-08-28 14:17:28 +00:00
cli_common.py Added orm_client codebase 2017-08-28 14:17:28 +00:00
cmscli.py :[US356394] NC 1.0 - Update Ranger CLI and Keystone code for Ocata 2018-09-24 19:02:19 +00:00
config.py Cleanup Ranger logging logic and authentication 2018-09-26 13:04:13 +00:00
fmscli.py :[US356394] NC 1.0 - Update Ranger CLI and Keystone code for Ocata 2018-09-24 19:02:19 +00:00
imscli.py :[US356394] NC 1.0 - Update Ranger CLI and Keystone code for Ocata 2018-09-24 19:02:19 +00:00
orm Fix config file and apache setup 2017-09-26 10:03:40 -05:00
ormcli.py Merge diverged code 2018-05-08 11:50:06 -05:00
README Added orm_client codebase 2017-08-28 14:17:28 +00:00
requirements.txt Added orm_client codebase 2017-08-28 14:17:28 +00:00
rmscli.py :[US356394] NC 1.0 - Update Ranger CLI and Keystone code for Ocata 2018-09-24 19:02:19 +00:00

How to install orm cli
======================

Ensure you have python and pip installed

> tar xvzf ormcli.tgz
> cd ormcli
> pip install -r requirements.txt


How to run orm cli
==================

cms, fms, and rms are all services that should be installed somewhere.
To access these services, you'll need their IP addresses and port numbers,
which should be supplied with the --host and --port arguments

For general help
================

> orm -h
usage: orm [-h] <service> ...

ORM REST CLI

positional arguments:
  <service>
    rms       Endpoint Discovery Service
    cms       Customer Management Service
    fms       Flavor Management Service

optional arguments:
  -h, --help  show this help message and exit

To get help on the cms subsystem
================================

> orm cms -h
usage: orm cms [-h] [--version] [--requester REQUESTER]
               [--tracking_id TRACKING_ID] [--host HOST] [--port PORT]
               [--timeout TIMEOUT]
               auth_token auth_region client <subcommand> [-h] <args> ...

positional arguments:
  auth_token            keystone user authorization token
  auth_region           keystone region authorization id
  client                client (application_id)
  <subcommand> [-h] <args>
    create_customer     datafile
    update_customer     custid datafile
    add_region          custid datafile
    delete_region       custid regionid
    add_user            custid regionid datafile
    delete_default_user
                        custid userid
    delete_user_from_region
                        custid regionid userid
    get_customer        custid

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --requester REQUESTER
                        requester (user_id)
  --tracking_id TRACKING_ID
                        tracking id
  --host HOST           hostname or ip of CMS server
  --port PORT           port number of CMS server
  --timeout TIMEOUT     request timeout in ms (default: 10000)