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

5979 Коммитов

Автор SHA1 Сообщение Дата
Umang Francis 406a649754
Updates to address Semver value errors in verify_device_rss_hash_key_change (#3429)
* converting mimimum version to semver object before comparison

* Removing extra line to comply with Black
2024-09-20 10:24:01 +08:00
Lili Deng 2f0d56f93b lsvmbus: the source of lsvmbus change to use python3 2024-09-20 09:07:57 +08:00
Siddhartha Mathiharan c30811a1da Update AzureMonitorAgentLinux extension name 2024-09-19 16:04:57 -07:00
Lili Deng a5ef096b24 workaround for mariner 3.0, no /dev/disk/azure/scsi1 created 2024-09-19 14:07:56 +08:00
Lili Deng 6844592e91 dhclient tool: mariner 3 dhcp tool name - dhcpcd 2024-09-19 14:07:56 +08:00
Lili Deng 86a2287e3b add doc for retry 2024-09-19 11:48:42 +08:00
Lili Deng cf99e697a8 add unit test test_env_retry_on_deployment_fail 2024-09-19 11:48:42 +08:00
Lili Deng a87bba5021 add retry_on_deployment 2024-09-19 11:48:42 +08:00
Umang Francis ea0f2f186d
Updating test case logic to check if netsvc_module exists (#3418)
* updating netsvc_module path check to use sudo

* formatting the file as per flake8 recommendations

* removing string formatting for ls.path_exists()
2024-09-18 08:23:12 +08:00
John Feng a1358de514 address pkg mgm failure is not longer set status to failed 2024-09-09 16:53:24 -07:00
Kanchan Sen Laskar 4df06f0f7f Restrict dpdk22 usage only to susu 15 sp5 2024-09-08 23:10:54 -07:00
LiliDeng 3a01472c71
tool: add mono to allow users to run .NET application across various platforms. (#3401)
* azure: add get_token

* os: add add_key

* tool: add mono
2024-09-06 22:49:59 +08:00
rydailey 0d749bd3c5 Added FreeBSD specifics to disk 2024-09-06 07:49:36 -07:00
Lili Deng f7dd63ae7f set default value to avoid missing credential exception 2024-09-05 17:22:34 -07:00
Aditya Nagesh 7603853be5
Hibernation Cleanup: Start VM only if it is Deallocated (#3409)
At present Cleanup Script tries to start vm irrespective of the
current state of VM.
The change verifies if the VM is deallocated before starting
2024-09-06 02:17:52 +05:30
SrikanthMyakam a104988ab7
Azure_hyperv transformer (#3402)
* HyperVPreparationTransformer transformer added

hyperv_preparation transformer added

* Update hyperv_preparation.py

* Update hyperv_preparation.py

* Update hyperv_preparation.py
2024-09-05 17:30:04 +08:00
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