Advertisement
gregmark

OpenStack or Bust, Part 10: net/cpt nodes after fp-assoc

Mar 21st, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.23 KB | None | 0 0
  1. #############################################
  2. ###      Net Node OpSys Information       ###
  3. ### After successful floatingip-associate ###
  4. #############################################
  5.  
  6. --------------------------
  7. 192.168.241.99 knet-sn-01i
  8. --------------------------
  9. $ ntpdate-debian 192.168.241.100
  10. 21 Mar 19:43:29 ntpdate[11678]: adjust time server 192.168.241.100 offset -0.005760 sec
  11.  
  12. $ sysctl net.ipv4.ip_forward
  13. net.ipv4.ip_forward = 1
  14.  
  15. $ ip addr show | egrep "^([0-9]| *link| *inet ")
  16. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
  17.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  18.     inet 127.0.0.1/8 scope host lo
  19. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  20.     link/ether 3c:d9:2b:fa:aa:94 brd ff:ff:ff:ff:ff:ff
  21.     inet 192.168.241.99/24 brd 192.168.241.255 scope global eth0
  22. 3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  23.     link/ether 3c:d9:2b:fa:aa:96 brd ff:ff:ff:ff:ff:ff
  24. 4: eth2: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  25.     link/ether 3c:d9:2b:fa:aa:98 brd ff:ff:ff:ff:ff:ff
  26. 5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  27.     link/ether 3c:d9:2b:fa:aa:9a brd ff:ff:ff:ff:ff:ff
  28. 6: br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  29.     link/ether 3c:d9:2b:fa:aa:96 brd ff:ff:ff:ff:ff:ff
  30.     inet 192.168.239.99/24 brd 192.168.239.255 scope global br-eth1
  31. 7: br-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  32.     link/ether 6a:e8:e4:ac:82:42 brd ff:ff:ff:ff:ff:ff
  33. 8: br-ex: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  34.     link/ether 3c:d9:2b:fa:aa:98 brd ff:ff:ff:ff:ff:ff
  35.     inet 10.0165.92/22 brd 10.0167.255 scope global br-ex
  36. 17: phy-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  37.     link/ether 6a:92:dc:2a:d2:df brd ff:ff:ff:ff:ff:ff
  38. 18: int-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  39.     link/ether ae:8e:5c:9f:e9:66 brd ff:ff:ff:ff:ff:ff
  40.  
  41. $ netstat -rn
  42. Kernel IP routing table
  43. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  44. 0.0.0.0         192.168.241.1   0.0.0.0         UG        0 0          0 eth0
  45. 10.0164.0       0.0.0.0         255.255.252.0   U         0 0          0 br-ex
  46. 192.168.239.0   0.0.0.0         255.255.255.0   U         0 0          0 br-eth1
  47. 192.168.241.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
  48.  
  49. $ ip netns show
  50. qrouter-26c5bd92-e06c-4e54-9cd1-188d5e81a882
  51. qdhcp-81c0747d-0b40-4106-8421-ecea5c423bb9
  52.  
  53. $ ls -R /var/run/netns; ls -R /etc/netns
  54. /var/run/netns:
  55. qdhcp-81c0747d-0b40-4106-8421-ecea5c423bb9
  56. qrouter-26c5bd92-e06c-4e54-9cd1-188d5e81a882
  57.  
  58. $ brctl show
  59. bridge name bridge id       STP enabled interfaces
  60. br-eth1     0000.3cd92bfaaa96   no      eth1
  61.                             phy-br-eth1
  62. br-ex       0000.3cd92bfaaa98   no      eth2
  63.                             qg-e68e5139-07
  64. br-int      0000.6ae8e4ac8242   no      int-br-eth1
  65.                             qr-507cd4ad-89
  66.                             tap0ba13868-04
  67.                             tap181c5254-c9  #<--- Don't know what this is for!
  68.  
  69. $ ovs-vsctl show
  70. d9e95f94-241a-4b0b-967e-934c9a8bc645
  71.     Bridge "br-eth1"
  72.         Port "phy-br-eth1"
  73.             Interface "phy-br-eth1"
  74.         Port "eth1"
  75.             Interface "eth1"
  76.         Port "br-eth1"
  77.             Interface "br-eth1"
  78.                 type: internal
  79.     Bridge br-int
  80.         Port "int-br-eth1"
  81.             Interface "int-br-eth1"
  82.         Port br-int
  83.             Interface br-int
  84.                 type: internal
  85.         Port "tap181c5254-c9"
  86.             tag: 1
  87.             Interface "tap181c5254-c9"
  88.                 type: internal
  89.         Port "qr-507cd4ad-89"
  90.             tag: 1
  91.             Interface "qr-507cd4ad-89"
  92.                 type: internal
  93.         Port "tap0ba13868-04"
  94.             tag: 1
  95.             Interface "tap0ba13868-04"
  96.                 type: internal
  97.     Bridge br-ex
  98.         Port "eth2"
  99.             Interface "eth2"
  100.         Port br-ex
  101.             Interface br-ex
  102.                 type: internal
  103.         Port "qg-e68e5139-07"
  104.             Interface "qg-e68e5139-07"
  105.                 type: internal
  106.     ovs_version: "1.4.3"
  107.  
  108. $ ping 10.0164.1
  109. UP
  110.  
  111. $ ping 192.168.241.1
  112. UP
  113.  
  114. $ ping 192.168.239.1  #<====== what happened here?
  115. DOWN
  116.  
  117.  
  118. #############################################
  119. ###    Compute Node OpSys Information     ###
  120. ### After successful floatingip-associate ###
  121. #############################################
  122.  
  123. --------------------------
  124. 192.168.241.110 kvm-sn-10i
  125. --------------------------
  126. $ ntpdate-debian 192.168.241.100
  127. 21 Mar 19:43:49 ntpdate[15080]: adjust time server 192.168.241.100 offset -0.002518 sec
  128.  
  129. $ sysctl net.ipv4.ip_forward
  130. net.ipv4.ip_forward = 1
  131.  
  132. $ ip addr show | egrep "^([0-9]| *link| *inet ")
  133. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
  134.     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  135.     inet 127.0.0.1/8 scope host lo
  136. 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  137.     link/ether bc:30:5b:ef:ed:d0 brd ff:ff:ff:ff:ff:ff
  138.     inet 192.168.241.110/24 brd 192.168.241.255 scope global eth0
  139. 3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
  140.     link/ether bc:30:5b:ef:ed:d1 brd ff:ff:ff:ff:ff:ff
  141. 4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  142.     link/ether bc:30:5b:ef:ed:d2 brd ff:ff:ff:ff:ff:ff
  143. 5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  144.     link/ether bc:30:5b:ef:ed:d3 brd ff:ff:ff:ff:ff:ff
  145. 7: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
  146.     link/ether da:4d:47:2f:98:42 brd ff:ff:ff:ff:ff:ff
  147. 8: br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  148.     link/ether bc:30:5b:ef:ed:d1 brd ff:ff:ff:ff:ff:ff
  149.     inet 192.168.239.110/24 brd 192.168.239.255 scope global br-eth1
  150. 15: phy-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  151.     link/ether aa:d8:03:2c:46:7d brd ff:ff:ff:ff:ff:ff
  152. 16: int-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  153.     link/ether 4a:03:d7:b2:b9:6d brd ff:ff:ff:ff:ff:ff
  154. 17: qbr69fce85b-2f: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
  155.     link/ether 3e:f3:74:5e:2c:38 brd ff:ff:ff:ff:ff:ff
  156. 18: qvo69fce85b-2f: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  157.     link/ether 1a:4d:de:f2:e0:79 brd ff:ff:ff:ff:ff:ff
  158. 19: qvb69fce85b-2f: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master qbr69fce85b-2f state UP qlen 1000
  159.     link/ether 3e:f3:74:5e:2c:38 brd ff:ff:ff:ff:ff:ff
  160. 21: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master qbr69fce85b-2f state UNKNOWN qlen 500
  161.     link/ether fe:16:3e:93:58:92 brd ff:ff:ff:ff:ff:ff
  162.  
  163. $ netstat -rn
  164. Kernel IP routing table
  165. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  166. 0.0.0.0         192.168.241.1   0.0.0.0         UG        0 0          0 eth0
  167. 192.168.239.0   0.0.0.0         255.255.255.0   U         0 0          0 br-eth1
  168. 192.168.241.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
  169.  
  170. $ ip netns show
  171.  
  172. $ ls -R /var/run/netns; ls -R /etc/netns
  173.  
  174. $ brctl show
  175. bridge name bridge id       STP enabled interfaces
  176. br-eth1     0000.bc305befedd1   no      eth1
  177.                             phy-br-eth1
  178. br-int      0000.da4d472f9842   no      int-br-eth1
  179.                             qvo69fce85b-2f
  180. qbr69fce85b-2f      8000.3ef3745e2c38   no      qvb69fce85b-2f
  181.                             vnet0
  182.  
  183. $ ovs-vsctl show
  184. 05d6f268-a221-469a-9921-218905ca3277
  185.     Bridge br-int
  186.         Port "qvo69fce85b-2f"
  187.             tag: 1
  188.             Interface "qvo69fce85b-2f"
  189.         Port br-int
  190.             Interface br-int
  191.                 type: internal
  192.         Port "int-br-eth1"
  193.             Interface "int-br-eth1"
  194.     Bridge "br-eth1"
  195.         Port "br-eth1"
  196.             Interface "br-eth1"
  197.                 type: internal
  198.         Port "phy-br-eth1"
  199.             Interface "phy-br-eth1"
  200.         Port "eth1"
  201.             Interface "eth1"
  202.     ovs_version: "1.4.3"
  203.  
  204. $ ping 10.0164.1
  205. UP
  206.  
  207. $ ping 192.168.241.1
  208. UP
  209.  
  210. $ ping 192.168.239.1 #<====== what happened here? VM still works but puzzling...
  211. DOWN
  212.  
  213. # http://chavezy.wordpress.com/2013/03/21/openstack-or-bust-part-10/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement