blob: 50af4ff758880427687858a0f07559fdf876d33b [file] [log] [blame]
Filip Pytlound681ae22015-10-06 16:28:31 +02001==================
2Glance Image Store
3==================
4
Jakub Pavlik9e85d172016-05-20 11:13:14 +02005The Glance project provides services for discovering, registering, and
6retrieving virtual machine images. Glance has a RESTful API that allows
7querying of VM image metadata as well as retrieval of the actual image.
Filip Pytlound681ae22015-10-06 16:28:31 +02008
9Usage
10=====
11
12Import new public image
13
14.. code-block:: yaml
15
16 glance image-create --name 'Windows 7 x86_64' --is-public true --container-format bare --disk-format qcow2 < ./win7.qcow2
17
18Change new image's disk properties
19
20.. code-block:: yaml
21
22 glance image-update "Windows 7 x86_64" --property hw_disk_bus=ide
23
24Change new image's NIC properties
25
26.. code-block:: yaml
27
28 glance image-update "Windows 7 x86_64" --property hw_vif_model=rtl8139
29
30Sample pillar
31=============
32
33.. code-block:: yaml
34
35 glance:
36 server:
37 enabled: true
38 version: juno
Alena Holanovac1e51312016-03-22 14:08:44 +010039 workers: 8
Filip Pytlound681ae22015-10-06 16:28:31 +020040 policy:
41 publicize_image:
42 - "role:admin"
43 - "role:image_manager"
44 database:
45 engine: mysql
46 host: 127.0.0.1
47 port: 3306
48 name: glance
49 user: glance
50 password: pwd
51 identity:
52 engine: keystone
53 host: 127.0.0.1
54 port: 35357
55 tenant: service
56 user: glance
57 password: pwd
58 message_queue:
59 engine: rabbitmq
60 host: 127.0.0.1
61 port: 5672
62 user: openstack
63 password: pwd
64 virtual_host: '/openstack'
65 storage:
66 engine: file
67 images:
68 - name: "CirrOS 0.3.1"
69 format: qcow2
70 file: cirros-0.3.1-x86_64-disk.img
71 source: http://cdn.download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
72 public: true
Petr Michalec86ec0142016-11-29 16:34:15 +010073 audit:
74 enabled: false
Filip Pytlound681ae22015-10-06 16:28:31 +020075
Jiri Konecny0456cfa2016-04-20 16:47:25 +020076
77Client-side RabbitMQ HA setup
78
79.. code-block:: yaml
80
81 glance:
82 server:
83 ....
84 message_queue:
85 engine: rabbitmq
86 members:
87 - host: 10.0.16.1
88 - host: 10.0.16.2
89 - host: 10.0.16.3
90 user: openstack
91 password: pwd
92 virtual_host: '/openstack'
93 ....
94
95
Petr Michalec86ec0142016-11-29 16:34:15 +010096Enable auditing filter, ie: CADF
97
98.. code-block:: yaml
99
100 glance:
101 server:
102 audit:
103 enabled: true
104 ....
105 filter_factory: 'keystonemiddleware.audit:filter_factory'
106 map_file: '/etc/pycadf/glance_api_audit_map.conf'
107 ....
108
109
Jakub Pavlik80a41ea2016-03-06 14:33:42 +0100110Keystone and cinder region
111============================
112
113.. code-block:: yaml
114
115 glance:
116 server:
117 enabled: true
118 version: kilo
119 ...
120 identity:
121 engine: keystone
122 host: 127.0.0.1
123 region: RegionTwo
124 ...
125
Jiri Konecny0456cfa2016-04-20 16:47:25 +0200126
Filip Pytlound681ae22015-10-06 16:28:31 +0200127Ceph integration glance
128=======================
129
130.. code-block:: yaml
131
132 glance:
133 server:
134 enabled: true
135 version: juno
136 storage:
Petr Michalec72b35382016-12-04 10:27:27 +0100137 engine: rbd,http
Filip Pytlound681ae22015-10-06 16:28:31 +0200138 user: glance
139 pool: images
140 chunk_size: 8
141 client_glance_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
142
143* http://ceph.com/docs/master/rbd/rbd-openstack/
144
Jakub Pavlik9e85d172016-05-20 11:13:14 +0200145Documentation and Bugs
146============================
Filip Pytlound681ae22015-10-06 16:28:31 +0200147
Jakub Pavlik9e85d172016-05-20 11:13:14 +0200148To learn how to deploy OpenStack Salt, consult the documentation available
149online at:
150
151 https://wiki.openstack.org/wiki/OpenStackSalt
152
153In the unfortunate event that bugs are discovered, they should be reported to
154the appropriate bug tracker. If you obtained the software from a 3rd party
155operating system vendor, it is often wise to use their own bug tracker for
156reporting problems. In all other cases use the master OpenStack bug tracker,
157available at:
158
159 http://bugs.launchpad.net/openstack-salt
160
161Developers wishing to work on the OpenStack Salt project should always base
162their work on the latest formulas code, available from the master GIT
163repository at:
164
165 https://git.openstack.org/cgit/openstack/salt-formula-glance
166
167Developers should also join the discussion on the IRC list, at:
168
169 https://wiki.openstack.org/wiki/Meetings/openstack-salt