Skip to content

Redirct and make use of the guest serial console

Jason Wang kvm 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 6 repliesIn review
  2. v19 patches 18 repliesSuperseded

Changes in v2 from the cover letter

- Coding style improvement according to the suggestions from Michael Goldish
- Improve the username sending handling in remote_login()
- Change the matching re of login to [Ll]ogin:\s*$
- Check whether vm have already dead in dumpping thread
- Return none rather than raise exception when met unknown shell_client
- Keep tty0 for all linux guests
- Enable the serial console in unattended installation
- Add a helper to check whether the panic information was occured
- Keep the porcess() at its original location in preprocess()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10KVM test: Introduce prompt assistclient/tests/kvm/kvm_utils.py+7 -21 reply
2/10KVM test: Send the username in remote_login()client/tests/kvm/kvm_utils.py+16 -70 replies
3/10KVM test: Make the login re suitable for serial consoleclient/tests/kvm/kvm_utils.py+1 -10 replies
4/10KVM test: Redirect the serial to the unix domain socketclient/tests/kvm/kvm_vm.py+12 -70 replies
5/10KVM test: Log the content from guest serial consoleclient/tests/kvm/kvm_preprocessing.py client/tests/kvm/tests_base.cfg.sample+59 -10 replies
6/10KVM test: Return none when met unknown type in kvm_vm.remote_login().client/tests/kvm/kvm_vm.py+4 -10 replies
7/10KVM test: Introduce local_login()client/tests/kvm/kvm_vm.py+25 -00 replies
8/10KVM test: Enable the serial console for all linux guestsclient/tests/kvm/unattended/Fedora-10.ks client/tests/kvm/unattended/Fedora-11.ks client/tests/kvm/unattended/Fedora-12.ks +7 more+10 -80 replies
9/10KVM test: Enable the serial console during unattended installationclient/tests/kvm/tests_base.cfg.sample+4 -40 replies
10/10KVM test: Add a helper to search the panic in the logclient/tests/kvm/scripts/check_serial.py client/tests/kvm/tests_base.cfg.sample+46 -23 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/10] Redirct and make use of the guest serial console

The guest console is useful for failure troubleshooting especially for the one who has calltrace. And as we plan to push the network related test in the next few weeks, we found the serial session in more reliable during the network testing. So this patchset logs the guest serial throught the redirectied serial of guest and also enable the ability to log into guest through serial console. I only open the serial console for linux, I would do some investigation on windows guests.

Change from v1:

- Coding style improvement according to the suggestions from Michael Goldish
- Improve the username sending handling in remote_login()
- Change the matching re of login to [Ll]ogin:\s*$
- Check whether vm have already dead in dumpping thread
- Return none rather than raise exception when met unknown shell_client
- Keep tty0 for all linux guests
- Enable the serial console in unattended installation
- Add a helper to check whether the panic information was occured
- Keep the porcess() at its original location in preprocess()

---

Jason Wang (10):
KVM test: Introduce prompt assist
KVM test: Send the username in remote_login()
KVM test: Make the login re suitable for serial console KVM test: Redirect the serial to the unix domain socket KVM test: Log the content from guest serial console
KVM test: Return none when met unknown type in kvm_vm.remote_login(). KVM test: Introduce local_login()
KVM test: Enable the serial console for all linux guests KVM test: Enable the serial console during unattended installation KVM test: Add a helper to search the panic in the log

 client/tests/kvm/kvm_preprocessing.py        |   59 ++++++++++++++++++++++++++
 client/tests/kvm/kvm_utils.py                |   32 ++++++++++----
 client/tests/kvm/kvm_vm.py                   |   49 ++++++++++++++++++----
 client/tests/kvm/scripts/check_serial.py     |   41 ++++++++++++++++++
 client/tests/kvm/tests_base.cfg.sample       |   16 ++++---
 client/tests/kvm/unattended/Fedora-10.ks     |    2 -
 client/tests/kvm/unattended/Fedora-11.ks     |    2 -
 client/tests/kvm/unattended/Fedora-12.ks     |    2 -
 client/tests/kvm/unattended/Fedora-8.ks      |    2 -
 client/tests/kvm/unattended/Fedora-9.ks      |    2 -
 client/tests/kvm/unattended/OpenSUSE-11.xml  |    1 
 client/tests/kvm/unattended/RHEL-3-series.ks |    2 -
 client/tests/kvm/unattended/RHEL-4-series.ks |    2 -
 client/tests/kvm/unattended/RHEL-5-series.ks |    2 -
 client/tests/kvm/unattended/SLES-11.xml      |    1 
 15 files changed, 183 insertions(+), 32 deletions(-)
 create mode 100644 client/tests/kvm/scripts/check_serial.py
Signature · 1 line
Signature