Commit 8e877be1 authored by Guillaume Hervier's avatar Guillaume Hervier

software/kvm: Fix log path in kvm-started-promise

parent 443eeadc
...@@ -258,7 +258,8 @@ mode = 700 ...@@ -258,7 +258,8 @@ mode = 700
context = context =
raw dash {{ dash_executable_location }} raw dash {{ dash_executable_location }}
raw qemu_ready_path ${kvm-controller-parameter-dict:kvm-status-path} raw qemu_ready_path ${kvm-controller-parameter-dict:kvm-status-path}
raw qemu_service_log_file ${buildout:directory}/.${slap-connection:partition-id}_kvm.log raw qemu_log_prefix ${buildout:directory}/.${slap-connection:partition-id}_
raw qemu_service_path ${kvm-instance:wrapper-path}
[novnc-instance] [novnc-instance]
recipe = slapos.cookbook:novnc recipe = slapos.cookbook:novnc
......
...@@ -99,7 +99,7 @@ recipe = hexagonit.recipe.download ...@@ -99,7 +99,7 @@ recipe = hexagonit.recipe.download
ignore-existing = true ignore-existing = true
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2 url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644 mode = 644
md5sum = 0668791e78430bafdec5300b4ea8d90a md5sum = 6cf71be623ee4c05b03b171b08e252db
download-only = true download-only = true
on-update = true on-update = true
...@@ -226,7 +226,7 @@ ignore-existing = true ...@@ -226,7 +226,7 @@ ignore-existing = true
url = ${:_profile_base_location_}/template/qemu-is-ready.in url = ${:_profile_base_location_}/template/qemu-is-ready.in
mode = 644 mode = 644
filename = qemu-is-ready.in filename = qemu-is-ready.in
md5sum = b304eec8e2cb71f10ea83cac22f6db12 md5sum = 711bf95b45c0f6bd061aacc4a0694689
download-only = true download-only = true
on-update = true on-update = true
......
#!{{ dash }} #!{{ dash }}
FILE="{{ qemu_ready_path }}" FILE="{{ qemu_ready_path }}"
QEMU_SERVICE_PATH="{{ qemu_service_path }}"
log_file="{{ qemu_log_prefix }}"$(basename $QEMU_SERVICE_PATH-*)".log"
echo "Log file: $log_file"
# don't start checks too fast # don't start checks too fast
sleep 2 sleep 2
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
...@@ -12,7 +16,7 @@ if [ -f "$FILE" ]; then ...@@ -12,7 +16,7 @@ if [ -f "$FILE" ]; then
exit 1 exit 1
fi fi
else else
log_file="{{ qemu_service_log_file }}" log_file="{{ qemu_log_prefix }}"$(basename $QEMU_SERVICE_PATH-*)".log"
>&2 echo "Qemu process is not correctly started." >&2 echo "Qemu process is not correctly started."
if [ -f "$log_file" ]; then if [ -f "$log_file" ]; then
>&2 echo "** Latest ouput logs **" >&2 echo "** Latest ouput logs **"
......
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