Skip to content

verify_dns_name_resolution_after_upgrade - mark node dirty after OS u…#4511

Merged
LiliDeng merged 2 commits into
mainfrom
smyakam/verify_dns_name_resolution_after_upgrade/2026_05_31
Jun 2, 2026
Merged

verify_dns_name_resolution_after_upgrade - mark node dirty after OS u…#4511
LiliDeng merged 2 commits into
mainfrom
smyakam/verify_dns_name_resolution_after_upgrade/2026_05_31

Conversation

@SRIKKANTH
Copy link
Copy Markdown
Collaborator

@SRIKKANTH SRIKKANTH commented Jun 2, 2026

…pdate

After OS upgrade sometimes kernel version may change. When LISA is used to validate a VM image with specific kernel version, changing the kernel will result in running tests with undesired kernel which should be avoided. Marking the node dirty after OS update to avoid such issues.

Description

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

verify_dns_name_resolution_after_upgrade

Impacted LISA Features:

Tested Azure Marketplace Images:

  • Canonical ubuntu-26_04-lts server latest

Test Results

Image VM Size Result
Canonical ubuntu-26_04-lts server latest Standard_D2ads_v5 PASSED

…pdate

After OS upgrade sometimes kernel version may change. When LISA is used to validate a VM image with specific kernel version, changing the kernel will result in running tests with undesired kernel which should be avoided. Marking the node dirty after OS update to avoid such issues.
Copilot AI review requested due to automatic review settings June 2, 2026 06:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the core DNS test case that performs an OS upgrade so the test environment is marked as “dirty” after the upgrade, preventing subsequent test cases from reusing a potentially kernel-changed node.

Changes:

  • Mark the test node dirty in verify_dns_name_resolution_after_upgrade to avoid environment reuse after OS upgrade.

Comment thread lisa/microsoft/testsuites/core/dns.py Outdated
Comment thread lisa/microsoft/testsuites/core/dns.py Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

✅ AI Test Selection — PASSED

1 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 1
❌ Failed 0
⏭️ Skipped 0
Total 1
Test case details
Test Case Status Time (s) Message
verify_dns_name_resolution_after_upgrade (lisa_0_0) ✅ PASSED 92.925

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

❌ AI Test Selection — FAILED

