Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: virttest.virt_vm: Attempt to log useful data on login failure #1969

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ldoktor
Copy link
Contributor

@ldoktor ldoktor commented Feb 21, 2019

This is a hackish way of attempting to log useful data on login failure. This is not intended for merging but rather a discussion whether something like this should be created.

This is a hackish way of attempting to log useful data on login failure.

Signed-off-by: Lukáš Doktor <[email protected]>
@@ -1190,6 +1190,19 @@ def print_guest_network_info():
return self.wait_for_serial_login(timeout, internal_timeout,
False, username, password)

# Attempt to log useful data
try:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, can be handled as part of post-process instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, handling it in post might be to late as the test might shut the machine down before the test finishes (this works even for intermittent VMs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants