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

5979 Коммитов

Автор SHA1 Сообщение Дата
paulli 72de0270f4
Added tftp deployment on BareMetal platform (#3422)
Co-authored-by: paull <paull@microsfot.com>
2024-10-16 13:36:41 +08:00
LiliDeng ff7e40674a
Fix script file transformer and openssl command issues (#3473)
* skip installing packages when it is not specified

* fix -6 option not available in some distro

* handle the issue when use -cpu host

* set timeout for checking command to save time

* ntttcp: set system parameter net.ipv4.tcp_rmem to optimize network performance
2024-10-16 12:58:05 +08:00
mcgov e9df2a6c06
RdmaInstaller: refactor rdma-core dependency and source install (#3457)
* Ninja: add pyelftools dependency

* Installer: make only one dependency install round trip

* RdmaCore: make rdma-core source installer

Implement rdma-core source and package manager build
using Installer class. This will be handy when
implementing the 32bit dpdk/rdma-core test.

Debian kernel version compare

prefer kernel version over codename

* Installer: undo lts/latest changes

* DPDK+RdmaCore: use list for ubuntu versions

* RdmaInstaller: prefer os package check for version

* DpdkInstaller: pretty huge bugfix

* Dpdk: fix build_path -> asset_path

* Dpdk: ring_ping allow re-initialization to force source build

* DpdkInstall: stop_on_match for uninstall too

* Revert "Dpdk: ring_ping allow re-initialization to force source build"

This reverts commit 28638da236.

* Dpdk: skip if package manager is used for ring_ping

* Use create instead of get to avoid skipping init

* Dpdk/Rdma Installer: ensure installer runs and asset_path is set

* Git: delete temp branch before creating if it exists

* Dpdk: add reattempt build with modified pythonpath

* Dpdk: fix sudo python issue for meson
2024-10-15 11:37:29 +08:00
Lili Deng 285f1aa892 set area as nested for nested test cases 2024-10-10 22:53:10 -07:00
Lili Deng 7790c8b269 neseted: create L2 image during runtime 2024-10-10 22:53:10 -07:00
Lili Deng ca1ebfbc8a storage account: disable blob anonymous access by default when create storage account 2024-10-10 08:43:40 -07:00
SrikanthMyakam 7cdf089430 verify_timesync_ptp - support multiple ptp devices.
In some Linux VMs you may see multiple PTP devices listed.
One example is for Accelerated Networking the Mellanox mlx5 driver also creates a /dev/ptp device.
Because the initialization order can be different each time Linux boots,the PTP device corresponding to the Azure host might be /dev/ptp0 or it might be /dev/ptp1.
To determine which PTP device corresponds to the Azure host, you can check the clock_name file.
Atleast one of the PTP devices should have a clock_name of 'hyperv'.
2024-10-10 05:57:29 -07:00
Shekhar Sorot ( MSFT ) 17e0b6fcbc
Add support for Private endpoint to SMB file share (#3464)
* Update features.py

add param for allow_shared_key_access as default off to definition "create_file_share". This will allow creating SMB shares with Access key ( currently ) for XFStesting.
We should ideally move to ADDS based authentication for SMB mount for the purpose of XFStesting SMB in the near future

* Update features.py

removed empty line at 2721

* Update features.py

* Update features.py

* Update features.py

* Update features.py

* Update features.py

* fix issues with Flake8 issues

* Update features.py

* Update features.py

* Update features.py

* Update features.py

* Update features.py

* Update features.py

* Update features.py
2024-10-10 09:39:04 +08:00
Lili Deng a75eda8fc5 dpdk: fix package not found issue 2024-10-09 17:12:23 -07:00
Chi Song (from Dev Box) d77d7739e2 Hibernation: Change is_enabled to the search space
Hibernation must be configured during deployment. If it’s not set up and the hibernation feature is available, hibernation test cases will fail. This update changes `is_enabled` to a search space. If hibernation is not configured, the value will default to `False`. For test cases requiring hibernation to be enabled, a new environment must be set up with the feature properly configured.
2024-10-08 21:12:10 -07:00
Chi Song (from Dev Box) 3d156630e4 search_space: fix assert False failed.
Only None is not allowed, the False is a valid option.
2024-10-08 21:12:10 -07:00
Chi Song (from Dev Box) e13b78fcef fix LISA exception on None capability.
None capability happens on preparation failures. It should return False, instead of assertion failure.
2024-10-08 20:45:19 -07:00
Chi Song (from Dev Box) 125817aff0 check platforms to prevent mismached feature types. 2024-10-08 20:45:19 -07:00
Umang Francis a767a8f82b
Changes to steps involved for Tests verify_load_gpu_driver and verify_dhcp_client_timeout for Redhat (#3465)
* Updating gpu package name for Cuda and steps for Redhat dhcp get_timeout()

* using sudo for cat

* Adding support for GPU A10-8Q

* Formatting as per black recommendations
2024-10-09 10:20:12 +08:00
Lili Deng 27a57c369a ready platform: add mock serial console feature 2024-10-07 22:24:22 -07:00
Kanchan Sen Laskar ff85745ac8 Pass custom timeout 2024-10-07 21:59:02 -07:00
Mariner 4d93ac13b4 limit cloud-init test for mariner 2.0 or later 2024-10-07 18:46:35 -07:00
AASTHA RAWAT 59bb81ba95 Change cloud-hypervisor schema for kernel parameter in libvirt 2024-10-07 10:39:42 +05:30
AASTHA RAWAT 151930037f Add launch security to launch guest CVM 2024-10-07 10:39:42 +05:30
AASTHA RAWAT 3079f43567 Add security profile feature in libvirt 2024-10-07 10:39:42 +05:30
John Feng 0d9420884c add logic to _assert_status_file_result 2024-10-03 23:42:58 -07:00
Kameron Carr c2b16f2d27 ip_service_tags
New security standard will require all IPs to be tagged.

Please note this IP tagging system is different from general  resource tagging.
2024-10-03 20:51:45 -07:00
Chi Song (from Dev Box) 02c80fcbe2 azure runbook: add sig and community image supports 2024-10-03 18:18:55 -07:00
mcgov 06a74eeb4a
Standardize CpuArchitecture enum (#3456)
* CpuArchitecture: standardize use of arch enum
2024-10-03 14:05:41 -07:00
Chi Song (from Dev Box) b3be1ce23f fix UT to load from a real file 2024-10-03 08:42:21 -07:00
Chi Song (from Dev Box) ea864a1ab3 runbook refactoring: move set to optional 2024-10-03 08:42:21 -07:00
Chi Song (from Dev Box) a2dc73bad9 runbook: fix combinator cannot change included file names. 2024-10-03 08:42:21 -07:00
Chi Song (from Dev Box) 6aa05ce1cd runbook: extract shared logic for clear names. 2024-10-03 08:42:21 -07:00
Shekhar Sorot ( MSFT ) 7077eea2d4
Enable deployment of Premium file share, enable SMB2.0 support (#3459)
* Update features.py

add param for allow_shared_key_access as default off to definition "create_file_share". This will allow creating SMB shares with Access key ( currently ) for XFStesting.
We should ideally move to ADDS based authentication for SMB mount for the purpose of XFStesting SMB in the near future

* Update features.py

removed empty line at 2721

* Update features.py

* Update features.py

* Update features.py

* Update features.py

* Update features.py

add option to Azure files ( SMB ) for allowing premium File share creation, and add ability to disable secure transfer to test SMB 2.1 feature if needed for xfstesting

* Update features.py

* Update features.py

* Update features.py

added space around equal based on flake8 recomendations
2024-10-03 08:07:10 -07:00
Chi Song (from Dev Box) a768712167 doc: add lisa case training data.
It generate a jsonl file for llm training purpose. The input is test case descriptions of a test file, output is the test case file content.
2024-10-03 06:00:06 -07:00
Lili Deng cb416678a9 Fix `AttributeError: 'RemoteNode' object has no attribute 'features'`. 2024-10-03 05:58:11 -07:00
rydailey 5d05295c05 Regex to fix mount issue 2024-10-02 13:15:03 -07:00
Yi Zhou 3c0af6b2cb fix vul items by upgrading pkgs 2024-10-02 08:34:42 -07:00
Lili Deng f4e6d2d061 Fix bug for wget when force_run is false and log file has been deleted 2024-10-01 16:43:44 -07:00
mcgov e9519d83da
DpdkTestpmd: Installation path cleanup (#3426)
* Ninja: add ninja tool

* Ln: allow -f flag to allow overwriting exist

* Python: allow --user flag and add get_python_path

* Meson: add Meson lisa tool

* DpdkTestpmd: Refactor Installation Path

The installer path has grown to be unmaintainable.
We cover multiple cases:
-install from pkg manager
-install from source
   - install from git
   - install from tar
- (implicit) use already installed version

for multiple targets:
- debian
   - ubuntu 18.04 special casing
- suse
- fedora

and now need to allow all of these scenarios
for both DPDK and rdma-core (and the linux kernel).

SO... It's time for a refactor.

Commit makes the 'installer' concept object-oriented.

Adds a generic class 'Installer' into common.py
Adds child class SourceInstall and PackageManagerInstall.
Adds DpdkSourceInstall and DpdkPackageManagerInstall classes.
Adds DpdkGitInstall and DpdkTarInstall implementations of the generic
parent classes.

* Installer: Remove _configure_installation (unused)

* DpdkInstaller: I guess one method for _run_build

* DpdkInstaller: rename more variables

* Installer: change more variable names

* Installer: assert instead of check
2024-10-01 16:42:27 -07:00
Shekhar Sorot ( MSFT ) 537663b39e
Allow File share creation with Access key with default false (#3449)
* Update features.py

add param for allow_shared_key_access as default off to definition "create_file_share". This will allow creating SMB shares with Access key ( currently ) for XFStesting.
We should ideally move to ADDS based authentication for SMB mount for the purpose of XFStesting SMB in the near future

* Update features.py

removed empty line at 2721

* Update features.py

* Update features.py

* Update features.py

* Update features.py
2024-09-30 17:08:15 +08:00
Chi Song (from Dev Box) 96ff777ded Fix untyped feature settings
The feature settings should be reloaded to the right types, instead of
general type during prepare an environment in ready platform. So the
capability can be configured for ready platform.
2024-09-29 16:02:45 +08:00
Lili Deng aec6ebf999 change the config file name for dhclient and dhcpcd 2024-09-29 09:41:22 +08:00
LiliDeng 1d73bb90e7
skip unsupported architecture and distro version (#3444) 2024-09-29 09:41:01 +08:00
paxue d4feaa2f76
add azure credential schema for different authentication (#3443)
* add azure credential schema for different authentication

* fix flake and mypy error

---------

Co-authored-by: panfengxue <paxue@microsoft.om>
2024-09-27 21:23:58 +08:00
Lili Deng 615b93caee add scripts_execution_transformer 2024-09-27 09:33:00 +08:00
r-dailey 1a495c84c5
updated lscpu commands (#3442)
* updated lscpu commands
2024-09-26 08:31:06 -07:00
Kameron Carr 8f01143c8a
Remove SecurityProfileType.Standard from CVM images (#3438)
When calculating image capabilities, do not include `Standard` for images supporting CVM. Previously LISA would default to a standard SKU for CVM images, but this is not really a valid testing scenario.
2024-09-26 11:47:17 +08:00
rydailey 89fbbb20a3 Marked fio test case to be skipped 2024-09-25 16:01:24 -07:00
Matthew G McGovern e1fb479015 DpdkPerf: add dpdk version to test info 2024-09-25 10:09:23 -07:00
Sonia Sharma 82835b2508
Enable premium v2 disk for Azure (#3425)
* Add and Enable PremiumV2 SSD feature

* Add provisioning test case for premiumV2 disk

* enable storage perf test cases for premiumV2 ssd
2024-09-25 15:22:19 +08:00
Praveen K Paladugu 2106ad2c77 mshv: fix before_case in mshvlog_is_active test
This test checks if CONFIG_MSHV_DIAG is enabled. If enabled, the test
requires /dev/mshv_diag device to be present.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
2024-09-25 08:40:26 +08:00
SrikanthMyakam a51e6dc533
'io_uring' support to LISA (#3419)
Added 'io_uring' support to LISA io perf tests and new testcase 'perf_nvme_io_uring'
2024-09-24 09:33:00 +05:30
Lili Deng 3c81b559b2 fix extension in 'updating' status issue 2024-09-24 10:03:23 +08:00
Lili Deng d77fa52f35 handle when extension has been installed situation 2024-09-24 09:23:29 +08:00