Merge "Enable overcommit_memory in test server VMs"
diff --git a/octavia_tempest_plugin/tests/test_base.py b/octavia_tempest_plugin/tests/test_base.py
index c26b675..0e8a909 100644
--- a/octavia_tempest_plugin/tests/test_base.py
+++ b/octavia_tempest_plugin/tests/test_base.py
@@ -806,6 +806,17 @@
if proc.returncode != 0:
raise exceptions.CommandFailed(proc.returncode, cmd,
stdout, stderr)
+
+ # Enabling memory overcommit allows to run golang static binaries
+ # compiled with a recent golang toolchain (>=1.11). Those binaries
+ # allocate a large amount of virtual memory at init time, and this
+ # allocation fails in tempest's nano flavor (64MB of RAM)
+ # (golang issue reported in https://github.com/golang/go/issues/28114,
+ # follow-up: https://github.com/golang/go/issues/28081)
+ # TODO(gthiemonge): Remove this call when golang issue is resolved.
+ linux_client.exec_command('sudo sh -c "echo 1 > '
+ '/proc/sys/vm/overcommit_memory"')
+
linux_client.exec_command('sudo screen -d -m {0} -port 80 '
'-id {1}'.format(dest_file, start_id))
linux_client.exec_command('sudo screen -d -m {0} -port 81 '