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

6004 Коммитов

Автор SHA1 Сообщение Дата
Lili Deng 7ed20f8ce1 add test cases priority 2024-08-26 19:10:17 -07:00
bhagyapathak 8616100a1c Fix test cases for Azure Linux 3.0 2024-08-26 08:46:36 -07:00
Smit Gardhariya c145b86c00
Fix libvirt community test (#3393)
* Fix libvirt tck test

Fix the format of config getting written in /etc/libvirt/qemu.conf

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>

* Add dmesg/journalctl log for libvirt community test

Add dmesg and journalctl log for libvirt community
test under after_case of the testcase: verify_libvirt_tck

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>

---------

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-08-26 18:34:39 +05:30
Smit Gardhariya fec0c5de13
Fix KVM Unit test result parsing (#3391)
* Fix KVM Unit test result parsing

Use lisa.util methods to get the matching pattern
using named regex.

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>

* Fix the chmod usage for kvm unit test

Pass the named parameter instead to chmod and update_filder functions.
Order was wrong which will make chmod command to be failed.

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>

---------

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-08-26 12:15:30 +05:30
Lili Deng e8391c758b exclude case generic/680 for security reason 2024-08-25 18:02:32 -07:00
Lili Deng 00442607b9 file notifier: change the encoding to resolve UnicodeEncodeError error 2024-08-22 20:44:25 -07:00
Gustavo Lima Chaves (from Dev Box) 4a84849804 Minimal shell: honor full chain of hooks, on either minimal entry point
We have 2 points in which LISA might decide to go with a minimal shell profile:

1. When first contacting a node, issuing a 'cmd' command, checking if
   'Windows' is present in the output or not (rule out Windows shell
   type). A negative case will incur in either the POSIX shell type,
   if 'Unknown syntax' is not thrown as output, or an early decision
   for the 'minimal' shell type is taken and the shell object is set
   to follow that config from there on.

2. When running the actual first lisa suite SSH command on the same
   node. It turns out we've seen cases where 'Unknown syntax' is not
   output at early node initialization (1), for some reason. Well, the
   exception path of actual command execution will check internal node
   state, that tracks if a minimal profile has been tested before or
   not. If not used yet and under a command execution exception, set
   the node to minimal type and try again was the logic.

It turns out the 'minification' of the node config was only done
partially, in (2). We missed the full logic of overriding its final
SSH command tokenizer.

Another missed detail is that the final tokenizer logic at the minimal
shell case was too greedy in trying to remove stray quotes. Let's keep
injecting quotes on tokens with spaces on them. That will not hurt any
legit commands from any minimal context.
2024-08-22 18:21:43 -07:00
Lili Deng 158857c9d8 save_console_log: catch ChunkedEncodingError 2024-08-21 18:58:39 -07:00
Baihua Lu 48e711dafe Add gallery images and versions delete actions for AITL clean up job 2024-08-20 16:45:20 +08:00
Smit Gardhariya c5a9d8bf7e
Fix docker config for Cloud-Hypervisor tests (#3387)
Create /etc/docker if not present
Use JSON config instead of plain string and dumps it

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-08-20 13:31:25 +05:30
Lili Deng b87198e3d1 azure nfs file share: change case priority to 5 2024-08-19 09:03:26 -07:00
Lili Deng 7b119bd52e extension case: change cases which have the requirement for blob public access priority into 5 2024-08-19 09:03:26 -07:00
paull 1fe34d61c6 Added password processing for execute_async() 2024-08-18 23:47:10 -07:00
Lili Deng cfeec66b06 extension cases: change cases which have the requirement for blob public access priority into 5 2024-08-18 21:43:30 -07:00
rydailey 4c187408df Updated EthtoolBSD get_device_enabled_features 2024-08-17 05:13:51 -07:00
feng-j678 14bdcb822b
Johnf/modify assert status logic (#3382)
* add mariner1 to unsupported list

* modify assert logic to check for any error

* refactor unspported msg

* remove duplicate platform assertion

* use Any instead of list for status_file
2024-08-15 23:22:48 -07:00
Baihua Lu bd033616db Use subscription client to find the sub id for a storage account 2024-08-14 10:56:29 +08:00
John Feng 094aab1776 add mariner1 to unsupported list 2024-08-12 22:13:03 -07:00
Lili Deng 538216e2d7 echo: fix regression issue when use single quotes in file 2024-08-12 20:08:12 -07:00
Chi Song (from Dev Box) 660c472b69 test: fix retry test case failure
Replace another retry test case in runner.
2024-08-12 08:41:19 -07:00
Chi Song (from Dev Box) 9ed171e834 runner: retry test case by reset env and test result. 2024-08-12 08:41:19 -07:00
Chi Song (from Dev Box) 74a24928e6 testsuite: remove retry from test case level. 2024-08-12 08:41:19 -07:00
Chi Song (from Dev Box) 209395fa2d env: fix initialize is skipped after reset env. 2024-08-12 08:41:19 -07:00
Chi Song (from Dev Box) fa19335795 notifier: fix timestamp use UTC 2024-08-12 08:41:19 -07:00
rydailey d302ed8cee Added KLDLoad and updated modprobeBSD 2024-08-09 16:51:57 -07:00
feng-j678 12d66ad54a
Johnf/address vmguestinternalerror (#3370)
* skip mariner2 gen2 because it's unsupported

* add debian images to unspported images list

* verify assessment result in install api call

* use Any instead of any for unknown type
2024-08-09 08:04:13 -07:00
Aditya Nagesh 6b0c457101 Verify Hibernation: Add check using uptime
We have observed scenario where hibernation logs are not
consistently present, in those cases, we still need to verify
if Hibernation was successful. One way to do this is using uptime
2024-08-09 08:03:48 -07:00
Purna Pavan Chandra 098c640d76
Tools: Fix Echo and improve Modprobe (#3372)
* Tools: Echo: enclose file in quotes

This is to support write into a file path which has space or other
special characters.

* Tools: Modprobe: support loading module with parameters

add new parameter `parameters` to `load` and pass it to modprobe
command. This is applicable only when `modules` is not of list type.
2024-08-08 14:20:10 -07:00
Jeremi Piotrowski e38928c27d waagent: support finding python/waagent in /usr on Flatcar
Current Flatcar images (since 3637.0.0) contain waagent and python in
/usr/{s,}bin. Search for python in the candidate path and use that to
decide whether to call waagent directly or use the module path prefixed
with /usr/share/oem.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2024-08-08 08:37:15 -07:00
Lili Deng 742314df30 fix folder name typo error 2024-08-06 18:08:09 -07:00
Lili Deng 9822e681fe get identity id: try to read from os environment 2024-08-06 18:08:09 -07:00
kanchansenlaskar ce76e79d45
Default numa node count to 1 if exception (#3369) 2024-08-06 22:42:44 +05:30
feng-j678 08505dcc39
Johnf/address 1604 assertion (#3357)
* skip mariner3 and add timeout to wait_operation()

* add condition to check for 1804 and 1604 for assertions

* remove unused log

* address failing pipeline, modify function to accept optional arg
2024-08-06 20:38:20 +08:00
Lili Deng 5d37396f90 add one more gpu type for STANDARD_NV6ads_A10_V5 2024-08-06 00:15:18 -07:00
Lili Deng 5cd45001a6 VirtualClient - add perf_redis and perf_postgresql 2024-08-05 21:06:15 -07:00
Kameron Carr bba6e1a4ab Filter out ANSI characters
ANSI characters which add color and other formatting to the console output prevent regex matching from working throughout LISA on some distros.
2024-08-05 08:50:33 -07:00
Kanchan Sen Laskar 00b09b3bb9 Blacklist hyper_fb in grub cmdline 2024-08-05 21:11:45 +08:00
Smit Gardhariya 4783f79cdf
Get dmesg log for MSHV IOCTL tests (#3365)
Add dmesg log output to LISA log once MSHV IOCTL tests
are done

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-08-05 10:22:53 +05:30
rydailey c4b78fc890 Marked L3 cache test as unsupported 2024-08-02 15:49:55 -07:00
panfengxue 09484d2008 remove exception logic for service principal key 2024-08-02 10:41:38 +08:00
rydailey 0d14e557b6 Added FreeBSD specific Date class 2024-08-01 13:19:49 +08:00
Bala 2383a6c45d
Account the new kernel config for kexec (#3355)
* Account the new kernel config for kexec

A new kernel config, CONFIG_KEXEC_FILE is introduced in recent kernel
version. This config introduces a safer systemcall to load a kexec
kernel. Now kexec kernel can be loaded by both the old and the new
systemcalls. So, kdump test should check for either of KEXEC or
KEXEC_FILE config for determining the kernel's ability.

* Make the exception message more readable

* Update kdump.py to maintain code consistency
2024-08-01 00:00:41 +08:00
Smit Gardhariya a473761b71
Set userland-proxy as false for azure-linux-3 (#3359)
Set userland-proxy as false for cloud-hypervisor
tests for azure-linux-3

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-07-27 17:21:28 +05:30
Smit Gardhariya b36d2858ec
Install AZL3 packages for QEMU platform (#3358)
Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-07-27 12:03:45 +05:30
Kameron Carr bbe732184e Allow max_data_disk_count to work with maximize_capability
Currently maximize_capability breaks any test cases that rely on max_data_disk_count. Trying to manually set the value in the runbook creates a 'no quota available' error.

These changes make the default value (0,) instead of None, allowing a passed in value to merge with max_capability value.
2024-07-23 23:00:29 +08:00
John Feng 8777594049 skip mariner3 and add timeout to wait_operation() 2024-07-19 13:45:35 +08:00
feng-j678 ae7f12e10f
Johnf/skip unsupported images (#3352)
* add OS imports

* add condition to skip sles and mariner 2

* remove unused comments and add skipexception for checking vm agent service

* remove unused code
2024-07-18 14:35:39 +08:00
lubaihua33 a10c5fa6aa Add subscription in SigTransformerSchema to cover that vhd is in other sub 2024-07-17 09:01:17 +08:00
kanchansenlaskar 8b309ffef5
Perform CPU pinning if more than one numa nodes (#3350) 2024-07-16 15:53:25 +05:30
Aditya Nagesh 40bcef868c Hibernation: Fix Max disks testcase 2024-07-15 13:37:15 +05:30