Граф коммитов

4746 Коммитов

Автор SHA1 Сообщение Дата
Lili Deng 6bd75c756a update parameter type for install_packages method 2022-10-18 08:51:30 +08:00
Lili Deng 70fc8d5d65 add case verify_no_error_output to check patch and verify_connection_status to check connector status from modetest tool 2022-10-18 08:51:30 +08:00
Lili Deng cd22623dfb add tool modetest for drm 2022-10-18 08:51:30 +08:00
LiliDeng 53eadd38fc
[fix issues] oss repo check on suse and remove not needed package (#2313)
* update repo check for oss, only 1 existing

* dh-autoreconf is no need, remove it
2022-10-14 23:59:43 +08:00
LiliDeng 5131a36fb3
add one more exception type and increase retry times (#2310) 2022-10-13 23:55:38 +08:00
mcgov 1eb96ce90a
modprobe: only reload network interfaces for network drivers (#2299)
* modprobe: only reload interfaces for network drivers

hv_netvsc needs a special case, since reloading it has the potential
 to leave the node without a network connection if things go wrong.

For most modules this isn't neccesary, so just special case netvsc.
2022-10-12 09:57:27 -07:00
Smit Gardhariya 3be710535f
Add CH performance metric tests (#2276)
* kata conformance automation

* Flak8 formatting changes

* isort fix

* changes for CH perf metric test

* change for making azure package optional in poetry.lock and removing unneccessary lisa tools from kata conf test

* formating wth make fix

* PR review ==> remove CH perf metric changes, Go tool version changes, Path changes in shell.py, log changes in testsuite, made azure packge optional

* CH Perf metrics testcase integration

* remove kata related changeg to separate the CH perf PR

* remove git related changes to separate the CH perf PR

* PR review changes : Added Error in subtest, created different function to run perf-metrics test

* flak8 and isort formating

* PR Review change suggested by Anirudh, removal of unwanted logging, adding regex string for referral, removed unwanted comment

* PR Review suggestions by Anirudh : Dataclass implementation, report file to logpath

* removal of unwanted log

* lofa path change fore report file

* PR Review by Anirudh : nit changes

* PR Review by Chi: Pushed notification logic to single loop in _create_perf_metric_report function

* flak8 isort fix

* Change for quick send of test msg result and removal of dumping result to json file

* Changes to remove unused import,white spaces and BLK100

* flak8-isort change : add arg's datatype for function

* PR Review by Chi : return code handling change, log level change in case of exception to info

* removal of dataclass CHPerfMetricTestResult

* Changes for regex to get metrics

* Removal of result dict and using variable

* BLK100 Black format changes

* addition of None check in regex search
2022-10-12 18:37:38 +08:00
Anirudh Rayabharam 82c04c6d6e libvirt: save libvirtd logs during environment delete
libvirtd logs are useful for debugging libvirt related issues that might
happen while executing testcases. So, retreive the logs using journalctl
and write them to the host node's log path. Also introduce a new tool
for working with the `journalctl` command.

Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
2022-10-11 11:40:23 -07:00
Sonia Sharma e4fc638c02 networksettings: refactor device_statistics test code 2022-10-10 11:57:45 -07:00
Sonia Sharma a3a707575b networksettings: rewriting device_statistics logic 2022-10-07 14:59:36 -07:00
Divyansh d3457a0c42 add cleanup steps for NFS server and client 2022-10-05 14:01:26 -07:00
mcgov 5c18cf22c9
DPDK: dpdk version update for vdev include (#2300)
dpdk18.11 includes the netvsc pmd, prefer it over the net_failsafe
2022-10-04 11:57:42 -07:00
mcgov b8bcab6287
DPDK: node.close() before hv_netvsc reset in rescind kill (#2298)
* DPDK: add close() call before netvsc reset in rescind kill

node.close() seems to be more reliable for killing the unresponsive
process, so attempt node.close before resetting the network interface.
after_case already performs this reset anyway so doing it twice it
pointless if we can avoid it.

* clean up comments
2022-10-04 11:48:38 -07:00
Purna Pavan Chandra 1c8d335223
Libvirt: Dynamic port forwarding from host VM to guests (#2277)
* Libvirt: Dynamic port forwarding from host VM to guests

Co-authored-by: Anirudh Rayabharam <anrayabh@microsoft.com>
2022-10-04 11:19:05 -07:00
mcgov 853ebe0264
VPP: use service tool (#2296)
some tests were attempting to use the ubuntu service syntax,
switch to using the Service tool to restart VPP service
2022-10-04 09:56:08 -07:00
mcgov 303c7553e6
modprobe: remove single quote (#2297)
Single quoting messes with the shell, remove them
2022-10-03 16:59:55 -07:00
mcgov 9a13182ae1
proceed with modprobe sequence even if one item returns an error code (#2295) 2022-10-03 15:00:07 -07:00
mcgov 62d2c132e2
DPDK: fix regex iterator assumption, drop unreliable samples (#2293)
Two small fixes:

First and last samples have bad data, since we're looking for an order
of magnitude difference they can mess up the data sometimes. Discard
first and last sample before calculating the mean of the data.

Fix an incorrect assumption about the boolean value of an empty
iterator. Cast to list first, makes other logic cleaner.
2022-10-03 14:07:37 -07:00
mcgov 27cd0345db
SRIOV: allow old sriov switch behavior that doesn't kill connection (#2294) 2022-10-03 14:07:22 -07:00
Chi Song 11e56c922c azure: handle failure patterns when validating 2022-10-03 10:00:35 -07:00
Chi Song 95b82fe598 test: lisa runner: fix awaitable messages.
With new implementation, the awaitable resource has a different error
message with normal no available capability.
2022-10-03 10:00:35 -07:00
Chi Song fa007d383a Runner: add log to know the cancelled reason. 2022-10-03 10:00:35 -07:00
Chi Song f7d6b896af test: azure prepare: remove to set nodes raw 2022-10-03 10:00:35 -07:00
Chi Song 7e535f0261 test: azure prepare use original 2022-10-03 10:00:35 -07:00
Chi Song fe15b59c9d UT: runner: set awaitable timeout to 0 2022-10-03 10:00:35 -07:00
Chi Song 3472edf1fa runner: support awaitable on deploy phase. 2022-10-03 10:00:35 -07:00
Chi Song dcf4eceb1d env: support reset state to new 2022-10-03 10:00:35 -07:00
Chi Song 098bf1d687 runner: change await timeout to collection.
The awaitable timeout happens on different places, it's not easy and
unnecessary to check the timeout state together. So use a collection to
track them independently.
2022-10-03 10:00:35 -07:00
Chi Song b9ca2dd0e2 Azure: raise awaitable exceptions. 2022-10-03 10:00:35 -07:00
Chi Song b1d1911a78 context: support remove 2022-10-03 10:00:35 -07:00
Chi Song e33abc02eb lisa runner: wait resource on prepare phase 2022-10-03 10:00:35 -07:00
Chi Song 5dc84c7c8c runner: support awaitable config and basic logic 2022-10-03 10:00:35 -07:00
Chi Song 352745b71d timer: support reset 2022-10-03 10:00:35 -07:00
Chi Song d429c98d3a runner: reduce duplicate logs. 2022-10-03 10:00:35 -07:00
Chi Song 019ab63a37 runner: refactoring prepare environment. 2022-10-03 10:00:35 -07:00
Chi Song ba578b3a37 Add wait resource timeout variable 2022-10-03 10:00:35 -07:00
Chi Song 70ea7518a5 Exception: add args to ResourceAwaitableException 2022-10-03 10:00:35 -07:00
Chi Song b224316a43 runner: refactoring on renaming 2022-10-03 10:00:35 -07:00
Divyansh Srivastava 09568a9c3d Set Ephermeral disk present only if above threshold size 2022-10-02 02:44:26 +05:30
mcgov e1644ff0b0
fix broken OVS version checking (#2287) 2022-09-29 14:20:15 -07:00
lubaihua33 95fe4f9e98 Move the kernel config check to the first so it can determine if the
distro supports kdump by introducing the KdumpBase tool
2022-09-29 08:56:21 -07:00
mcgov 0583eb3c2b
DPDK: re-add min_core_count (#2286)
verify_build tests remove isolated resource but still need core count
arg.

defensively add this arg back to the other DPDK tests which require it.
2022-09-28 20:27:11 -07:00
Lili Deng ee1db3647b add verify_resource_disk_readme_file and verify_resource_disk_file_system 2022-09-29 10:20:16 +08:00
Lili Deng 7d5cb1e306 move get_resource_disk_mount_point to common file 2022-09-29 10:20:16 +08:00
Lili Deng 031385ed4b add fstype for lsblk tool 2022-09-29 10:20:16 +08:00
Anirudh Rayabharam 3693e2366c Add a VM create stress test for the MSHV stack
Introduce a new test suite for testing the MSHV root partition. Add a
test case that creates and destroys multiple VMs in parallel and repeats
this multiple times to stress the virtualization stack.

Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
2022-09-28 09:13:58 +05:30
mcgov 6c582cfa83
fix qemu killing issue (#2282) 2022-09-27 16:36:11 -07:00
Kameron Carr 66949fe2a1 Allow for CVM Disk Encryption 2022-09-27 15:13:01 -07:00
Lili Deng 519d2b9062 skip testing when gen2 vhd/image used 2022-09-27 12:48:45 -06:00
Lili Deng 0742ded8b0 update boot into secureboot 2022-09-27 12:48:45 -06:00