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

[ACS] az acs create does not does not add authorization to an SP #1620

Closed
olostan opened this issue Dec 27, 2016 · 5 comments
Closed

[ACS] az acs create does not does not add authorization to an SP #1620

olostan opened this issue Dec 27, 2016 · 5 comments
Labels
ACS az acs/aks/openshift Service Attention This issue is responsible by Azure service team.

Comments

@olostan
Copy link

olostan commented Dec 27, 2016

Just after running az acs create --orchestrator-type=kubernetes --resource-group=<rgname> --dns-prefix=<appname> --name=<appname>

Operation completed without error
waiting for AAD role to propogate...........done
{
  "id": "/subscriptions//resourceGroups/edicircle/providers/Microsoft.Resources/deployments/azurecli1482863184.1523824",
  "name": "azurecli1482863184.1523824",
  "properties": {
    "correlationId": "ebfb44b5-5b17-4fe0-b642-22a07ad58e52",
    "debugSetting": null,
    "dependencies": [],
    "mode": "Incremental",
    "outputs": null,
    "parameters": {
      "clientSecret": {
        "type": "SecureString"
      }
    },
    "parametersLink": null,
    "providers": [
      {
        "id": null,
        "namespace": "Microsoft.ContainerService",
        "registrationState": null,
        "resourceTypes": [
          {
            "aliases": null,
            "apiVersions": null,
            "locations": [
              "westeurope"
            ],
            "properties": null,
            "resourceType": "containerServices"
          }
        ]
      }
    ],
    "provisioningState": "Succeeded",
    "template": null,
    "templateLink": null,
    "timestamp": "2016-12-27T18:34:13.440219+00:00"
  },
  "resourceGroup": ""
}

But after startup I have such logs in docker container:

Unable to construct api.Node object for kubelet: failed to get external ID from cloud provider: compute.VirtualMachinesClient#Get: 
  Failure responding to request: StatusCode=403 
-- Original Error: autorest/azure: Service returned an error. 
  Status=403 Code="AuthorizationFailed" 
  Message="The client '<guid>' with object id '<guid>' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope 
    '/subscriptions/<guid>/resourceGroups/edicircle/providers/Microsoft.Compute/virtualMachines/k8s-master-f02f8c45-0'."

I would greatly appreciate any workaround!

az --version
azure-cli (0.1.0b11)

acr (0.1.0b11)
acs (0.1.0b11)
appservice (0.1.0b11)
cloud (0.1.0b11)
component (0.1.0b11)
configure (0.1.0b11)
container (0.1.0b11)
context (0.1.0b11)
core (0.1.0b11)
feedback (0.1.0b11)
network (0.1.0b11)
nspkg (0.1.0b11)
profile (0.1.0b11)
resource (0.1.0b11)
role (0.1.0b11)
storage (0.1.0b11)
vm (0.1.0b11)

Python (Darwin) 2.7.10 (default, Jul 30 2016, 19:40:32)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]

@olostan
Copy link
Author

olostan commented Dec 29, 2016

I have an suspicion that problem was because I had "Contribuer" role nad seems and I was not able to creat other "Contributers"

@tjprescott tjprescott added the ACS az acs/aks/openshift label Jan 3, 2017
@brendandburns
Copy link
Member

I'll try to reproduce this. We should at the very least error out in the CLI in this case.

@advishnuprasad
Copy link

@olostan I faced the same issue. I am also having "contributor" role. But why would it try to create other contributors ?

@brendandburns
Copy link
Member

Kubernetes needs contributor privileges in order to do things on your behalf like create load balancers and mount disks.

@brendandburns
Copy link
Member

I think this can now be closed.

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
@haroldrandom haroldrandom added ACS az acs/aks/openshift Service Attention This issue is responsible by Azure service team. labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACS az acs/aks/openshift Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

6 participants