Commit d69a93dc authored by Jérome Perrin's avatar Jérome Perrin

kvm: remove a sleep in promise

This makes slapos node instance slower, especially when there are many
kvm partitions on the node.

We don't really need to sleep because if qemu is not ready, promise will
fail and succeed on next run.
parent c67f8ece
...@@ -71,7 +71,7 @@ md5sum = 752c91a4a6b72f5cf8226d6b940015f8 ...@@ -71,7 +71,7 @@ md5sum = 752c91a4a6b72f5cf8226d6b940015f8
[template-qemu-ready] [template-qemu-ready]
filename = template/qemu-is-ready.in filename = template/qemu-is-ready.in
md5sum = fb330a796fadb6cd5c85217f80a42af3 md5sum = a97ba5a5afcfd6f6bb9f4e77f37555dd
[template-httpd] [template-httpd]
filename = instance-kvm-http.cfg.in filename = instance-kvm-http.cfg.in
......
#!{{ dash }} #!{{ dash }}
FILE="{{ qemu_ready_path }}" FILE="{{ qemu_ready_path }}"
# don't start checks too fast
sleep 2
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
if [ "$(cat $FILE)" = "" ]; then if [ "$(cat $FILE)" = "" ]; then
echo "VM correctly started." echo "VM correctly started."
......
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