Advertisement
Guest User

config

a guest
Nov 12th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.71 KB | None | 0 0
  1. # neutron net-list
  2. +--------------------------------------+------------+----------------------------------------------------+
  3. | id | name | subnets |
  4. +--------------------------------------+------------+----------------------------------------------------+
  5. | 5303dcd3-080d-42ec-87fd-5c49e7288079 | sharednet2 | 77a0059d-fab5-4654-88b5-337791db4885 10.150.0.0/16 |
  6. | 6501c158-5434-4fa2-93c9-3855131aa283 | sharednet1 | de164a0d-a938-4a87-8a90-e334d3d43fef 172.22.0.0/16 |
  7. +--------------------------------------+------------+----------------------------------------------------+
  8.  
  9.  
  10. # neutron subnet-list
  11. +--------------------------------------+------+---------------+--------------------------------------------------+
  12. | id | name | cidr | allocation_pools |
  13. +--------------------------------------+------+---------------+--------------------------------------------------+
  14. | 77a0059d-fab5-4654-88b5-337791db4885 | | 10.150.0.0/16 | {"start": "10.150.10.10", "end": "10.150.50.50"} |
  15. | de164a0d-a938-4a87-8a90-e334d3d43fef | | 172.22.0.0/16 | {"start": "172.22.10.10", "end": "172.22.50.50"} |
  16. +--------------------------------------+------+---------------+--------------------------------------------------+
  17.  
  18.  
  19. # neutron subnet-show 77a0059d-fab5-4654-88b5-337791db4885
  20. +------------------+--------------------------------------------------+
  21. | Field | Value |
  22. +------------------+--------------------------------------------------+
  23. | allocation_pools | {"start": "10.150.10.10", "end": "10.150.50.50"} |
  24. | cidr | 10.150.0.0/16 |
  25. | dns_nameservers | 10.150.5.1 |
  26. | enable_dhcp | True |
  27. | gateway_ip | 10.150.5.1 |
  28. | host_routes | |
  29. | id | 77a0059d-fab5-4654-88b5-337791db4885 |
  30. | ip_version | 4 |
  31. | name | |
  32. | network_id | 5303dcd3-080d-42ec-87fd-5c49e7288079 |
  33. | tenant_id | admin |
  34. +------------------+--------------------------------------------------+
  35.  
  36.  
  37. # neutron subnet-show de164a0d-a938-4a87-8a90-e334d3d43fef
  38. +------------------+--------------------------------------------------+
  39. | Field | Value |
  40. +------------------+--------------------------------------------------+
  41. | allocation_pools | {"start": "172.22.10.10", "end": "172.22.50.50"} |
  42. | cidr | 172.22.0.0/16 |
  43. | dns_nameservers | 172.22.0.1 |
  44. | enable_dhcp | True |
  45. | gateway_ip | 172.22.0.1 |
  46. | host_routes | |
  47. | id | de164a0d-a938-4a87-8a90-e334d3d43fef |
  48. | ip_version | 4 |
  49. | name | |
  50. | network_id | 6501c158-5434-4fa2-93c9-3855131aa283 |
  51. | tenant_id | admin |
  52. +------------------+--------------------------------------------------+
  53.  
  54.  
  55. # ip netns list
  56. qdhcp-6501c158-5434-4fa2-93c9-3855131aa283
  57. qdhcp-5303dcd3-080d-42ec-87fd-5c49e7288079
  58.  
  59.  
  60.  
  61. # ip netns exec qdhcp-6501c158-5434-4fa2-93c9-3855131aa283 ip add
  62. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
  63. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  64. inet 127.0.0.1/8 scope host lo
  65. valid_lft forever preferred_lft forever
  66. inet6 ::1/128 scope host
  67. valid_lft forever preferred_lft forever
  68. 29: tap7cd1bb45-94: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
  69. link/ether fa:16:3e:82:5b:03 brd ff:ff:ff:ff:ff:ff
  70. inet 172.22.10.11/16 brd 172.22.255.255 scope global tap7cd1bb45-94
  71. valid_lft forever preferred_lft forever
  72. inet 169.254.169.254/16 brd 169.254.255.255 scope global tap7cd1bb45-94
  73. valid_lft forever preferred_lft forever
  74. inet6 fe80::f816:3eff:fe82:5b03/64 scope link
  75. valid_lft forever preferred_lft forever
  76.  
  77. # ip netns exec qdhcp-6501c158-5434-4fa2-93c9-3855131aa283 route -n
  78. Kernel IP routing table
  79. Destination Gateway Genmask Flags Metric Ref Use Iface
  80. 0.0.0.0 172.22.0.1 0.0.0.0 UG 0 0 0 tap7cd1bb45-94
  81. 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap7cd1bb45-94
  82. 172.22.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap7cd1bb45-94
  83.  
  84. # ip netns exec qdhcp-6501c158-5434-4fa2-93c9-3855131aa283 arp -a
  85. ? (172.22.0.1) at 02:1f:a0:00:00:21 [ether] on tap7cd1bb45-94
  86. ? (172.22.0.2) at 00:1f:a0:11:41:d3 [ether] on tap7cd1bb45-94
  87. ? (172.22.10.22) at fa:16:3e:73:08:77 [ether] on tap7cd1bb45-94
  88. ? (172.22.10.23) at fa:16:3e:d8:6f:2a [ether] on tap7cd1bb45-94
  89. ? (172.22.10.25) at fa:16:3e:9c:99:a5 [ether] on tap7cd1bb45-94
  90.  
  91.  
  92.  
  93. # ip netns exec qdhcp-5303dcd3-080d-42ec-87fd-5c49e7288079 ip add
  94. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
  95. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  96. inet 127.0.0.1/8 scope host lo
  97. valid_lft forever preferred_lft forever
  98. inet6 ::1/128 scope host
  99. valid_lft forever preferred_lft forever
  100. 28: tap1d90186b-4b: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
  101. link/ether fa:16:3e:7c:ec:b5 brd ff:ff:ff:ff:ff:ff
  102. inet 10.150.10.11/16 brd 10.150.255.255 scope global tap1d90186b-4b
  103. valid_lft forever preferred_lft forever
  104. inet 169.254.169.254/16 brd 169.254.255.255 scope global tap1d90186b-4b
  105. valid_lft forever preferred_lft forever
  106. inet6 fe80::f816:3eff:fe7c:ecb5/64 scope link
  107. valid_lft forever preferred_lft forever
  108.  
  109. # ip netns exec qdhcp-5303dcd3-080d-42ec-87fd-5c49e7288079 route -n
  110. Kernel IP routing table
  111. Destination Gateway Genmask Flags Metric Ref Use Iface
  112. 0.0.0.0 10.150.5.1 0.0.0.0 UG 0 0 0 tap1d90186b-4b
  113. 10.150.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap1d90186b-4b
  114. 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap1d90186b-4b
  115.  
  116.  
  117. # ip netns exec qdhcp-5303dcd3-080d-42ec-87fd-5c49e7288079 arp -a
  118. ? (10.150.10.16) at fa:16:3e:64:9f:0c [ether] on tap1d90186b-4b
  119. ? (10.150.10.14) at fa:16:3e:82:09:14 [ether] on tap1d90186b-4b
  120. ? (10.150.10.15) at 0c:c4:7a:1d:e9:80 [ether] on tap1d90186b-4b
  121. ? (10.150.5.1) at 00:18:0a:85:92:84 [ether] on tap1d90186b-4b
  122.  
  123.  
  124. ovs-vsctl show (on controller)
  125. # ovs-vsctl show
  126. 3d2c0525-73d7-48c1-94ea-b03a8305722b
  127. Bridge "br-osbond0.1150"
  128. Port "phy-br-osc9d591"
  129. Interface "phy-br-osc9d591"
  130. Port "osbond0.1150"
  131. Interface "osbond0.1150"
  132. Port "br-osbond0.1150"
  133. Interface "br-osbond0.1150"
  134. type: internal
  135. Bridge br-tun
  136. Port br-tun
  137. Interface br-tun
  138. type: internal
  139. Port patch-int
  140. Interface patch-int
  141. type: patch
  142. options: {peer=patch-tun}
  143. Port "gre-0a0b0a0e"
  144. Interface "gre-0a0b0a0e"
  145. type: gre
  146. options: {in_key=flow, local_ip="10.11.4.11", out_key=flow, remote_ip="10.11.10.14"}
  147. Port "gre-0a0b0a0f"
  148. Interface "gre-0a0b0a0f"
  149. type: gre
  150. options: {in_key=flow, local_ip="10.11.4.11", out_key=flow, remote_ip="10.11.10.15"}
  151. Bridge br-int
  152. fail_mode: secure
  153. Port "tap7cd1bb45-94"
  154. tag: 2
  155. Interface "tap7cd1bb45-94"
  156. type: internal
  157. Port "int-br-os917825"
  158. Interface "int-br-os917825"
  159. Port "tap1d90186b-4b"
  160. tag: 1
  161. Interface "tap1d90186b-4b"
  162. type: internal
  163. Port patch-tun
  164. Interface patch-tun
  165. type: patch
  166. options: {peer=patch-int}
  167. Port "int-br-osc9d591"
  168. Interface "int-br-osc9d591"
  169. Port br-int
  170. Interface br-int
  171. type: internal
  172. Bridge "br-osbond0.2200"
  173. Port "osbond0.2200"
  174. Interface "osbond0.2200"
  175. Port "phy-br-os917825"
  176. Interface "phy-br-os917825"
  177. Port "br-osbond0.2200"
  178. Interface "br-osbond0.2200"
  179. type: internal
  180. ovs_version: "2.0.2"
  181.  
  182.  
  183. Compute1
  184. ========
  185. # virsh list --all
  186. Id Name State
  187. ----------------------------------------------------
  188. 20 instance-00000020 running
  189. 21 instance-00000022 running
  190. 22 instance-00000024 running
  191. 23 instance-00000026 running
  192.  
  193.  
  194. # ovs-vsctl show
  195. 8e672f2d-e76d-4bc6-bc70-dc93ddd3a8e4
  196. Bridge "br-osbond0.1150"
  197. Port "br-osbond0.1150"
  198. Interface "br-osbond0.1150"
  199. type: internal
  200. Port "osbond0.1150"
  201. Interface "osbond0.1150"
  202. Port "phy-br-osc9d591"
  203. Interface "phy-br-osc9d591"
  204. Bridge br-tun
  205. Port "gre-0a0b040b"
  206. Interface "gre-0a0b040b"
  207. type: gre
  208. options: {in_key=flow, local_ip="10.11.10.14", out_key=flow, remote_ip="10.11.4.11"}
  209. Port "gre-0a0b0a0f"
  210. Interface "gre-0a0b0a0f"
  211. type: gre
  212. options: {in_key=flow, local_ip="10.11.10.14", out_key=flow, remote_ip="10.11.10.15"}
  213. Port br-tun
  214. Interface br-tun
  215. type: internal
  216. Port patch-int
  217. Interface patch-int
  218. type: patch
  219. options: {peer=patch-tun}
  220. Bridge br-int
  221. fail_mode: secure
  222. Port "qvo2a20082b-5a"
  223. tag: 1
  224. Interface "qvo2a20082b-5a"
  225. Port "qvo32f0e30d-c7"
  226. tag: 2
  227. Interface "qvo32f0e30d-c7"
  228. Port patch-tun
  229. Interface patch-tun
  230. type: patch
  231. options: {peer=patch-int}
  232. Port br-int
  233. Interface br-int
  234. type: internal
  235. Port "int-br-os917825"
  236. Interface "int-br-os917825"
  237. Port "int-br-osc9d591"
  238. Interface "int-br-osc9d591"
  239. Port "qvo038076d6-58"
  240. tag: 2
  241. Interface "qvo038076d6-58"
  242. Port "qvoc23af27f-a4"
  243. tag: 1
  244. Interface "qvoc23af27f-a4"
  245. Bridge "br-osbond0.2200"
  246. Port "phy-br-os917825"
  247. Interface "phy-br-os917825"
  248. Port "br-osbond0.2200"
  249. Interface "br-osbond0.2200"
  250. type: internal
  251. Port "osbond0.2200"
  252. Interface "osbond0.2200"
  253. ovs_version: "2.0.2"
  254.  
  255.  
  256.  
  257. Compute-2
  258. =========
  259. # virsh list --all
  260. Id Name State
  261. ----------------------------------------------------
  262. 13 instance-0000001f running
  263. 14 instance-00000021 running
  264. - instance-00000023 shut off
  265.  
  266. # ovs-vsctl show
  267. 0b959a09-0c8d-4699-9475-57ca115bf63b
  268. Bridge "br-osbond0.1150"
  269. Port "phy-br-osc9d591"
  270. Interface "phy-br-osc9d591"
  271. Port "br-osbond0.1150"
  272. Interface "br-osbond0.1150"
  273. type: internal
  274. Port "osbond0.1150"
  275. Interface "osbond0.1150"
  276. Bridge "br-osbond0.2200"
  277. Port "phy-br-os917825"
  278. Interface "phy-br-os917825"
  279. Port "br-osbond0.2200"
  280. Interface "br-osbond0.2200"
  281. type: internal
  282. Port "osbond0.2200"
  283. Interface "osbond0.2200"
  284. Bridge br-int
  285. fail_mode: secure
  286. Port "qvo68af3758-60"
  287. tag: 2
  288. Interface "qvo68af3758-60"
  289. Port "qvo23c24045-42"
  290. tag: 1
  291. Interface "qvo23c24045-42"
  292. Port "int-br-os917825"
  293. Interface "int-br-os917825"
  294. Port "int-br-osc9d591"
  295. Interface "int-br-osc9d591"
  296. Port "qvo69e7cd17-03"
  297. tag: 2
  298. Interface "qvo69e7cd17-03"
  299. Port patch-tun
  300. Interface patch-tun
  301. type: patch
  302. options: {peer=patch-int}
  303. Port br-int
  304. Interface br-int
  305. type: internal
  306. Bridge br-tun
  307. Port br-tun
  308. Interface br-tun
  309. type: internal
  310. Port "gre-0a0b040b"
  311. Interface "gre-0a0b040b"
  312. type: gre
  313. options: {in_key=flow, local_ip="10.11.10.15", out_key=flow, remote_ip="10.11.4.11"}
  314. Port "gre-0a0b0a0e"
  315. Interface "gre-0a0b0a0e"
  316. type: gre
  317. options: {in_key=flow, local_ip="10.11.10.15", out_key=flow, remote_ip="10.11.10.14"}
  318. Port patch-int
  319. Interface patch-int
  320. type: patch
  321. options: {peer=patch-tun}
  322. ovs_version: "2.0.2"
  323.  
  324.  
  325.  
  326. Controller Configuration:
  327. /etc/neutron# cat neutron.conf |grep -v '^#' |grep -v '^$'
  328. [DEFAULT]
  329. verbose = True
  330. debug = True
  331. state_path = /var/lib/neutron
  332. lock_path = $state_path/lock
  333. use_syslog = False
  334. log_dir =/var/log/neutron
  335. bind_host = 0.0.0.0
  336. bind_port = 9696
  337. core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin
  338. service_plugins = neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
  339. auth_strategy = keystone
  340. base_mac = fa:16:3e:00:00:00
  341. mac_generation_retries = 16
  342. dhcp_lease_duration = 86400
  343. dhcp_agent_notification = True
  344. allow_bulk = True
  345. allow_pagination = False
  346. allow_sorting = False
  347. allow_overlapping_ips = True
  348. rpc_backend = neutron.openstack.common.rpc.impl_kombu
  349. control_exchange = neutron
  350. rabbit_host = 10.13.4.11
  351. rabbit_password = xxxxx
  352. rabbit_port = 5672
  353. rabbit_hosts = 10.13.4.11:5672
  354. rabbit_userid = openstack
  355. rabbit_virtual_host = /
  356. rabbit_ha_queues = False
  357. notification_driver = neutron.openstack.common.notifier.rpc_notifier
  358. agent_down_time = 75
  359. router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler
  360. dhcp_agents_per_network = 1
  361. api_workers = 0
  362. rpc_workers = 0
  363. use_ssl = False
  364. notify_nova_on_port_status_changes = True
  365. notify_nova_on_port_data_changes = True
  366. nova_url = http://10.13.4.11:8774/v2/
  367. nova_region_name =US1-NextGen
  368. nova_admin_username =nova
  369. nova_admin_tenant_id =085d3bc49b704349a6b4980f4cd9f663
  370. nova_admin_password =xxxx
  371. nova_admin_auth_url =http://10.13.4.11:35357/v2.0/
  372. send_events_interval = 2
  373. rabbit_use_ssl=False
  374. [quotas]
  375. [agent]
  376. root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
  377.  
  378. # cat plugin.ini |grep -v '^#' |grep -v '^$'
  379. [ml2]
  380. type_drivers = flat,vlan,gre,vxlan
  381. tenant_network_types = vxlan
  382. mechanism_drivers =openvswitch,linuxbridge
  383. [ml2_type_flat]
  384. flat_networks = *
  385. [ml2_type_vlan]
  386. network_vlan_ranges =physnet1:100:199,physnet2:200:299
  387. [ml2_type_gre]
  388. tunnel_id_ranges =1:1000
  389. [ml2_type_vxlan]
  390. vni_ranges =10:100
  391. vxlan_group =224.0.0.1
  392. [securitygroup]
  393. enable_security_group = True
  394. firewall_driver=neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
  395. [agent]
  396. l2_population=False
  397. polling_interval=2
  398. arp_responder=False
  399. tunnel_types=gre
  400. [ovs]
  401. enable_tunneling=True
  402. integration_bridge=br-int
  403. bridge_mappings=physnet1:br-osbond0.2200,physnet2:br-osbond0.1150
  404. local_ip=10.11.4.11
  405. tunnel_bridge=br-tun
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement