From a473761b711b5bfa30faf4512c8840529219c58d Mon Sep 17 00:00:00 2001 From: Smit Gardhariya <113590758+smit-gardhariya@users.noreply.github.com> Date: Sat, 27 Jul 2024 17:21:28 +0530 Subject: [PATCH] Set userland-proxy as false for azure-linux-3 (#3359) Set userland-proxy as false for cloud-hypervisor tests for azure-linux-3 Signed-off-by: Smit Gardhariya --- microsoft/testsuites/cloud_hypervisor/ch_tests_tool.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/microsoft/testsuites/cloud_hypervisor/ch_tests_tool.py b/microsoft/testsuites/cloud_hypervisor/ch_tests_tool.py index 80ad499c4b..661eb84264 100644 --- a/microsoft/testsuites/cloud_hypervisor/ch_tests_tool.py +++ b/microsoft/testsuites/cloud_hypervisor/ch_tests_tool.py @@ -261,7 +261,12 @@ def _install(self) -> bool: if isinstance(self.node.os, CBLMariner): daemon_json_file = PurePath("/etc/docker/daemon.json") - daemon_json = '{"default-ulimits":{"nofile":{"Hard":65535,"Name":"nofile","Soft":65535}}}' # noqa: E501 + node_info = self.node.get_information() + distro = node_info.get("distro_version", "") + if distro == "Microsoft Azure Linux 3.0": + daemon_json = '{"userland-proxy": false,"default-ulimits":{"nofile":{"Hard":65535,"Name":"nofile","Soft":65535}}}' # noqa: E501 + else: + daemon_json = '{"default-ulimits":{"nofile":{"Hard":65535,"Name":"nofile","Soft":65535}}}' # noqa: E501 self.node.tools[Echo].write_to_file( daemon_json, daemon_json_file, sudo=True )