python-magnuclient ftbfs in focal

Bug #1870076 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-magnumclient (Ubuntu)
Fix Released
High
James Page

Bug Description

seen in the second focal test rebuild
https://launchpadlibrarian.net/471775813/buildlog_ubuntu-focal-amd64.python-magnumclient_2.11.0-0ubuntu3_BUILDING.txt.gz

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 409, in __iter__
    yield self.next()

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 421, in next
    raise StopIteration()

    StopIteration

The above exception was the direct cause of the following exception:

    Traceback (most recent call last):

      File "/<<PKGBUILDDIR>>/magnumclient/tests/test_httpclient.py", line 134, in test_server_exception_msg_and_traceback
    error = self.assertRaises(exc.InternalServerError,

      File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 489, in assertRaises
    self.assertThat(our_callable, matcher)

      File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 500, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)

      File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 551, in _matchHelper
    mismatch = matcher.match(matchee)

      File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)

      File "/usr/lib/python3/dist-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)

      File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 479, in match
    reraise(*matchee)

      File "/usr/lib/python3/dist-packages/testtools/_compat3x.py", line 16, in reraise
    raise exc_obj.with_traceback(exc_tb)

      File "/usr/lib/python3/dist-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()

      File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 1053, in __call__
    return self._callable_object(*self._args, **self._kwargs)

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 233, in json_request
    resp, body_iter = self._http_request(url, method, **kwargs)

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 201, in _http_request
    body_list = [

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 201, in <listcomp>
    body_list = [

    RuntimeError: generator raised StopIteration

magnumclient.tests.test_httpclient.HttpClientTest.test_server_success_body_json
-------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 409, in __iter__
    yield self.next()

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 421, in next
    raise StopIteration()

    StopIteration

The above exception was the direct cause of the following exception:

    Traceback (most recent call last):

      File "/<<PKGBUILDDIR>>/magnumclient/tests/test_httpclient.py", line 363, in test_server_success_body_json
    resp, body = client.json_request('GET', '/v1/resources')

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 233, in json_request
    resp, body_iter = self._http_request(url, method, **kwargs)

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 201, in _http_request
    body_list = [

      File "/<<PKGBUILDDIR>>/magnumclient/common/httpclient.py", line 201, in <listcomp>
    body_list = [

    RuntimeError: generator raised StopIteration

======
Totals
======
Ran: 454 tests in 6.2408 sec.
 - Passed: 447
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 7
Sum of execute time for each test: 13.1898 sec.

Matthias Klose (doko)
Changed in python-magnumclient (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: ftbfs rls-ff-incoming
description: updated
James Page (james-page)
Changed in python-magnumclient (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → James Page (james-page)
milestone: none → ubuntu-20.04
James Page (james-page)
Changed in python-magnumclient (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-magnumclient - 2.11.0-0ubuntu4

---------------
python-magnumclient (2.11.0-0ubuntu4) focal; urgency=medium

  * d/p/skip-tests.patch: Refresh patch to ensure that tests are skipped
    for >= Python 3.7 rather than == (LP: #1870076).
  * d/rules: Set PBR_VERSION to fix failing shell tests.

 -- James Page <email address hidden> Fri, 03 Apr 2020 11:53:04 +0100

Changed in python-magnumclient (Ubuntu):
status: Fix Committed → Fix Released
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.