CloudPulse Command Line interface

Registered by Vinod Pandarinathan on 2015-05-11

Command Line interface

1. Cpulse command summary
cpulse [run | result | list] [test-type] [ext-name] [mode] [service] [log-level]
test-type - api/oper/ext/upgrade
ext-name - Extension name, applicable to extension tests only
mode - endpoint/func/comp for api-test
       infra/service for oper-test
       create/snapshot for upgrade

2. Executing a test using cpulse CLI
cpulse run test-type mode service log-level

Starts a test in the cpulse_server
Return value:
  Status - status of the test request
  start-time - Timestamp

3. Fetching status of test using cpulse CLI
cpulse result [id|latest] [time-min]
id - Returned by cpulse run, or latest for last test run
latest - Return the result of the last test run or last X min specified

Return value:
  {
     Status - status of the test request
     Result - Json structure describing the test-status
     health-index : # 0 cloud is dead, 100 cloud in good state, 50 when one galera node down
       'info' : {
            # for core-tests core/test-type/mode/service
            'name' : 'ext/ext-name/<mode>/<service'
            'id' : test-id,
            'start-time' : time,
            ## end-time can be 'running', 'started', 'waiting', if not complete
            'end-time' : time,
            'result' : {
                 'api' : { 'endpoint' : { 'keystone' : ['pass'],
                                       'glance' : ['fail', error-no, description] }
                         }
             }
       }
   }

4. Listing all supported extensions
cpulse list [runnable | all]
runnable - All installed and runnable tests for deployment
All - All installed tests
{
    'info' : {
        'core' : [ 'api', 'oper', 'upgrade'],
        'ext' : ['nagios', 'ganglia', 'ceilometer']
        }

}

Blueprint information

Status:
Started
Approver:
None
Priority:
High
Drafter:
Vinod Pandarinathan
Direction:
Needs approval
Assignee:
Anand Shanmugam
Definition:
Approved
Series goal:
Accepted for liberty
Implementation:
Good progress
Milestone target:
milestone icon liberty-1
Started by
Vinod Pandarinathan on 2015-06-19

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.