deb-murano/doc/source/image_builders/upload.rst
Kirill Zaitsev 1a753bf200 Make commands in install manual copy-paste-able
Before commands in manual.rst and related files started with $ sign.
While this shows, that commands should be executed in shell it also
makes them hard to copy-paste.

This change removes $ and splits commands, that include ';' into
multiple lines. After this change user would be able to copy-paste whole
blocks of code into shell and execute them right away.

Removes `#` that meant that root privileges are required for the
command and adds sudo, where relevant (yum/apt, etc.).
Fixes occasional indentation inconsistencies.

Change-Id: Ib649ae2a3a110bdf09b0bf9c5fbf54a5ce40ccc6
2015-08-25 19:53:16 +00:00

3.0 KiB

Upload image into glance

To deploy applications with murano, virtual machine images should be uploaded into glance in a special way - murano_image_info property should be set.

  1. Use the glance image-create command to import your disk image to glance:
glance image-create --name <NAME>  --is-public true \
> --disk-format qcow2 --container-format bare \
> --file <IMAGE_FILE> --property <IMAGE_METADATA>

Replace the command line arguments to glance image-create with the appropriate values for your environment and disk image:

  • Replace <NAME> with the name that users will refer to the disk image by. E.g. ws-2012-std
  • Replace <IMAGE_FILE> with the local path to the image file to upload. E.g. ws-2012-std.qcow2.
  • Replace <IMAGE_METADATA> with the following property string
murano_image_info='{"title": "Windows 2012 Standard Edition", "type": "windows.2012"}'

where:

  • title - user-friendly description of the image
  • type - murano image type, see murano_image_types
  1. To update metadata of the existing image run the command:
glance image-update <IMAGE_ID> --property <IMAGE_MATADATA>
  • Replace <IMAGE_ID> with image id from the previous command output.
  • Replace <IMAGE_METADATA> with murano_image_info property, e.g.
murano_image_info='{"title": "Windows 2012 Standard Edition", "type": "windows.2012"}'

Warning

The value of the --property argument (named murano_image_info) is a JSON string. Only double quotes are valid in JSON, so please type the string exactly as in the example above.

Note

Existing images could be marked in a simple way in the horizon UI with the murano dashboard installed. Navigate to Murano -> Manage -> Images -> Mark Image and fill up a form:

  • Image - ws-2012-std
  • Title - My Prepared Image
  • Type - Windows Server 2012

After these steps desired image can be chosen in application creation wizard.

Murano image types

Type Name Description
windows.2012 Windows Server 2012
linux Generic Linux images, Ubuntu / Debian, RedHat / Centos, etc
cirrus.demo Murano demo image, based on CirrOS