Verifying the Glance image service installation

Source the adminrc script to set or update the environment variables:

# source ~/adminrc

To verify that Glance was installed and configured properly, download a test image from the internet and verify it can be uploaded to the image server:

    # mkdir /tmp/images
# wget -P /tmp/images http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img

Upload the image to Glance using the following command:

    # openstack image create "cirros-0.4.0"
--file /tmp/images/cirros-0.4.0-x86_64-disk.img
--disk-format qcow2
--container-format bare
--public

Verify the image exists in Glance using the openstack image list command shown here:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset