928ee3fcc9
After commit I49999d702f403d946084c5c4312d367404127b47 some names in dashboard were changed. This patch replaces these names and related images in the docs. Closes-Bug: #1583579 Depends-On: I8dea2cdf682ddd615a8dcc37154fc3d90df5c12b Depends-On: I709308cf34dd8982e73422c26aad487a6068e24c Change-Id: I3f0719e34c94594555cd5924f5ffd87692053b0a
3.0 KiB
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.
- Use the openstack client image create command to import your disk image to glance:
openstack image create --public \
> --disk-format qcow2 --container-format bare \
> --file <IMAGE_FILE> --property <IMAGE_METADATA> <NAME>
Replace the command line arguments to openstack image create with the appropriate values for your environment and disk image:
- 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
- Replace <NAME> with the name that users will refer to the disk image by. E.g. ws-2012-std
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
- To update metadata of the existing image run the command:
openstack image set --property <IMAGE_MATADATA> <IMAGE_ID>
- Replace <IMAGE_METADATA> with murano_image_info property, e.g.
- Replace <IMAGE_ID> with image id from the previous command output.
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 Applications -> 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 |
cirros.demo | Murano demo image, based on CirrOS |