rajdeepd / openstack-samples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openstack-samples

###Getting Started

  1. Copy openstack_env.sh.template to openstack_env.sh

  2. Make sure you updated the script openstack_env.sh with appropriate values for the variables.

  3. Execute the script to setup the environment variables

source openstack_env.sh

###Nova

API v2

Initialize the Nova Client using the following code

credentials = get_nova_credentials_v2()
nova_client = Client(**credentials)

List VMs using the following command

nova_client.servers.list()

Run the following command from openstack/lab1 folder

python -m novasamples.list_servers_v2

###Keystone

About


Languages

Language:Python 99.6%Language:Shell 0.4%