From e5560a1c59a9d823d35ad255f7937f4fbafc2f00 Mon Sep 17 00:00:00 2001 From: qiaomin Date: Wed, 19 Oct 2016 15:22:19 +0000 Subject: [PATCH] Use 'openstack image show' to replace 'nova image-show' The command 'nova image-show' is deprecated and will be removed after Nova 15.0.0 is released, so this patch use 'openstack image show' to replace it for cleanup. Implements: blueprint use-openstack-command Change-Id: I5c9887556ba362f516d046e20a73de857fbd52a4 --- doc/user-guide/source/cli-cheat-sheet.rst | 2 +- .../cli-nova-launch-instance-from-volume.rst | 40 +++++++++++-------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/doc/user-guide/source/cli-cheat-sheet.rst b/doc/user-guide/source/cli-cheat-sheet.rst index e79bda3e15..e053033618 100644 --- a/doc/user-guide/source/cli-cheat-sheet.rst +++ b/doc/user-guide/source/cli-cheat-sheet.rst @@ -146,7 +146,7 @@ Create an instance snapshot .. code-block:: console $ nova image-create volumeTwoImage snapshotOfVolumeImage - $ nova image-show snapshotOfVolumeImage + $ openstack image show snapshotOfVolumeImage Pause, suspend, stop, rescue, resize, rebuild, reboot an instance ----------------------------------------------------------------- diff --git a/doc/user-guide/source/cli-nova-launch-instance-from-volume.rst b/doc/user-guide/source/cli-nova-launch-instance-from-volume.rst index 253489ac0b..097f0f8d4a 100644 --- a/doc/user-guide/source/cli-nova-launch-instance-from-volume.rst +++ b/doc/user-guide/source/cli-nova-launch-instance-from-volume.rst @@ -163,23 +163,29 @@ the volume to boot an instance. .. code-block:: console - $ nova image-show 98901246-af9... - +---------------------------------+--------------------------------------+ - | Property | Value | - +---------------------------------+--------------------------------------+ - | OS-EXT-IMG-SIZE:size | 25165824 | - | created | 2016-03-11T16:39:25Z | - | id | 98901246-af9... | - | metadata cinder_img_volume_type | storage_backend1 | - | metadata kernel_id | 759e3e20-83b... | - | metadata ramdisk_id | 5a8b526f-d5c... | - | minDisk | 0 | - | minRam | 0 | - | name | cirros-0.3.4-x86_64-uec | - | progress | 100 | - | status | ACTIVE | - | updated | 2016-03-17T22:55:03Z | - +---------------------------------+--------------------------------------+ + $ openstack image show 98901246-af9... + +------------------+------------------------------------------------------+ + | Field | Value | + +------------------+------------------------------------------------------+ + | checksum | ee1eca47dc88f4879d8a229cc70a07c6 | + | container_format | bare | + | created_at | 2016-10-08T14:59:05Z | + | disk_format | qcow2 | + | file | /v2/images/9fef3b2d-c35d-4b61-bea8-09cc6dc41829/file | + | id | 98901246-af9d-4b61-bea8-09cc6dc41829 | + | min_disk | 0 | + | min_ram | 0 | + | name | cirros-0.3.4-x86_64-uec | + | owner | 8d8ef3cdf2b54c25831cbb409ad9ae86 | + | protected | False | + | schema | /v2/schemas/image | + | size | 13287936 | + | status | active | + | tags | | + | updated_at | 2016-10-19T09:12:52Z | + | virtual_size | None | + | visibility | public | + +------------------+------------------------------------------------------+ #. List the available flavors.