Skip to contentSkip to conversation

Misc bugfixes found after libvirt merge

PATCH New Lucas Meneghel Rodrigues 1 participant 7 messages Nov 4, 2011 KVM

lore
Share & tools
lore
#0 lore raw

cover Misc bugfixes found after libvirt merge

Also, give it back the ability to debug Fedora and RHEL6 guest issues.

Lucas Meneghel Rodrigues (6):
KVM test: Adding Ubuntu 11.10 to the list of known guests
virt: fix rebase problem -> ffsb.control going to the right place
virt: fixing softlockup test script location
Separate command execution of watchdog commands
virt: Fixing location of blkdebug files
virt: Drop 'rhgb quiet' from kernel cmdline on Fedora and RHEL6
guests

 client/tests/kvm/autotest_control/ffsb.control |   16 ---------
 client/tests/kvm/guest-os.cfg.sample           |   11 ++++++
 client/virt/autotest_control/ffsb.control      |   16 +++++++++
 client/virt/blkdebug/default.conf              |   16 +++++++++
 client/virt/tests/softlockup.py                |    2 +-
 client/virt/tests/watchdog.py                  |    9 +++--
 client/virt/unattended/Fedora-10.ks            |    1 +
 client/virt/unattended/Fedora-11.ks            |    1 +
 client/virt/unattended/Fedora-12.ks            |    1 +
 client/virt/unattended/Fedora-13.ks            |    1 +
 client/virt/unattended/Fedora-14.ks            |    1 +
 client/virt/unattended/Fedora-15.ks            |    1 +
 client/virt/unattended/Fedora-8.ks             |    1 +
 client/virt/unattended/Fedora-9.ks             |    1 +
 client/virt/unattended/RHEL-6-series.ks        |    1 +
 client/virt/unattended/Ubuntu-11-10.preseed    |   42 ++++++++++++++++++++++++
 16 files changed, 101 insertions(+), 20 deletions(-)
 mode change 100644 => 100755 client/tests/cgroup/cgroup.py
 delete mode 100644 client/tests/kvm/autotest_control/ffsb.control
 create mode 100644 client/virt/autotest_control/ffsb.control
 create mode 100644 client/virt/blkdebug/default.conf
 create mode 100644 client/virt/unattended/Ubuntu-11-10.preseed
Signature · 1 line
1.7.7
#1 lore raw

PATCH 1/6 KVM test: Adding Ubuntu 11.10 to the list of known guests

---
 client/tests/kvm/guest-os.cfg.sample        |   11 +++++++
 client/virt/unattended/Ubuntu-11-10.preseed |   42 +++++++++++++++++++++++++++
 2 files changed, 53 insertions(+), 0 deletions(-)
 create mode 100644 client/virt/unattended/Ubuntu-11-10.preseed
client/tests/kvm/guest-os.cfg.sample +11 -0
index 1462754..1e19c52 100644
@@ -986,6 +986,17 @@ variants:
                             md5sum_cd1 = 355ca2417522cb4a77e0295bf45c5cd5
                             md5sum_1m_cd1 = 65b1514744bf99e88f6228e9b6f152a8
 
+                    - 11.10-server-64:
+                        image_name += -11.10-server-64
+                        unattended_install:
+                            kernel = images/ubuntu-server-11-10-64/vmlinuz
+                            initrd = images/ubuntu-server-11-10-64/initrd.gz
+                            boot_path = install
+                        unattended_install.cdrom:
+                            unattended_file = unattended/Ubuntu-11-10.preseed
+                            cdrom_cd1 = isos/linux/ubuntu-11.10-server-amd64.iso
+                            md5sum_cd1 = f8a0112b7cb5dcd6d564dbe59f18c35f
+                            md5sum_1m_cd1 = 3f5d0a11f4d62f82db358b329819ad9c
 
             - DSL-4.2.5:
                 no setup dbench bonnie linux_s3
client/virt/unattended/Ubuntu-11-10.preseed new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
1.7.7
#2 lore raw

