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 |
| 46 | plugin: ml2/contrail |
| 47 | bind: |
| 48 | address: 172.20.0.1 |
| 49 | port: 9696 |
| 50 | tunnel_type: vxlan |
| 51 | public_networks: |
| 52 | - name: public |
| 53 | subnets: |
| 54 | - name: public-subnet |
| 55 | gateway: 10.0.0.1 |
| 56 | network: 10.0.0.0/24 |
| 57 | pool_start: 10.0.5.20 |
| 58 | pool_end: 10.0.5.200 |
| 59 | dhcp: False |
| 60 | database: |
| 61 | engine: mysql |
| 62 | host: 127.0.0.1 |
| 63 | port: 3306 |
| 64 | name: neutron |
| 65 | user: neutron |
| 66 | password: pwd |
| 67 | identity: |
| 68 | engine: keystone |
| 69 | host: 127.0.0.1 |
| 70 | port: 35357 |
| 71 | user: neutron |
| 72 | password: pwd |
| 73 | tenant: service |
| 74 | message_queue: |
| 75 | engine: rabbitmq |
| 76 | host: 127.0.0.1 |
| 77 | port: 5672 |
| 78 | user: openstack |
| 79 | password: pwd |
| 80 | virtual_host: '/openstack' |
| 81 | metadata: |
| 82 | host: 127.0.0.1 |
| 83 | port: 8775 |
| 84 | password: pass |
| 85 | fwaas: false |
| 86 | |
| 87 | Neutron bridge on the network node |
| 88 | |
| 89 | .. code-block:: yaml |
| 90 | |
| 91 | neutron: |
| 92 | bridge: |
| 93 | enabled: true |
| 94 | version: havana |
| 95 | tunnel_type: vxlan |
| 96 | bind: |
| 97 | address: 172.20.0.2 |
| 98 | database: |
| 99 | engine: mysql |
| 100 | host: 127.0.0.1 |
| 101 | port: 3306 |
| 102 | name: neutron |
| 103 | user: neutron |
| 104 | password: pwd |
| 105 | identity: |
| 106 | engine: keystone |
| 107 | host: 127.0.0.1 |
| 108 | port: 35357 |
| 109 | user: neutron |
| 110 | password: pwd |
| 111 | tenant: service |
| 112 | message_queue: |
| 113 | engine: rabbitmq |
| 114 | host: 127.0.0.1 |
| 115 | port: 5672 |
| 116 | user: openstack |
| 117 | password: pwd |
| 118 | virtual_host: '/openstack' |
| 119 | |
| 120 | Neutron switch on the compute node with live migration turned on |
| 121 | |
| 122 | .. code-block:: yaml |
| 123 | |
| 124 | neutron: |
| 125 | switch: |
| 126 | enabled: true |
| 127 | version: havana |
| 128 | migration: True |
| 129 | tunnel_type: vxlan |
| 130 | bind: |
| 131 | address: 127.20.0.100 |
| 132 | database: |
| 133 | engine: mysql |
| 134 | host: 127.0.0.1 |
| 135 | port: 3306 |
| 136 | name: neutron |
| 137 | user: neutron |
| 138 | password: pwd |
| 139 | identity: |
| 140 | engine: keystone |
| 141 | host: 127.0.0.1 |
| 142 | port: 35357 |
| 143 | user: neutron |
| 144 | password: pwd |
| 145 | tenant: service |
| 146 | message_queue: |
| 147 | engine: rabbitmq |
| 148 | host: 127.0.0.1 |
| 149 | port: 5672 |
| 150 | user: openstack |
| 151 | password: pwd |
| 152 | virtual_host: '/openstack' |
| 153 | |
Jakub Pavlik | 6dd5c0a | 2016-03-09 14:18:15 +0100 | [diff] [blame] | 154 | Neutron Keystone region |
| 155 | |
| 156 | .. code-block:: yaml |
| 157 | |
| 158 | neutron: |
| 159 | server: |
| 160 | enabled: true |
| 161 | version: kilo |
| 162 | ... |
| 163 | identity: |
| 164 | region: RegionTwo |
| 165 | ... |
| 166 | compute: |
| 167 | region: RegionTwo |
| 168 | ... |
| 169 | |
Jiri Konecny | 93b1999 | 2016-04-12 11:15:39 +0200 | [diff] [blame] | 170 | |
| 171 | Client-side RabbitMQ HA setup |
| 172 | |
| 173 | .. code-block:: yaml |
| 174 | |
| 175 | neutron: |
| 176 | server: |
| 177 | .... |
| 178 | message_queue: |
| 179 | engine: rabbitmq |
| 180 | members: |
| 181 | - host: 10.0.16.1 |
| 182 | - host: 10.0.16.2 |
| 183 | - host: 10.0.16.3 |
| 184 | user: openstack |
| 185 | password: pwd |
| 186 | virtual_host: '/openstack' |
| 187 | .... |
| 188 | |
| 189 | |
| 190 | |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 191 | Usage |
| 192 | ===== |
| 193 | |
| 194 | Fix RDO Neutron installation |
| 195 | |
| 196 | .. code-block:: yaml |
| 197 | |
| 198 | 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 |
| 199 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 200 | Documentation and Bugs |
| 201 | ============================ |
Filip Pytloun | cd028e4 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 202 | |
Jakub Pavlik | 9ecf026 | 2016-05-20 11:20:58 +0200 | [diff] [blame] | 203 | To learn how to deploy OpenStack Salt, consult the documentation available |
| 204 | online at: |
| 205 | |
| 206 | https://wiki.openstack.org/wiki/OpenStackSalt |
| 207 | |
| 208 | In the unfortunate event that bugs are discovered, they should be reported to |
| 209 | the appropriate bug tracker. If you obtained the software from a 3rd party |
| 210 | operating system vendor, it is often wise to use their own bug tracker for |
| 211 | reporting problems. In all other cases use the master OpenStack bug tracker, |
| 212 | available at: |
| 213 | |
| 214 | http://bugs.launchpad.net/openstack-salt |
| 215 | |
| 216 | Developers wishing to work on the OpenStack Salt project should always base |
| 217 | their work on the latest formulas code, available from the master GIT |
| 218 | repository at: |
| 219 | |
| 220 | https://git.openstack.org/cgit/openstack/salt-formula-neutron |
| 221 | |
| 222 | Developers should also join the discussion on the IRC list, at: |
| 223 | |
| 224 | https://wiki.openstack.org/wiki/Meetings/openstack-salt |