2 test failing local unit test run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-brick |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
After merging patch[1] 2 of the tests started failing locally since they started returning nvme_hostid in the response.
This is environment specific since this value is read from '/etc/nvme/hostid' file and system's not having this file won't face this issue.
=======
Failed 2 tests - output below:
=======
os_brick.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/opt/stack/
self.
File "/usr/lib/
return func(*newargs, **newkeywargs)
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
raise mismatch_error
testtools.
reference = {'do_local_attach': False,
'host': 'fakehost',
'initiator': 'fakeinitiator',
'ip': '10.0.0.1',
'multipath': False,
'nvme_
'os_type': 'linux2',
'platform': 's390x'}
actual = {'do_local_attach': False,
'host': 'fakehost',
'initiator': 'fakeinitiator',
'ip': '10.0.0.1',
'multipath': False,
'nvme_hostid': '351765db-
'nvme_
'os_type': 'linux2',
'platform': 's390x'}
os_brick.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/opt/stack/
self.
File "/usr/lib/
return func(*newargs, **newkeywargs)
File "/opt/stack/
self.
File "/opt/stack/
self.
File "/opt/stack/
raise mismatch_error
testtools.
reference = {'do_local_attach': False,
'host': 'myhostname',
'initiator': 'fakeinitiator',
'ip': '10.0.0.1',
'multipath': False,
'nvme_
'os_type': 'linux2',
'platform': 's390x'}
actual = {'do_local_attach': False,
'host': 'myhostname',
'initiator': 'fakeinitiator',
'ip': '10.0.0.1',
'multipath': False,
'nvme_hostid': '351765db-
'nvme_
'os_type': 'linux2',
'platform': 's390x'}
======
Totals
======
Ran: 1036 tests in 0.6154 sec.
- Passed: 1034
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 2
Sum of execute time for each test: 3.3117 sec.
[1] https:/
summary: |
- 2 test failing in local run + 2 test failing unit test run |
summary: |
- 2 test failing unit test run + 2 test failing local unit test run |
Fix proposed to branch: master /review. opendev. org/c/openstack /os-brick/ +/892669
Review: https:/