← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1467145] Re: Socket related unit tests fail on FreeBSD

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => liberty-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1467145

Title:
  Socket related unit tests fail on FreeBSD

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Due to different behavior of SO_REUSEADDR on Linux and BSD some unit
  tests fail, e.g.:

  nova.tests.unit.test_wsgi.TestWSGIServer.test_socket_options_for_simple_server
  ------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "nova/tests/unit/test_wsgi.py", line 140, in test_socket_options_for_simple_server
          socket.SO_REUSEADDR))
        File "/usr/home/novel/code/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
          self.assertThat(observed, matcher, message)
        File "/usr/home/novel/code/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
          raise mismatch_error
      testtools.matchers._impl.MismatchError: 1 != 4
      

  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      2015-06-20 17:32:52,230 INFO [nova.wsgi] test_socket_options listening on 127.0.0.1:60566
      

  Similar (or I'd say the same) problem was reported and fixed for OS X:
  https://bugs.launchpad.net/nova/+bug/1436895

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


References