#1013410 nova: FTBFS with Sphinx 5.0, docutils 0.18: AssertionError: expected call not found.

Package:
src:nova
Source:
nova
Submitter:
Lucas Nussbaum
Date:
2022-06-30 16:39:08 UTC
Severity:
important
Tags:
#1013410#5
Date:
2022-06-23 06:43:25 UTC
From:
To:
Hi,

nova fails to build with Sphinx 5.0 and docutils 0.18, both of which
are currently available in experimental.

Relevant part (hopefully):
The full build log is available from:
http://qa-logs.debian.net/2022/06/23/nova_25.0.0-4_unstable_sphinx-exp.log

Please see [1] for Sphinx changelog and [2] for Docutils changelog.

Also see [3] for the list of deprecated/removed APIs in Sphinx and possible
alternatives to them.

In case you have questions, please Cc sphinx@packages.debian.org on reply.

[1]: https://www.sphinx-doc.org/en/master/changes.html
[2]: https://repo.or.cz/docutils.git/blob/refs/tags/docutils-0.18.1:/RELEASE-NOTES.txt
[3]: https://www.sphinx-doc.org/en/master/extdev/deprecated.html#dev-deprecated-apis

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=sphinx5.0;users=mitya57@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=sphinx5.0&fusertaguser=mitya57@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

#1013410#10
Date:
2022-06-27 08:24:31 UTC
From:
To:
On Thu, 23 Jun 2022 08:43:25 +0200 Lucas Nussbaum <lucas@debian.org>  wrote:
 > Source: nova
 > Version: 2:25.0.0-4
 > Severity: important
 > Tags: ftbfs
 > User: mitya57@debian.org
 > Usertags: sphinx5.0
 >
 > Hi,
 >

[snip]

 >
======================================================================
 > FAIL:
nova.tests.unit.compute.test_virtapi.ComputeVirtAPITest.test_wait_for_instance_event_multiple_events
 >
nova.tests.unit.compute.test_virtapi.ComputeVirtAPITest.test_wait_for_instance_event_multiple_events
 >
----------------------------------------------------------------------
 > testtools.testresult.real._StringException: pythonlogging:'': {{{
 > 2022-06-22 22:38:14,021 WARNING [oslo_policy.policy] JSON formatted
policy_file support is deprecated since Victoria release. You need to
use YAML format which will be default in future. You can use
``oslopolicy-convert-json-to-yaml`` tool to convert existing
JSON-formatted policy file to YAML-formatted in backward compatible
way:
https://docs.openstack.org/oslo.policy/latest/cli/oslopolicy-convert-json-to-yaml.html.
 > 2022-06-22 22:38:14,022 WARNING [oslo_policy.policy] JSON formatted
policy_file support is deprecated since Victoria release. You need to
use YAML format which will be default in future. You can use
``oslopolicy-convert-json-to-yaml`` tool to convert existing
JSON-formatted policy file to YAML-formatted in backward compatible
way:
https://docs.openstack.org/oslo.policy/latest/cli/oslopolicy-convert-json-to-yaml.html.
 > 2022-06-22 22:38:14,023 WARNING [oslo_policy.policy] Policy Rules
['os_compute_api:extensions', 'os_compute_api:os-floating-ip-pools',
'os_compute_api:os-quota-sets:defaults',
'os_compute_api:os-availability-zone:list', 'os_compute_api:limits',
'project_admin_api', 'project_member_api', 'project_reader_api',
'project_reader_or_admin', 'os_compute_api:limits:other_project',
'os_compute_api:os-lock-server:unlock:unlock_override',
'os_compute_api:servers:create:zero_disk_flavor',
'compute:servers:resize:cross_cell'] specified in policy files are the
same as the defaults provided by the service. You can remove these
rules from policy files which will make maintenance easier. You can
detect these redundant rules by ``oslopolicy-list-redundant`` tool also.
 > }}}
 >
 > Traceback (most recent call last):
 >   File "/<<PKGBUILDDIR>>/nova/tests/unit/compute/test_virtapi.py",
line 310, in test_wait_for_instance_event_multiple_events
 >     mock_log.warning.assert_called_once_with(
 >   File "/usr/lib/python3/dist-packages/mock/mock.py", line 926, in
assert_called_once_with
 >     return self.assert_called_with(*args, **kwargs)
 >   File "/usr/lib/python3/dist-packages/mock/mock.py", line 913, in
assert_called_with
 >     raise AssertionError(_error_message()) from cause
 > AssertionError: expected call not found.
 > Expected: warning('Timeout waiting for %(events)s for instance with
vm_state %(vm_state)s and task_state %(task_state)s. Event states are:
%(event_states)s', {'events': ['received-event', 'early-event',
'missing-event', 'received-but-not-waited-event',
'missing-but-not-waited-event'], 'vm_state': sentinel.vm_state,
'task_state': sentinel.task_state, 'event_states': 'received-event:
received after waiting 0.00 seconds, early-event: received early,
missing-event: timed out after 0.00 seconds,
received-but-not-waited-event: received but not processed,
missing-but-not-waited-event: expected but not received'},
instance=<Mock name='mock.instance' id='140626973182272'>)
 > Actual: warning('Timeout waiting for %(events)s for instance with
vm_state %(vm_state)s and task_state %(task_state)s. Event states are:
%(event_states)s', {'events': ['received-event', 'early-event',
'missing-event', 'received-but-not-waited-event',
'missing-but-not-waited-event'], 'vm_state': sentinel.vm_state,
'task_state': sentinel.task_state, 'event_states': 'received-event:
received after waiting 0.00 seconds, early-event: received early,
missing-event: timed out after 0.02 seconds,
received-but-not-waited-event: received but not processed,
missing-but-not-waited-event: expected but not received'},
instance=<Mock name='mock.instance' id='140626973182272'>)
 >
 >

