From 9a4f91c39e48372214ff1fdd8cf4b59a54c0939b Mon Sep 17 00:00:00 2001 From: Brian Rosmaita Date: Thu, 27 Jul 2017 11:49:06 -0400 Subject: [PATCH] Add documentation for image import commands Add documentation for the image import commands, particularly pointing out that the image-create-via-import command is an EXPERIMENTAL command that my be renamed or removed in a future release. Change-Id: I20ebc0145db6acc794039ed25e7754ec8d479bc8 --- doc/source/cli/details.rst | 173 +++++++++++++++++++++++++++++++++++++ 1 file changed, 173 insertions(+) diff --git a/doc/source/cli/details.rst b/doc/source/cli/details.rst index 4c2dc26c..dfd5477c 100644 --- a/doc/source/cli/details.rst +++ b/doc/source/cli/details.rst @@ -555,6 +555,179 @@ Upload data for a specific image. ``--progress`` Show upload progress bar. +.. _glance_import-info: + +glance import-info +------------------ + +.. code-block:: console + + usage: glance import-info + +Prints the import methods available from Glance, or a message +if the target Glance does not support image import. + +.. _glance_image-stage: + +glance image-stage +------------------ + +.. code-block:: console + + usage: glance image-stage [--file ] [--size ] + [--progress] + + +Upload data for a specific image to staging. + +**Positional arguments:** + +```` + ID of image to upload data to. + +**Optional arguments:** + +``--file `` + Local file that contains disk image to be uploaded. + Alternatively, images can be passed to the client via + stdin. + +``--size `` + Size in bytes of image to be uploaded. Default is to get size from + provided data object but this is supported in case where size cannot + be inferred. + +``--progress`` + Show upload progress bar. + +.. _glance_image-import: + +glance image-import +------------------- + +.. code-block:: console + + usage: glance image-import [--import-method ] + + +Initiate the image import taskflow. + +**Positional arguments:** + +```` + ID of image to import. + +**Optional arguments:** + +``--import-method `` + Import method used for Image Import workflow. Valid values can + be retrieved with import-info command and the default "glance-direct" + is used with "image-stage". + +.. _glance_image-create-via-import: + +glance image-create-via-import +------------------------------ + +This is an **EXPERIMENTAL** command. It may be renamed or removed in +future releases. + +.. code-block:: console + + usage: glance image-create-via import [--architecture ] + [--protected [True|False]] [--name ] + [--instance-uuid ] + [--min-disk ] [--visibility ] + [--kernel-id ] + [--tags [ ...]] + [--os-version ] + [--disk-format ] + [--os-distro ] [--id ] + [--owner ] [--ramdisk-id ] + [--min-ram ] + [--container-format ] + [--property ] [--file ] + [--progress] + +Create a new image using the image import process. + +**NOTE** This is an EXPERIMENTAL command. It may be renamed or removed in +future releases. + +**Optional arguments:** + +``--architecture `` + Operating system architecture as specified in + https://docs.openstack.org/glance/latest/user/common-image-properties.html#architecture + +``--protected [True|False]`` + If true, image will not be deletable. + +``--name `` + Descriptive name for the image + +``--instance-uuid `` + Metadata which can be used to record which instance + this image is associated with. (Informational only, + does not create an instance snapshot.) + +``--min-disk `` + Amount of disk space (in GB) required to boot image. + +``--visibility `` + Scope of image accessibility Valid values: public, + private, community, shared + +``--kernel-id `` + ID of image stored in Glance that should be used as + the kernel when booting an AMI-style image. + +``--tags [ ...]`` + List of strings related to the image + +``--os-version `` + Operating system version as specified by the + distributor + +``--disk-format `` + Format of the disk Valid values: None, ami, ari, aki, + vhd, vhdx, vmdk, raw, qcow2, vdi, iso, ploop + +``--os-distro `` + Common name of operating system distribution as + specified + in + https://docs.openstack.org/glance/latest/user/common-image-properties.html#os-distro + +``--id `` + An identifier for the image + +``--owner `` + Owner of the image + +``--ramdisk-id `` + ID of image stored in Glance that should be used as + the ramdisk when booting an AMI-style image. + +``--min-ram `` + Amount of ram (in MB) required to boot image. + +``--container-format `` + Format of the container Valid values: None, ami, ari, + aki, bare, ovf, ova, docker + +``--property `` + Arbitrary property to associate with image. May be + used multiple times. + +``--file `` + Local file that contains disk image to be uploaded + during creation. Alternatively, the image data can be + passed to the client via stdin. + +``--progress`` + Show upload progress bar. + .. _glance_location-add: glance location-add