Revision 73dddd66 snf-image-host/create

b/snf-image-host/create
166 166
set -e
167 167
if [ $rc -ne 0 ]; then
168 168
    if [ $rc -eq 124 ];  then
169
        log_error "Helper VM was terminated. Did not finish on time."
169
        log_error "Image customization was terminated. Did not finish on time."
170 170
    elif [ $rc -eq 137 ]; then # (128 + SIGKILL)
171
        log_error "Helper VM was killed. Did not finish on time."
171
        log_error "Image customization was killed. Did not finish on time."
172 172
    elif [ $rc -eq 141 ]; then # (128 + SIGPIPE)
173
        log_error "Helper was killed by a SIGPIPE signal."
173
        log_error "Image customization was terminated by a SIGPIPE."
174 174
        log_error "Maybe progress monitor has died unexpectedly."
175 175
    elif [ $rc -eq 125 ]; then
176
        log_error "Internal Error. Image customization could not start."
176 177
        log_error "timeout did not manage to run."
177 178
    else
178
        log_error "KVM returned an error (return code $rc)."
179
        log_error "Image customization died unexpectedly (return code $rc)."
179 180
    fi
180 181
    exit 1
181 182
else
......
186 187
result=$(sed 's|\r||g' "$result_file" | head -1)
187 188

  
188 189
if [ "x$result" != "xSUCCESS" ]; then
189
    log_error "Helper VM did not return SUCCESS"
190
    log_error "Image customization failed."
190 191
    exit 1
191 192
fi
192 193

  

Also available in: Unified diff