Advertisement
oldparrothead

ControllerNode

Sep 12th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.69 KB | None | 0 0
  1. root@amrwobl222:~# cat /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini
  2. [DATABASE]
  3. # This line MUST be changed to actually run the plugin.
  4. # Example:
  5. # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
  6. # Replace 127.0.0.1 above with the IP address of the database used by the
  7. # main quantum server. (Leave it as is if the database runs on this host.)
  8. sql_connection = mysql://quantum:quantum_pass@127.0.0.1/quantum?charset=utf8
  9. # Database reconnection retry times - in event connectivity is lost
  10. # set to -1 implies an infinite retry count
  11. # sql_max_retries = 10
  12. sql_max_retries = 10
  13. # Database reconnection interval in seconds - if the initial connection to the
  14. # database fails
  15. reconnect_interval = 2
  16. # Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size,
  17. # sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled.
  18. # sql_dbpool_enable = False
  19. # Minimum number of SQL connections to keep open in a pool
  20. # sql_min_pool_size = 1
  21. # Maximum number of SQL connections to keep open in a pool
  22. # sql_max_pool_size = 5
  23. # Timeout in seconds before idle sql connections are reaped
  24. # sql_idle_timeout = 3600
  25. sql_idle_timeout = 3600
  26.  
  27. [OVS]
  28. # (StrOpt) Type of network to allocate for tenant networks. The
  29. # default value 'local' is useful only for single-box testing and
  30. # provides no connectivity between hosts. You MUST either change this
  31. # to 'vlan' and configure network_vlan_ranges below or change this to
  32. # 'gre' and configure tunnel_id_ranges below in order for tenant
  33. # networks to provide connectivity between hosts. Set to 'none' to
  34. # disable creation of tenant networks.
  35. #
  36. # Default: tenant_network_type = local
  37. # Example: tenant_network_type = gre
  38.  
  39. # (ListOpt) Comma-separated list of
  40. # <physical_network>[:<vlan_min>:<vlan_max>] tuples enumerating ranges
  41. # of VLAN IDs on named physical networks that are available for
  42. # allocation. All physical networks listed are available for flat and
  43. # VLAN provider network creation. Specified ranges of VLAN IDs are
  44. # available for tenant network allocation if tenant_network_type is
  45. # 'vlan'. If empty, only gre and local networks may be created.
  46. #
  47. # Default: network_vlan_ranges =
  48. # Example: network_vlan_ranges = physnet1:1000:2999
  49.  
  50. # (BoolOpt) Set to True in the server and the agents to enable support
  51. # for GRE networks. Requires kernel support for OVS patch ports and
  52. # GRE tunneling.
  53. #
  54. # Default: enable_tunneling = False
  55.  
  56. # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples
  57. # enumerating ranges of GRE tunnel IDs that are available for tenant
  58. # network allocation if tenant_network_type is 'gre'.
  59. #
  60. # Default: tunnel_id_ranges =
  61. # Example: tunnel_id_ranges = 1:1000
  62.  
  63. # Do not change this parameter unless you have a good reason to.
  64. # This is the name of the OVS integration bridge. There is one per hypervisor.
  65. # The integration bridge acts as a virtual "patch bay". All VM VIFs are
  66. # attached to this bridge and then "patched" according to their network
  67. # connectivity.
  68. #
  69. # Default: integration_bridge = br-int
  70.  
  71. # Only used for the agent if tunnel_id_ranges (above) is not empty for
  72. # the server. In most cases, the default value should be fine.
  73. #
  74. # Default: tunnel_bridge = br-tun
  75.  
  76. # Peer patch port in integration bridge for tunnel bridge
  77. # int_peer_patch_port = patch-tun
  78.  
  79. # Peer patch port in tunnel bridge for integration bridge
  80. # tun_peer_patch_port = patch-int
  81.  
  82. # Uncomment this line for the agent if tunnel_id_ranges (above) is not
  83. # empty for the server. Set local-ip to be the local IP address of
  84. # this hypervisor.
  85. #
  86. # Default: local_ip =
  87.  
  88. # (ListOpt) Comma-separated list of <physical_network>:<bridge> tuples
  89. # mapping physical network names to the agent's node-specific OVS
  90. # bridge names to be used for flat and VLAN networks. The length of
  91. # bridge names should be no more than 11. Each bridge must
  92. # exist, and should have a physical network interface configured as a
  93. # port. All physical networks listed in network_vlan_ranges on the
  94. # server should have mappings to appropriate bridges on each agent.
  95. #
  96. # Default: bridge_mappings =
  97. # Example: bridge_mappings = physnet1:br-eth1
  98. integration_bridge=br-int
  99. tunnel_id_ranges=1:1000
  100. enable_tunneling=True
  101. bridge_mappings=default:br-ex
  102. tunnel_bridge=br-tun
  103. tenant_network_type=gre
  104. local_ip=192.168.1.222
  105.  
  106. [AGENT]
  107. # Agent's polling interval in seconds
  108. polling_interval = 2
  109.  
  110. [SECURITYGROUP]
  111. # Firewall driver for realizing quantum security group function
  112. # firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
  113. firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
  114.  
  115. #-----------------------------------------------------------------------------
  116. # Sample Configurations.
  117. #-----------------------------------------------------------------------------
  118. #
  119. # 1. With VLANs on eth1.
  120. # [DATABASE]
  121. # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
  122. # [OVS]
  123. # network_vlan_ranges = default:2000:3999
  124. # tunnel_id_ranges =
  125. # integration_bridge = br-int
  126. # bridge_mappings = default:br-eth1
  127. # [AGENT]
  128. # Add the following setting, if you want to log to a file
  129. #
  130. # 2. With tunneling.
  131. # [DATABASE]
  132. # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_quantum
  133. # [OVS]
  134. # network_vlan_ranges =
  135. # tunnel_id_ranges = 1:1000
  136. # integration_bridge = br-int
  137. # tunnel_bridge = br-tun
  138. # local_ip = 10.0.0.3
  139. root@amrwobl222:~# ifconfig
  140. br-ex Link encap:Ethernet HWaddr 00:e0:81:db:0a:cd
  141. inet addr:192.168.1.222 Bcast:192.168.1.255 Mask:255.255.255.0
  142. inet6 addr: fe80::2e0:81ff:fedb:acd/64 Scope:Link
  143. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  144. RX packets:2651 errors:0 dropped:0 overruns:0 frame:0
  145. TX packets:2107 errors:0 dropped:0 overruns:0 carrier:0
  146. collisions:0 txqueuelen:0
  147. RX bytes:397770 (397.7 KB) TX bytes:387434 (387.4 KB)
  148.  
  149. eth0 Link encap:Ethernet HWaddr 00:e0:81:db:0a:cd
  150. inet6 addr: fe80::2e0:81ff:fedb:acd/64 Scope:Link
  151. UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
  152. RX packets:2743 errors:0 dropped:0 overruns:0 frame:0
  153. TX packets:2136 errors:0 dropped:0 overruns:0 carrier:0
  154. collisions:0 txqueuelen:1000
  155. RX bytes:462301 (462.3 KB) TX bytes:401281 (401.2 KB)
  156. Interrupt:16 Memory:fbee0000-fbf00000
  157.  
  158. eth1 Link encap:Ethernet HWaddr 00:e0:81:db:0a:ce
  159. inet addr:10.0.19.1 Bcast:10.0.19.255 Mask:255.255.255.0
  160. inet6 addr: fe80::2e0:81ff:fedb:ace/64 Scope:Link
  161. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  162. RX packets:19 errors:0 dropped:0 overruns:0 frame:0
  163. TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
  164. collisions:0 txqueuelen:1000
  165. RX bytes:7052 (7.0 KB) TX bytes:4056 (4.0 KB)
  166. Interrupt:17 Memory:fbde0000-fbe00000
  167.  
  168. int-br-ex Link encap:Ethernet HWaddr 8a:29:ac:1d:bd:48
  169. inet6 addr: fe80::8829:acff:fe1d:bd48/64 Scope:Link
  170. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  171. RX packets:6 errors:0 dropped:0 overruns:0 frame:0
  172. TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
  173. collisions:0 txqueuelen:1000
  174. RX bytes:468 (468.0 B) TX bytes:2854 (2.8 KB)
  175.  
  176. lo Link encap:Local Loopback
  177. inet addr:127.0.0.1 Mask:255.0.0.0
  178. inet6 addr: ::1/128 Scope:Host
  179. UP LOOPBACK RUNNING MTU:16436 Metric:1
  180. RX packets:18444 errors:0 dropped:0 overruns:0 frame:0
  181. TX packets:18444 errors:0 dropped:0 overruns:0 carrier:0
  182. collisions:0 txqueuelen:0
  183. RX bytes:31429610 (31.4 MB) TX bytes:31429610 (31.4 MB)
  184.  
  185. phy-br-ex Link encap:Ethernet HWaddr 6e:e1:79:c9:33:99
  186. inet6 addr: fe80::6ce1:79ff:fec9:3399/64 Scope:Link
  187. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  188. RX packets:31 errors:0 dropped:0 overruns:0 frame:0
  189. TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
  190. collisions:0 txqueuelen:1000
  191. RX bytes:2854 (2.8 KB) TX bytes:468 (468.0 B)
  192.  
  193. root@amrwobl222:~# cat /etc/network/interfaces
  194. # This file describes the network interfaces available on your system
  195. # and how to activate them. For more information, see interfaces(5).
  196.  
  197. # The loopback network interface
  198. auto lo
  199. iface lo inet loopback
  200.  
  201. # The primary network interface
  202.  
  203. auto eth0
  204. iface eth0 inet manual
  205. up ifconfig $IFACE 0.0.0.0 up
  206. up ifconfig $IFACE promisc
  207.  
  208.  
  209. auto br-ex
  210. iface br-ex inet static
  211. # USE THE FOLLOWING IF CONVERTING VM TO RUN ON BACKBONE
  212. address 192.168.1.222
  213. netmask 255.255.255.0
  214. gateway 192.168.1.1
  215. bridge_ports eth0
  216. dns-nameservers 192.168.1.223 192.168.1.247 8.8.8.8
  217.  
  218. auto eth1
  219. iface eth1 inet static
  220. address 10.0.19.1
  221. netmask 255.255.255.0
  222. root@amrwobl222:~#
  223. root@amrwobl222:~# ovs-vsctl show
  224. 49205f35-b23d-4f18-a34c-ffc9784954c5
  225. Bridge br-ex
  226. Port "qg-ec77ff86-23"
  227. Interface "qg-ec77ff86-23"
  228. type: internal
  229. Port "qg-c7f426fe-ae"
  230. Interface "qg-c7f426fe-ae"
  231. type: internal
  232. Port "eth0"
  233. Interface "eth0"
  234. Port phy-br-ex
  235. Interface phy-br-ex
  236. Port br-ex
  237. Interface br-ex
  238. type: internal
  239. Port "br100"
  240. Interface "br100"
  241. Port "qg-36b45515-cb"
  242. Interface "qg-36b45515-cb"
  243. type: internal
  244. Bridge br-tun
  245. Port "gre-1"
  246. Interface "gre-1"
  247. type: gre
  248. options: {in_key=flow, out_key=flow, remote_ip="eth0"}
  249. Port "gre-2"
  250. Interface "gre-2"
  251. type: gre
  252. options: {in_key=flow, out_key=flow, remote_ip="10.10.19.2"}
  253. Port patch-int
  254. Interface patch-int
  255. type: patch
  256. options: {peer=patch-tun}
  257. Port br-tun
  258. Interface br-tun
  259. type: internal
  260. Port "gre-3"
  261. Interface "gre-3"
  262. type: gre
  263. options: {in_key=flow, out_key=flow, remote_ip="192.168.1.221"}
  264. Bridge br-int
  265. Port "tap5734b2ce-8a"
  266. tag: 1
  267. Interface "tap5734b2ce-8a"
  268. type: internal
  269. Port "tapcd2823fb-2e"
  270. tag: 4095
  271. Interface "tapcd2823fb-2e"
  272. type: internal
  273. Port "tap204031ea-bb"
  274. tag: 2
  275. Interface "tap204031ea-bb"
  276. type: internal
  277. Port patch-tun
  278. Interface patch-tun
  279. type: patch
  280. options: {peer=patch-int}
  281. Port int-br-ex
  282. Interface int-br-ex
  283. Port "qr-89385bc6-86"
  284. tag: 4095
  285. Interface "qr-89385bc6-86"
  286. type: internal
  287. Port br-int
  288. Interface br-int
  289. type: internal
  290. Port "qr-959a1cb9-78"
  291. tag: 1
  292. Interface "qr-959a1cb9-78"
  293. type: internal
  294. ovs_version: "1.4.0+build0"
  295. root@amrwobl222:~# brctl show
  296. bridge name bridge id STP enabled interfaces
  297. br-ex 8000.00e081db0acd no eth0
  298. br-int 0000.72df9898b643 no int-br-ex
  299. qr-89385bc6-86
  300. qr-959a1cb9-78
  301. tap204031ea-bb
  302. tap5734b2ce-8a
  303. tapcd2823fb-2e
  304. br-tun 0000.d6a41c8c0a4e no
  305. root@amrwobl222:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement