OLD | NEW |
1 import re, string, logging | 1 import re, string, logging |
2 from autotest_lib.client.common_lib import error | 2 from autotest_lib.client.common_lib import error |
3 import kvm_monitor | 3 from autotest_lib.client.virt import kvm_monitor |
4 | 4 |
5 | 5 |
6 def run_physical_resources_check(test, params, env): | 6 def run_physical_resources_check(test, params, env): |
7 """ | 7 """ |
8 Check physical resources assigned to KVM virtual machines: | 8 Check physical resources assigned to KVM virtual machines: |
9 1) Log into the guest | 9 1) Log into the guest |
10 2) Verify whether cpu counts ,memory size, nics' model, | 10 2) Verify whether cpu counts ,memory size, nics' model, |
11 count and drives' format & count, drive_serial, UUID | 11 count and drives' format & count, drive_serial, UUID |
12 reported by the guest OS matches what has been assigned | 12 reported by the guest OS matches what has been assigned |
13 to the VM (qemu command line) | 13 to the VM (qemu command line) |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 catch_serial_cmd = params.get("catch_serial_cmd") | 155 catch_serial_cmd = params.get("catch_serial_cmd") |
156 f_fail = verify_device(params.get("drive_serial"), "Serial", | 156 f_fail = verify_device(params.get("drive_serial"), "Serial", |
157 catch_serial_cmd) | 157 catch_serial_cmd) |
158 n_fail += f_fail | 158 n_fail += f_fail |
159 | 159 |
160 if n_fail != 0: | 160 if n_fail != 0: |
161 raise error.TestFail("Physical resources check test reported %s " | 161 raise error.TestFail("Physical resources check test reported %s " |
162 "failures. Please verify the test logs." % n_fail) | 162 "failures. Please verify the test logs." % n_fail) |
163 | 163 |
164 session.close() | 164 session.close() |
OLD | NEW |