import pyrax
hpcloud_auth_endpoint = "http://127.0.0.1:5000/v2.0/"
#hpcloud_region = "region-b.geo-1"
hpcloud_project_id = "68413f8f2da346c9a4492517485d493e" # (Numerical) ProjectID
hpcloud_username = "nova" # HP Cloud Username, same as Horizon Login
hpcloud_password = "ubuntu" # HP Cloud Password, Same as Horizon Password
#Pyrax Settings
pyrax.set_setting("identity_type", "keystone")
pyrax.set_setting("tenant_id", hpcloud_project_id)
pyrax.set_setting("auth_endpoint", hpcloud_auth_endpoint)
#pyrax.set_setting("region", hpcloud_region)
pyrax.set_credentials(hpcloud_username, hpcloud_password)
# Example - lists all containers in specified region
#cf = pyrax.cloudfiles
#print "list_containers:", cf.list_containers()
#print "get_all_containers:", cf.get_all_containers()
print pyrax.cloudservers
#import pdb; pdb.set_trace() ### XXX BREAKPOINT
print cs.images.list()
hpcloud_auth_endpoint = "http://127.0.0.1:5000/v2.0/"
#hpcloud_region = "region-b.geo-1"
hpcloud_project_id = "68413f8f2da346c9a4492517485d493e" # (Numerical) ProjectID
hpcloud_username = "nova" # HP Cloud Username, same as Horizon Login
hpcloud_password = "ubuntu" # HP Cloud Password, Same as Horizon Password
#Pyrax Settings
pyrax.set_setting("identity_type", "keystone")
pyrax.set_setting("tenant_id", hpcloud_project_id)
pyrax.set_setting("auth_endpoint", hpcloud_auth_endpoint)
#pyrax.set_setting("region", hpcloud_region)
pyrax.set_credentials(hpcloud_username, hpcloud_password)
# Example - lists all containers in specified region
#cf = pyrax.cloudfiles
#print "list_containers:", cf.list_containers()
#print "get_all_containers:", cf.get_all_containers()
print pyrax.cloudservers
#import pdb; pdb.set_trace() ### XXX BREAKPOINT
print cs.images.list()