[install-guide] fix/update the Ceilometer verification
* use the image ID to download an image from glance * update outputs of the commands * change wrong admin project IDs * remove the downloaded image file after the verification Partially implements bp installguide-kilo. Change-Id: I9b69d66588bd21418614450107ac1b1d087373fa
This commit is contained in:
parent
8bc1939c0b
commit
221d20b688
@ -19,20 +19,20 @@
|
||||
<step>
|
||||
<para>List available meters:</para>
|
||||
<screen><prompt>$</prompt> <userinput>ceilometer meter-list</userinput>
|
||||
<computeroutput>+------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
||||
| Name | Type | Unit | Resource ID | User ID | Project ID |
|
||||
+------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
||||
| image | gauge | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
||||
| image.size | gauge | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
||||
+------------+-------+-------+--------------------------------------+---------+----------------------------------+</computeroutput></screen>
|
||||
<note>
|
||||
<para>Some meters might not appear until after you successfully launch
|
||||
at least one instance.</para>
|
||||
</note>
|
||||
<computeroutput>+--------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
||||
| Name | Type | Unit | Resource ID | User ID | Project ID |
|
||||
+--------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
||||
| image | gauge | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
| image.size | gauge | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
| image.update | delta | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
| image.upload | delta | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
+--------------+-------+-------+--------------------------------------+---------+----------------------------------+</computeroutput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Download an image from the Image service:</para>
|
||||
<screen><prompt>$</prompt> <userinput>glance image-download "cirros-0.3.3-x86_64" > cirros.img</userinput></screen>
|
||||
<screen>
|
||||
<prompt>$</prompt> <userinput>IMAGE_ID=$(glance image-list | grep 'cirros-0.3.3-x86_64' | awk '{ print $2 }')</userinput>
|
||||
<prompt>$</prompt> <userinput>glance image-download $IMAGE_ID > /tmp/cirros.img</userinput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>List available meters again to validate detection of the image
|
||||
@ -41,21 +41,27 @@
|
||||
<computeroutput>+----------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
||||
| Name | Type | Unit | Resource ID | User ID | Project ID |
|
||||
+----------------+-------+-------+--------------------------------------+---------+----------------------------------+
|
||||
| image | gauge | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
||||
| image.download | delta | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
||||
| image.serve | delta | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
||||
| image.size | gauge | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | efa984b0a914450e9a47788ad330699d |
|
||||
| image | gauge | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
| image.download | delta | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
| image.serve | delta | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
| image.size | gauge | B | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
| image.update | delta | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
| image.upload | delta | image | acafc7c0-40aa-4026-9673-b879898e1fc2 | None | cf12a15c5ea84b019aec3dc45580896b |
|
||||
+----------------+-------+-------+--------------------------------------+---------+----------------------------------+</computeroutput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Retrieve usage statistics from the <literal>image.download</literal>
|
||||
meter:</para>
|
||||
<screen><prompt>$</prompt> <userinput>ceilometer statistics -m image.download -p 60</userinput>
|
||||
<computeroutput>+--------+---------------------+---------------------+-------+------------+------------+------------+------------+----------+----------------------------+----------------------------+
|
||||
| Period | Period Start | Period End | Count | Min | Max | Sum | Avg | Duration | Duration Start | Duration End |
|
||||
+--------+---------------------+---------------------+-------+------------+------------+------------+------------+----------+----------------------------+----------------------------+
|
||||
| 60 | 2013-11-18T18:08:50 | 2013-11-18T18:09:50 | 1 | 13167616.0 | 13167616.0 | 13167616.0 | 13167616.0 | 0.0 | 2013-11-18T18:09:05.334000 | 2013-11-18T18:09:05.334000 |
|
||||
+--------+---------------------+---------------------+-------+------------+------------+------------+------------+----------+----------------------------+----------------------------+</computeroutput></screen>
|
||||
<computeroutput>+--------+---------------------+---------------------+------------+------------+------------+------------+-------+----------+----------------------------+----------------------------+
|
||||
| Period | Period Start | Period End | Max | Min | Avg | Sum | Count | Duration | Duration Start | Duration End |
|
||||
+--------+---------------------+---------------------+------------+------------+------------+------------+-------+----------+----------------------------+----------------------------+
|
||||
| 60 | 2015-04-21T12:21:45 | 2015-04-21T12:22:45 | 13200896.0 | 13200896.0 | 13200896.0 | 13200896.0 | 1 | 0.0 | 2015-04-21T12:22:12.983000 | 2015-04-21T12:22:12.983000 |
|
||||
+--------+---------------------+---------------------+------------+------------+------------+------------+-------+----------+----------------------------+----------------------------+</computeroutput></screen>
|
||||
</step>
|
||||
<step>
|
||||
<para>Remove the previously downloaded image file <filename>/tmp/cirros.img</filename>:</para>
|
||||
<screen><prompt>$</prompt> <userinput>rm /tmp/cirros.img</userinput></screen>
|
||||
</step>
|
||||
</procedure>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user