Skip to content

Change performance diagnostics to use Managed Identity - #3509

Open
lukeluong1212 wants to merge 2 commits into
mainfrom
dev/lukeluong/perfdiag_lisa_msi
Open

Change performance diagnostics to use Managed Identity#3509
lukeluong1212 wants to merge 2 commits into
mainfrom
dev/lukeluong/perfdiag_lisa_msi

Address comments an fix flake8 warnings

16667ff
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Github PR Validation failed Jul 22, 2026 in 20m 9s

Build #20260721.7 had test failures

Details

Tests

  • Failed: 25 (40.98%)
  • Passed: 26 (42.62%)
  • Other: 10 (16.39%)
  • Total: 61

Annotations

Check failure on line 1880 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Github PR Validation

Build log #L1880

Bash exited with code '25'.

Check failure on line 1 in verify_private_script_without_sas_run_failed (lisa_0_24)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Github PR Validation

verify_private_script_without_sas_run_failed (lisa_0_24)

failed. ClientAuthenticationError: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:6313b9d1-701e-007c-7d83-19707e000000
Time:2026-07-22T02:37:45.3556485Z
ErrorCode:InvalidAuthenticationInfo
authenticationerrordetail:Audience validation failed. Audience did not match.
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:6313b9d1-701e-007c-7d83-19707e000000
Time:2026-07-22T02:37:45.3556485Z</Message><AuthenticationErrorDetail>Audience validation failed. Audience did not match.</AuthenticationErrorDetail></Error>
Raw output
Traceback (most recent call last):
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 914, in __run_case
    _call_with_timeout(
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 60, in _call_with_timeout
    func_timeout(
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/func_timeout/dafunc.py", line 108, in func_timeout
    raise_exception(exception)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/func_timeout/py3_raise.py", line 7, in raise_exception
    raise exception[0] from None
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 649, in wrapper
    func(*args, **parameters)
  File "/home/vsts/work/1/s/lisa/microsoft/testsuites/vm_extensions/runtime_extensions/run_commandv1.py", line 421, in verify_private_script_without_sas_run_failed
    blob_url = retrieve_storage_blob_url(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vsts/work/1/s/lisa/microsoft/testsuites/vm_extensions/runtime_extensions/common.py", line 179, in retrieve_storage_blob_url
    container_client = get_or_create_storage_container(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vsts/work/1/s/lisa/sut_orchestrator/azure/common.py", line 1943, in get_or_create_storage_container
    if not container_client.exists():
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_container_client.py", line 554, in exists
    process_storage_error(error)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_shared/response_handlers.py", line 186, in process_storage_error
    exec("raise error from None")   # pylint: disable=exec-used # nosec
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 1, in <module>
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_container_client.py", line 550, in exists
    self._client.container.get_properties(**kwargs)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_generated/operations/_container_operations.py", line 1070, in get_properties
    map_error(status_code=response.status_code, response=response, error_map=error_map)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/exceptions.py", line 163, in map_error
    raise error
azure.core.exceptions.ClientAuthenticationError: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:6313b9d1-701e-007c-7d83-19707e000000
Time:2026-07-22T02:37:45.3556485Z
ErrorCode:InvalidAuthenticationInfo
authenticationerrordetail:Audience validation failed. Audience did not match.
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:6313b9d1-701e-007c-7d83-19707e000000
Time:2026-07-22T02:37:45.3556485Z</Message><AuthenticationErrorDetail>Audience validation failed. Audience did not match.</AuthenticationErrorDetail></Error>

Check failure on line 1 in verify_private_sas_script_run (lisa_0_26)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Github PR Validation

verify_private_sas_script_run (lisa_0_26)

failed. ClientAuthenticationError: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:4d93a981-d01e-00be-3083-1936f8000000
Time:2026-07-22T02:41:54.2764215Z
ErrorCode:InvalidAuthenticationInfo
authenticationerrordetail:Audience validation failed. Audience did not match.
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:4d93a981-d01e-00be-3083-1936f8000000
Time:2026-07-22T02:41:54.2764215Z</Message><AuthenticationErrorDetail>Audience validation failed. Audience did not match.</AuthenticationErrorDetail></Error>
Raw output
Traceback (most recent call last):
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 914, in __run_case
    _call_with_timeout(
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 60, in _call_with_timeout
    func_timeout(
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/func_timeout/dafunc.py", line 108, in func_timeout
    raise_exception(exception)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/func_timeout/py3_raise.py", line 7, in raise_exception
    raise exception[0] from None
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 649, in wrapper
    func(*args, **parameters)
  File "/home/vsts/work/1/s/lisa/microsoft/testsuites/vm_extensions/runtime_extensions/run_commandv1.py", line 497, in verify_private_sas_script_run
    blob_url = retrieve_storage_blob_url(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vsts/work/1/s/lisa/microsoft/testsuites/vm_extensions/runtime_extensions/common.py", line 179, in retrieve_storage_blob_url
    container_client = get_or_create_storage_container(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vsts/work/1/s/lisa/sut_orchestrator/azure/common.py", line 1943, in get_or_create_storage_container
    if not container_client.exists():
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_container_client.py", line 554, in exists
    process_storage_error(error)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_shared/response_handlers.py", line 186, in process_storage_error
    exec("raise error from None")   # pylint: disable=exec-used # nosec
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 1, in <module>
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_container_client.py", line 550, in exists
    self._client.container.get_properties(**kwargs)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_generated/operations/_container_operations.py", line 1070, in get_properties
    map_error(status_code=response.status_code, response=response, error_map=error_map)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/exceptions.py", line 163, in map_error
    raise error
azure.core.exceptions.ClientAuthenticationError: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:4d93a981-d01e-00be-3083-1936f8000000
Time:2026-07-22T02:41:54.2764215Z
ErrorCode:InvalidAuthenticationInfo
authenticationerrordetail:Audience validation failed. Audience did not match.
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:4d93a981-d01e-00be-3083-1936f8000000
Time:2026-07-22T02:41:54.2764215Z</Message><AuthenticationErrorDetail>Audience validation failed. Audience did not match.</AuthenticationErrorDetail></Error>

Check failure on line 1 in verify_public_script_run (lisa_0_16)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Github PR Validation

verify_public_script_run (lisa_0_16)

failed. ClientAuthenticationError: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:a535f964-201e-00aa-6b84-197e97000000
Time:2026-07-22T02:46:18.0520118Z
ErrorCode:InvalidAuthenticationInfo
authenticationerrordetail:Audience validation failed. Audience did not match.
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:a535f964-201e-00aa-6b84-197e97000000
Time:2026-07-22T02:46:18.0520118Z</Message><AuthenticationErrorDetail>Audience validation failed. Audience did not match.</AuthenticationErrorDetail></Error>
Raw output
Traceback (most recent call last):
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 914, in __run_case
    _call_with_timeout(
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 60, in _call_with_timeout
    func_timeout(
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/func_timeout/dafunc.py", line 108, in func_timeout
    raise_exception(exception)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/func_timeout/py3_raise.py", line 7, in raise_exception
    raise exception[0] from None
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 649, in wrapper
    func(*args, **parameters)
  File "/home/vsts/work/1/s/lisa/microsoft/testsuites/vm_extensions/runtime_extensions/run_commandv1.py", line 147, in verify_public_script_run
    blob_url = retrieve_storage_blob_url(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vsts/work/1/s/lisa/microsoft/testsuites/vm_extensions/runtime_extensions/common.py", line 179, in retrieve_storage_blob_url
    container_client = get_or_create_storage_container(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vsts/work/1/s/lisa/sut_orchestrator/azure/common.py", line 1943, in get_or_create_storage_container
    if not container_client.exists():
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_container_client.py", line 554, in exists
    process_storage_error(error)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_shared/response_handlers.py", line 186, in process_storage_error
    exec("raise error from None")   # pylint: disable=exec-used # nosec
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 1, in <module>
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_container_client.py", line 550, in exists
    self._client.container.get_properties(**kwargs)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_generated/operations/_container_operations.py", line 1070, in get_properties
    map_error(status_code=response.status_code, response=response, error_map=error_map)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/exceptions.py", line 163, in map_error
    raise error
azure.core.exceptions.ClientAuthenticationError: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:a535f964-201e-00aa-6b84-197e97000000
Time:2026-07-22T02:46:18.0520118Z
ErrorCode:InvalidAuthenticationInfo
authenticationerrordetail:Audience validation failed. Audience did not match.
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:a535f964-201e-00aa-6b84-197e97000000
Time:2026-07-22T02:46:18.0520118Z</Message><AuthenticationErrorDetail>Audience validation failed. Audience did not match.</AuthenticationErrorDetail></Error>

Check failure on line 1 in verify_second_public_script_run (lisa_0_17)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / Github PR Validation

verify_second_public_script_run (lisa_0_17)

failed. ClientAuthenticationError: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:eaf35682-b01e-0063-7184-19c37a000000
Time:2026-07-22T02:46:18.3589067Z
ErrorCode:InvalidAuthenticationInfo
authenticationerrordetail:Audience validation failed. Audience did not match.
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:eaf35682-b01e-0063-7184-19c37a000000
Time:2026-07-22T02:46:18.3589067Z</Message><AuthenticationErrorDetail>Audience validation failed. Audience did not match.</AuthenticationErrorDetail></Error>
Raw output
Traceback (most recent call last):
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 914, in __run_case
    _call_with_timeout(
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 60, in _call_with_timeout
    func_timeout(
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/func_timeout/dafunc.py", line 108, in func_timeout
    raise_exception(exception)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/func_timeout/py3_raise.py", line 7, in raise_exception
    raise exception[0] from None
  File "/home/vsts/work/1/s/lisa/testsuite.py", line 649, in wrapper
    func(*args, **parameters)
  File "/home/vsts/work/1/s/lisa/microsoft/testsuites/vm_extensions/runtime_extensions/run_commandv1.py", line 180, in verify_second_public_script_run
    first_blob_url = retrieve_storage_blob_url(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vsts/work/1/s/lisa/microsoft/testsuites/vm_extensions/runtime_extensions/common.py", line 179, in retrieve_storage_blob_url
    container_client = get_or_create_storage_container(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vsts/work/1/s/lisa/sut_orchestrator/azure/common.py", line 1943, in get_or_create_storage_container
    if not container_client.exists():
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_container_client.py", line 554, in exists
    process_storage_error(error)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_shared/response_handlers.py", line 186, in process_storage_error
    exec("raise error from None")   # pylint: disable=exec-used # nosec
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 1, in <module>
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_container_client.py", line 550, in exists
    self._client.container.get_properties(**kwargs)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/tracing/decorator.py", line 119, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/storage/blob/_generated/operations/_container_operations.py", line 1070, in get_properties
    map_error(status_code=response.status_code, response=response, error_map=error_map)
  File "/opt/hostedtoolcache/Python/3.12.13/x64/lib/python3.12/site-packages/azure/core/exceptions.py", line 163, in map_error
    raise error
azure.core.exceptions.ClientAuthenticationError: Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:eaf35682-b01e-0063-7184-19c37a000000
Time:2026-07-22T02:46:18.3589067Z
ErrorCode:InvalidAuthenticationInfo
authenticationerrordetail:Audience validation failed. Audience did not match.
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidAuthenticationInfo</Code><Message>Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
RequestId:eaf35682-b01e-0063-7184-19c37a000000
Time:2026-07-22T02:46:18.3589067Z</Message><AuthenticationErrorDetail>Audience validation failed. Audience did not match.</AuthenticationErrorDetail></Error>