cinder.tests.unit.volume.drivers.hpe.test_hpe3par.TestHPE3PARFCDriver.test_create_modify_host not deterministic

Bug #1752020 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Incomplete
Undecided
Unassigned

Bug Description

Hi,

I get some intermittent failure of the test:

olume.drivers.hpe.test_hpe3par.TestHPE3PARFCDriver.test_create_modify_host

Here's the stack dump:

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b' File "/<<PKGBUILDDIR>>/cinder/tests/unit/volume/drivers/hpe/test_hpe3par.py", line 7734, in test_create_modify_host'
    b' mock_client.assert_has_calls(expected)'
    b' File "/usr/lib/python3/dist-packages/mock/mock.py", line 969, in assert_has_calls'
    b' ), cause)'
    b' File "<string>", line 2, in raise_from'
    b'AssertionError: Calls not found.'
    b"Expected: [call.getVolume('osv-0DM4qZEVSKON-DXN-NwVpw'),"
    b" call.getCPG('OpenStackCPG'),"
    b" call.getHost('fakehost'),"
    b" call.queryHost(wwns=['123456789012345', '123456789054321']),"
    b" call.modifyHost('fakehost', {'FCWWNs': ['123456789012345', '123456789054321'], 'pathOperation': 1}),"
    b" call.getHost('fakehost')]"
    b'Actual: [call.getWsApiVersion(),'
    b" call.login('testUser', 'testPassword'),"
    b" call.setSSHOptions('2.2.2.2', 'testUser', 'testPassword', conn_timeout=44, known_hosts_file='/<<PKGBUILDDIR>>/ssh_known_hosts', missing_key_policy='AutoAddPolicy', port=999, privatekey='foobar'),"
    b' call.getStorageSystemInfo(),'
    b" call.getStorageSystemInfo().__getitem__('id'),"
    b' call.getStorageSystemInfo().__getitem__().__str__(),'
    b' call.logout(),'
    b" call.login('testUser', 'testPassword'),"
    b" call.setSSHOptions('2.2.2.2', 'testUser', 'testPassword', conn_timeout=44, known_hosts_file='/<<PKGBUILDDIR>>/ssh_known_hosts', missing_key_policy='AutoAddPolicy', port=999, privatekey='foobar'),"
    b" call.getVolume('osv-0DM4qZEVSKON-DXN-NwVpw'),"
    b" call.getCPG('OpenStackCPG'),"
    b" call.getHost('fakehost'),"
    b" call.queryHost(wwns=['123456789012345', '123456789054321']),"
    b" call.modifyHost('fakehost', {'pathOperation': 1, 'FCWWNs': ['123456789054321', '123456789012345']}),"
    b" call.getHost('fakehost')]"
    b''

Tags: tests
Revision history for this message
Eric Harney (eharney) wrote :

What git hash does this occur on?

I wonder if it was fixed by
https://review.openstack.org/#/c/545978/

Changed in cinder:
status: New → Incomplete
tags: added: tests
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.