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

4907 Коммитов

Автор SHA1 Сообщение Дата
smit-gardhariya c9baf50474 Install cargo dependency separately
Install cargo dependency separately

Install cargo dependency separately

flake 8 changes

version import order corretion for semver in curl.py
2022-12-22 20:56:24 +08:00
smit-gardhariya bfe15cd237 Create symbolic link for the cargo tool 2022-12-22 20:56:24 +08:00
smit-gardhariya a1c9ab8828 Implement Curl tool and use it to install cargo
Implement Curl tool and use it to install cargo

Implement Curl tool and use it to install cargo

Implement Curl tool and use it to install cargo

Implement Curl tool and use it to install cargo

flake 8 validation changes

flake 8 validation changes

flake 8 validation changes for cargo tool

Pass updated_env for _check_exists() to provide env variables
2022-12-22 20:56:24 +08:00
smit-gardhariya 1c390dc9ca Add cargo tool and rust-vmm/mshv test in LISA
Add cargo tool and rust-vmm/mshv test in LISA

Flak8 validation changes
2022-12-22 20:56:24 +08:00
Purna Pavan Chandra Aekkaladevi a8c1976846 CH_test_tool: Store logs of failed subtests 2022-12-20 16:58:03 +08:00
Avram Lubkin 103ddf453f Fix coverage include paths 2022-12-20 11:32:39 +08:00
Anirudh Rayabharam 2dddc13017 Provide option to capture libvirt debug logs
Introduce a new option capture_libvirt_debug_logs in
LibvirtPlatformSchema that tells LISA to capture libvirt debug logs
during environment teardown.

Debug logs are enabled by using the log_outputs option in
/etc/libvirt/libvirtd.conf. Here, we configure libvirt to write
the debug logs to /var/log/libvirt/libvirtd.log.

We have been seeing multiple libvirt related errors in the pipeline
and these logs can help in debugging those.

This is an opt-in feature since all users of libvirt platform might
not be interested in debug level logs.
2022-12-19 18:55:59 +08:00
Anirudh Rayabharam 5d4afa0470 platform: add "cleanup" lifecycle method
Today `Platform` doesn't have a lifecycle method to perform platform
specific cleanup. _delete_environment is environment specific and cannot
be used for platform level cleanup.

Add a new method called "_cleanup()" that can be optionally overridden by
platform implementations that want to perform cleanup. Platform cleanup
is invoked by `LisaRunner.close()`.
2022-12-19 18:55:59 +08:00
Lili Deng bb6d677bef [fix regression] ignore not such file error when ignore_not_exist set as True 2022-12-19 09:21:11 +08:00
Li Tan d0e87581f7
[new TestSuite] add OSUTestSuite (#2403)
* fix a typo in infinibandsuite.py

* clean up and update test category

* install a new package

Co-authored-by: litan2 <litan2@microsoft.com>
2022-12-16 23:33:02 +08:00
Aditya Nagesh b41ee0e113 Enable MOD_STRIP in kernel source installer
The initrd images for the new kernel may be very large
because the DEBUG modules are be enabled. This causes
few failures due to unexpected size of kernel initrd image.

Ex: The boot fails in small SKU sizes.

INSTALL_MOD_STRIP=1 builds the kernel without the DEBUG modules.
2022-12-15 22:56:15 -08:00
Anirudh Rayabharam 5faf3da0c6 ch_tests_tool: prefer SerialConsole for kernel logs
Use SerialConsole for fetching kernel logs. It is more versatile
than dmesg. Fallback to dmesg if SerialConsole feature is not
supported.
2022-12-15 22:04:58 +08:00
Anirudh Rayabharam bfc78fca7a ch_tests_tool: run perf metrics with RUST_BACKTRACE=full
Failures are not providing actionable stacktraces. Run with
RUST_BACKTRACE=full.
2022-12-15 22:04:58 +08:00
Lili Deng 56bfa3c187 ignore error when /var/log/azure/ doesn't exist. 2022-12-15 21:56:07 +08:00
Lili Deng 4152b04abe find tool: add ignore_not_exist parameter 2022-12-15 21:56:07 +08:00
Lili Deng 1e2613fd13 download /var/log/waagent.log and files under /var/log/azure/ if they exist 2022-12-15 21:56:07 +08:00
Lili Deng c91a0cbbb2 find tool: remove extra empty string 2022-12-15 21:56:07 +08:00
Richard Pastrick 15bd7d6644 Use ping tool instead of node.execute 2022-12-15 21:33:23 +08:00
smit-gardhariya 32cc39d148 set timeout for git clone 2022-12-14 09:58:20 -08:00
smit-gardhariya 7181f3b639 removal of get_source_code() from do0installer install() 2022-12-14 09:58:20 -08:00
smit-gardhariya 00f6f15258 kernel installer fix to call parent install() after get_source_code() for dom0 repo type location 2022-12-14 09:58:20 -08:00
Lili Deng 1afe6a38a0 Azure: add vhd Architecture feature 2022-12-14 15:06:08 +08:00
Lili Deng 4d3f14562b Azure: share the image vhd architecture detection 2022-12-14 15:06:08 +08:00
Richard Pastrick ab716fbdc7 The previous ping package did not support the -O option
The new ping package does support the -O option
2022-12-14 12:10:37 +08:00
Lili Deng 7ddb7a251d remove useless parameter 2022-12-13 20:50:39 +08:00
Lili Deng 600a0a2fbb fix UT error 2022-12-13 20:50:39 +08:00
Lili Deng 72cefd986c [fix issue] support detect vhd and gallery image vm generation. 2022-12-13 20:50:39 +08:00
Anirudh Rayabharam 55c4c12865 ch_tests_tool: report run test results even when command times out
The test comamnd timing out doesn't mean that no tests have been
run. It might have run some of the tests and before getting stuck.
In this scenario the results of the tests that were run before
the command stuck should be reported.

But when the test case times out there is no chance to
extract results of the tests that were run. To address this,
define two timemout values. CMD_TIME_OUT is the time within which
the Cloud Hypervisor test command should finish and CASE_TIME_OUT is
the time within which the whole LISA testcase should finish.

Keep the value of CASE_TIME_OUT a slightly higher so that results
can be extracted from the command's stdout when it times out. This
will ensure we have accurate reporting of test cases run even when
the test command times out.
2022-12-13 12:35:16 +08:00
Anirudh Rayabharam 26a25313f4 lisa/util/process: add is_timeout to ExecutableResult
Today there is no way to tell from an `ExecutableResult` whether the
process timed out. Add a property `is_timeout` to `ExecutableResult`
to indicate if the process timed out.
2022-12-13 12:35:16 +08:00
Anirudh Rayabharam 80d7584fe8 lisa/util/process: return correct stdout for timed out processes
If a process times out while doing wait_result, no stdout is returned in
the result. This is not correct since the process might have produced
some output before timing out.

The output of the command is already being streamed into
self._log_buffer. Use it's contents to populate the stdout field of the
result in case of timeout.

The contents of the _log_buffer also includes the lisa tag as prefix for
each line (timestamp, node/environment info, log level etc.). This is
not required and unexpected since a process result usually includes the
raw stdout of the command and so stdout parsing logic may not have accounted
for the prefix.

The _log_buffer is currently used in wait_for_output() and here too the
logging prefix for each line is not required. It might accidently match
the content in the prefix instead of the actual command stdout.

To fix, instead of using the default formatter, use a separate one that
prints just the message without any prefix.
2022-12-13 12:35:16 +08:00
mcgov af5ed5d4ac
NOHUP: fix sudo/nohup ordering (#2462)
Nohup before sudo can raise a permissions error due to broken pipe from
writing to nohup.out. Swap to running sudo first when using nohup.
2022-12-12 16:21:22 -08:00
Chi Song be7b7243ba package: pump up paramiko fix warning in log 2022-12-12 09:41:56 -08:00
Anirudh Rayabharam d68ef95cda mshv_root_tests: use Azure temp disk for storing large files
The testcase makes a copy of the disk image for each VM it
spawns. It is easy to run of space in OS disk especially
when the default value of 30GB is used.

Use the Azure temporary disk that is automatically mounted
at /mnt to store copies of the disk image.
2022-12-12 17:59:07 +08:00
Anirudh Rayabharam 5d18fb503c mshv_root_tests: save dmesg at the correct place
dmesg logs are not saved for some error paths which throw before
reaching the code that saves the logs.

Move this code to the correct place in verify_mshv_stress_vm_create.
2022-12-12 17:59:07 +08:00
Lili Deng f0757cd6dd mark node as dirty after kdump test cases to prevent panic trace used by other cases 2022-12-12 16:27:30 +08:00
Lili Deng 9832667c1f [regression] not throw exception when panic detected in lisa runner 2022-12-12 16:27:30 +08:00
Lili Deng 6e30970582 fix rdma test issues 2022-12-10 14:21:09 +08:00
Lili Deng 137d845244 mark node dirty after resizing vm size to avoid confusing following cases 2022-12-09 09:36:08 +08:00
Lili Deng 2149bd6df6 [fix issue] set extended runbook after resize cases 2022-12-09 09:36:08 +08:00
LiliDeng 0852700692
[improvement] get hardware_platform info (#2454) 2022-12-09 09:32:20 +08:00
Chi Song a8cefccbf3 doc: fix explanation on CustomScript 2022-12-08 11:52:30 -08:00
Avram Lubkin 684173d29f Add additional info for platform imports 2022-12-08 09:48:41 -08:00
Avram Lubkin 188644f96a Use editable install for example 2022-12-08 09:44:56 -08:00
Divyansh Srivastava c56c4a9654 Add expected exit code to lscpu output 2022-12-08 00:28:02 -08:00
Divyansh Srivastava e287421955 Improve assert message for lscpu get_cpu_info 2022-12-08 00:28:02 -08:00
Purna Pavan Chandra 74e2da9e46
Fix /dev/mshv permission issue on HyperV root partition (#2452) 2022-12-08 11:11:54 +08:00
lubaihua33 aaef51fe27
Execute a command to check if the VM is boot up after kdump (#2426)
* Add _try_connect which wraps try_connect using timeout in kdumpcrash

* Optmize the function _check_kdump_result
2022-12-07 23:42:14 +08:00
Richard Pastrick a9d665f028
Fix incorrect casting used in add-apt-repository command tool (#2451) 2022-12-07 23:40:09 +08:00
lubaihua33 88ade7a262 Move get_resource_disk_mount_point to Features.Disks so testsuites can call it 2022-12-07 10:18:38 +08:00
Kameron Carr fd10d583d2 Remove repo installer 2022-12-06 15:32:56 -08:00