Skip to content

Commit a473761

Browse files
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 <sgardhariya@microsoft.com>
1 parent b36d285 commit a473761

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

microsoft/testsuites/cloud_hypervisor/ch_tests_tool.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,12 @@ def _install(self) -> bool:
261261

262262
if isinstance(self.node.os, CBLMariner):
263263
daemon_json_file = PurePath("/etc/docker/daemon.json")
264-
daemon_json = '{"default-ulimits":{"nofile":{"Hard":65535,"Name":"nofile","Soft":65535}}}' # noqa: E501
264+
node_info = self.node.get_information()
265+
distro = node_info.get("distro_version", "")
266+
if distro == "Microsoft Azure Linux 3.0":
267+
daemon_json = '{"userland-proxy": false,"default-ulimits":{"nofile":{"Hard":65535,"Name":"nofile","Soft":65535}}}' # noqa: E501
268+
else:
269+
daemon_json = '{"default-ulimits":{"nofile":{"Hard":65535,"Name":"nofile","Soft":65535}}}' # noqa: E501
265270
self.node.tools[Echo].write_to_file(
266271
daemon_json, daemon_json_file, sudo=True
267272
)

0 commit comments

Comments
 (0)