fix: capture the failed update's task and container log #1

Merged
jonas merged 1 commit from fix/update-failure-diagnostics into main 2026-10-27 16:40:50 +00:00
Owner

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.

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>/<vmid>.failed.log before the rollback destroys the container, and point the failure message at that file.
fix: capture the failed update's task and container log
Some checks failed
Lint + Test + Tag / tag (pull_request) Has been cancelled
Lint + Test + Tag / format (pull_request) Successful in 1m19s
Lint + Test + Tag / lint (pull_request) Has been cancelled
9f8a756db1
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>/<vmid>.failed.log before
the rollback destroys the container, and point the failure message at that
file.
jonas merged commit 11a76c53c6 into main 2026-10-27 16:40:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
roles/oci-lxc!1
No description provided.