зеркало из https://github.com/microsoft/lisa.git
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>
This commit is contained in:
Родитель
b36d2858ec
Коммит
a473761b71
|
@ -261,7 +261,12 @@ class CloudHypervisorTests(Tool):
|
|||
|
||||
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
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче