Source: nova
Version: 2:25.0.1-1
Severity: serious
User: debian...@lists.debian.org
Usertags: regression

Dear maintainer(s),

I looked at the results of the autopkgtest of you package because it was showing up as a regression for the upload of python3-defaults on all architectures. However, it turns out that your test very recently regressed in testing, it now fails everywhere [1].

Paul

[0] https://ci.debian.net/packages/n/nova/

https://ci.debian.net/data/autopkgtest/testing/amd64/n/nova/24841382/log.gz

======================================================================
FAIL: nova.tests.unit.console.test_websocketproxy.NovaProxyRequestHandlerTestCase.test_reject_open_redirect
nova.tests.unit.console.test_websocketproxy.NovaProxyRequestHandlerTestCase.test_reject_open_redirect
----------------------------------------------------------------------
testtools.testresult.real._StringException: pythonlogging:'': {{{
2022-08-15 16:18:58,613 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-08-15 16:18:58,614 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-08-15 16:18:58,615 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. 2022-08-15 16:18:58,616 INFO [nova.console.websocketproxy] WebSocket server settings: 2022-08-15 16:18:58,617 INFO [nova.console.websocketproxy] - Listen on :None 2022-08-15 16:18:58,617 INFO [nova.console.websocketproxy] - SSL/TLS support
}}}

Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.suspzscb/downtmp/build.Je5/src/nova/tests/unit/console/test_websocketproxy.py", line 622, in test_reject_open_redirect
    self.assertIn('400 URI must not start with //', result[0].decode())
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 399, in assertIn
    self.assertThat(haystack, Contains(needle), message)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 480, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: '400 URI must not start with //' not in 'HTTP/1.1 301 Moved Permanently\r\n'


======================================================================
FAIL: nova.tests.unit.console.test_websocketproxy.NovaProxyRequestHandlerTestCase.test_reject_open_redirect_3_slashes
nova.tests.unit.console.test_websocketproxy.NovaProxyRequestHandlerTestCase.test_reject_open_redirect_3_slashes
----------------------------------------------------------------------
testtools.testresult.real._StringException: pythonlogging:'': {{{
2022-08-15 16:18:58,734 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-08-15 16:18:58,735 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-08-15 16:18:58,736 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. 2022-08-15 16:18:58,751 INFO [nova.console.websocketproxy] WebSocket server settings: 2022-08-15 16:18:58,751 INFO [nova.console.websocketproxy] - Listen on :None 2022-08-15 16:18:58,751 INFO [nova.console.websocketproxy] - SSL/TLS support
}}}

Traceback (most recent call last):
File "/tmp/autopkgtest-lxc.suspzscb/downtmp/build.Je5/src/nova/tests/unit/console/test_websocketproxy.py", line 655, in test_reject_open_redirect_3_slashes
    self.assertIn('Error code: 400', self.data)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 399, in assertIn
    self.assertThat(haystack, Contains(needle), message)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 480, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'Error code: 400' not in 'HTTP/1.1 301 Moved Permanently\r\nServer: WebSockify Python/3.10.6\r\nDate: Mon, 15 Aug 2022 16:18:58 GMT\r\nLocation: /example.com/%2F../\r\nContent-Length: 0\r\n\r\n'

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to