Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Hybrid Cloud for Developers

You're reading from   Hybrid Cloud for Developers Develop and deploy cost-effective applications on the AWS and OpenStack platforms with ease

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781788830874
Length 280 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Hirway Hirway
Author Profile Icon Hirway
Hirway
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Title Page
Dedication
Packt Upsell
Contributors
Preface
1. Introducing Hybrid Clouds FREE CHAPTER 2. Exploring AWS Cloud 3. Exploring OpenStack Private Cloud 4. Developing AWS Cloud Applications 5. Developing OpenStack Applications 6. Cloud Migration 7. Hybrid Cloud Best Practices 8. Monitoring and Troubleshooting Hybrid Cloud 9. Hybrid Cloud Security 1. Other Books You May Enjoy Index

Developing block storage applications


The OpenStack block storage service (Cinder) provides the ability to create raw volumes on the underlying disk. The block storage service provides a pluggable architecture wherein you can attach vendor-specific plugins for creation and manipulation of volumes. By default, the block storage service uses Linux's native Logical Volume Manager driver. In other words, when a volume is created using the block storage service, an LVM volume is created underneath.

Let's see what the Python SDK offers for interacting with the block storage service.

Volumes

Let's write application programs to create and delete OpenStack volumes. 

Creating a volume

An OpenStack volume can be created by invoking the create_volume() function call and passing properties of the volume to be created. These properties are defined using a Python dictionary.

The following properties can be defined using the Python dictionary. Only the size parameter is mandatory and all others are optional:

  • id...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images