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

PostgreSQL Hyperscale Deployment on EKS - data controller deployment failure #743

Closed
ischepin opened this issue Sep 3, 2021 · 1 comment · Fixed by #744
Closed

PostgreSQL Hyperscale Deployment on EKS - data controller deployment failure #743

ischepin opened this issue Sep 3, 2021 · 1 comment · Fixed by #744
Assignees
Labels
arc_data Azure Arc-enabled data services related bug Something isn't working

Comments

@ischepin
Copy link

ischepin commented Sep 3, 2021

Scenario which you are working on
https://azurearcjumpstart.io/azure_arc_jumpstart/azure_arc_data/eks/eks_postgres_hs_terraform/

Describe the bug
At "Windows Login & Post Deployment" stage when script is running inside windows client machine there is an error during deployment of Azure data controller:
{"error":{"code":"InvalidTemplateDeployment","message":"The template deployment 'dataController' is not valid according to the validation procedure. The tracking id is '1dd0e5aa-a47e-49a4-86dd-1cb8918d35d2'. See inner errors for details.","details":[{"code":"OpenAPISpecValidationFailedForTemplateDeploymentResources","message":"One or more resources in template deployment preflight validation request failed during OpenApi spec (swagger) validation. Please check error details for the resource identifiers.","details":[{"code":"HttpRequestPayloadAPISpecValidationFailed","target":"/subscriptions/a088ac12-28e0-48d5-a00d-9f5d48c7cfbb/resourceGroups/RG/providers/Microsoft.AzureArcData/dataControllers/jumpstart-dc","message":"HTTP request payload failed validation against API specification with one or more errors. Please see details for more information.","details":[{"code":"InvalidFormat","message":"Object didn't pass validation for format uuid: . Paths in payload: '$.properties.logAnalyticsWorkspaceConfig.workspaceId'"}]}]}]}}
As a result, data controller is not deployed and script waits for it indefinitely. I tried the entire scenario from scratch and got the same error.

To Reproduce
Steps to reproduce the behavior:

  1. Follow steps from "Deploy an Azure PostgreSQL Hyperscale Deployment on EKS using Terraform" scenario

Expected behavior
Data controller is deployed

Script output
arc.txt

@mdrakiburrahman
Copy link
Contributor

Thanks for flagging this @ischepin - I was able to repro the issue.

This PR should fix it: #744 - I've validated on EKS.

The issue was ARM added an extra layer of validation in to check for Log Analytics WS Params - which weren't being passed in via Terraform.

You have 2 options to proceed with the scenario:

  1. Wait for the PR to get merged. Tear down your existing env, refresh your fork from main
  2. Look at the PR - in your existing env, run the cli commands from the PR to deploy the WS. Replace the DC deployment ARM templates from main, run this portion to update the placeholder in the ARM templates. Redeploy the DC ARM templates, and you should be able to deploy Postgres after that.

I'm going to keep the issue open until the PR is merged in.

@likamrat likamrat added arc_data Azure Arc-enabled data services related and removed triage issue or feature up for triage labels Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arc_data Azure Arc-enabled data services related bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants