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

4746 Коммитов

Автор SHA1 Сообщение Дата
Divyansh Srivastava cf453c850f Update to use Cache Ephemeral disk
ResourceDisk size can be limited to less than marketplace image size leading to test failures
2022-09-27 12:48:02 -06:00
SrikanthMyakam 85a9992549
git.get_latest_commit_id() added. (#2272)
Co-authored-by: srikanth <smyakam@microsoft.com>
2022-09-26 20:47:03 -07:00
Lili Deng 17ddcfaf47 install unattended-upgrades when no unattended-upgrade command 2022-09-26 08:57:52 +08:00
Lili Deng 3202363a63 extend timeout for unattended-upgrade 2022-09-26 08:57:52 +08:00
Lili Deng 00bdd24680 add update_packages for RPMDistro 2022-09-26 08:57:52 +08:00
Lili Deng bc35ea1dbf skip exception when resize from x64 cpu Architecture to arm64 2022-09-26 08:57:09 +08:00
Lili Deng e6f093fc1a add sync after making partitions disk and throw exception if no partitions found 2022-09-26 08:53:31 +08:00
Lili Deng 87a1c61634 add one more pattern which can be ignorable 2022-09-26 08:53:31 +08:00
Lili Deng 77a7508e65 attach one nic if only one nic attached, and select non eth0 nic for testing 2022-09-23 09:40:59 -06:00
Lili Deng 857f47d9f0 fix a bug when calculate sriov nic count 2022-09-23 09:40:29 -06:00
mcgov cd7731a960
DPDK: reorder priority and requirements (#2265)
allow verify_build to run without isolated resource

reorder tertiary functional tests to pri 4
2022-09-22 14:51:12 -07:00
Lili Deng 8bf5232b6a add negative example for output of lscpu 2022-09-21 21:03:30 -06:00
Yi ad674f3b01
create a bash script for create service principal from linux (#2260)
* create a bash script for create service principal from linux

* remove v2 from default identifier
2022-09-20 16:03:57 -07:00
Lili Deng 0163bf3c7b fix regression for lscpu 2022-09-20 19:07:43 +08:00
lubaihua33 0c90035f14 Restart kdump service after reboot if the dump path is not /var/crash 2022-09-20 09:29:14 +08:00
Lili Deng 10fa8dff95 extend time when run sbinfo and replace repro when install packages on debian. 2022-09-19 23:04:29 +08:00
Lili Deng 581a472266 add apt update for debian after adding repo 2022-09-19 23:04:29 +08:00
Chi Song e3dc795296 fix repo info is not in log file 2022-09-18 16:37:09 -06:00
Chi Song 8e62e75ad8 azure: provide detail errors on vm size matching. 2022-09-18 16:37:09 -06:00
Chi Song 2e54f959da fix the excluded feature missed 2022-09-18 16:37:09 -06:00
Lili Deng 334df950f6 support install package for lscpu 2022-09-18 16:36:45 -06:00
Lili Deng 460826d713 support install package for freebsd 2022-09-18 16:36:45 -06:00
dependabot[bot] ad2ae07e77 Bump oauthlib from 3.2.0 to 3.2.1
Bumps [oauthlib](https://github.com/oauthlib/oauthlib) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/oauthlib/oauthlib/releases)
- [Changelog](https://github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/oauthlib/oauthlib/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: oauthlib
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-16 18:14:55 -06:00
Kameron Carr e620a93a12 SecurityProfile: Accept empty string in runbook
When the runbook has an empty string (important for pipelines), the security profile should use the default requirement.
2022-09-16 15:02:04 -06:00
Purna Pavan Chandra Aekkaladevi 07c55585a6 Enable CH community tests to run on Linux dom0 2022-09-16 15:01:51 -06:00
Sonia Sharma e56f3d65a0 networksettings: Distinguish the failure for AN enabled and not enabled in device statistics test 2022-09-16 07:35:45 -07:00
Aditya Nagesh 7b2232c9d9
Fix usage of 'Free' in kdumpcrash test (#2248)
Kdump crash uses node_exec to retrieve total memory.
This patch adds support in Free tool to retrieve total memory and
Kdump test is modified to use the tool.

Free is executed with parameter --si to get consistent output
2022-09-15 23:31:43 +08:00
Jose-Teuttli a0b2c4eb29
Added cvm testcases, dmesg get_isolation_config() (#2240)
* Added cvm testcases, dmesg get_isolation_config()

Added test that checks devices on guest
Added test that checks isolation config on guest
Added get_isolation_config function to dmesg tool

* moved get_isolation_config logic

moved logic from dmesg.py into cvm.py due to this logic being
only used in cvm.py

* removed unnecessary requirements and clarification

* reworked regex logic

* added cvmEnabled requirement

* fix import order

* expand config_b logic and add comments
2022-09-15 10:59:30 +08:00
Chi Song 890ec0fff5 Fix regression on merging features
When features are merged, the check is called to make sure the overlap
of intersect is right scope on each req. But the feature is special, it
needs some hacks on current infra to merge correctly.

With this fix,
1. The features will be concatenated into platform req in lisa runner.
2. The platform features is taken in node space intersect.
3. The features are actually merged in the azure platform.
2022-09-13 15:15:54 -06:00
Chi Song 2c2c8feae3 scheme: handle feature intersect better
The features will be added when call "intersect", and actual merged in
platform. The reason is the platform knows feature subtype.

It can be refined in future to load feature type better and earlier.
2022-09-12 13:44:52 -06:00
Chi Song a615e0e688 feature: ignore error, when feature is not found. 2022-09-12 13:44:52 -06:00
Chi Song 42a1084e62 search space: support remove in set space 2022-09-12 13:44:52 -06:00
Chi Song 30cc2431cc feature: expose security profile type. 2022-09-12 13:44:52 -06:00
Chi Song 329f648db5 fix typo 2022-09-12 13:44:52 -06:00
Lili Deng 0779cc8610 fix install ofed driver on rhel8 and 9 2022-09-12 10:40:04 -06:00
LiliDeng 6d4049b078
Fix no permission issue when copying back files for ltp testing (#2246) 2022-09-12 13:57:25 +08:00
Anirudh Rayabharam b0b7ccfb33 Create usermod tool
Create a tool for `usermod` command and implement a function to add
a user to a group. Refactor usages of `usermod` command in
libvirt_tck_tool and libvirt installer to use the newly created tool.

Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
2022-09-09 12:07:29 -06:00
Anirudh Rayabharam 0a21f29a7f Support for CBLMariner in libvirt TCK testsuite
- Separate set of expected failures
- Modify /etc/libvirt/qemu.conf to configure libvirt to run qemu
  as root. Otherwise multiple tests fail with permission errors.
- Use hidepid=0 for /proc filesystem while mounting.
- Start libvirtd explicitly since it is always in failed state after
  boot in Mariner.
- Use cpanminus instead of cpan to install libvirt-tck dependencies.

Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
2022-09-09 12:07:29 -06:00
Anirudh Rayabharam 8c07870c34 Fixes for making libvirt & qemu installers work on mariner
- Use hidepid=0 for /proc in /etc/fstab. Without this remote connections
  to libvirt fail
- Install qemu-kvm from preview repo which includes missing firmware
  files.
- Add current user to libvirt group
- Add qemu user to the current user's group

Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>
2022-09-09 12:07:29 -06:00
Anirudh Rayabharam a829806f8b Use vga for mariner instead of qxl spice 2022-09-09 12:07:29 -06:00
Divyansh Srivastava 2091ddb54c Fix serial console error with Environment Credential 2022-09-09 22:00:18 +05:30
Kameron Carr d893e428f8 IB: Support ConnectX-3 MLNX cards
Older cards such as ConnectX-3 require legacy LTS OFED drivers.
2022-09-08 11:47:00 -07:00
LiliDeng 0c55fd06a9
Add case verify_vdso. (#2237)
* Add tool strace

* Add case verify_vdso.
2022-09-07 14:51:56 +08:00
Kameron Carr fd36c22ac9 Security_Profile: Fix check and _call_requirement_method 2022-09-06 18:18:08 -06:00
Kameron Carr 00716f375b Enable Deployment of CVM
SecurityType now detects both secure boot and CVM capabilities of the VM SKU. These capabilities are intersected with testcase requirements and runbook requirements. Then the lowest security option is selected and the arm template is updated appropriately.
2022-09-06 18:18:08 -06:00
LiliDeng 578a49fd8e
fix test issues on SLES15SP4 (#2239)
* install fio from package firstly, and add libaio-devel when compile fio
for suse

* SUSE uses nfs-server service.

* Extend timeout of installing packages.

* decompress zst format file on sles15sp4
2022-09-06 13:08:31 +08:00
LiliDeng 95aebb4dcc
add case verify_dns_name_resolution (#2238)
* add ping result

* add dns_name_resolution cases
2022-09-06 13:07:53 +08:00
Aditya Nagesh 4c6a1fd660
Change timeout of fio process (#2226)
Test case 'verify_cpu_offline_storage_workload' checks if fio process
exists after cpu hotplug.
The test fails when the number of cores in SKU is high since
the fio process exits before the cpu hotplug operation.

This increase in time does not affect the total duration of the
test as the tests kills the process.
2022-09-02 08:47:29 +08:00
Aditya Nagesh 9f24bd9e68
Verify serial console from log (#2235)
console enabled log may get flushed from dmesg.
Hence check for pattern in /var/log/messages or
/var/log/syslog.

Change assert statement for better error readability
2022-09-02 08:47:11 +08:00
LiliDeng 95cc4fb650
skip test if hv_network_direct module is not enabled (#2234) 2022-09-02 08:35:26 +08:00