Most of NetApp unittest would fail sadly if there was a http proxy set in the environment. The HTTP request to 127.0.0.1 would be sent to proxy.
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_connect
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 542, in test_connect
self.driver.check_for_setup_error()
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 158, in check_for_setup_error
self._get_lun_list()
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 1040, in _get_lun_list
luns = self._get_vol_luns(None)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 1049, in _get_vol_luns
result = self.client.invoke_successfully(api, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_create_destroy
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 545, in test_create_destroy
self.driver.create_volume(self.volume)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_create_fail_on_select_vol
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 1092, in test_create_fail_on_select_vol
self.driver.create_volume(self.volume)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_create_on_select_vol
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 1084, in test_create_on_select_vol
self.driver.create_volume(self.volume)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_create_vol_snapshot_destroy
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 549, in test_create_vol_snapshot_destroy
self.driver.create_volume(self.volume)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_fail_cloned_volume_creation
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 588, in test_fail_cloned_volume_creation
self.driver.create_volume(self.volume)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_fail_create_vol
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 613, in test_fail_create_vol
self.driver.create_volume, self.vol_fail)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 394, in assertRaises
self.assertThat(our_callable, matcher)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 406, in assertThat
mismatch = matcher.match(matchee)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 99, in match
mismatch = self.exception_matcher.match(exc_info)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 61, in match
mismatch = matcher.match(matchee)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 386, in match
reraise(*matchee)
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 92, in match
result = matchee()
File "/opt/stack/cinder/.venv/lib/python2.7/site-packages/testtools/testcase.py", line 867, in __call__
return self._callable_object(*self._args, **self._kwargs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_fail_vol_from_snapshot_creation
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 571, in test_fail_vol_from_snapshot_creation
self.driver.create_volume(self.volume)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_map_by_creating_igroup
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 599, in test_map_by_creating_igroup
self.driver.create_volume(self.volume)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
======================================================================
FAIL: cinder.tests.test_netapp.NetAppDirect7modeISCSIDriverTestCase_NV.test_map_unmap
----------------------------------------------------------------------
_StringException: Empty attachments:
pythonlogging:''-1
stderr
stdout
pythonlogging:'': {{{
Requested unified config: ontap_7mode and iscsi
NetApp driver of family ontap_7mode and protocol iscsi loaded
}}}
Traceback (most recent call last):
File "/opt/stack/cinder/cinder/tests/test_netapp.py", line 556, in test_map_unmap
self.driver.create_volume(self.volume)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 174, in create_volume
self._create_lun_on_eligible_vol(name, size, metadata, extra_specs)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 916, in _create_lun_on_eligible_vol
volume = self._get_avl_volume_by_size(req_size)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/iscsi.py", line 933, in _get_avl_volume_by_size
res = self.client.invoke_successfully(vol_request, True)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 213, in invoke_successfully
result = self.invoke_elem(na_element, enable_tunneling)
File "/opt/stack/cinder/cinder/volume/drivers/netapp/api.py", line 199, in invoke_elem
raise NaApiError(e.code, e.msg)
NaApiError: NetApp api failed. Reason - 404:Not Found
Ran 13 tests in 4.296s
Winston, can you add some instructions to reproduce these test failures? How exactly did you specify the HTTP proxy?