Unit tests are not passing under python3.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-magnumclient |
Fix Released
|
Undecided
|
Michal Arbet | ||
python-magnumclient (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned |
Bug Description
Hi,
I'm packaging packages for debian and found that unit tests are failing under py37.
Request to create cluster 3a369884-
=======
FAIL: magnumclient.
magnumclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
yield self.next()
File "/<<PKGBUILDDIR
raise StopIteration()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR
resp, body = client.
File "/<<PKGBUILDDIR
resp, body_iter = self._http_
File "/<<PKGBUILDDIR
else chunk for chunk in body_iter
File "/<<PKGBUILDDIR
chunk.
RuntimeError: generator raised StopIteration
=======
FAIL: magnumclient.
magnumclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
yield self.next()
File "/<<PKGBUILDDIR
raise StopIteration()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR
'GET', '/v1/resources')
File "/usr/lib/
self.
File "/usr/lib/
mismatch_error = self._matchHelp
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
mismatch = self.exception_
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
reraise(
File "/usr/lib/
raise exc_obj.
File "/usr/lib/
result = matchee()
File "/usr/lib/
return self._callable_
File "/<<PKGBUILDDIR
resp, body_iter = self._http_
File "/<<PKGBUILDDIR
else chunk for chunk in body_iter
File "/<<PKGBUILDDIR
chunk.
RuntimeError: generator raised StopIteration
=======
FAIL: magnumclient.
magnumclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
yield self.next()
File "/<<PKGBUILDDIR
raise StopIteration()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR
'GET', '/v1/resources')
File "/usr/lib/
self.
File "/usr/lib/
mismatch_error = self._matchHelp
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
mismatch = self.exception_
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
reraise(
File "/usr/lib/
raise exc_obj.
File "/usr/lib/
result = matchee()
File "/usr/lib/
return self._callable_
File "/<<PKGBUILDDIR
resp, body_iter = self._http_
File "/<<PKGBUILDDIR
else chunk for chunk in body_iter
File "/<<PKGBUILDDIR
chunk.
RuntimeError: generator raised StopIteration
=======
FAIL: magnumclient.
magnumclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
yield self.next()
File "/<<PKGBUILDDIR
raise StopIteration()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR
resp, body = client.
File "/<<PKGBUILDDIR
resp, body_iter = self._http_
File "/<<PKGBUILDDIR
else chunk for chunk in body_iter
File "/<<PKGBUILDDIR
chunk.
RuntimeError: generator raised StopIteration
=======
FAIL: magnumclient.
magnumclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
yield self.next()
File "/<<PKGBUILDDIR
raise StopIteration()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR
resp, body = client.
File "/<<PKGBUILDDIR
resp, body_iter = self._http_
File "/<<PKGBUILDDIR
else chunk for chunk in body_iter
File "/<<PKGBUILDDIR
chunk.
RuntimeError: generator raised StopIteration
=======
FAIL: magnumclient.
magnumclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
yield self.next()
File "/<<PKGBUILDDIR
raise StopIteration()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR
'GET', '/v1/resources')
File "/usr/lib/
self.
File "/usr/lib/
mismatch_error = self._matchHelp
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
mismatch = self.exception_
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
reraise(
File "/usr/lib/
raise exc_obj.
File "/usr/lib/
result = matchee()
File "/usr/lib/
return self._callable_
File "/<<PKGBUILDDIR
resp, body_iter = self._http_
File "/<<PKGBUILDDIR
else chunk for chunk in body_iter
File "/<<PKGBUILDDIR
chunk.
RuntimeError: generator raised StopIteration
=======
FAIL: magnumclient.
magnumclient.
-------
_StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR
yield self.next()
File "/<<PKGBUILDDIR
raise StopIteration()
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/<<PKGBUILDDIR
'GET', '/v1/resources')
File "/usr/lib/
self.
File "/usr/lib/
mismatch_error = self._matchHelp
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
mismatch = self.exception_
File "/usr/lib/
mismatch = matcher.
File "/usr/lib/
reraise(
File "/usr/lib/
raise exc_obj.
File "/usr/lib/
result = matchee()
File "/usr/lib/
return self._callable_
File "/<<PKGBUILDDIR
resp, body_iter = self._http_
File "/<<PKGBUILDDIR
else chunk for chunk in body_iter
File "/<<PKGBUILDDIR
chunk.
RuntimeError: generator raised StopIteration
-------
Ran 454 tests in 4.101s
This can be fixed by replacing StopIteration with return as it is in pep:
https:/
[Description]
See above
[Test Case]
This can be verified by the unit tests that are run during package build. As part of this change we've re-enabled the failing unit tests.
[Regression Potential]
A regression could surface as an unhandled exception in the python client code causing the client to crash. This is mitigated signficantly by the unit testing that is in place for this test.
[Discussion]
SRU team, please consider the most recent upload in the focal unapproved queue which has re-enabled the failing unit tests (ie. it drops skip-test.patch).
https:/
Changed in python-magnumclient: | |
assignee: | nobody → Michal Arbet (michalarbet) |
Changed in python-magnumclient: | |
status: | New → Fix Released |
Changed in python-magnumclient (Ubuntu): | |
status: | New → Fix Released |
Changed in python-magnumclient (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → High |
description: | updated |
Changed in python-magnumclient (Ubuntu): | |
importance: | Undecided → High |
This issue was fixed in the openstack/ python- magnumclient 2.12.0 release.