blob: 87835164d3220e1a784ff1a8a63d09ee9d72eef7 [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
73
Jiri Konecny0456cfa2016-04-20 16:47:25 +020074
75Client-side RabbitMQ HA setup
76
77.. code-block:: yaml
78
79 glance:
80 server:
81 ....
82 message_queue:
83 engine: rabbitmq
84 members:
85 - host: 10.0.16.1
86 - host: 10.0.16.2
87 - host: 10.0.16.3
88 user: openstack
89 password: pwd
90 virtual_host: '/openstack'
91 ....
92
93
Jakub Pavlik80a41ea2016-03-06 14:33:42 +010094Keystone and cinder region
95============================
96
97.. code-block:: yaml
98
99 glance:
100 server:
101 enabled: true
102 version: kilo
103 ...
104 identity:
105 engine: keystone
106 host: 127.0.0.1
107 region: RegionTwo
108 ...
109
Jiri Konecny0456cfa2016-04-20 16:47:25 +0200110
Filip Pytlound681ae22015-10-06 16:28:31 +0200111Ceph integration glance
112=======================
113
114.. code-block:: yaml
115
116 glance:
117 server:
118 enabled: true
119 version: juno
120 storage:
121 engine: rbd
122 user: glance
123 pool: images
124 chunk_size: 8
125 client_glance_key: AQDOavlU6BsSJhAAnpFR906mvdgdfRqLHwu0Uw==
126
127* http://ceph.com/docs/master/rbd/rbd-openstack/
128
Jakub Pavlik9e85d172016-05-20 11:13:14 +0200129Documentation and Bugs
130============================
Filip Pytlound681ae22015-10-06 16:28:31 +0200131
Jakub Pavlik9e85d172016-05-20 11:13:14 +0200132To learn how to deploy OpenStack Salt, consult the documentation available
133online at:
134
135 https://wiki.openstack.org/wiki/OpenStackSalt
136
137In the unfortunate event that bugs are discovered, they should be reported to
138the appropriate bug tracker. If you obtained the software from a 3rd party
139operating system vendor, it is often wise to use their own bug tracker for
140reporting problems. In all other cases use the master OpenStack bug tracker,
141available at:
142
143 http://bugs.launchpad.net/openstack-salt
144
145Developers wishing to work on the OpenStack Salt project should always base
146their work on the latest formulas code, available from the master GIT
147repository at:
148
149 https://git.openstack.org/cgit/openstack/salt-formula-glance
150
151Developers should also join the discussion on the IRC list, at:
152
153 https://wiki.openstack.org/wiki/Meetings/openstack-salt