PATCH 2/6 virt: fix rebase problem -> ffsb.control going to the right place

In reply to Lucas Meneghel Rodrigues
---
 client/tests/kvm/autotest_control/ffsb.control |   16 ----------------
 client/virt/autotest_control/ffsb.control      |   16 ++++++++++++++++
 2 files changed, 16 insertions(+), 16 deletions(-)
 delete mode 100644 client/tests/kvm/autotest_control/ffsb.control
 create mode 100644 client/virt/autotest_control/ffsb.control
client/tests/kvm/autotest_control/ffsb.control deleted +0 -16
deleted file mode 100644
index c7e92eb..0000000
@@ -1,16 +0,0 @@
-AUTHOR = "Onkar N Mahajan <[email protected]>"
-NAME = "Flexible Filesystem Benchmark (FFSB)"
-TEST_CATEGORY = "Filesystem Benchmark"
-TEST_CLASS = "General"
-TEST_TYPE = "client"
-TIME = 'MEDIUM'
-DOC = """
-The Flexible Filesystem Benchmark (FFSB) is a cross-platform
-filesystem performance measurement tool. It uses customizable
-profiles to measure of different workloads, and it supports
-multiple groups of threads across multiple filesystems.
-
-For more info, see http://sourceforge.net/projects/ffsb/
-"""
-
-job.run_test('ffsb')
client/virt/autotest_control/ffsb.control new file +16 -0
new file mode 100644
index 0000000..c7e92eb
@@ -0,0 +1,16 @@
+AUTHOR = "Onkar N Mahajan <[email protected]>"
+NAME = "Flexible Filesystem Benchmark (FFSB)"
+TEST_CATEGORY = "Filesystem Benchmark"
+TEST_CLASS = "General"
+TEST_TYPE = "client"
+TIME = 'MEDIUM'
+DOC = """
+The Flexible Filesystem Benchmark (FFSB) is a cross-platform
+filesystem performance measurement tool. It uses customizable
+profiles to measure of different workloads, and it supports
+multiple groups of threads across multiple filesystems.
+
+For more info, see http://sourceforge.net/projects/ffsb/
+"""
+
+job.run_test('ffsb')
Signature · 1 line
1.7.7
#3 lore raw

PATCH 3/6 virt: fixing softlockup test script location

In reply to Lucas Meneghel Rodrigues
---
 client/virt/tests/softlockup.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 mode change 100644 => 100755 client/tests/cgroup/cgroup.py
client/tests/cgroup/cgroup.py +0 -0
old mode 100644
new mode 100755
client/virt/tests/softlockup.py +1 -1
index 649b3ab..a9a92f9 100644
@@ -109,7 +109,7 @@ def run_softlockup(test, params, env):
             pass
 
         # Get required files and copy them from host to guest
-        monitor_path = os.path.join(test.bindir, 'deps', 'heartbeat_slu.py')
+        monitor_path = os.path.join(test.virtdir, 'deps', 'heartbeat_slu.py')
         stress_path = os.path.join(os.environ['AUTODIR'], "tests", "stress",
                                    "stress-1.0.4.tar.gz")
         vm.copy_files_to(monitor_path, "/tmp")
Signature · 1 line
1.7.7
#4 lore raw

PATCH 4/6 Separate command execution of watchdog commands

In reply to Lucas Meneghel Rodrigues
---
 client/virt/tests/watchdog.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
client/virt/tests/watchdog.py +6 -3
index 446f250..603685f 100644
@@ -15,7 +15,8 @@ def run_watchdog(test, params, env):
     timeout = int(params.get("login_timeout", 360))
     session = vm.wait_for_login(timeout=timeout)
     relogin_timeout = int(params.get("relogin_timeout", 240))
