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

userAssignedIdentityID in azure.json is wrong when using user assinged MSI #2164

Closed
ArchangelSDY opened this issue Mar 11, 2022 · 3 comments · Fixed by #2214
Closed

userAssignedIdentityID in azure.json is wrong when using user assinged MSI #2164

ArchangelSDY opened this issue Mar 11, 2022 · 3 comments · Fixed by #2214
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@ArchangelSDY
Copy link

ArchangelSDY commented Mar 11, 2022

/kind bug

[Before submitting an issue, have you checked the Troubleshooting Guide?]

What steps did you take and what happened:
[A clear and concise description of what the bug is.]

  1. Create a control plane AzureMachineTemplate that specifies userAssignedIdentities. For example,
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureMachineTemplate
metadata:
  name: foo-control-plane
  namespace: foo
spec:
  template:
    spec:
      dataDisks:
      - diskSizeGB: 256
        lun: 0
        nameSuffix: etcddisk
      identity: UserAssigned
      osDisk:
        diskSizeGB: 128
        osType: Linux
      sshPublicKey: 
      userAssignedIdentities:
      - providerID: /subscriptions/...
      - providerID: /subscriptions/...
      vmSize: Standard_F4s
  1. Check the generated azure.json on control plane nodes. The userAssignedIdentityID looks like:
{
    "userAssignedIdentityId": "/subscriptions/..."
}

What did you expect to happen:
There are two issues here:

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • cluster-api-provider-azure version: v1.1.2
  • Kubernetes version: (use kubectl version): 1.22
  • OS (e.g. from /etc/os-release): ubuntu 20.04
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Mar 11, 2022
@jackfrancis
Copy link
Contributor

Confirmed that the value in azure.json should be the clientID of the MSI and not the resource URI

@CecileRobertMichon
Copy link
Contributor

/milestone v1.3
/help

@k8s-ci-robot k8s-ci-robot added this to the v1.3 milestone Mar 11, 2022
@k8s-ci-robot k8s-ci-robot added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Mar 11, 2022
@mboersma
Copy link
Contributor

/assign
/remove-help

@k8s-ci-robot k8s-ci-robot removed the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label Mar 30, 2022
@CecileRobertMichon CecileRobertMichon modified the milestones: v1.3, v1.4 May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants