Commit 1af6ac0f authored by Luca Bigliardi's avatar Luca Bigliardi
Browse files

Lock PowercycleNode child in memory


Signed-off-by: default avatarLuca Bigliardi <shammash@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 38b77287
......@@ -2675,6 +2675,11 @@ def PowercycleNode(hypervisor_type):
pid = 0
if pid > 0:
return "Reboot scheduled in 5 seconds"
# ensure the child is running on ram
try:
utils.Mlockall()
except Exception:
pass
time.sleep(5)
hyper.PowercycleNode()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment