← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1154940] Re: instance cannot get ip from dhcp agent

 

I have solved the issue by re-install all quantum service.
my guess is, before I install l3-agent, quantum's version is  2012.2.2. 
After the new installation, different versions have been used for different services.


** Changed in: quantum
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1154940

Title:
  instance cannot get ip from dhcp agent

Status in OpenStack Quantum (virtual network service):
  Invalid

Bug description:
  Platform is Ubuntu 12.10. Quatum is 2012.2.3, openvswitch is 1.4.3.
  two machines, one installed nova-compute and quantum-plugin-openvswitch-agent
  another installed other componenets.

  everything works fine,
  but after i installed l3-agent and reboot to machine, instance can't get IP any more.
  I have tried to clean everything (database, ovs ports), and re-create the network, but still can't solve the problem.

  I have configure the instance use DHCP to find IP:
  cat /etc/network/interfaces
  auto eth0
  iface eth1 inet dhcp

  and, although instance can't get a ip, we still can find the IP with command "nova list"
  +--------------------------------------+------------+--------+-----------------------------+
  | ID | Name | Status | Networks |
  +--------------------------------------+------------+--------+-----------------------------+
  | 0e023183-3022-4127-91ce-ba6a734caee5 | test | ACTIVE | network=192.168.111.6 |
  | +--------------------------------------+------------+--------+-----------------------------+

  i check the bridge br-int, two ports exist:
  ovs-vsctl list-ports br-int
  int-DemoBridge
  tap3d78a02d-0c

  but, i can't find the port "tap3d78a02d-0c" using command "ip link"

  Also, ovs command shows the port is not up.
  ovs-ofctl show br-int
  OFPT_FEATURES_REPLY (xid=0x1): ver:0x1, dpid:000022238bb74c4e
  n_tables:255, n_buffers:256
  features: capabilities:0xc7, actions:0xfff
   1(int-DemoBridge): addr:82:e6:dd:0b:e3:df
       config: 0
       state: 0
       current: 10GB-FD COPPER
   3(tap3d78a02d-0c): addr:00:00:00:00:00:00
       config: PORT_DOWN
       state: LINK_DOWN
   LOCAL(br-int): addr:22:23:8b:b7:4c:4e
       config: 0
       state: 0
  OFPT_GET_CONFIG_REPLY (xid=0x3): frags=normal miss_send_len=0

  i have find warning logs at ovs-vswitchd.log
  Mar 14 12:31:18|00158|netdev_linux|WARN|ioctl(SIOCGIFINDEX) on tap3d78a02d-0c device failed: No such device
  Mar 14 12:31:29|00159|netdev|WARN|Dropped 51 log messages in last 12 seconds (most recently, 1 seconds ago) due to excessive rate
  Mar 14 12:31:29|00160|netdev|WARN|failed to get flags for network device tap3d78a02d-0c: No such device

  Another side,I can get DHCP request from instance at port int-DemoBridge
  tcpdump -i int-DemoBridge
  12:10:05.402355 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:16:3e:c7:46:ef (oui Unknown), length 300

  But nothing at bridge br-int.
  If i restart service openvswitch-switch, then the dhcp request can be received at br-int.
  But, after restart service quantum-plugin-openvswitch-agent, nothing received again.

  and dhcp-agent.log:
  2013-03-14 12:10:21 DEBUG [quantum.agent.linux.utils] Running command: sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf cat /proc/31152/cmdline
  2013-03-14 12:10:21 DEBUG [quantum.agent.linux.utils]
  Command: ['sudo', '/usr/bin/quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'cat', '/proc/31152/cmdline']
  Exit code: 1
  Stdout: ''
  Stderr: '/bin/cat: /proc/31152/cmdline: No such file or directory\n'

  anyone know how to fix this?

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1154940/+subscriptions