dhcp agent sometimes fail to add gateway to interface because interface is down

Bug #1302312 reported by Aaron Rosen
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Rossella Sblendido

Bug Description

2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 217, in _as_root
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent kwargs.get('use_root_namespace', False))
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 70, in _as_root
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent namespace)
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent File "/opt/stack/neutron/neutron/agent/linux/ip_lib.py", line 81, in _execute
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent root_helper=root_helper)
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 75, in execute
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent raise RuntimeError(m)
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent RuntimeError:
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-e1eaed6e-ef91-4741-acb2-62daba3ffede', 'ip', 'route', 'replace', 'default', 'via', '10.2.0.1', 'dev', 'tapb1e4235c-4e']
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent Exit code: 2
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent Stdout: ''
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent Stderr: 'RTNETLINK answers: Network is unreachable\n'
2014-04-03 20:37:02.020 TRACE neutron.agent.dhcp_agent

Revision history for this message
Aaron Rosen (arosen) wrote :

The dhcp-agent continues to loop endlessly resyncing due to this. If i bring the interface up in the namespace the next time looped through the error goes away.

Changed in neutron:
assignee: nobody → Rossella Sblendido (rossella-o)
description: updated
description: updated
Aaron Rosen (arosen)
Changed in neutron:
importance: Undecided → High
tags: added: icehouse-backport-potential l3-ipam-dhcp
Changed in neutron:
status: New → Triaged
milestone: none → icehouse-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/85749

Changed in neutron:
status: Triaged → In Progress
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-rc2 → none
tags: added: icehouse-rc-potential
removed: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/85749
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=4e9d4824050eedfd1495469a69e28864b6fec757
Submitter: Jenkins
Branch: master

commit 4e9d4824050eedfd1495469a69e28864b6fec757
Author: rossella <email address hidden>
Date: Mon Apr 7 15:53:34 2014 +0000

    DHCP agent should check interface is UP before adding route

    The DHCP agent should check not only that an interface for
    network's DHCP exists but also make sure that is UP before
    adding a default route.
    For this purpose a method "ensure_device_is_ready" was
    added to ip_lib.

    Change-Id: I9af06aa0f39634fe7b63c064337cd4191db5c026
    Closes-bug: #1302312

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
tags: added: icehouse-backport-potential
removed: icehouse-rc-potential
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.