-    watchdog_enable_cmd = "chkconfig watchdog on && service watchdog start"
+    watchdog_enable_cmd = "chkconfig watchdog on"
+    watchdog_start_cmd = "service watchdog start"
 
     def watchdog_action_reset():
         """
@@ -35,8 +36,10 @@ def run_watchdog(test, params, env):
         logging.info("Waiting for kernel watchdog_action to take place")
         session = vm.wait_for_login(timeout=relogin_timeout)
 
-    logging.info("Enabling watchdog service...")
-    session.cmd(watchdog_enable_cmd, timeout=320)
+    error.context("Enabling watchdog service")
+    session.cmd(watchdog_enable_cmd)
+    error.context("Starting watchdog service")
+    session.cmd(watchdog_start_cmd, timeout=320)
     watchdog_action_reset()
 
     # Close stablished session
Signature · 1 line
1.7.7
#5 lore raw

PATCH 5/6 virt: Fixing location of blkdebug files

In reply to Lucas Meneghel Rodrigues
---
 client/virt/blkdebug/default.conf |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 client/virt/blkdebug/default.conf
client/virt/blkdebug/default.conf new file +16 -0
new file mode 100644
index 0000000..0497405
@@ -0,0 +1,16 @@
+[inject-error]
+state = "2"
+event = "read_aio"
+errno = "7"
+immediately = "off"
+once = "on"
+
+[set-state]
+state = "1"
+event = "read_aio"
+new_state = "2"
+
+[set-state]
+state = "2"
+event = "read_aio"
+new_state = "3"
Signature · 1 line
1.7.7
#6 lore raw

PATCH 6/6 virt: Drop 'rhgb quiet' from kernel cmdline on Fedora and RHEL6 guests

In reply to Lucas Meneghel Rodrigues

Try to invoke grubby at first step of the guest post script in order to remove the params rhgb quiet from guests installed by our virt tests.

With this patch, we have full serial console log on all virt subtests executed on these guests, giving developers important guest debugging info.

Successfully tested with Fedora 15 guest.

---
 client/virt/unattended/Fedora-10.ks     |    1 +
 client/virt/unattended/Fedora-11.ks     |    1 +
 client/virt/unattended/Fedora-12.ks     |    1 +
 client/virt/unattended/Fedora-13.ks     |    1 +
 client/virt/unattended/Fedora-14.ks     |    1 +
 client/virt/unattended/Fedora-15.ks     |    1 +
 client/virt/unattended/Fedora-8.ks      |    1 +
 client/virt/unattended/Fedora-9.ks      |    1 +
 client/virt/unattended/RHEL-6-series.ks |    1 +
 9 files changed, 9 insertions(+), 0 deletions(-)
client/virt/unattended/Fedora-10.ks +1 -0
index 081d41a..4102fce 100644
@@ -26,6 +26,7 @@ ntpdate
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
client/virt/unattended/Fedora-11.ks +1 -0
index c339220..2309637 100644
@@ -26,6 +26,7 @@ ntpdate
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
client/virt/unattended/Fedora-12.ks +1 -0
index c339220..2309637 100644
@@ -26,6 +26,7 @@ ntpdate
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
client/virt/unattended/Fedora-13.ks +1 -0
index c339220..2309637 100644
@@ -26,6 +26,7 @@ ntpdate
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
client/virt/unattended/Fedora-14.ks +1 -0
index e1323cd..fa5dd7f 100644
@@ -27,6 +27,7 @@ dmidecode
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
client/virt/unattended/Fedora-15.ks +1 -0
index ea15d80..a44915a 100644
@@ -27,6 +27,7 @@ dmidecode
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
client/virt/unattended/Fedora-8.ks +1 -0
index 9403191..1af7559 100644
@@ -25,6 +25,7 @@ ntpdate
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
client/virt/unattended/Fedora-9.ks +1 -0
index a7d5399..0c47598 100644
@@ -26,6 +26,7 @@ ntpdate
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
client/virt/unattended/RHEL-6-series.ks +1 -0
index 166c499..215d75d 100644
@@ -30,6 +30,7 @@ watchdog
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)')
 os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
Signature · 1 line
1.7.7