← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1297088] [NEW] unit test of test_delete_ports_by_device_id always failed

 

Public bug reported:

I found int test_db_plugin.py, the test test_delete_ports_by_device_id
always failed, the error log is below:

    INFO [neutron.api.v2.resource] delete failed (client error): Unable to complete operation on subnet 9579ede3-4bc4-43ea-939c-42c9ab027a53. One or more ports have an IP allocation from this subnet.
    INFO [neutron.api.v2.resource] delete failed (client error): Unable to complete operation on network 5f2ec397-31c7-4e92-acda-79d6093636ba. There are one or more ports still in use on the network.
 }}}
 
 Traceback (most recent call last):
   File "neutron/tests/unit/test_db_plugin.py", line 1681, in test_delete_ports_by_device_id
     expected_code=webob.exc.HTTPOk.code)
   File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
     self.gen.throw(type, value, traceback)
   File "neutron/tests/unit/test_db_plugin.py", line 567, in subnet
     self._delete('subnets', subnet['subnet']['id'])
   File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
     self.gen.throw(type, value, traceback)
   File "neutron/tests/unit/test_db_plugin.py", line 534, in network
     self._delete('networks', network['network']['id'])
   File "neutron/tests/unit/test_db_plugin.py", line 450, in _delete
     self.assertEqual(res.status_int, expected_code)
   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 321, in assertEqual
     self.assertThat(observed, matcher, message)
   File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 406, in assertThat
     raise mismatch_error
 MismatchError: 409 != 204

** Affects: neutron
     Importance: Undecided
         Status: New

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

Title:
  unit test of test_delete_ports_by_device_id always failed

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  I found int test_db_plugin.py, the test test_delete_ports_by_device_id
  always failed, the error log is below:

      INFO [neutron.api.v2.resource] delete failed (client error): Unable to complete operation on subnet 9579ede3-4bc4-43ea-939c-42c9ab027a53. One or more ports have an IP allocation from this subnet.
      INFO [neutron.api.v2.resource] delete failed (client error): Unable to complete operation on network 5f2ec397-31c7-4e92-acda-79d6093636ba. There are one or more ports still in use on the network.
   }}}
   
   Traceback (most recent call last):
     File "neutron/tests/unit/test_db_plugin.py", line 1681, in test_delete_ports_by_device_id
       expected_code=webob.exc.HTTPOk.code)
     File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
       self.gen.throw(type, value, traceback)
     File "neutron/tests/unit/test_db_plugin.py", line 567, in subnet
       self._delete('subnets', subnet['subnet']['id'])
     File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
       self.gen.throw(type, value, traceback)
     File "neutron/tests/unit/test_db_plugin.py", line 534, in network
       self._delete('networks', network['network']['id'])
     File "neutron/tests/unit/test_db_plugin.py", line 450, in _delete
       self.assertEqual(res.status_int, expected_code)
     File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 321, in assertEqual
       self.assertThat(observed, matcher, message)
     File "/home/jenkins/workspace/gate-neutron-python26/.tox/py26/lib/python2.6/site-packages/testtools/testcase.py", line 406, in assertThat
       raise mismatch_error
   MismatchError: 409 != 204

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


Follow ups

References