[16:50] <holmanb> meena: nice job! \o/
[20:25] <Minghe> 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] <Minghe> The tests failing while building are: test_gi_excludes_stolen_macs and test_gi_includes_duplicate_macs
[20:35] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="self = <tests.unittests.test_net.TestGetInterfaces testMethod=test_gi_excludes_stolen_macs>"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="    def test_gi_excludes_stolen_macs(self):"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="        self._mock_setup()"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="        ret = net.get_interfaces()"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="        self.mocks[\"interface_has_own_mac\"].assert_has_calls("
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="            [mock.call(\"enp0s1\"), mock.call(\"bond1\")], any_order=True"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="        )"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="        expected = ["
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="            (\"enp0s2\", \"aa:aa:aa:aa:aa:02\", \"e1000\", \"0x5\"),"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="            (\"enp0s1\", \"aa:aa:aa:aa:aa:01\", \"virtio_net\", \"0x4\"),"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="            (\"eth1\", \"aa:aa:aa:aa:aa:01\", \"mlx4_core\", \"0x6\"),"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="            (\"lo\", \"00:00:00:00:00:00\", None, \"0x8\"),"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="            (\"bridge1-nic\", \"aa:aa:aa:aa:aa:03\", None, \"0x3\"),"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="        ]"
[20:36] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg=">       self.assertEqual(sorted(expected), sorted(ret))"
[20:36] <Minghe> 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] <Minghe> time="2023-08-05T13:27:01Z" level=debug msg="E       "
[20:37] <Minghe> Sorry the I am not able to attach the screenshot here. Seems the feature is not functioning
[20:37] <sarnold> btw, it's better to use a pastebin site like https://paste.debian.net/ and just share the link here
[20:38] <sarnold> images can be hosted on imgur.com
[20:38] <meena> 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] <Minghe> Sorry about that, here is the link to error msg: https://paste.debian.net/1288532
[20:43] <sarnold> much better, thanks :)
[20:45] <Minghe> we only see this on ARM64 system, x86 is OK
[20:46] <sarnold> do your arm64 systems have mellanox cards in them?
[20:49] <Minghe> I am not sure about this but why?
[20:50] <minimal>  sarnold: this is testcases failure, not on a real machine
[21:14] <meena> patched python3.9 unittest run: 10 test failures.
[21:29] <meena> which i guess means the netlink errors are fixed, since I'm not seeing any of those
[22:09] <sarnold> minimal: hah, so is it checking one way of mocking an interface with a second way of mocking an interface?
[22:10] <meena> 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] <meena> 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] <minimal> 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] <sarnold> minimal: ah, okay, so it's a much more useful test than I expected, cool cool
[22:29] <minimal> it seems to be expecting info about 5 interfaces but the test returns info on 4 interfaces
[22:43] <meena> 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] <Minghe> minimal Could it due to python version?
[22:47] <Minghe> should I file a bug on this?
[22:47] <minimal> you would need to provide more information
[22:48] <minimal> I don't have any test failures on aarch64 for Alpine Linux
[22:48] <minimal> if you open an Issue you'd need to provide logs, details of OS, and cloud-init version etc