Verify operationThis section describes how to verify operation of the Image
Service using
CirrOS, a small
Linux image that helps you test your OpenStack deployment.For more information about how to download and build images,
see OpenStack Virtual Machine Image
Guide. For information about how to manage
images, see the OpenStack User Guide.Create and change into a temporary local directory:$mkdir /tmp/images$cd /tmp/imagesDownload the image to the temporary local directory:$wget http://cdn.download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.imgSource the admin credentials to gain access to
admin-only CLI commands:$source admin-openrc.shUpload the image to the Image Service:$glance image-create --name "cirros-0.3.3-x86_64" --file cirros-0.3.3-x86_64-disk.img \
--disk-format qcow2 --container-format bare --is-public True --progress[=============================>] 100%
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 133eae9fb1c98f45894a4e60d8736619 |
| container_format | bare |
| created_at | 2014-10-10T13:14:42 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | acafc7c0-40aa-4026-9673-b879898e1fc2 |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-0.3.3-x86_64 |
| owner | ea8c352d253443118041c9c8b8416040 |
| protected | False |
| size | 13200896 |
| status | active |
| updated_at | 2014-10-10T13:14:43 |
| virtual_size | None |
+------------------+--------------------------------------+For information about the parameters for the
glance image-create command, see Image Service command-line client in the
OpenStack Command-Line Interface
Reference.For information about disk and container formats for
images, see Disk and container formats for images in the
OpenStack Virtual Machine Image Guide.Because the returned image ID is generated dynamically,
your deployment generates a different ID than the one shown
in this example.Confirm upload of the image and validate
attributes:$glance image-list+--------------------------------------+---------------------+-------------+------------------+----------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+
| acafc7c0-40aa-4026-9673-b879898e1fc2 | cirros-0.3.3-x86_64 | qcow2 | bare | 13200896 | active |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+Remove the temporary local directory:$rm -r /tmp/images