Your message dated Tue, 16 Aug 2022 23:00:48 +0200
with message-id
and subject line Re: Bug#1017485: nova: autopkgtest regression:
testtools.matchers._impl.MismatchError
has caused the Debian Bug report #1017485,
regarding nova: autopkgtest regression: testtools.matchers._impl.MismatchError
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1017485: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017485
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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'
OpenPGP_signature
Description: OpenPGP digital signature
--- End Message ---
--- Begin Message ---
On Aug 16, 2022 22:27, Paul Gevers <elb...@debian.org> wrote:
> However, it turns out that your test very recently
> regressed in testing, it now fails everywhere [1].
> https://ci.debian.net/data/autopkgtest/testing/amd64/n/nova/24841382/log.gz
Hi Paul,
I have fixed the issue earlier this afternoon already. It was an issue on
http/server.py from python std lib that sanitizes input for open redirect which
these 2 tests checked. It was tricky to find out but I did ! :)
Test is disabled until upstream fixes it...
Cheers,
Thomas
--- End Message ---