NOTE: !!!! Be careful and you should know what you are doing!!!!
Openstack provides command line utility which can be used to perform Openstack operations with Zerostack API endpoints. Here is the list of currently supported commands http://docs.openstack.org/developer/python-openstackclient/command-list.html
Note: Not all openstack command list can be used on Zerostack platform due to nature of the commands. Use GUI as needed.
It is recommended to install Openstack CLI in a python virtual environment, first few steps are related to setting up virtualenv.
sudo apt-get install libssl-dev libffi-dev python-dev libyaml-dev python-pip
sudo pip install virtualenv
pip install pyopenssl ndg-httpsclient pyasn1 certifi
pip install python-openstackclient
pip install python-heatclient
pip install python-neutronclient
Go to ZeroStack console and navigate to "API" tab in any project.
Download Certificate file and not the location of the certificate file
Download the Zerostackrc file (v2/v3) depending on your requirement.
Edit the zerostackrc file and update the fields as necessary.
Sample zerostackrc (V3) file
Step to run Openstack CLI
Now you should be switched to the prompt (which looks something like this (zsenv)test@ubuntu clientpy$) which has an access to the OpenStack project you authenticated with. You should be able to execute nova, neutron, cinder, glance, keystone and other commands. See example below:
(zsenv)test@ubuntu clientpy$ nova list
(zsenv)test@ubuntu clientpy$ neutron net-list
(zsenv)test@ubuntu clientpy$ glance image-list
If you want to execute "openstack" client commands, you can do so by typing (zsenv)test@ubuntu clientpy$ openstack
and get to the "openstack" CLI prompt.
(openstack) <TAB> should display list of commands
openstack server list
openstack image list
openstack token issue
Note: Use the commands with caution as what you are running here is actually probing the production environment (For which you have downloaded the zerostackrc file for)