Skip to content

[container] "Test Yum Package" intermittently fails on test_container_create_with_vnet #19835

@jiasli

Description

@jiasli

Describe the bug

"Test Yum Package" intermittently fails on test_container_create_with_vnet

https://dev.azure.com/azure-sdk/public/_build/results?buildId=1135686&view=logs&j=1e6fba43-bdcf-51f0-a062-3712c33fbb51&t=a1e787eb-ec67-5c3d-79ec-0c68f4f59d65


/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py:121: in handler
    return op(**command_args)
/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/container/custom.py:226: in create_container
    name, cgroup)
/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/util.py:646: in sdk_no_wait
    return func(*args, **kwargs)
/usr/lib64/az/lib/python3.6/site-packages/azure/mgmt/containerinstance/operations/_container_groups_operations.py:358: in begin_create_or_update
    **kwargs
/usr/lib64/az/lib/python3.6/site-packages/azure/mgmt/containerinstance/operations/_container_groups_operations.py:302: in _create_or_update_initial
    map_error(status_code=response.status_code, response=response, error_map=error_map)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

status_code = 404
response = <RequestsTransportResponse: 404 Not Found, Content-Type: application/json; charset=utf-8>
error_map = {401: <class 'azure.core.exceptions.ClientAuthenticationError'>, 404: <class 'azure.core.exceptions.ResourceNotFoundError'>, 409: <class 'azure.core.exceptions.ResourceExistsError'>}

    def map_error(status_code, response, error_map):
        if not error_map:
            return
        error_type = error_map.get(status_code)
        if not error_type:
            return
        error = error_type(response=response)
>       raise error
E       azure.core.exceptions.ResourceNotFoundError: (SubscriptionNotFound) The subscription '00000000-0000-0000-0000-000000000000' could not be found.

/usr/lib64/az/lib/python3.6/site-packages/azure/core/exceptions.py:102: ResourceNotFoundError
------------------------------ Captured log call -------------------------------
WARNING  msrest.serialization:serialization.py:187 Readonly attribute name will be ignored in class <class 'azure.mgmt.network.v2021_02_01.models._models_py3.VirtualNetwork'>
WARNING  msrest.serialization:serialization.py:185 location is not a known attribute of class <class 'azure.mgmt.network.v2021_02_01.models._models_py3.Subnet'> and will be ignored
----------- generated xml file: /azure_cli_test_result/container.xml -----------
=========================== short test summary info ============================
FAILED tests/latest/test_container_commands.py::AzureContainerInstanceScenarioTest::test_container_create_with_vnet

The root cause should be similar to #17185

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions