Skip to Content
Hybrid Cloud for Developers
book

Hybrid Cloud for Developers

by Manoj Hirway
April 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
8h 37m
English
Packt Publishing
Content preview from Hybrid Cloud for Developers

Downloading a VM image 

We can download the image stored in the Glance database to your local system where the application program is running. This can be done by creating an image object by locating the image in the Glance database and then using the connection object to refer to the image class and invoking the download_image() function by passing it the image object.

The following function demonstrates this. It accepts the connection object as an input parameter and then invokes the conn.image.find_image() function to create an image object. This object represents the image to be downloaded. Next, it opens a local file for writing and then invokes the download_image() function by passing the image object to it. This function returns a ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hybrid Cloud for Architects

Hybrid Cloud for Architects

Alok Shrivastwa
OpenStack: Building a Cloud Environment

OpenStack: Building a Cloud Environment

Alok Shrivastwa, Sunil Sarat, Kevin Jackson, Cody Bunch, Egle Sigler, Tony Campbell

Publisher Resources

ISBN: 9781788830874Supplemental Content