Merge lp:~jeffmarcom/checkbox/kvm_console_hijack_fix into lp:checkbox
Proposed by
Jeff Marcom
Status: | Merged |
---|---|
Approved by: | Zygmunt Krynicki |
Approved revision: | 2036 |
Merged at revision: | 2032 |
Proposed branch: | lp:~jeffmarcom/checkbox/kvm_console_hijack_fix |
Merge into: | lp:checkbox |
Diff against target: |
57 lines (+17/-4) 2 files modified
debian/changelog (+5/-1) scripts/virtualization (+12/-3) |
To merge this branch: | bzr merge lp:~jeffmarcom/checkbox/kvm_console_hijack_fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Approve | ||
Jeff Lane | Approve | ||
Jeff Marcom (community) | Needs Resubmitting | ||
Review via email: mp+157450@code.launchpad.net |
Description of the change
So the console terminal was being hijacked by the KVM boot process and not letting go, even after the running KVM instance is terminated in the script. This simply calls a 'reset' command to regain access of terminal. This also includes a fix so that the instance will actual terminate at the end of the script successfully.
To post a comment you must log in.
53 + # Reset Console window to regain control from VM Serial I/0
54 + try:
55 + check_call('reset')
56 + except CalledProcessError:
57 + pass
just use call(), no need to check if you discard the check anyway