tests fail sometime with "Address already in use" error

Bug #1599556 reported by David TARDIVEL
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Medium
licanwei

Bug Description

tox -e py27 fails, sometime, with this error:

watcher.tests.cmd.test_api.TestApi.test_run_api_app_serve_specific_address
--------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/data/bcom/OPENSTACK/watcher/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
        return func(*args, **keywargs)
      File "watcher/tests/cmd/test_api.py", line 64, in test_run_api_app_serve_specific_address
        api.main()
      File "watcher/cmd/api.py", line 39, in main
        'watcher-api', CONF.api.enable_ssl_api)
      File "watcher/common/service.py", line 83, in __init__
        logger_name=name)
      File "/data/bcom/OPENSTACK/watcher/.tox/py27/local/lib/python2.7/site-packages/oslo_service/wsgi.py", line 115, in __init__
        self.socket = self._get_socket(host, port, backlog)
      File "/data/bcom/OPENSTACK/watcher/.tox/py27/local/lib/python2.7/site-packages/oslo_service/wsgi.py", line 143, in _get_socket
        sock = eventlet.listen(bind_addr, family, backlog=backlog)
      File "/data/bcom/OPENSTACK/watcher/.tox/py27/local/lib/python2.7/site-packages/eventlet/convenience.py", line 43, in listen
        sock.bind(addr)
      File "/usr/lib/python2.7/socket.py", line 228, in meth
        return getattr(self._sock,name)(*args)
    socket.error: [Errno 98] Address already in use

Tags: test
tags: added: test
licanwei (li-canwei2)
Changed in watcher:
assignee: nobody → licanwei (li-canwei2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (master)

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

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

Reviewed: https://review.openstack.org/340694
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=76a61e234adf3e278c40a632120997015a09e6a3
Submitter: Jenkins
Branch: master

commit 76a61e234adf3e278c40a632120997015a09e6a3
Author: licanwei <email address hidden>
Date: Tue Jul 12 14:12:18 2016 +0800

    Fix unittest in test_api.py

    tox -e py27 fails with this error:
    socket.error: [Error 98] Address already in use

    Change-Id: I1cf4a000fb82228bed6a7da61feed48ab679b891
    Closes-Bug: #1599556

Changed in watcher:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/watcher 0.28.0

This issue was fixed in the openstack/watcher 0.28.0 release.

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.