Advertisement
gregmark

OpenStack or Bust, Part 11: cmp node after reboot

Mar 29th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.89 KB | None | 0 0
  1. #####################################################
  2. ###        Compute Node OpSys Information         ###
  3. ### After reboot, missing bridge br-int (line 63) ###
  4. #####################################################
  5.  
  6. -----------------------------
  7. 192.168.241.110 kvm-sn-10i
  8. -----------------------------
  9. $ ntpdate-debian 192.168.241.100
  10. 29 Mar 12:26:39 ntpdate[16660]: adjust time server 192.168.241.100 offset -0.000357 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 bc:30:5b:ef:ed:d0 brd ff:ff:ff:ff:ff:ff
  21.     inet 192.168.241.110/24 brd 192.168.241.255 scope global eth0
  22. 3: eth1: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master br-eth1 state UP qlen 1000
  23.     link/ether bc:30:5b:ef:ed:d1 brd ff:ff:ff:ff:ff:ff
  24. 4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  25.     link/ether bc:30:5b:ef:ed:d2 brd ff:ff:ff:ff:ff:ff
  26. 5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  27.     link/ether bc:30:5b:ef:ed:d3 brd ff:ff:ff:ff:ff:ff
  28. 7: br-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
  29.     link/ether da:4d:47:2f:98:42 brd ff:ff:ff:ff:ff:ff
  30. 9: phy-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  31.     link/ether b2:6f:d5:a0:65:79 brd ff:ff:ff:ff:ff:ff
  32. 10: int-br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  33.     link/ether de:62:45:fa:8e:83 brd ff:ff:ff:ff:ff:ff
  34. 11: qbrd9557621-8a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
  35.     link/ether ea:5c:3c:4a:9b:cb brd ff:ff:ff:ff:ff:ff
  36. 12: qvod9557621-8a: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
  37.     link/ether 82:e0:d7:4f:f4:62 brd ff:ff:ff:ff:ff:ff
  38. 13: qvbd9557621-8a: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master qbrd9557621-8a state UP qlen 1000
  39.     link/ether ea:5c:3c:4a:9b:cb brd ff:ff:ff:ff:ff:ff
  40. 14: br-eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
  41.     link/ether bc:30:5b:ef:ed:d1 brd ff:ff:ff:ff:ff:ff
  42.     inet 192.168.239.110/24 brd 192.168.239.255 scope global br-eth1
  43. 16: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master qbrd9557621-8a state UNKNOWN qlen 500
  44.     link/ether fe:16:3e:35:31:d5 brd ff:ff:ff:ff:ff:ff
  45.  
  46. $ netstat -rn
  47. Kernel IP routing table
  48. Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
  49. 0.0.0.0         192.168.241.1   0.0.0.0         UG        0 0          0 eth0
  50. 192.168.239.0   0.0.0.0         255.255.255.0   U         0 0          0 br-eth1
  51. 192.168.241.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
  52.  
  53. $ ip netns show
  54.  
  55. $ ls -R /var/run/netns; ls -R /etc/netns
  56.  
  57. $ brctl show
  58. bridge name bridge id       STP enabled interfaces
  59. br-eth1     8000.bc305befedd1   no      eth1
  60. qbrd9557621-8a      8000.ea5c3c4a9bcb   no      qvbd9557621-8a
  61.                             vnet0
  62.  
  63.                                                         ### <<<- ACK! Where'd you go, br-int?
  64.  
  65.  
  66. $ ovs-vsctl show
  67. 05d6f268-a221-469a-9921-218905ca3277
  68.     Bridge br-int
  69.         Port "int-br-eth1"
  70.             Interface "int-br-eth1"
  71.         Port "qvod9557621-8a"
  72.             tag: 1
  73.             Interface "qvod9557621-8a"
  74.         Port br-int
  75.             Interface br-int
  76.                 type: internal
  77.     Bridge "br-eth1"
  78.         Port "br-eth1"
  79.             Interface "br-eth1"
  80.                 type: internal
  81.         Port "eth1"
  82.             Interface "eth1"
  83.         Port "phy-br-eth1"
  84.             Interface "phy-br-eth1"
  85.     ovs_version: "1.4.3"
  86.  
  87. # public net
  88. $ ping 10.0.164.1
  89. UP
  90.  
  91. # mgmt net
  92. $ ping 192.168.241.1
  93. UP
  94.  
  95. # vm config net (network proxy)
  96. $ ping 192.168.239.1
  97. DOWN
  98.  
  99. $ cat /etc/network/interfaces | sed '1,3d'
  100. # The loopback network interface
  101. auto lo
  102. iface lo inet loopback
  103.  
  104. # Mgmt Network
  105. auto eth0
  106. iface eth0 inet static
  107.         address 192.168.241.110
  108.         netmask 255.255.255.0
  109.         network 192.168.241.0
  110.         broadcast 192.168.241.255
  111.         gateway 192.168.241.1
  112.         dns-nameservers 192.168.241.10 10.0.164.97 10.0.161.19
  113.         dns-search streamsage.com
  114.  
  115. # VM Config Network
  116. auto eth1
  117. iface eth1 inet manual
  118.     up ifconfig $IFACE 0.0.0.0 up
  119.     up ip link set $IFACE promisc on
  120.     down ip link set $IFACE promisc off
  121.     down ifconfig $IFACE down
  122. auto br-eth1
  123. iface br-eth1 inet static
  124.         address 192.168.239.110
  125.         netmask 255.255.255.0
  126.         bridge_ports eth1
  127.  
  128. # Integration Bridge
  129. auto br-int
  130. iface br-int inet manual
  131.         up ifconfig $IFACE 0.0.0.0 up
  132.         down ifconfig $IFACE down
  133.  
  134. # http://chavezy.wordpress.com/2013/03/21/openstack-or-bust-part-10/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement