Managing images with OpenStack Image Service
Uploading and managing images within OpenStack Storage is achieved using the glance
command-line tool. This tool allows us to upload, remove, and change information about the stored images for use within our OpenStack environment.
Getting ready
To begin with, ensure that you are either logged in to an Ubuntu client where we can run the glance
tool, or on our OpenStack Controller where OpenStack Image Service is running directly. If the Glance client isn't installed, this can be installed using the following commands:
sudo apt-get update sudo apt-get install python-glanceclient
Ensure that you have your environment variables set up correctly with our admin
user and password, as created in the previous chapter:
export OS_TENANT_NAME=cookbook export OS_USERNAME=admin export OS_PASSWORD=openstack export OS_AUTH_URL=https://192.168.100.200:5000/v2.0/ export OS_NO_CACHE=1 export OS_KEY=/vagrant/cakey.pem export OS_CACERT=/vagrant/ca.pem
How to do it...
We...