89 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 69
❌ Failed 6
⏭️ Skipped 14
Total 89
Test case details
Test Case Status Time (s) Message
verify_vmbus_devices_channels_bsd (lisa_0_40) ⏭️ SKIPPED 0.000 check skipped: OS type mismatch: ["requires [<class 'lisa.operating_system.BSD'>] but VM supports [<class 'lisa.operatin
verify_vmbus_devices_channels (lisa_0_41) ✅ PASSED 12.391
verify_vmbus_heartbeat_properties (lisa_0_42) ✅ PASSED 14.697
verify_serial_console (lisa_0_2) ✅ PASSED 43.316
verify_gdb (lisa_0_1) ✅ PASSED 75.313
verify_kvp (lisa_0_0) ✅ PASSED 17.054
verify_default_targetpw (lisa_0_43) ✅ PASSED 2.915
verify_grub (lisa_0_44) ✅ PASSED 1.832
verify_network_file_configuration (lisa_0_46) ⏭️ SKIPPED 0.273 skipped: unsupported distro type: <class 'lisa.operating_system.Ubuntu'>
verify_ifcfg_eth0 (lisa_0_47) ⏭️ SKIPPED 0.290 skipped: unsupported distro type: <class 'lisa.operating_system.Ubuntu'>
verify_udev_rules_moved (lisa_0_48) ⏭️ SKIPPED 0.327 skipped: Unsupported distro type : <class 'lisa.operating_system.Ubuntu'>
verify_dhcp_file_configuration (lisa_0_49) ⏭️ SKIPPED 0.313 skipped: Unsupported distro type : <class 'lisa.operating_system.Ubuntu'>
verify_serial_console_is_enabled (lisa_0_54) ✅ PASSED 4.347
verify_no_pre_exist_users (lisa_0_59) ✅ PASSED 5.285
verify_waagent_version (lisa_0_62) ✅ PASSED 2.241
verify_resource_disk_file_system (lisa_0_61) ✅ PASSED 7.741
verify_openssl_version (lisa_0_64) ✅ PASSED 1.832
verify_azure_64bit_os (lisa_0_65) ✅ PASSED 1.829
verify_repository_installed (lisa_0_53) ✅ PASSED 24.354
verify_python_version (lisa_0_63) ✅ PASSED 6.135
verify_omi_version (lisa_0_66) ✅ PASSED 2.212
verify_no_swap_on_osdisk (lisa_0_67) ✅ PASSED 1.812
verify_essential_kernel_modules (lisa_0_68) ✅ PASSED 2.670
verify_yum_conf (lisa_0_50) ⏭️ SKIPPED 0.222 skipped: Unsupported distro type : <class 'lisa.operating_system.Ubuntu'>
verify_hv_kvp_daemon_installed (lisa_0_52) ✅ PASSED 3.119
verify_cloud_init_error_status (lisa_0_57) ⏭️ SKIPPED 0.267 skipped: Unsupported system: 'Ubuntu 22.04.5 LTS'. unsupported distro to run verify_cloud_init test.
verify_client_active_interval (lisa_0_58) ✅ PASSED 1.958
verify_resource_disk_readme_file (lisa_0_60) ✅ PASSED 7.662
verify_os_update (lisa_0_51) ✅ PASSED 64.029
verify_network_manager_not_installed (lisa_0_45) ⏭️ SKIPPED 0.227 skipped: unsupported distro type: <class 'lisa.operating_system.Ubuntu'>
verify_boot_error_fail_warnings (lisa_0_56) ❌ FAILED 11.096 failed. AssertionError: [unexpected error/failure/warnings shown up in bootup log of distro Ubuntu 22.4.0] Expected <['J
verify_bash_history_is_empty (lisa_0_55) ✅ PASSED 9.395
verify_l3_cache (lisa_0_3) ✅ PASSED 9.397
verify_cpu_count (lisa_0_4) ✅ PASSED 8.747
verify_vmbus_interrupts (lisa_0_5) ❌ FAILED 10.786 failed. AssertionError: [Hypervisor synthetic timer interrupt should be processed by all vCPU's] Expected to be
verify_dhcp_client_timeout (lisa_0_39) ✅ PASSED 2.660
verify_floppy_module_is_blacklisted (lisa_0_21) ✅ PASSED 1.905
verify_hyperv_modules (lisa_0_35) ✅ PASSED 6.136
verify_initrd_modules (lisa_0_34) ✅ PASSED 68.779
verify_lis_modules_version (lisa_0_33) ⏭️ SKIPPED 0.275 skipped: Ubuntu not supported. This test case only supports Redhat distros.
verify_reload_hyperv_modules (lisa_0_36) ✅ PASSED 195.227
verify_enable_kprobe (lisa_0_38) ✅ PASSED 4.504
verify_hyperv_platform_id (lisa_0_88) ✅ PASSED 37.458
verify_resource_disk_mounted (lisa_0_70) ✅ PASSED 5.907
verify_swap (lisa_0_71) ✅ PASSED 4.692
verify_resource_disk_io (lisa_0_72) ✅ PASSED 7.257
verify_scsi_disk_controller_type (lisa_0_73) ✅ PASSED 2.374
verify_os_partition_identifier (lisa_0_75) ✅ PASSED 2.723
verify_disks_device_timeout_setting (lisa_0_69) ✅ PASSED 3.699
verify_hot_add_disk_serial_standard_ssd (lisa_0_77) ✅ PASSED 248.105
verify_hot_add_disk_serial (lisa_0_76) ✅ PASSED 293.841
verify_hot_add_disk_parallel (lisa_0_79) ✅ PASSED 84.366
verify_hot_add_disk_serial_premium_ssd (lisa_0_78) ✅ PASSED 201.264
verify_hot_add_disk_parallel_standard_ssd (lisa_0_80) ✅ PASSED 84.737
verify_hot_add_disk_serial_random_lun_standard_ssd (lisa_0_81) ✅ PASSED 229.204
verify_hot_add_disk_serial_random_lun_premium_ssd (lisa_0_82) ✅ PASSED 232.083
verify_hot_add_disk_parallel_premium_ssd (lisa_0_83) ✅ PASSED 64.492
verify_nvme_disk_controller_type (lisa_0_74) ✅ PASSED 9.272
verify_cifs_basic (lisa_0_85) ❌ FAILED 27.749 failed. ResourceNotFoundError: (ResourceNotFound) The Resource 'Microsoft.Storage/storageAccounts/lisafsvlhxt24vnm' unde
verify_nfsv4_basic (lisa_0_84) ✅ PASSED 207.576
verify_pmu_disabled_for_arm64 (lisa_0_27) ⏭️ SKIPPED 0.279 skipped: This test case does not support CpuArchitecture.X64. This validation is only for ARM64.
verify_timedrift_corrected (lisa_0_28) ✅ PASSED 75.178
verify_timesync_ptp (lisa_0_22) ✅ PASSED 3.292
verify_timesync_unbind_clocksource (lisa_0_23) ✅ PASSED 32.049
verify_timesync_unbind_clockevent (lisa_0_24) ❌ FAILED 1.953 failed. AssertionError: [Expected clockevent name is Hyper-V clockevent, but actual it is lapic.] Expected to be
verify_timesync_chrony (lisa_0_26) ✅ PASSED 26.654
verify_timesync_ntp (lisa_0_25) ✅ PASSED 50.214
verify_vdso (lisa_0_19) ✅ PASSED 128.437
verify_vm_hot_resize_decrease (lisa_0_30) ✅ PASSED 51.322
verify_vm_resize_decrease (lisa_0_32) ✅ PASSED 141.497
verify_vm_hot_resize (lisa_0_29) ❌ FAILED 405.963 failed. AssertionError: fail to find proper vm size
verify_vm_resize_increase (lisa_0_31) ❌ FAILED 773.105 failed. AssertionError: fail to find proper vm size
verify_sched_core_basic (lisa_0_37) ⏭️ SKIPPED 0.217 before_case skipped: Unsupported system: 'Ubuntu 22.04.5 LTS'. SCHED_CORE support is only tested on AzureLinux 3.0 and l
smoke_test (lisa_0_6) ✅ PASSED 61.348
smoke_test_check_serial_console_pattern (lisa_0_7) ✅ PASSED 45.722
verify_deployment_provision_synthetic_nic (lisa_0_8) ✅ PASSED 33.533
verify_deployment_provision_standard_ssd_disk (lisa_0_9) ✅ PASSED 44.932
verify_deployment_provision_ephemeral_managed_disk (lisa_0_10) ✅ PASSED 34.676
verify_deployment_provision_premium_disk (lisa_0_11) ✅ PASSED 48.792
verify_deployment_provision_premiumv2_disk (lisa_0_12) ✅ PASSED 38.045
verify_deployment_provision_sriov (lisa_0_13) ✅ PASSED 50.868
verify_deployment_provision_ultra_datadisk (lisa_0_15) ✅ PASSED 37.398
verify_stop_start_in_platform (lisa_0_16) ✅ PASSED 67.939
verify_reboot_in_platform (lisa_0_14) ✅ PASSED 234.145
verify_deployment_provision_swiotlb_force (lisa_0_18) ✅ PASSED 123.680
stress_reboot (lisa_0_17) ✅ PASSED 584.229
verify_zram_crypto_zstd (lisa_0_86) ⏭️ SKIPPED 0.296 before_case skipped: Unsupported system: 'Ubuntu 22.04.5 LTS'. zram compression test requires Azure Linux 3.0+.
verify_zram_crypto_lz4 (lisa_0_87) ⏭️ SKIPPED 0.325 before_case skipped: Unsupported system: 'Ubuntu 22.04.5 LTS'. zram compression test requires Azure Linux 3.0+.
verify_boot_with_debug_kernel (lisa_0_20) ⏭️ SKIPPED 8.349 skipped: Ubuntu not supported. This test case only supports redhat/centos distro.

@LiliDeng LiliDeng merged commit 3e92d84 into main Jun 2, 2026
61 checks passed
@LiliDeng LiliDeng deleted the smyakam/verify_dns_name_resolution_after_upgrade/2026_05_31 branch June 2, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants