Filip Pytloun | d681ae2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 1 | ================== |
| 2 | Glance Image Store |
| 3 | ================== |
| 4 | |
Jakub Pavlik | 9e85d17 | 2016-05-20 11:13:14 +0200 | [diff] [blame] | 5 | The Glance project provides services for discovering, registering, and |
| 6 | retrieving virtual machine images. Glance has a RESTful API that allows |
| 7 | querying of VM image metadata as well as retrieval of the actual image. |
Filip Pytloun | d681ae2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 8 | |
| 9 | Usage |
| 10 | ===== |
| 11 | |
| 12 | Import 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 | |
| 18 | Change 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 | |
| 24 | Change 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 | |
| 30 | Sample pillar |
| 31 | ============= |
| 32 | |
| 33 | .. code-block:: yaml |
| 34 | |
| 35 | glance: |
| 36 | server: |
| 37 | enabled: true |
| 38 | version: juno |
Alena Holanova | c1e5131 | 2016-03-22 14:08:44 +0100 | [diff] [blame] | 39 | workers: 8 |
Filip Pytloun | d681ae2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 40 | 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 Michalec | 86ec014 | 2016-11-29 16:34:15 +0100 | [diff] [blame] | 73 | audit: |
| 74 | enabled: false |
Filip Pytloun | d681ae2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 75 | |
Jiri Konecny | 0456cfa | 2016-04-20 16:47:25 +0200 | [diff] [blame] | 76 | |
| 77 | Client-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 Michalec | 86ec014 | 2016-11-29 16:34:15 +0100 | [diff] [blame] | 96 | Enable 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 Pavlik | 80a41ea | 2016-03-06 14:33:42 +0100 | [diff] [blame] | 110 | Keystone 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 Konecny | 0456cfa | 2016-04-20 16:47:25 +0200 | [diff] [blame] | 126 | |
Filip Pytloun | d681ae2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 127 | Ceph integration glance |
| 128 | ======================= |
| 129 | |
| 130 | .. code-block:: yaml |
| 131 | |
| 132 | glance: |
| 133 | server: |
| 134 | enabled: true |
| 135 | version: juno |
| 136 | storage: |
Petr Michalec | 72b3538 | 2016-12-04 10:27:27 +0100 | [diff] [blame] | 137 | engine: rbd,http |
Filip Pytloun | d681ae2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 138 | 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 Pavlik | 9e85d17 | 2016-05-20 11:13:14 +0200 | [diff] [blame] | 145 | Documentation and Bugs |
| 146 | ============================ |
Filip Pytloun | d681ae2 | 2015-10-06 16:28:31 +0200 | [diff] [blame] | 147 | |
Jakub Pavlik | 9e85d17 | 2016-05-20 11:13:14 +0200 | [diff] [blame] | 148 | To learn how to deploy OpenStack Salt, consult the documentation available |
| 149 | online at: |
| 150 | |
| 151 | https://wiki.openstack.org/wiki/OpenStackSalt |
| 152 | |
| 153 | In the unfortunate event that bugs are discovered, they should be reported to |
| 154 | the appropriate bug tracker. If you obtained the software from a 3rd party |
| 155 | operating system vendor, it is often wise to use their own bug tracker for |
| 156 | reporting problems. In all other cases use the master OpenStack bug tracker, |
| 157 | available at: |
| 158 | |
| 159 | http://bugs.launchpad.net/openstack-salt |
| 160 | |
| 161 | Developers wishing to work on the OpenStack Salt project should always base |
| 162 | their work on the latest formulas code, available from the master GIT |
| 163 | repository at: |
| 164 | |
| 165 | https://git.openstack.org/cgit/openstack/salt-formula-glance |
| 166 | |
| 167 | Developers should also join the discussion on the IRC list, at: |
| 168 | |
| 169 | https://wiki.openstack.org/wiki/Meetings/openstack-salt |