Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • I infra-azure-provisioning
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 51
    • Issues 51
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe Software
  • Platform
  • Deployment and Operations
  • infra-azure-provisioning
  • Issues
  • #162

Closed
Open
Created May 19, 2021 by Piotr Szwed@pszwed

"Insufficient privileges to complete the operation."

After 100% fresh installation of the entire stack and careful execution of all installation instructions from: https://community.opengroup.org/osdu/platform/deployment-and-operations/infra-azure-provisioning

I am getting the following error(ADO: infrastructure-central-resources: Execute Build):

2021-05-19T11:11:13.1848733Z TestTemplate 2021-05-19T11:11:13Z command.go:53: Running command terraform with args [plan -input=false -out /tmp/kg1BoD.plan -var resource_group_location=centralus -var prefix=osdu-testingdffhsu]
2021-05-19T11:11:24.5249607Z TestTemplate 2021-05-19T11:11:24Z command.go:121: [31m
2021-05-19T11:11:24.5252682Z TestTemplate 2021-05-19T11:11:24Z command.go:121: [1m[31mError: [0m[0m[1mlisting Service Principals: graphrbac.ServicePrincipalsClient#List: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="Unknown" Message="Unknown service error" Details=[{"odata.error":{"code":"Authorization_RequestDenied","date":"2021-05-19T11:11:18","message":{"lang":"en","value":"Insufficient privileges to complete the operation."},"requestId":"1467252e-8f5e-465b-9ab6-d33e7033e0e9"}}][0m
2021-05-19T11:11:24.5254854Z TestTemplate 2021-05-19T11:11:24Z command.go:121: 
2021-05-19T11:11:24.5256219Z TestTemplate 2021-05-19T11:11:24Z command.go:121: [0m  on ../../../modules/providers/azure/ad-application/main.tf line 15, in data "azuread_service_principal" "main":
2021-05-19T11:11:24.5257656Z TestTemplate 2021-05-19T11:11:24Z command.go:121:   15: data "azuread_service_principal" "main" [4m{[0m
2021-05-19T11:11:24.5258763Z TestTemplate 2021-05-19T11:11:24Z command.go:121: [0m
2021-05-19T11:11:24.5259776Z TestTemplate 2021-05-19T11:11:24Z command.go:121: [0m[0m
2021-05-19T11:11:24.8944424Z TestTemplate 2021-05-19T11:11:24Z retry.go:80: Returning due to fatal error: FatalError{Underlying: exit status 1}
2021-05-19T11:11:24.8949649Z TestTemplate 2021-05-19T11:11:24Z retry.go:72: terraform [workspace list]
2021-05-19T11:11:24.8951012Z TestTemplate 2021-05-19T11:11:24Z command.go:53: Running command terraform with args [workspace list]
2021-05-19T11:11:26.1146980Z TestTemplate 2021-05-19T11:11:26Z command.go:121:   default
2021-05-19T11:11:26.1148841Z TestTemplate 2021-05-19T11:11:26Z command.go:121:   cr-demo
2021-05-19T11:11:26.1150969Z TestTemplate 2021-05-19T11:11:26Z command.go:121: * osdu-testing-tmm8at
2021-05-19T11:11:26.1152160Z TestTemplate 2021-05-19T11:11:26Z command.go:121: 
2021-05-19T11:11:26.1169494Z TestTemplate 2021-05-19T11:11:26Z retry.go:72: terraform [workspace select cr-demo]
2021-05-19T11:11:26.1170912Z TestTemplate 2021-05-19T11:11:26Z command.go:53: Running command terraform with args [workspace select cr-demo]
2021-05-19T11:11:27.3407345Z TestTemplate 2021-05-19T11:11:27Z command.go:121: [0m[32mSwitched to workspace "cr-demo".[0m
2021-05-19T11:11:27.3440007Z TestTemplate 2021-05-19T11:11:27Z retry.go:72: terraform [workspace show]
2021-05-19T11:11:27.3442188Z TestTemplate 2021-05-19T11:11:27Z command.go:53: Running command terraform with args [workspace show]
2021-05-19T11:11:27.3974206Z TestTemplate 2021-05-19T11:11:27Z command.go:121: cr-demo
2021-05-19T11:11:27.3998490Z TestTemplate 2021-05-19T11:11:27Z retry.go:72: terraform [workspace delete osdu-testing-tmm8at]
2021-05-19T11:11:27.3999857Z TestTemplate 2021-05-19T11:11:27Z command.go:53: Running command terraform with args [workspace delete osdu-testing-tmm8at]
2021-05-19T11:11:31.0245804Z TestTemplate 2021-05-19T11:11:31Z command.go:121: [0m[32mDeleted workspace "osdu-testing-tmm8at"![0m
2021-05-19T11:11:31.0283785Z --- FAIL: TestTemplate (32.44s)
2021-05-19T11:11:31.0285919Z     cmd.go:42: FatalError{Underlying: exit status 1}
2021-05-19T11:11:31.0286843Z FAIL
2021-05-19T11:11:31.0288176Z FAIL	github.com/microsoft/cobalt/infra/templates/osdu-r3-mvp/central_resources/tests/unit	32.443s
2021-05-19T11:11:31.0591522Z ##[error]Script failed with error: Error: The process '/bin/bash' failed with exit code 1
2021-05-19T11:11:31.0613620Z [command]/usr/bin/az account clear
2021-05-19T11:11:31.3513797Z ##[section]Finishing: Run Unit Tests
Assignee
Assign to
Time tracking