Python Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
debian
opencenterclient
redhat
tests
tools
.gitignore
LICENSE
README.md
local.conf
make-environment.sh
run_tests.sh
setup.py

README.md

Support

Issues have been disabled for this repository.
Any issues with this cookbook should be raised here:

https://github.com/rcbops/opencenter/issues

Please title the issue as follows:

[opencenter-client]: <short description of problem>

In the issue description, please include a longer description of the issue, along with any relevant log/command/error output.
If logfiles are extremely long, please place the relevant portion into the issue description, and link to a gist containing the entire logfile

Using r2 cli

Show all nodes:

r2 node show

Show details about a particular node:

r2 node show <node id>

Show all adventures:

r2 adventure show

Show details about a particular adventure:

r2 adventure show <adventure id>

Show adventures a node can execute:

r2 node show <node id> adventures

Execute an adventure on a particular node:

r2 adventure execute <adventure id> --node=<node id>

Show all tasks:

r2 task show

Show details about a particular task:

r2 task show <task id>

Override opencenter server endpoint:

OPENCENTER_ENDPOINT=http://<opencenter server>:8080 r2 node show

or:

r2 node show --endpoint=http://<opencenter server>:8080

Using opencentercli

Get help:

opencentercli --help
opencentercli node --help
opencentercli node create --help

Show all nodes:

opencentercli node list

Show details about a particular node:

opencentercli node show <node id> [ --property x.y.z ]

Move a node to a new container

opencentercli node move node_id_or_name container_id_or_name

Show all adventures:

opencentercli adventure list

Show details about a particular adventure:

opencentercli adventure show <adventure id>

Show adventures a node can execute:

opencentrecli node adventure list <node id>

Execute an adventure on a particular node:

opencentercli adventure execute <node id> <adventure id>

Show all tasks:

opencentercli task list

Show details about a particular task:

opencentercli task show <task id>

Show logs for a task

opencentercli task logs <task id>

List items that match a filter

opencentercli node filter 'id=6'

Override opencenter server endpoint:

OPENCENTER_ENDPOINT=http://<opencenter server>:8080 opencentercli node list

Or:

opencentercli --endpoint "http://<opencenter server>:8080"