Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 666 Bytes

File metadata and controls

39 lines (25 loc) · 666 Bytes

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