udevadm failure when running unit tests

Bug #1253506 reported by dkehn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
dkehn

Bug Description

When running the neutron.tests.unit.openvswitch.test_ovs_tunnel.TunnelTestWithMTU unit test failure occur. The "udevadm settle timeout=10 timeout" see File "/home/dkehn/devl/neutron-new/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 801, in setup_physical_bridges, fails waiting for a bridge that is mock-ed.

FAIL: neutron.tests.unit.openvswitch.test_ovs_tunnel.TunnelTestWithMTU.test_port_dead
tags: worker-1
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{2013-11-20 20:30:58,999 INFO [neutron.plugins.openvswitch.agent.ovs_neutron_agent] Mapping physical network net1 to bridge tunnel_bridge_mapping}}}

Traceback (most recent call last):
  File "/home/dkehn/devl/neutron-new/neutron/tests/unit/openvswitch/test_ovs_tunnel.py", line 456, in test_port_dead
    self.VETH_MTU)
  File "/home/dkehn/devl/neutron-new/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 200, in __init__
    self.setup_physical_bridges(bridge_mappings)
  File "/home/dkehn/devl/neutron-new/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py", line 801, in setup_physical_bridges
    utils.execute(['/sbin/udevadm', 'settle', '--timeout=10'])
  File "/home/dkehn/devl/neutron-new/neutron/agent/linux/utils.py", line 75, in execute
    raise RuntimeError(m)
RuntimeError:
Command: ['/sbin/udevadm', 'settle', '--timeout=10']
Exit code: 1
Stdout: ''
Stderr: ''
======================================================================
FAIL: process-returncode
tags: worker-2

Revision history for this message
dkehn (dekehn) wrote :

Salvarore has suggested a fix and am testing it.

Changed in neutron:
assignee: nobody → dkehn (dekehn)
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/57600

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/57600
Committed: http://github.com/openstack/neutron/commit/a98f479da3d3c63b5affbe82a236b7b79f631175
Submitter: Jenkins
Branch: master

commit a98f479da3d3c63b5affbe82a236b7b79f631175
Author: dekehn <email address hidden>
Date: Wed Nov 20 22:03:51 2013 -0700

    Mock the udevadm in the TunnelTestWithMTU test

    When running the neutron.tests.unit.openvswitch.test_ovs_tunnel.
    TunnelTestWithMTU unit test failure occurs because the udevadm is
    timing out waiting on a mock-ed device.

    Co-Authored-By: Salvatore Orlando <email address hidden>

    Change-Id: I0e16295be66513c2257831bf62fd6a0c19f3b8a4
    Closes-Bug: #1253506

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → icehouse-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-1 → 2014.1
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.