blob: b0beb7ecc11259dee9bc8841293841eb958473f1 [file] [log] [blame]
Aleš Komáreke5b388f2017-02-06 15:48:57 +01001==============
2Glance formula
3==============
Filip Pytlound681ae22015-10-06 16:28:31 +02004
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
Filip Pytlound681ae22015-10-06 16:28:31 +02009
Aleš Komáreke5b388f2017-02-06 15:48:57 +010010Sample pillars
11==============
Filip Pytlound681ae22015-10-06 16:28:31 +020012
13.. code-block:: yaml
14
15 glance:
16 server:
17 enabled: true
18 version: juno
Alena Holanovac1e51312016-03-22 14:08:44 +010019 workers: 8
Filip Pytlound681ae22015-10-06 16:28:31 +020020 policy:
21 publicize_image:
22 - "role:admin"
23 - "role:image_manager"
24 database:
25 engine: mysql
26 host: 127.0.0.1
27 port: 3306
28 name: glance
29 user: glance
30 password: pwd
31 identity:
32 engine: keystone
33 host: 127.0.0.1
34 port: 35357
35 tenant: service
36 user: glance
37 password: pwd
38 message_queue:
39 engine: rabbitmq
40 host: 127.0.0.1
41 port: 5672
42 user: openstack
43 password: pwd
44 virtual_host: '/openstack'
45 storage:
46 engine: file
47 images:
48 - name: "CirrOS 0.3.1"
49 format: qcow2
50 file: cirros-0.3.1-x86_64-disk.img
51 source: http://cdn.download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img
52 public: true
Petr Michalec86ec0142016-11-29 16:34:15 +010053 audit:
54 enabled: false
Filip Pytlound681ae22015-10-06 16:28:31 +020055
Aleš Komáreke5b388f2017-02-06 15:48:57 +010056Keystone and cinder region
57
58.. code-block:: yaml
59
60 glance:
61 server:
62 enabled: true
63 version: kilo
64 ...
65 identity:
66 engine: keystone
67 host: 127.0.0.1
68 region: RegionTwo
69 ...
70
71Ceph integration glance
72
73.. code-block:: yaml
74
75 glance:
76 server:
77 enabled: true
78 version: juno
79 storage:
80 engine: rbd,http
81 user: glance
82 pool: images
83 chunk_size: 8
84 client_glance_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
85
86RabbitMQ HA setup
87
88.. code-block:: yaml
89
90 glance:
91 server:
92 ....
93 message_queue:
94 engine: rabbitmq
95 members:
96 - host: 10.0.16.1
97 - host: 10.0.16.2
98 - host: 10.0.16.3
99 user: openstack
100 password: pwd
101 virtual_host: '/openstack'
102 ....
103
104Enable auditing filter (CADF):
105
106.. code-block:: yaml
107
108 glance:
109 server:
110 audit:
111 enabled: true
112 ....
113 filter_factory: 'keystonemiddleware.audit:filter_factory'
114 map_file: '/etc/pycadf/glance_api_audit_map.conf'
115 ....
116
117
Richard Felkl4143a0e2017-02-01 23:24:13 +0100118Client role
119-----------
120
121Glance images
122
123.. code-block:: yaml
124
125 glance:
126 client:
127 enabled: true
128 server:
129 profile_admin:
130 image:
131 cirros-test:
132 visibility: public
133 protected: false
134 location: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-i386-disk.img
Jiri Konecny0456cfa2016-04-20 16:47:25 +0200135
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100136
137Usage
138=====
139
140Import new public image
Jiri Konecny0456cfa2016-04-20 16:47:25 +0200141
142.. code-block:: yaml
143
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100144 glance image-create --name 'Windows 7 x86_64' --is-public true --container-format bare --disk-format qcow2 < ./win7.qcow2
Jiri Konecny0456cfa2016-04-20 16:47:25 +0200145
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100146Change new image's disk properties
Petr Michalec86ec0142016-11-29 16:34:15 +0100147
148.. code-block:: yaml
149
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100150 glance image-update "Windows 7 x86_64" --property hw_disk_bus=ide
Petr Michalec86ec0142016-11-29 16:34:15 +0100151
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100152Change new image's NIC properties
Jakub Pavlik80a41ea2016-03-06 14:33:42 +0100153
154.. code-block:: yaml
155
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100156 glance image-update "Windows 7 x86_64" --property hw_vif_model=rtl8139
Jakub Pavlik80a41ea2016-03-06 14:33:42 +0100157
Jiri Konecny0456cfa2016-04-20 16:47:25 +0200158
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100159External links
160==============
Filip Pytlound681ae22015-10-06 16:28:31 +0200161
162* http://ceph.com/docs/master/rbd/rbd-openstack/
163
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100164
Jakub Pavlik9e85d172016-05-20 11:13:14 +0200165Documentation and Bugs
Aleš Komáreke5b388f2017-02-06 15:48:57 +0100166======================
Filip Pytlound681ae22015-10-06 16:28:31 +0200167
Jakub Pavlik9e85d172016-05-20 11:13:14 +0200168To learn how to deploy OpenStack Salt, consult the documentation available
169online at:
170
171 https://wiki.openstack.org/wiki/OpenStackSalt
172
173In the unfortunate event that bugs are discovered, they should be reported to
174the appropriate bug tracker. If you obtained the software from a 3rd party
175operating system vendor, it is often wise to use their own bug tracker for
176reporting problems. In all other cases use the master OpenStack bug tracker,
177available at:
178
179 http://bugs.launchpad.net/openstack-salt
180
181Developers wishing to work on the OpenStack Salt project should always base
182their work on the latest formulas code, available from the master GIT
183repository at:
184
185 https://git.openstack.org/cgit/openstack/salt-formula-glance
186
187Developers should also join the discussion on the IRC list, at:
188
189 https://wiki.openstack.org/wiki/Meetings/openstack-salt
Filip Pytloune94a0a72017-02-02 13:02:03 +0100190
191Documentation and Bugs
192======================
193
194To learn how to install and update salt-formulas, consult the documentation
195available online at:
196
197 http://salt-formulas.readthedocs.io/
198
199In the unfortunate event that bugs are discovered, they should be reported to
200the appropriate issue tracker. Use Github issue tracker for specific salt
201formula:
202
203 https://github.com/salt-formulas/salt-formula-glance/issues
204
205For feature requests, bug reports or blueprints affecting entire ecosystem,
206use Launchpad salt-formulas project:
207
208 https://launchpad.net/salt-formulas
209
210You can also join salt-formulas-users team and subscribe to mailing list:
211
212 https://launchpad.net/~salt-formulas-users
213
214Developers wishing to work on the salt-formulas projects should always base
215their work on master branch and submit pull request against specific formula.
216
217 https://github.com/salt-formulas/salt-formula-glance
218
219Any questions or feedback is always welcome so feel free to join our IRC
220channel:
221
222 #salt-formulas @ irc.freenode.net