We have an upstream bug for this[1] that is being fixed in [2].

Cheers,
gibi

[1] https://bugs.launchpad.net/nova/+bug/1978817
[2] https://review.opendev.org/c/openstack/nova/+/845922

#1013410#13
Date:
2022-06-30 15:54:23 UTC
From:
To:
Hello,

Bug #1013410 in nova reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/openstack-team/services/nova/-/commit/38b643fa49623c1667420eb6c81c13441b934b36
------------------------------------------------------------------------
* Add Make_test_wait_for_instance_event_test_time_independent.patch
    (Closes: #1013410).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1013410

#1013410#20
Date:
2022-06-30 16:35:22 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
nova, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1013410@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated nova package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 20 May 2022 10:33:41 +0200
Source: nova
Architecture: source
Version: 2:25.0.0-5
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1013410
Changes:
 nova (2:25.0.0-5) unstable; urgency=medium
 .
   * Add swtpm as dependency of nova-compute-{kvm,qemu}.
   * Add Make_test_wait_for_instance_event_test_time_independent.patch
     (Closes: #1013410).
Checksums-Sha1:
 09ad1367d66d97081e17dd03a7d82f6f275ba3d3 5130 nova_25.0.0-5.dsc
 d625c36abe748d0f637cc6ccf7a1b4a1654e5051 61556 nova_25.0.0-5.debian.tar.xz
 5b246dcbdc844c51ca5b9101ce7cb2820ea16100 23637 nova_25.0.0-5_amd64.buildinfo
Checksums-Sha256:
 ab026b2793968f9386683a2fa601584feaac2c2da8d194b454ca2fb9d2719c57 5130 nova_25.0.0-5.dsc
 4e2c36924b28575cd303d531a68d3cb21f64b7dd437e3ee1e33c5d13c26807a9 61556 nova_25.0.0-5.debian.tar.xz
 af18dc1addf18cc4981ff8d91e6ee0b4dac99ac44385f91adb5ecf62d23fcc91 23637 nova_25.0.0-5_amd64.buildinfo
Files:
 0800c54ef9dc40eb6424ea723a6db8af 5130 net optional nova_25.0.0-5.dsc
 5f24901859cf00ec9ab8edf72627a5be 61556 net optional nova_25.0.0-5.debian.tar.xz
 a2dca66330ca16ebd43d3b3570dfb191 23637 net optional nova_25.0.0-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmK9xzMACgkQ1BatFaxr
Q/5MyRAAm5Gw10betCV1xA0YxjSOAZ5DJN7yVNE7ZiOc/SGqJV89JX8XzIOtb4Bo
NtDQ1hWpAtsHSmWa6B1qO9fSZc0DP/wNE4kFl3AFcUPcw7xaSKfbfRZnmJBJxMkM
11tOeWhW1iCnROmoBeuCyMn+9xkU3Bel6dUyKjk2brcNwkUkpr7vzja9gCcFlTKL
qD5ddKvm5hecTXTeVkODlGkR5UKP8UixDVrLDMAB9oEU4irlcycMmopVlDSTbmH/
y48fDxUnDCy+hlaWzajVX+oRpEzROaelWWVwZB7UuK4CCCE1ud7FQlinNnOXgi88
V0Sx9jY01tj4WDd0tINOkDeKh/LTFVO+JvPMdrXKhscNSChVR13tdl32A29e5Dr3
sNgP2PlTazE+IqdiUW8w3kXxo7c0Ypj2av4U5S+Z9DlOYWP03YlVdM8ASeZ/Lbne
h4r8PEqIo+d0+3SOTXI7KNPZvmpAvLdI7SVxCJA6kA162hpUhzEqD0zS+N1UYoKC
jCaKSp/X5Q3QbklQXG20YMnbzFSxnyRHTFKxZM0+MPV0QX9IZHLKgSbtBy+QsHap
gJdwTq0MTih0AR4bUu0Rjxhj6TZ+90mrzz27ViGjlvKXWAqEgZT0ynYcuv7tSW5M
eEWbyekEd9Nz0/OMPdAbIMxTw3Q9CAAj0YshNRZYpu7isQ6Dgq8=
=cVP2
-----END PGP SIGNATURE-----