fix: capture the failed update's task and container log #1
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/update-failure-diagnostics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The rescue recorded only ansible_failed_result.msg, which for a failed command
module is the generic 'The command exited with a non-zero return code.' — the
task name and stderr were discarded, and the failed container was destroyed
before its console could be read.
Record the failed task name plus stdout/stderr, snapshot the container console
and the host-side pve-container log into <state_dir>/.failed.log before
the rollback destroys the container, and point the failure message at that
file.