Skip to content

Commit

Permalink
Disable TrustedLaunch on RockyLinux Azure VM's.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 590331560
  • Loading branch information
andyz422 authored and copybara-github committed Dec 12, 2023
1 parent 70116f7 commit 78c44e7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion perfkitbenchmarker/providers/azure/azure_virtual_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from perfkitbenchmarker import disk_strategies
from perfkitbenchmarker import errors
from perfkitbenchmarker import linux_virtual_machine
from perfkitbenchmarker import os_types
from perfkitbenchmarker import placement_group
from perfkitbenchmarker import provider_info
from perfkitbenchmarker import resource
Expand Down Expand Up @@ -130,6 +131,13 @@
r'(Standard_ND[0-9]+a.*)',
]

TRUSTED_LAUNCH_UNSUPPORTED_OS_TYPES = [
os_types.ROCKY_LINUX8,
os_types.ROCKY_LINUX8_OPTIMIZED,
os_types.ROCKY_LINUX9,
os_types.ROCKY_LINUX9_OPTIMIZED
]


class AzureVmSpec(virtual_machine.BaseVmSpec):
"""Object containing the information needed to create a AzureVirtualMachine.
Expand Down Expand Up @@ -596,7 +604,7 @@ def __init__(self, vm_spec):
self.trusted_launch_unsupported_type = any(
re.search(machine_series, self.machine_type)
for machine_series in TRUSTED_LAUNCH_UNSUPPORTED_TYPES
)
) or self.OS_TYPE in TRUSTED_LAUNCH_UNSUPPORTED_OS_TYPES
arm_arch = 'neoverse-n1' if _MachineTypeIsArm(self.machine_type) else None
if arm_arch:
self.host_arch = arm_arch
Expand Down

0 comments on commit 78c44e7

Please sign in to comment.