April 2018
Intermediate to advanced
280 pages
8h 37m
English
We must first create the connection object as explained in the previous section. The VM images stored in the Glance database can be listed simply by iterating over the list by referring to the sub-class compute of the connection object and invoking the images() function.
This function returns a list of all the VM images present in the Glance database in your project:
# Import the OpenStack connection class from the SDKfrom openstack import connection# Create a connection object by calling the constructor and pass the security informationconn = connection.Connection(auth_url="http://192.168.0.106/identity",project_name="demo",username="admin",password="secret",user_domain_id="default",project_domain_id="default")# Iterate through ...