=== cpaelzer_ is now known as cpaelzer === aaa is now known as Guest2007 [16:50] meena: nice job! \o/ [20:25] Hello, my name is Minghe and I am a developer from Mariner Team. Currently we are using cloud-init 23.2 and we have two fails on the unit test for our ARM64 system. Can someone take a look at it and might know the reason? Thanks! [20:27] The tests failing while building are: test_gi_excludes_stolen_macs and test_gi_includes_duplicate_macs [20:35] time="2023-08-05T13:27:01Z" level=debug msg="self = " [20:36] time="2023-08-05T13:27:01Z" level=debug [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" def test_gi_excludes_stolen_macs(self):" [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" self._mock_setup()" [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" ret = net.get_interfaces()" [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" self.mocks[\"interface_has_own_mac\"].assert_has_calls(" [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" [mock.call(\"enp0s1\"), mock.call(\"bond1\")], any_order=True" [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" )" [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" expected = [" [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" (\"enp0s2\", \"aa:aa:aa:aa:aa:02\", \"e1000\", \"0x5\")," [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" (\"enp0s1\", \"aa:aa:aa:aa:aa:01\", \"virtio_net\", \"0x4\")," [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" (\"eth1\", \"aa:aa:aa:aa:aa:01\", \"mlx4_core\", \"0x6\")," [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" (\"lo\", \"00:00:00:00:00:00\", None, \"0x8\")," [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" (\"bridge1-nic\", \"aa:aa:aa:aa:aa:03\", None, \"0x3\")," [20:36] time="2023-08-05T13:27:01Z" level=debug msg=" ]" [20:36] time="2023-08-05T13:27:01Z" level=debug msg="> self.assertEqual(sorted(expected), sorted(ret))" [20:36] time="2023-08-05T13:27:01Z" level=debug msg="E AssertionError: Lists differ: [('br[147 chars]), ('eth1', 'aa:aa:aa:aa:aa:01', 'mlx4_core', [44 chars]x8')] != [('br[147 chars]), ('lo', '00:00:00:00:00:00', None, '0x8')]" [20:36] time="2023-08-05T13:27:01Z" level=debug msg="E " [20:37] Sorry the I am not able to attach the screenshot here. Seems the feature is not functioning [20:37] btw, it's better to use a pastebin site like https://paste.debian.net/ and just share the link here [20:38] images can be hosted on imgur.com [20:38] Minghe: this is IRC. it's all text based. but pasting 20 lines of debug log in here isn't great for following discussions [20:43] Sorry about that, here is the link to error msg: https://paste.debian.net/1288532 [20:43] much better, thanks :) [20:45] we only see this on ARM64 system, x86 is OK [20:46] do your arm64 systems have mellanox cards in them? [20:49] I am not sure about this but why? [20:50] sarnold: this is testcases failure, not on a real machine [21:14] patched python3.9 unittest run: 10 test failures. [21:29] which i guess means the netlink errors are fixed, since I'm not seeing any of those [22:09] minimal: hah, so is it checking one way of mocking an interface with a second way of mocking an interface? [22:10] https://github.com/canonical/cloud-init/issues/4332 [22:10] -ubottu:#cloud-init- Issue 4332 in canonical/cloud-init "util.py: get_proc_env() doesn't work on FreeBSD" [Open] [22:18] https://github.com/canonical/cloud-init/issues/4333 [22:18] -ubottu:#cloud-init- Issue 4333 in canonical/cloud-init "stop using date(1) to parse date/time stamps." [Open] [22:27] sarnold: it is mocking some stuff then calling some cloud-init code (which uses the mocked stuff) and the result doesn't match what was expected for some reason [22:29] minimal: ah, okay, so it's a much more useful test than I expected, cool cool [22:29] it seems to be expecting info about 5 interfaces but the test returns info on 4 interfaces [22:43] https://github.com/canonical/cloud-init/pull/4334 not the best i can do, but let's see, maybe I'll fix the that whole test failureā€¦ [22:43] -ubottu:#cloud-init- Pull 4334 in canonical/cloud-init "cc_mounts: xfs is a Linux only FS" [Open] [22:45] minimal Could it due to python version? [22:47] should I file a bug on this? [22:47] you would need to provide more information [22:48] I don't have any test failures on aarch64 for Alpine Linux [22:48] if you open an Issue you'd need to provide logs, details of OS, and cloud-init version etc