Guest User

OpenStack [devstack] DHCP problem

a guest
Jan 11th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. $ pgrep -lf dhcp
  2. 6241 python /usr/bin/neutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file=/etc/neutron/dhcp_agent.ini
  3. 6306 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tapf4c7f6d5-fa --except-interface=lo --pid-file=/opt/stack/data/neutron/dhcp/a75d124a-8b29-4250-9441-cd8944533400/pid --dhcp-hostsfile=/opt/stack/data/neutron/dhcp/a75d124a-8b29-4250-9441-cd8944533400/host --dhcp-optsfile=/opt/stack/data/neutron/dhcp/a75d124a-8b29-4250-9441-cd8944533400/opts --leasefile-ro --dhcp-range=set:tag0,192.168.42.0,static,86400s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal
  4. 6376 dnsmasq --no-hosts --no-resolv --strict-order --bind-interfaces --interface=tap8cc936d5-f8 --except-interface=lo --pid-file=/opt/stack/data/neutron/dhcp/fb706a5e-c4b3-43a8-a41f-5718333b7602/pid --dhcp-hostsfile=/opt/stack/data/neutron/dhcp/fb706a5e-c4b3-43a8-a41f-5718333b7602/host --dhcp-optsfile=/opt/stack/data/neutron/dhcp/fb706a5e-c4b3-43a8-a41f-5718333b7602/opts --leasefile-ro --dhcp-range=set:tag0,10.0.0.0,static,86400s --dhcp-lease-max=256 --conf-file= --domain=openstacklocal
  5.  
  6. (I restarted q-dhcp at some point, I think the earlier dnsmasq instance just lingered)
  7.  
  8.  
  9. $ sudo ovs-vsctl show
  10. a9014c39-72d4-41ec-b256-75c9a5f143cc
  11. Bridge "br-p7p1"
  12. Port "phy-br-p7p1"
  13. Interface "phy-br-p7p1"
  14. Port "br-p7p1"
  15. Interface "br-p7p1"
  16. type: internal
  17. Bridge br-int
  18. Port "tapf4c7f6d5-fa" <--- the first DHCP's port
  19. tag: 4095
  20. Interface "tapf4c7f6d5-fa"
  21. type: internal
  22. Port "qr-644cba0f-c8"
  23. tag: 1
  24. Interface "qr-644cba0f-c8"
  25. type: internal
  26. Port "tap8cc936d5-f8" <--- the second DHCP's port
  27. tag: 1
  28. Interface "tap8cc936d5-f8"
  29. type: internal
  30. Port "tapa21ffba9-70" <--- the VM's port
  31. tag: 3
  32. Interface "tapa21ffba9-70"
  33. Port br-int
  34. Interface br-int
  35. type: internal
  36. Port "int-br-p7p1"
  37. Interface "int-br-p7p1"
  38. Bridge br-tun
  39. Port patch-int
  40. Interface patch-int
  41. type: patch
  42. options: {peer=patch-tun}
  43. Port "vxlan-192.168.0.2" // <-- disregard this, I was playing with VXLAN earlier but am not using it anymore
  44. Interface "vxlan-192.168.0.2"
  45. type: vxlan
  46. options: {in_key=flow, local_ip="192.168.0.1", out_key=flow, remote_ip="192.168.0.2"}
  47. Port br-tun
  48. Interface br-tun
  49. type: internal
  50. Bridge br-ex
  51. Port br-ex
  52. Interface br-ex
  53. type: internal
  54. Port "qg-af7e3080-5d"
  55. Interface "qg-af7e3080-5d"
  56. type: internal
  57. ovs_version: "1.11.0"
  58.  
  59.  
  60. $ sudo ovs-ofctl dump-flows br-p7p1
  61. NXST_FLOW reply (xid=0x4):
  62. cookie=0x0, duration=504.414s, table=0, n_packets=9, n_bytes=1462, idle_age=374, priority=4,in_port=5,dl_vlan=3 actions=strip_vlan,NORMAL
  63. cookie=0x0, duration=2258.886s, table=0, n_packets=3, n_bytes=238, idle_age=607, priority=4,in_port=5,dl_vlan=1 actions=strip_vlan,NORMAL
  64. cookie=0x0, duration=2262.087s, table=0, n_packets=11, n_bytes=874, idle_age=615, priority=2,in_port=5 actions=drop
  65. cookie=0x0, duration=2264.168s, table=0, n_packets=0, n_bytes=0, idle_age=2264, priority=1 actions=NORMAL
  66.  
  67.  
  68. $ sudo tcpdump -evnni br-int
  69. tcpdump: WARNING: br-int: no IPv4 address assigned
  70. tcpdump: listening on br-int, link-type EN10MB (Ethernet), capture size 65535 bytes
  71. 19:31:04.287111 fa:16:3e:1f:3d:d9 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 326: vlan 3, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto UDP (17), length 308)
  72. 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:1f:3d:d9, length 280, xid 0x341b7b75, secs 120, Flags [none]
  73. Client-Ethernet-Address fa:16:3e:1f:3d:d9
  74. Vendor-rfc1048 Extensions
  75. Magic Cookie 0x63825363
  76. DHCP-Message Option 53, length 1: Discover
  77. Client-ID Option 61, length 7: ether fa:16:3e:1f:3d:d9
  78. MSZ Option 57, length 2: 576
  79. Parameter-Request Option 55, length 7:
  80. Subnet-Mask, Default-Gateway, Domain-Name-Server, Hostname
  81. Domain-Name, BR, NTP
  82. Vendor-Class Option 60, length 12: "udhcp 1.20.1"
  83.  
  84.  
  85. Instance log:
  86. [...]
  87. udhcpc (v1.20.1) started
  88. Sending discover...
  89. Sending discover...
  90. Sending discover...
  91. No lease, failing
  92. WARN: /etc/rc3.d/S40-network failed
  93. [...]
Advertisement
Add Comment
Please, Sign In to add comment