Advertisement
Guest User

QTM L3 HA Issue

a guest
Mar 7th, 2013
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.08 KB | None | 0 0
  1. root@control03:~# quantum net-create public --router:external=True
  2. Created a new network:
  3. +---------------------------+--------------------------------------+
  4. | Field | Value |
  5. +---------------------------+--------------------------------------+
  6. | admin_state_up | True |
  7. | id | ef3f8ef2-c99b-44d4-b4a1-cc6298f40648 |
  8. | name | public |
  9. | provider:network_type | gre |
  10. | provider:physical_network | |
  11. | provider:segmentation_id | 1 |
  12. | router:external | True |
  13. | shared | False |
  14. | status | ACTIVE |
  15. | subnets | |
  16. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  17. +---------------------------+--------------------------------------+
  18. root@control03:~# quantum subnet-create --name 221-subnet --allocation-pool start=192.168.221.10,end=192.168.221.250 public 192.168.221.0/24 --dns_nameservers list=true 192.168.26.186
  19. Created a new subnet:
  20. +------------------+-------------------------------------------------------+
  21. | Field | Value |
  22. +------------------+-------------------------------------------------------+
  23. | allocation_pools | {"start": "192.168.221.10", "end": "192.168.221.250"} |
  24. | cidr | 192.168.221.0/24 |
  25. | dns_nameservers | 192.168.26.186 |
  26. | enable_dhcp | True |
  27. | gateway_ip | 192.168.221.1 |
  28. | host_routes | |
  29. | id | 469b5180-846c-43b0-8269-c66ffa53383f |
  30. | ip_version | 4 |
  31. | name | 221-subnet |
  32. | network_id | ef3f8ef2-c99b-44d4-b4a1-cc6298f40648 |
  33. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  34. +------------------+-------------------------------------------------------+
  35. root@control03:~# quantum net-create net1
  36. Created a new network:
  37. +---------------------------+--------------------------------------+
  38. | Field | Value |
  39. +---------------------------+--------------------------------------+
  40. | admin_state_up | True |
  41. | id | c17d0c46-fc75-4c5c-b5aa-35e87c335fd9 |
  42. | name | net1 |
  43. | provider:network_type | gre |
  44. | provider:physical_network | |
  45. | provider:segmentation_id | 2 |
  46. | router:external | False |
  47. | shared | False |
  48. | status | ACTIVE |
  49. | subnets | |
  50. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  51. +---------------------------+--------------------------------------+
  52. root@control03:~# quantum subnet-create --name 10-subnet net1 10.10.10.0/24
  53. Created a new subnet:
  54. +------------------+------------------------------------------------+
  55. | Field | Value |
  56. +------------------+------------------------------------------------+
  57. | allocation_pools | {"start": "10.10.10.2", "end": "10.10.10.254"} |
  58. | cidr | 10.10.10.0/24 |
  59. | dns_nameservers | |
  60. | enable_dhcp | True |
  61. | gateway_ip | 10.10.10.1 |
  62. | host_routes | |
  63. | id | 412f82d2-489c-4cdc-a138-96fb5a62c7a3 |
  64. | ip_version | 4 |
  65. | name | 10-subnet |
  66. | network_id | c17d0c46-fc75-4c5c-b5aa-35e87c335fd9 |
  67. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  68. +------------------+------------------------------------------------+
  69. root@control03:~# quantum net-create net2
  70. Created a new network:
  71. +---------------------------+--------------------------------------+
  72. | Field | Value |
  73. +---------------------------+--------------------------------------+
  74. | admin_state_up | True |
  75. | id | 90e4be5f-ac8e-4fae-9f18-d738e059de2b |
  76. | name | net2 |
  77. | provider:network_type | gre |
  78. | provider:physical_network | |
  79. | provider:segmentation_id | 3 |
  80. | router:external | False |
  81. | shared | False |
  82. | status | ACTIVE |
  83. | subnets | |
  84. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  85. +---------------------------+--------------------------------------+
  86. root@control03:~# quantum subnet-create --name 11-subnet net2 10.10.11.0/24
  87. Created a new subnet:
  88. +------------------+------------------------------------------------+
  89. | Field | Value |
  90. +------------------+------------------------------------------------+
  91. | allocation_pools | {"start": "10.10.11.2", "end": "10.10.11.254"} |
  92. | cidr | 10.10.11.0/24 |
  93. | dns_nameservers | |
  94. | enable_dhcp | True |
  95. | gateway_ip | 10.10.11.1 |
  96. | host_routes | |
  97. | id | f1b699cd-825a-449a-a1a5-030af1729d0f |
  98. | ip_version | 4 |
  99. | name | 11-subnet |
  100. | network_id | 90e4be5f-ac8e-4fae-9f18-d738e059de2b |
  101. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  102. +------------------+------------------------------------------------+
  103. root@control03:~# quantum net-create net3
  104. Created a new network:
  105. +---------------------------+--------------------------------------+
  106. | Field | Value |
  107. +---------------------------+--------------------------------------+
  108. | admin_state_up | True |
  109. | id | 354c9bed-7193-405d-a093-4f8a293b7f76 |
  110. | name | net3 |
  111. | provider:network_type | gre |
  112. | provider:physical_network | |
  113. | provider:segmentation_id | 4 |
  114. | router:external | False |
  115. | shared | False |
  116. | status | ACTIVE |
  117. | subnets | |
  118. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  119. +---------------------------+--------------------------------------+
  120. root@control03:~# quantum subnet-create --name 12-subnet net3 10.10.12.0/24
  121. Created a new subnet:
  122. +------------------+------------------------------------------------+
  123. | Field | Value |
  124. +------------------+------------------------------------------------+
  125. | allocation_pools | {"start": "10.10.12.2", "end": "10.10.12.254"} |
  126. | cidr | 10.10.12.0/24 |
  127. | dns_nameservers | |
  128. | enable_dhcp | True |
  129. | gateway_ip | 10.10.12.1 |
  130. | host_routes | |
  131. | id | b1c73efa-2350-434e-bbcb-9d9e5fdbc6f1 |
  132. | ip_version | 4 |
  133. | name | 12-subnet |
  134. | network_id | 354c9bed-7193-405d-a093-4f8a293b7f76 |
  135. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  136. +------------------+------------------------------------------------+
  137. root@control03:~# quantum net-list
  138. +--------------------------------------+--------+-------------------------------------------------------+
  139. | id | name | subnets |
  140. +--------------------------------------+--------+-------------------------------------------------------+
  141. | 354c9bed-7193-405d-a093-4f8a293b7f76 | net3 | b1c73efa-2350-434e-bbcb-9d9e5fdbc6f1 10.10.12.0/24 |
  142. | 90e4be5f-ac8e-4fae-9f18-d738e059de2b | net2 | f1b699cd-825a-449a-a1a5-030af1729d0f 10.10.11.0/24 |
  143. | c17d0c46-fc75-4c5c-b5aa-35e87c335fd9 | net1 | 412f82d2-489c-4cdc-a138-96fb5a62c7a3 10.10.10.0/24 |
  144. | ef3f8ef2-c99b-44d4-b4a1-cc6298f40648 | public | 469b5180-846c-43b0-8269-c66ffa53383f 192.168.221.0/24 |
  145. +--------------------------------------+--------+-------------------------------------------------------+
  146. root@control03:~# quantum subnet-list
  147. +--------------------------------------+------------+------------------+-------------------------------------------------------+
  148. | id | name | cidr | allocation_pools |
  149. +--------------------------------------+------------+------------------+-------------------------------------------------------+
  150. | 412f82d2-489c-4cdc-a138-96fb5a62c7a3 | 10-subnet | 10.10.10.0/24 | {"start": "10.10.10.2", "end": "10.10.10.254"} |
  151. | 469b5180-846c-43b0-8269-c66ffa53383f | 221-subnet | 192.168.221.0/24 | {"start": "192.168.221.10", "end": "192.168.221.250"} |
  152. | b1c73efa-2350-434e-bbcb-9d9e5fdbc6f1 | 12-subnet | 10.10.12.0/24 | {"start": "10.10.12.2", "end": "10.10.12.254"} |
  153. | f1b699cd-825a-449a-a1a5-030af1729d0f | 11-subnet | 10.10.11.0/24 | {"start": "10.10.11.2", "end": "10.10.11.254"} |
  154. +--------------------------------------+------------+------------------+-------------------------------------------------------+
  155. root@control03:~# quantum agent-update 0d979401-8113-4e6e-9970-8ba46a7343e5 --admin_state_up=falseUpdated agent: 0d979401-8113-4e6e-9970-8ba46a7343e5
  156. root@control03:~# quantum agent-list
  157. +--------------------------------------+--------------------+-----------+-------+----------------+
  158. | id | agent_type | host | alive | admin_state_up |
  159. +--------------------------------------+--------------------+-----------+-------+----------------+
  160. | 0d979401-8113-4e6e-9970-8ba46a7343e5 | L3 agent | compute01 | :-) | False |
  161. | 32d1be16-0ab5-4ae2-a026-a4b70009af08 | L3 agent | control02 | :-) | True |
  162. | 39e1739b-b8f9-44e0-a2f8-32f6d1747fcf | Open vSwitch agent | control03 | :-) | True |
  163. | 7cbcf299-7161-4a65-86d3-32bdb4b78551 | Open vSwitch agent | control02 | :-) | True |
  164. | 81486440-72df-42e8-9abd-177341393025 | DHCP agent | compute01 | :-) | True |
  165. | 99e0363c-29bb-4623-b969-f161fc56c3e3 | Open vSwitch agent | compute01 | :-) | True |
  166. | f1b37c63-b7ce-48b8-9ff0-70a4b69e3bf7 | DHCP agent | control03 | :-) | True |
  167. +--------------------------------------+--------------------+-----------+-------+----------------+
  168. root@control03:~# quantum router-create router1
  169. Created a new router:
  170. +-----------------------+--------------------------------------+
  171. | Field | Value |
  172. +-----------------------+--------------------------------------+
  173. | admin_state_up | True |
  174. | external_gateway_info | |
  175. | id | b6146778-1a07-4518-82a5-480f203bc3fe |
  176. | name | router1 |
  177. | status | ACTIVE |
  178. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  179. +-----------------------+--------------------------------------+
  180. root@control03:~# quantum router-create router2
  181. Created a new router:
  182. +-----------------------+--------------------------------------+
  183. | Field | Value |
  184. +-----------------------+--------------------------------------+
  185. | admin_state_up | True |
  186. | external_gateway_info | |
  187. | id | 9367726c-b932-4d86-94e0-2b7595a28054 |
  188. | name | router2 |
  189. | status | ACTIVE |
  190. | tenant_id | 2fbf0d3f6b914b5e8eb4605355cf2c9b |
  191. +-----------------------+--------------------------------------+
  192. root@control03:~# quantum router-interface-add router1 10-subnet
  193. Added interface to router router1
  194. root@control03:~# quantum router-interface-add router2 11-subnet
  195. Added interface to router router2
  196. root@control03:~# quantum router-gateway-set router1 public
  197. Set gateway for router router1
  198. root@control03:~# quantum router-gateway-set router2 public
  199. Set gateway for router router2
  200. root@control03:~# quantum router-list
  201. +--------------------------------------+---------+--------------------------------------------------------+
  202. | id | name | external_gateway_info |
  203. +--------------------------------------+---------+--------------------------------------------------------+
  204. | 9367726c-b932-4d86-94e0-2b7595a28054 | router2 | {"network_id": "ef3f8ef2-c99b-44d4-b4a1-cc6298f40648"} |
  205. | b6146778-1a07-4518-82a5-480f203bc3fe | router1 | {"network_id": "ef3f8ef2-c99b-44d4-b4a1-cc6298f40648"} |
  206. +--------------------------------------+---------+--------------------------------------------------------+
  207. root@control03:~# quantum agent-update 0d979401-8113-4e6e-9970-8ba46a7343e5 --admin_state_up=true
  208. Updated agent: 0d979401-8113-4e6e-9970-8ba46a7343e5
  209. root@control03:~# quantum agent-list
  210. +--------------------------------------+--------------------+-----------+-------+----------------+
  211. | id | agent_type | host | alive | admin_state_up |
  212. +--------------------------------------+--------------------+-----------+-------+----------------+
  213. | 0d979401-8113-4e6e-9970-8ba46a7343e5 | L3 agent | compute01 | :-) | True |
  214. | 32d1be16-0ab5-4ae2-a026-a4b70009af08 | L3 agent | control02 | :-) | True |
  215. | 39e1739b-b8f9-44e0-a2f8-32f6d1747fcf | Open vSwitch agent | control03 | :-) | True |
  216. | 7cbcf299-7161-4a65-86d3-32bdb4b78551 | Open vSwitch agent | control02 | :-) | True |
  217. | 81486440-72df-42e8-9abd-177341393025 | DHCP agent | compute01 | :-) | True |
  218. | 99e0363c-29bb-4623-b969-f161fc56c3e3 | Open vSwitch agent | compute01 | :-) | True |
  219. | f1b37c63-b7ce-48b8-9ff0-70a4b69e3bf7 | DHCP agent | control03 | :-) | True |
  220. +--------------------------------------+--------------------+-----------+-------+----------------+
  221. root@control03:~# quantum router-port-list -c id -c fixed_ips router1
  222. +--------------------------------------+---------------------------------------------------------------------------------------+
  223. | id | fixed_ips |
  224. +--------------------------------------+---------------------------------------------------------------------------------------+
  225. | 1cd4dff0-aa22-4e4d-ab30-c8bbff3f9eda | {"subnet_id": "469b5180-846c-43b0-8269-c66ffa53383f", "ip_address": "192.168.221.10"} |
  226. | fbfd5d64-3ede-4f47-b009-570e4c602666 | {"subnet_id": "412f82d2-489c-4cdc-a138-96fb5a62c7a3", "ip_address": "10.10.10.1"} |
  227. +--------------------------------------+---------------------------------------------------------------------------------------+
  228. root@control03:~# quantum router-port-list -c id -c fixed_ips router2
  229. +--------------------------------------+---------------------------------------------------------------------------------------+
  230. | id | fixed_ips |
  231. +--------------------------------------+---------------------------------------------------------------------------------------+
  232. | 6fdff848-283c-4065-a697-959ad5903c65 | {"subnet_id": "f1b699cd-825a-449a-a1a5-030af1729d0f", "ip_address": "10.10.11.1"} |
  233. | 7fdb15e4-0990-4576-ad67-b9cc12a626a1 | {"subnet_id": "469b5180-846c-43b0-8269-c66ffa53383f", "ip_address": "192.168.221.11"} |
  234. +--------------------------------------+---------------------------------------------------------------------------------------+
  235. root@control03:~# quantum agent-list
  236. +--------------------------------------+--------------------+-----------+-------+----------------+
  237. | id | agent_type | host | alive | admin_state_up |
  238. +--------------------------------------+--------------------+-----------+-------+----------------+
  239. | 0d979401-8113-4e6e-9970-8ba46a7343e5 | L3 agent | compute01 | :-) | True |
  240. | 32d1be16-0ab5-4ae2-a026-a4b70009af08 | L3 agent | control02 | :-) | True |
  241. | 39e1739b-b8f9-44e0-a2f8-32f6d1747fcf | Open vSwitch agent | control03 | :-) | True |
  242. | 7cbcf299-7161-4a65-86d3-32bdb4b78551 | Open vSwitch agent | control02 | :-) | True |
  243. | 81486440-72df-42e8-9abd-177341393025 | DHCP agent | compute01 | :-) | True |
  244. | 99e0363c-29bb-4623-b969-f161fc56c3e3 | Open vSwitch agent | compute01 | :-) | True |
  245. | f1b37c63-b7ce-48b8-9ff0-70a4b69e3bf7 | DHCP agent | control03 | :-) | True |
  246. +--------------------------------------+--------------------+-----------+-------+----------------+
  247. root@control03:~# quantum --help | grep l3
  248. l3-agent-list-hosting-router List L3 agents hosting a router.
  249. l3-agent-router-add Add a router to a L3 agent.
  250. l3-agent-router-remove Remove a router from a L3 agent.
  251. router-list-on-l3-agent List the routers on a L3 agent.
  252. root@control03:~# quantum l3-agent-list-hosting-router router1
  253. +--------------------------------------+-----------+----------------+-------+
  254. | id | host | admin_state_up | alive |
  255. +--------------------------------------+-----------+----------------+-------+
  256. | 32d1be16-0ab5-4ae2-a026-a4b70009af08 | control02 | True | :-) |
  257. +--------------------------------------+-----------+----------------+-------+
  258. root@control03:~# quantum l3-agent-list-hosting-router router2
  259. +--------------------------------------+-----------+----------------+-------+
  260. | id | host | admin_state_up | alive |
  261. +--------------------------------------+-----------+----------------+-------+
  262. | 32d1be16-0ab5-4ae2-a026-a4b70009af08 | control02 | True | :-) |
  263. +--------------------------------------+-----------+----------------+-------+
  264. root@control03:~# quantum l3-agent-router-add 0d979401-8113-4e6e-9970-8ba46a7343e5 router1
  265. Failed scheduling router b6146778-1a07-4518-82a5-480f203bc3fe to the L3 Agent 0d979401-8113-4e6e-9970-8ba46a7343e5.
  266. root@control03:~# quantum router-port-list -c id -c fixed_ips router1
  267. +--------------------------------------+---------------------------------------------------------------------------------------+
  268. | id | fixed_ips |
  269. +--------------------------------------+---------------------------------------------------------------------------------------+
  270. | 1cd4dff0-aa22-4e4d-ab30-c8bbff3f9eda | {"subnet_id": "469b5180-846c-43b0-8269-c66ffa53383f", "ip_address": "192.168.221.10"} |
  271. | fbfd5d64-3ede-4f47-b009-570e4c602666 | {"subnet_id": "412f82d2-489c-4cdc-a138-96fb5a62c7a3", "ip_address": "10.10.10.1"} |
  272. +--------------------------------------+---------------------------------------------------------------------------------------+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement