blob: 0bfdfbf122ec9776e56d334155cdc04a5917f458 [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
Richard Felkl4143a0e2017-02-01 23:24:13 +010076Client role
77-----------
78
79Glance images
80
81.. code-block:: yaml
82
83 glance:
84 client:
85 enabled: true
86 server:
87 profile_admin:
88 image:
89 cirros-test:
90 visibility: public
91 protected: false
92 location: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img
Jiri Konecny0456cfa2016-04-20 16:47:25 +020093
94Client-side RabbitMQ HA setup
95
96.. code-block:: yaml
97
98 glance:
99 server:
100 ....
101 message_queue:
102 engine: rabbitmq
103 members:
104 - host: 10.0.16.1
105 - host: 10.0.16.2
106 - host: 10.0.16.3
107 user: openstack
108 password: pwd
109 virtual_host: '/openstack'
110 ....
111
112
Petr Michalec86ec0142016-11-29 16:34:15 +0100113Enable auditing filter, ie: CADF
114
115.. code-block:: yaml
116
117 glance:
118 server:
119 audit:
120 enabled: true
121 ....
122 filter_factory: 'keystonemiddleware.audit:filter_factory'
123 map_file: '/etc/pycadf/glance_api_audit_map.conf'
124 ....
125
126
Jakub Pavlik80a41ea2016-03-06 14:33:42 +0100127Keystone and cinder region
128============================
129
130.. code-block:: yaml
131
132 glance:
133 server:
134 enabled: true
135 version: kilo
136 ...
137 identity:
138 engine: keystone
139 host: 127.0.0.1
140 region: RegionTwo
141 ...
142
Jiri Konecny0456cfa2016-04-20 16:47:25 +0200143
Filip Pytlound681ae22015-10-06 16:28:31 +0200144Ceph integration glance
145=======================
146
147.. code-block:: yaml
148
149 glance:
150 server:
151 enabled: true
152 version: juno
153 storage:
Petr Michalec72b35382016-12-04 10:27:27 +0100154 engine: rbd,http
Filip Pytlound681ae22015-10-06 16:28:31 +0200155 user: glance
156 pool: images
157 chunk_size: 8
158 client_glance_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
159
160* http://ceph.com/docs/master/rbd/rbd-openstack/
161
Jakub Pavlik9e85d172016-05-20 11:13:14 +0200162Documentation and Bugs
163============================
Filip Pytlound681ae22015-10-06 16:28:31 +0200164
Jakub Pavlik9e85d172016-05-20 11:13:14 +0200165To learn how to deploy OpenStack Salt, consult the documentation available
166online at:
167
168 https://wiki.openstack.org/wiki/OpenStackSalt
169
170In the unfortunate event that bugs are discovered, they should be reported to
171the appropriate bug tracker. If you obtained the software from a 3rd party
172operating system vendor, it is often wise to use their own bug tracker for
173reporting problems. In all other cases use the master OpenStack bug tracker,
174available at:
175
176 http://bugs.launchpad.net/openstack-salt
177
178Developers wishing to work on the OpenStack Salt project should always base
179their work on the latest formulas code, available from the master GIT
180repository at:
181
182 https://git.openstack.org/cgit/openstack/salt-formula-glance
183
184Developers should also join the discussion on the IRC list, at:
185
186 https://wiki.openstack.org/wiki/Meetings/openstack-salt
Filip Pytloune94a0a72017-02-02 13:02:03 +0100187
188Documentation and Bugs
189======================
190
191To learn how to install and update salt-formulas, consult the documentation
192available online at:
193
194 http://salt-formulas.readthedocs.io/
195
196In the unfortunate event that bugs are discovered, they should be reported to
197the appropriate issue tracker. Use Github issue tracker for specific salt
198formula:
199
200 https://github.com/salt-formulas/salt-formula-glance/issues
201
202For feature requests, bug reports or blueprints affecting entire ecosystem,
203use Launchpad salt-formulas project:
204
205 https://launchpad.net/salt-formulas
206
207You can also join salt-formulas-users team and subscribe to mailing list:
208
209 https://launchpad.net/~salt-formulas-users
210
211Developers wishing to work on the salt-formulas projects should always base
212their work on master branch and submit pull request against specific formula.
213
214 https://github.com/salt-formulas/salt-formula-glance
215
216Any questions or feedback is always welcome so feel free to join our IRC
217channel:
218
219 #salt-formulas @ irc.freenode.net