File: upload.rst

package info (click to toggle)
murano 1%3A6.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,644 kB
  • sloc: python: 34,127; sh: 717; pascal: 269; makefile: 83
file content (90 lines) | stat: -rw-r--r-- 2,480 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.. _upload_images:

========================
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 OpenStack client image create command to import your disk image to glance:

.. code-block:: console

  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**

.. code-block:: text

  murano_image_info='{"title": "Windows 2012 Standard Edition", "type": "windows.2012"}'
..

where:

* **title** - user-friendly description of the image
* **type** - murano image type, see :ref:`murano_image_types`

2. To update metadata of the existing image run the command:

.. code-block:: console

  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.

.. code-block:: text

  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:

Murano image types
------------------

.. list-table::
  :header-rows: 1

  * - 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
..