tests fail sometime with "Address already in use" error

Bug #1599556 reported by David TARDIVEL on 2016-07-06
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

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


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
      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__
      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
      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: added: test
licanwei (li-canwei2) on 2016-07-12
Changed in watcher:
assignee: nobody → licanwei (li-canwei2)

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

Changed in watcher:
status: Triaged → In Progress

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

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  Edit
Everyone can see this information.

Other bug subscribers