Skip to content

Commit

Permalink
libvirt: Capture libvirtd log from host when domain creation fails
Browse files Browse the repository at this point in the history
Capture journalctl log of libvirtd unit when libvirt domain
creation fails.

Signed-off-by: Smit Gardhariya <[email protected]>
  • Loading branch information
smit-gardhariya committed Jan 8, 2025
1 parent 4b8bca8 commit 97e163e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lisa/sut_orchestrator/libvirt/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,12 @@ def _deploy_nodes(self, environment: Environment, log: Logger) -> None:
):
self._delete_nodes(environment, log)

self._log.debug("Capturing libvirtd log from host...")
self.host_node.execute(
cmd="journalctl -u libvirtd --no-page",
sudo=True,
)

raise ex

# Pre-determine all the nodes' properties, including the name of all the resouces
Expand Down

0 comments on commit 97e163e

Please sign in to comment.