canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
51 stars 69 forks source link

Bug: Can't run integration tests for 24.04 images on Azure Generic machines #3121

Closed renanrodrigo closed 1 month ago

renanrodrigo commented 1 month ago

Description of the bug

Running the noble integration test for Azure generic is throwing an error for all the given steps, because there is a mismatch between the noble image released on Azure (which is gen-2, per the error message below) and the VM generation we use in our CI (which is gen-1). We need to change the VM type for the Azure tests - preferably to the cheapest version which supports both gen-1 and gen-2 VMs.

According to the Azure VM selector, the cheapest we can get is a B2ps v2 instance, with the next alternative being the B2s v2 - but those don't support gen-1 VMs. Some equivalent B-series do support both generations, so we may go with just B2s (the closest to our current A2_v2) to sort it out.

Expected behavior

Integration tests at least run on 24.04 azure.generic, and we pay the least possible amount of money for that to happen.

Current behavior

Can't run the CI there - the following error is seen for all machine creation steps:

Message: The selected VM size 'Standard_A2_v2' cannot boot Hypervisor Generation '2'. If this was a Create operation please check that the Hypervisor Generation of the Image matches the Hypervisor Generation of the selected VM Size. If this was an Update operation please select a Hypervisor Generation '2' VM Size. For more information, see https://aka.ms/azuregen2vm

To Reproduce

From the main branch: tox -e behave -- -D releases=noble -D machine_types=azure.generic Watch it go boom many times.

Additional context

renanrodrigo commented 1 month ago

fix landed