Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[azure-mgmt-monitor] Ci is failing #19389

Closed
rakshith91 opened this issue Jun 22, 2021 · 1 comment
Closed

[azure-mgmt-monitor] Ci is failing #19389

rakshith91 opened this issue Jun 22, 2021 · 1 comment
Assignees
Labels
Mgmt This issue is related to a management-plane library. Monitor Monitor, Monitor Ingestion, Monitor Query
Milestone

Comments

@rakshith91
Copy link
Contributor

rakshith91 commented Jun 22, 2021

https://dev.azure.com/azure-sdk/public/_build/results?buildId=959970&view=ms.vss-test-web.build-test-results-tab&runId=20521850&resultId=100009&paneView=debug

zlib.error: Error -3 while decompressing data: incorrect header check
self = <test_cli_mgmt_monitor_async.MgmtMonitorClientTest testMethod=test_monitor_diagnostic_settings>
resource_group = FakeResource(name='rgname', id='/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname')

    @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
    def test_monitor_diagnostic_settings(self, resource_group):
        SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID
        RESOURCE_GROUP = resource_group.name
        # RESOURCE_URI = "subscriptions/{}/resourcegroups/{}".format(SUBSCRIPTION_ID, RESOURCE_GROUP)
        STORAGE_ACCOUNT_NAME = self.get_resource_name("storageaccountx")
        NAMESPACE_NAME = self.get_resource_name("namespacex")
        EVENTHUB_NAME = self.get_resource_name("eventhubx")
        AUTHORIZATIONRULE_NAME = self.get_resource_name("authorizationrulex")
        INSIGHT_NAME = self.get_resource_name("insightx")
        WORKSPACE_NAME = self.get_resource_name("workspacex")
        WORKFLOW_NAME = self.get_resource_name("workflow")
    
        if self.is_live:
            storage_account_id = self.create_storage_account(RESOURCE_GROUP, AZURE_LOCATION, STORAGE_ACCOUNT_NAME)
            self.create_event_hub_authorization_rule(RESOURCE_GROUP, AZURE_LOCATION, NAMESPACE_NAME, EVENTHUB_NAME, AUTHORIZATIONRULE_NAME, storage_account_id)
            workspace = self.create_workspace(RESOURCE_GROUP, AZURE_LOCATION, WORKSPACE_NAME)
            workflow = self.create_workflow(RESOURCE_GROUP, AZURE_LOCATION, WORKFLOW_NAME)
            RESOURCE_URI = workflow.id
            workspace_id = workspace.id
        else:
            RESOURCE_URI = "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/Microsoft.Logic/workflows/" + WORKFLOW_NAME
            workspace_id = "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/Microsoft.OperationalInsights/workspaces/" + WORKSPACE_NAME
    
        # Creates or Updates the diagnostic setting[put]
        BODY = {
          "storage_account_id": "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/Microsoft.Storage/storageAccounts/" + STORAGE_ACCOUNT_NAME + "",
          "workspace_id": workspace_id,
          "event_hub_authorization_rule_id": "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/microsoft.eventhub/namespaces/" + NAMESPACE_NAME + "/authorizationrules/" + AUTHORIZATIONRULE_NAME,
          "event_hub_name": EVENTHUB_NAME,
          "metrics": [],
          "logs": [
            {
              "category": "WorkflowRuntime",
              "enabled": True,
              "retention_policy": {
                "enabled": False,
                "days": "0"
              }
            }
          ],
        }
>       diagnostic_settings = self.event_loop.run_until_complete(
            self.mgmt_client.diagnostic_settings.create_or_update(RESOURCE_URI, INSIGHT_NAME, BODY)
        )

tests/test_cli_mgmt_monitor_async.py:326: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.5/x64/lib/python3.9/asyncio/base_events.py:642: in run_until_complete
    return future.result()
.tox/whl/lib/python3.9/site-packages/azure/mgmt/monitor/v2017_05_01_preview/aio/operations/_diagnostic_settings_operations.py:151: in create_or_update
    pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
.tox/whl/lib/python3.9/site-packages/azure/core/pipeline/_base_async.py:215: in run
    return await first_node.send(pipeline_request)
.tox/whl/lib/python3.9/site-packages/azure/core/pipeline/_base_async.py:83: in send
    response = await self.next.send(request)  # type: ignore
.tox/whl/lib/python3.9/site-packages/azure/mgmt/core/policies/_base_async.py:47: in send
    response = await self.next.send(request)
.tox/whl/lib/python3.9/site-packages/azure/core/pipeline/_base_async.py:83: in send
    response = await self.next.send(re
@ghost ghost added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 22, 2021
@rakshith91 rakshith91 added Mgmt This issue is related to a management-plane library. Monitor Monitor, Monitor Ingestion, Monitor Query labels Jun 22, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 22, 2021
@rakshith91 rakshith91 added this to the [2021] July milestone Jun 22, 2021
@lmazuel lmazuel modified the milestones: [2021] July, [2021] August Jul 14, 2021
@lmazuel
Copy link
Member

lmazuel commented Aug 18, 2021

Closing, since I don't see regular failure anymore. If not ok, please re-open @rakshith91

@lmazuel lmazuel closed this as completed Aug 18, 2021
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Jun 10, 2022
[Go] Add go track2 config (Azure#19389)

* [Go] Add go track2 config

* add powerplatform multi-api

* other

* fix

* fix

* cancel devspace

* cancel iotspaces
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Jun 10, 2022
[Go] Add go track2 config (Azure#19389)

* [Go] Add go track2 config

* add powerplatform multi-api

* other

* fix

* fix

* cancel devspace

* cancel iotspaces
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Jun 10, 2022
[Go] Add go track2 config (Azure#19389)

* [Go] Add go track2 config

* add powerplatform multi-api

* other

* fix

* fix

* cancel devspace

* cancel iotspaces
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Jun 10, 2022
[Go] Add go track2 config (Azure#19389)

* [Go] Add go track2 config

* add powerplatform multi-api

* other

* fix

* fix

* cancel devspace

* cancel iotspaces
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Jun 10, 2022
[Go] Add go track2 config (Azure#19389)

* [Go] Add go track2 config

* add powerplatform multi-api

* other

* fix

* fix

* cancel devspace

* cancel iotspaces
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Jun 10, 2022
[Go] Add go track2 config (Azure#19389)

* [Go] Add go track2 config

* add powerplatform multi-api

* other

* fix

* fix

* cancel devspace

* cancel iotspaces
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Mgmt This issue is related to a management-plane library. Monitor Monitor, Monitor Ingestion, Monitor Query
Projects
None yet
Development

No branches or pull requests

4 participants