|
|
@ -37,7 +37,7 @@ ubuntu_image_name = "Ubuntu 18.04 - Bionic Beaver - 64-bit - Cloud Based Image" |
|
|
|
# default region |
|
|
|
region_name = 'RegionOne' |
|
|
|
# domain to use, "default" for local accounts, "hsfulda" for RZ LDAP, e.g., using fdaiXXXX as auth_username |
|
|
|
domain_name = "default" |
|
|
|
# domain_name = "default" |
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
@ -46,8 +46,7 @@ def main(): |
|
|
|
auth_password = "demo" |
|
|
|
|
|
|
|
# instantiate a connection to the OpenStack private cloud |
|
|
|
# make sure to include ex_domain_name and ex_force_auth_version='3.x_password', as they are needed in our |
|
|
|
# environment |
|
|
|
# make sure to include ex_force_auth_version='3.x_password', as needed in our environment |
|
|
|
provider = get_driver(Provider.OPENSTACK) |
|
|
|
|
|
|
|
print("Opening connection to %s as %s..." % (auth_url, auth_username)) |
|
|
@ -57,13 +56,13 @@ def main(): |
|
|
|
ex_force_auth_url=auth_url, |
|
|
|
ex_force_auth_version='3.x_password', |
|
|
|
ex_tenant_name=project_name, |
|
|
|
ex_force_service_region=region_name, |
|
|
|
ex_domain_name=domain_name) |
|
|
|
ex_force_service_region=region_name) |
|
|
|
# ex_domain_name=domain_name) |
|
|
|
|
|
|
|
print("Getting images and selecting desired one...") |
|
|
|
print("=========================================================================") |
|
|
|
|
|
|
|
# get a list of images offered in the cloud context (e.g. Ubuntu 14.04, Ubuntu 16.04, cirros, ...) |
|
|
|
# get a list of images offered in the cloud context (e.g. Ubuntu 20.04, cirros, ...) |
|
|
|
images = conn.list_images() |
|
|
|
image = '' |
|
|
|
for img in images: |
|
|
|