openstack-manuals/doc/install-guide/section_glance-verify.xml
Christian Berendt 5d78f10c2c Update the output of 'glance image-create' in the Installation Guide
Change-Id: I16418dabf66298a5e3917523b95b00fb234ac4bf
2014-10-10 16:23:10 +02:00

94 lines
5.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.0"
xml:id="glance-verify">
<title>Verify operation</title>
<para>This section describes how to verify operation of the Image
Service using
<link xlink:href="http://launchpad.net/cirros">CirrOS</link>, a small
Linux image that helps you test your OpenStack deployment.</para>
<para>For more information about how to download and build images,
see <link
xlink:href="http://docs.openstack.org/image-guide/content/index.html"
><citetitle>OpenStack Virtual Machine Image
Guide</citetitle></link>. For information about how to manage
images, see the <link
xlink:href="http://docs.openstack.org/user-guide/content/index.html"
><citetitle>OpenStack User Guide</citetitle></link>.</para>
<procedure>
<step>
<para>Create and change into a temporary local directory:</para>
<screen><prompt>$</prompt> <userinput>mkdir /tmp/images</userinput>
<prompt>$</prompt> <userinput>cd /tmp/images</userinput></screen>
</step>
<step>
<para>Download the image to the temporary local directory:</para>
<screen><prompt>$</prompt> <userinput>wget http://cdn.download.cirros-cloud.net/0.3.3/cirros-0.3.3-x86_64-disk.img</userinput></screen>
</step>
<step>
<para>Source the <literal>admin</literal> credentials to gain access to
admin-only CLI commands:</para>
<screen><prompt>$</prompt> <userinput>source admin-openrc.sh</userinput></screen>
</step>
<step>
<para>Upload the image to the Image Service:</para>
<screen><prompt>$</prompt> <userinput>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</userinput>
<computeroutput>[=============================>] 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 |
+------------------+--------------------------------------+</computeroutput></screen>
<para>For information about the parameters for the
<command>glance image-create</command> command, see <link
xlink:href="http://docs.openstack.org/cli-reference/content/glanceclient_commands.html#glanceclient_subcommand_image-create"
>Image Service command-line client</link> in the
<citetitle>OpenStack Command-Line Interface
Reference</citetitle>.</para>
<para>For information about disk and container formats for
images, see <link
xlink:href="http://docs.openstack.org/image-guide/content/image-formats.html"
>Disk and container formats for images</link> in the
<citetitle>OpenStack Virtual Machine Image Guide</citetitle>.</para>
<note>
<para>Because the returned image ID is generated dynamically,
your deployment generates a different ID than the one shown
in this example.</para>
</note>
</step>
<step>
<para>Confirm upload of the image and validate
attributes:</para>
<screen><prompt>$</prompt> <userinput>glance image-list</userinput>
<computeroutput>+--------------------------------------+---------------------+-------------+------------------+----------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+
| acafc7c0-40aa-4026-9673-b879898e1fc2 | cirros-0.3.3-x86_64 | qcow2 | bare | 13200896 | active |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+</computeroutput></screen>
</step>
<step>
<para>Remove the temporary local directory:</para>
<screen><prompt>$</prompt> <userinput>rm -r /tmp/images</userinput></screen>
</step>
</procedure>
</section>