test_snapshot_failure_when_remote_is_unreachable TimeoutException

Bug #1582370 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Eric Harney

Bug Description

The following test is failing when running tox -e py27. This started failing in the past few days.

cinder.tests.unit.test_coho.CohoDriverTest.test_snapshot_failure_when_remote_is_unreachable
-------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "cinder/tests/unit/test_coho.py", line 264, in test_snapshot_failure_when_remote_is_unreachable
        drv.create_snapshot(SNAPSHOT)
      File "cinder/volume/drivers/coho.py", line 352, in create_snapshot
        client = self._get_rpcclient(addr, self.configuration.coho_rpc_port)
      File "cinder/volume/drivers/coho.py", line 305, in _get_rpcclient
        return self._init_rpcclient(addr, port)
      File "cinder/volume/drivers/coho.py", line 298, in _init_rpcclient
        client = CohoRPCClient(addr, port)
      File "cinder/volume/drivers/coho.py", line 239, in __init__
        Client.__init__(self, address, COHO_PROGRAM, 1, port)
      File "cinder/volume/drivers/coho.py", line 80, in __init__
        self.init_socket()
      File "cinder/volume/drivers/coho.py", line 87, in init_socket
        self.sock.connect((self.address, self.port))
      File "/home/corey/pkg/newton/upstream/cinder/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenio/base.py", line 252, in connect
        timeout_exc=socket.timeout("timed out"))
      File "/home/corey/pkg/newton/upstream/cinder/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenio/base.py", line 203, in _trampoline
        mark_as_closed=self._mark_as_closed)
      File "/home/corey/pkg/newton/upstream/cinder/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/__init__.py", line 162, in trampoline
        return hub.switch()
      File "/home/corey/pkg/newton/upstream/cinder/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
        return self.greenlet.switch()
      File "/home/corey/pkg/newton/upstream/cinder/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 346, in run
        self.wait(sleep_time)
      File "/home/corey/pkg/newton/upstream/cinder/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/poll.py", line 85, in wait
        presult = self.do_poll(seconds)
      File "/home/corey/pkg/newton/upstream/cinder/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/epolls.py", line 62, in do_poll
        return self.poll.poll(seconds)
      File "/home/corey/pkg/newton/upstream/cinder/.tox/py27/local/lib/python2.7/site-packages/fixtures/_fixtures/timeout.py", line 52, in signal_handler
        raise TimeoutException()
    fixtures._fixtures.timeout.TimeoutException

Tags: coho tests
Eric Harney (eharney)
tags: added: coho tests
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
assignee: nobody → Eric Harney (eharney)
status: New → In Progress
Revision history for this message
Corey Bryant (corey.bryant) wrote :

test_walk_versions() and test_mysql_innodb() are getting the same failure in test_migrations.py.

I'm also seeing these failures on stable/mitaka.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/317071
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=5fea670aeca6306e136632a5a865b78a04023dfc
Submitter: Jenkins
Branch: master

commit 5fea670aeca6306e136632a5a865b78a04023dfc
Author: Eric Harney <email address hidden>
Date: Mon May 16 15:58:47 2016 -0400

    Tests: Don't attempt connection for Coho driver init

    This test is unreliable because it tries to actually
    connect to the network, and test for failure.

    Rather than trying to actually make a connection,
    just throw an error.

    Change-Id: I896979516f4fc751a30998120f510c3a4e5f59f6
    Closes-Bug: #1582370

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

This issue was fixed in the openstack/cinder 9.0.0.0b1 development milestone.

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.