Skip to content

Commit

Permalink
Set userland-proxy as false for azure-linux-3 (#3359)
Browse files Browse the repository at this point in the history
Set userland-proxy as false for cloud-hypervisor
tests for azure-linux-3

Signed-off-by: Smit Gardhariya <[email protected]>
  • Loading branch information
smit-gardhariya committed Jul 27, 2024
1 parent b36d285 commit a473761
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion microsoft/testsuites/cloud_hypervisor/ch_tests_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit a473761

Please sign in to comment.