On Thu, 23 Jun 2022 08:43:25 +0200 Lucas Nussbaum <lu...@debian.org> wrote:
> Source: nova
> Version: 2:25.0.0-4
> Severity: important
> Tags: ftbfs
> User: mity...@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

Reply via email to