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

6013 Коммитов

Автор SHA1 Сообщение Дата
Smit Gardhariya e54c632b88
Fix libvirt for mariner if already present (#3410)
If libvirt not present, install it and fix if distro is mariner
If libvirt is present, fix it if distro is mariner

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-09-05 14:57:59 +05:30
Kameron Carr 021d5bffc4 Make test criteria case-insensitive
No testcase names, areas, or categories should differ only by case.
In many places, testcase areas are formatted with the first letter capitalized (ie. 'Sriov') however if anything other than all lowercase is used in the test critera, all tests will be skipped. This is bad user experience since it does not result in an error and it is unclear why no tests were selected.
2024-09-05 02:26:38 -07:00
Smit Gardhariya 225fb52d56
Replace initrd and add kernel config as optional parameter to transformer 'dom0_binaries' (#3405)
Copy kernel config under /boot if passed to the transformer
Copy initrd if passed from runbook else create softlink for existing
initrd image with new kernel version in filename

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-09-04 14:02:10 +05:30
Aditya Nagesh 8538c62f28
Hibernation: Log uptime and resume offset (#3403)
* Hibernation: Log uptime and resume offset

Uptime seems to have a drift of 1 second due to Hibernation, which is a bug.
To prevent all tests from failing, just log uptime and resume offset details
for debugging purpose.
2024-09-04 12:13:43 +05:30
Smit Gardhariya 965f6770af
Add device passthrough support for libvirt/hyperv platforms (#3379)
* Add domain/vendor-device id for lspci tool

Restructure device properties extraction using LISA's inbuilt method
Add support to get domain/vendor-id/device-id for PCI devices
Add support to query the tool to provide list for all devices by vendor/device id

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

* Add stop/start/restart/pass-through for VM under hyperv tool

Extend hyperv tool to stop/start/restart VM
Extend hyperv tool to configure pre-requisite to enable device pass-through for VM

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

* Implement common device pool for SUT platforms

Implement common device pool and schema for
SUT platforms.

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

* Add device passthrough support for hyperv platform

Implement Device Pool as per runbook
Schema change for runbook to get the device pool details
Add powershell script to get all assignable devices
Set the node context as per requirement

platform:
  - type: hyperv
    hyperv:
      device_pools:
        - type: "pci_net"
	  devices:
	    - vendor_id: xxx
	      device_id: xxx
    requirement:
      hyperv:
        device_passthrough:
	  - pool_types: "pci_net"
	    count: 1

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

* Add device passthrough support for libvirt platform

Implement device passthrough for libvirt platform
Use device pool and extend the functionality for libvirt platform
Schema change to configure device pool from runbook
Set each node context based on requirement for device pass-through

platform:
  - type: cloud-hypervisor
    cloud-hypervisor:
      device_pools:
        - type: "pci_net"
	  devices:
	    - vendor_id: xxx
	      device_id: xxx
    requirement:
      cloud-hypervisor:
        device_passthrough:
	  - pool_type: "pci_net"
	    managed: "yes"
	    count: 1

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

---------

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-09-03 17:27:12 +05:30
Smit Gardhariya d97439f4af
Set env var for bzImage for CH tests (#3404)
Read the testcase variable for bzImage and set it accordingly
under env var while running the testcase.

This is needed to test the CH tests with shipped bzImage.

Signed-off-by: Smit Gardhariya <sgardhariya@microsoft.com>
2024-09-02 20:09:41 +05:30
Lili Deng b389c3c451 support detect vmware esxi 2024-08-28 22:11:51 -07:00
Lili Deng f1bb82e03a Use default_factory to initialize ConnectionInfo 2024-08-27 18:16:49 -07:00
Baihua Lu 8e396c5539 Add some permissions for AITL for VM resize, extension test cases 2024-08-27 15:45:42 +08:00
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