Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | ======================= |
| 2 | Neutron Network Service |
| 3 | ======================= |
| 4 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 5 | Neutron is an OpenStack project to provide "networking as a service" between |
| 6 | interface devices (e.g., vNICs) managed by other Openstack services (e.g., |
| 7 | nova). |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 8 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 9 | Starting in the Folsom release, Neutron is a core and supported part of the |
| 10 | OpenStack platform (for Essex, we were an "incubated" project, which means use |
| 11 | is suggested only for those who really know what they're doing with Neutron). |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 12 | |
| 13 | Usage notes |
| 14 | =========== |
| 15 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 16 | For live migration to work, you have to set migration param on bridge and |
| 17 | switch nodes. |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 18 | |
| 19 | .. code-block:: yaml |
| 20 | |
| 21 | neutron: |
| 22 | bridge: |
| 23 | enabled: true |
| 24 | migration: true |
| 25 | |
| 26 | .. code-block:: yaml |
| 27 | |
| 28 | neutron: |
| 29 | switch: |
| 30 | enabled: true |
| 31 | migration: true |
| 32 | |
| 33 | Furthermore you need to set private and public keys for user 'neutron'. |
| 34 | |
| 35 | Sample pillars |
| 36 | ============== |
| 37 | |
| 38 | Neutron Server on the controller node |
| 39 | |
| 40 | .. code-block:: yaml |
| 41 | |
| 42 | neutron: |
| 43 | server: |
| 44 | enabled: true |
| 45 | version: havana |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 46 | bind: |
| 47 | address: 172.20.0.1 |
| 48 | port: 9696 |
| 49 | tunnel_type: vxlan |
| 50 | public_networks: |
| 51 | - name: public |
| 52 | subnets: |
| 53 | - name: public-subnet |
| 54 | gateway: 10.0.0.1 |
| 55 | network: 10.0.0.0/24 |
| 56 | pool_start: 10.0.5.20 |
| 57 | pool_end: 10.0.5.200 |
| 58 | dhcp: False |
| 59 | database: |
| 60 | engine: mysql |
| 61 | host: 127.0.0.1 |
| 62 | port: 3306 |
| 63 | name: neutron |
| 64 | user: neutron |
| 65 | password: pwd |
| 66 | identity: |
| 67 | engine: keystone |
| 68 | host: 127.0.0.1 |
| 69 | port: 35357 |
| 70 | user: neutron |
| 71 | password: pwd |
| 72 | tenant: service |
| 73 | message_queue: |
| 74 | engine: rabbitmq |
| 75 | host: 127.0.0.1 |
| 76 | port: 5672 |
| 77 | user: openstack |
| 78 | password: pwd |
| 79 | virtual_host: '/openstack' |
| 80 | metadata: |
| 81 | host: 127.0.0.1 |
| 82 | port: 8775 |
| 83 | password: pass |
| 84 | fwaas: false |
| 85 | |
marco | a4428a3 | 2016-06-10 11:50:16 +0200 | [diff] [blame] | 86 | Neutron Server with OpenContrail |
| 87 | |
| 88 | .. code-block:: yaml |
| 89 | |
| 90 | neutron: |
| 91 | server: |
| 92 | backend: |
| 93 | engine: contrail |
| 94 | host: contrail_discovery_host |
| 95 | port: 8082 |
| 96 | user: admin |
| 97 | password: password |
| 98 | tenant: admin |
| 99 | token: token |
| 100 | |
| 101 | Neutron Server with Midonet |
| 102 | |
| 103 | .. code-block:: yaml |
| 104 | |
| 105 | neutron: |
| 106 | server: |
| 107 | backend: |
| 108 | engine: midonet |
| 109 | host: midonet_api_host |
| 110 | port: 8181 |
| 111 | user: admin |
| 112 | password: password |
| 113 | |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 114 | Neutron bridge on the network node |
| 115 | |
| 116 | .. code-block:: yaml |
| 117 | |
| 118 | neutron: |
| 119 | bridge: |
| 120 | enabled: true |
| 121 | version: havana |
| 122 | tunnel_type: vxlan |
| 123 | bind: |
| 124 | address: 172.20.0.2 |
| 125 | database: |
| 126 | engine: mysql |
| 127 | host: 127.0.0.1 |
| 128 | port: 3306 |
| 129 | name: neutron |
| 130 | user: neutron |
| 131 | password: pwd |
| 132 | identity: |
| 133 | engine: keystone |
| 134 | host: 127.0.0.1 |
| 135 | port: 35357 |
| 136 | user: neutron |
| 137 | password: pwd |
| 138 | tenant: service |
| 139 | message_queue: |
| 140 | engine: rabbitmq |
| 141 | host: 127.0.0.1 |
| 142 | port: 5672 |
| 143 | user: openstack |
| 144 | password: pwd |
| 145 | virtual_host: '/openstack' |
| 146 | |
| 147 | Neutron switch on the compute node with live migration turned on |
| 148 | |
| 149 | .. code-block:: yaml |
| 150 | |
| 151 | neutron: |
| 152 | switch: |
| 153 | enabled: true |
| 154 | version: havana |
| 155 | migration: True |
| 156 | tunnel_type: vxlan |
| 157 | bind: |
| 158 | address: 127.20.0.100 |
| 159 | database: |
| 160 | engine: mysql |
| 161 | host: 127.0.0.1 |
| 162 | port: 3306 |
| 163 | name: neutron |
| 164 | user: neutron |
| 165 | password: pwd |
| 166 | identity: |
| 167 | engine: keystone |
| 168 | host: 127.0.0.1 |
| 169 | port: 35357 |
| 170 | user: neutron |
| 171 | password: pwd |
| 172 | tenant: service |
| 173 | message_queue: |
| 174 | engine: rabbitmq |
| 175 | host: 127.0.0.1 |
| 176 | port: 5672 |
| 177 | user: openstack |
| 178 | password: pwd |
| 179 | virtual_host: '/openstack' |
| 180 | |
Jakub Pavlik | 6dd5c0a | 2016-03-09 14:18:15 +0100 | [diff] [blame] | 181 | Neutron Keystone region |
| 182 | |
| 183 | .. code-block:: yaml |
| 184 | |
| 185 | neutron: |
| 186 | server: |
| 187 | enabled: true |
| 188 | version: kilo |
| 189 | ... |
| 190 | identity: |
| 191 | region: RegionTwo |
| 192 | ... |
| 193 | compute: |
| 194 | region: RegionTwo |
| 195 | ... |
| 196 | |
Jiri Konecny | 93b1999 | 2016-04-12 11:15:39 +0200 | [diff] [blame] | 197 | |
| 198 | Client-side RabbitMQ HA setup |
| 199 | |
| 200 | .. code-block:: yaml |
| 201 | |
| 202 | neutron: |
| 203 | server: |
| 204 | .... |
| 205 | message_queue: |
| 206 | engine: rabbitmq |
| 207 | members: |
| 208 | - host: 10.0.16.1 |
| 209 | - host: 10.0.16.2 |
| 210 | - host: 10.0.16.3 |
| 211 | user: openstack |
| 212 | password: pwd |
| 213 | virtual_host: '/openstack' |
| 214 | .... |
| 215 | |
| 216 | |
| 217 | |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 218 | Usage |
| 219 | ===== |
| 220 | |
| 221 | Fix RDO Neutron installation |
| 222 | |
| 223 | .. code-block:: yaml |
| 224 | |
| 225 | neutron-db-manage --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini stamp havana |
| 226 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 227 | Documentation and Bugs |
| 228 | ============================ |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 229 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 230 | To learn how to deploy OpenStack Salt, consult the documentation available |
| 231 | online at: |
| 232 | |
| 233 | https://wiki.openstack.org/wiki/OpenStackSalt |
| 234 | |
| 235 | In the unfortunate event that bugs are discovered, they should be reported to |
| 236 | the appropriate bug tracker. If you obtained the software from a 3rd party |
| 237 | operating system vendor, it is often wise to use their own bug tracker for |
| 238 | reporting problems. In all other cases use the master OpenStack bug tracker, |
| 239 | available at: |
| 240 | |
| 241 | http://bugs.launchpad.net/openstack-salt |
| 242 | |
| 243 | Developers wishing to work on the OpenStack Salt project should always base |
| 244 | their work on the latest formulas code, available from the master GIT |
| 245 | repository at: |
| 246 | |
| 247 | https://git.openstack.org/cgit/openstack/salt-formula-neutron |
| 248 | |
| 249 | Developers should also join the discussion on the IRC list, at: |
| 250 | |
| 251 | https://wiki.openstack.org/wiki/Meetings/openstack-salt |