[Bug 1501703] Re: unit test failures on 32 bit architectures
OpenStack Infra
1501703 at bugs.launchpad.net
Fri Oct 2 19:43:49 UTC 2015
Reviewed: https://review.openstack.org/230523
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=18344140bd0aae61dd6f50667d719cd9cfe149cb
Submitter: Jenkins
Branch: stable/liberty
commit 18344140bd0aae61dd6f50667d719cd9cfe149cb
Author: James Page <james.page at ubuntu.com>
Date: Thu Oct 1 11:54:28 2015 +0100
Use format to convert ints to strings
This ensures that on 32bit architectures, where
sometimes an implicit long is created, the resulting
string does not contain a 'L' suffix as generated
by the hex function.
Change-Id: I264f90d68009963fe7a217c2170e1cf2f46ae2bb
Closes-Bug: 1501703
(cherry picked from commit 49883f1b2bfc9a4f06b1d336553d7f0ab4289a0d)
** Tags added: in-stable-liberty
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to neutron in Ubuntu.
https://bugs.launchpad.net/bugs/1501703
Title:
unit test failures on 32 bit architectures
Status in neutron:
Fix Committed
Status in neutron package in Ubuntu:
In Progress
Bug description:
Test all pass fine in Ubuntu on 64 bit archs, however on a 32 bit
architecture (which is how we build packages in 14.04), two unit tests
fail - this is a int/long type problem.
======================================================================
FAIL: neutron.tests.unit.agent.linux.test_ip_lib.TestIpRuleCommand.test__make_canonical_fwmark
neutron.tests.unit.agent.linux.test_ip_lib.TestIpRuleCommand.test__make_canonical_fwmark
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
pythonlogging:'neutron.api.extensions'
stderr
stdout
Traceback (most recent call last):
File "/«PKGBUILDDIR»/neutron/tests/unit/agent/linux/test_ip_lib.py", line 633, in test__make_canonical_fwmark
'type': 'unicast'}, actual)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 348, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 433, in assertThat
raise mismatch_error
MismatchError: !=:
reference = {'fwmark': '0x400/0xffffffff', 'type': 'unicast'}
actual = {'fwmark': '0x400/0xffffffffL', 'type': 'unicast'}
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
pythonlogging:'neutron.api.extensions'
stderr
stdout
Traceback (most recent call last):
File "/«PKGBUILDDIR»/neutron/tests/unit/agent/linux/test_ip_lib.py", line 633, in test__make_canonical_fwmark
'type': 'unicast'}, actual)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 348, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 433, in assertThat
raise mismatch_error
MismatchError: !=:
reference = {'fwmark': '0x400/0xffffffff', 'type': 'unicast'}
actual = {'fwmark': '0x400/0xffffffffL', 'type': 'unicast'}
======================================================================
FAIL: neutron.tests.unit.agent.linux.test_ip_lib.TestIpRuleCommand.test__make_canonical_fwmark_integer
neutron.tests.unit.agent.linux.test_ip_lib.TestIpRuleCommand.test__make_canonical_fwmark_integer
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
pythonlogging:'neutron.api.extensions'
stderr
stdout
Traceback (most recent call last):
File "/«PKGBUILDDIR»/neutron/tests/unit/agent/linux/test_ip_lib.py", line 642, in test__make_canonical_fwmark_integer
'type': 'unicast'}, actual)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 348, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 433, in assertThat
raise mismatch_error
MismatchError: !=:
reference = {'fwmark': '0x400/0xffffffff', 'type': 'unicast'}
actual = {'fwmark': '0x400/0xffffffffL', 'type': 'unicast'}
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
pythonlogging:'neutron.api.extensions'
stderr
stdout
Traceback (most recent call last):
File "/«PKGBUILDDIR»/neutron/tests/unit/agent/linux/test_ip_lib.py", line 642, in test__make_canonical_fwmark_integer
'type': 'unicast'}, actual)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 348, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 433, in assertThat
raise mismatch_error
MismatchError: !=:
reference = {'fwmark': '0x400/0xffffffff', 'type': 'unicast'}
actual = {'fwmark': '0x400/0xffffffffL', 'type': 'unicast'}
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1501703/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list