You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When CAPI and CAPZ objects are created to describe an existing AKS cluster, CAPZ AzureManagedMachinePool controller tries to reconcile the created AzureManagedMachinePool object. When it tries to call CreateOrUpdate for the agent pool, Azure API returns the following error:
"error creating AzureManagedMachinePool default/aks6pool1: failed to reconcile machine pool aks6pool1: failed to create or update agent pool: failed to begin operation: containerservice.AgentPoolsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code=\"SystemPoolMustBeLinux\" Message=\"System node pool must be linux. Nodepool name: aks6pool1.\"" "controller"="azuremanagedmachinepool" "name"="aks6pool1" "namespace"="default"
AzureManagedMachinePool controller CreateOrUpdate call for the agent pool is successful and Azure API does not return errors.
This can be achieved by setting OsType field to Linux in ManagedClusterAgentPoolProfileProperties in containerservice.AgentPool.
Anything else you would like to add:
I have tested the suggested solution of setting OsType field to Linux in ManagedClusterAgentPoolProfileProperties in containerservice.AgentPool, and it's working. I'll submit a PR for this.
nprokopic
changed the title
OS type is not set for AzureManagedMachinePool when calling Azure API
OS type is not set for managed node pool when calling Azure API
Feb 11, 2021
/kind bug
What steps did you take and what happened:
Related to #1173
When CAPI and CAPZ objects are created to describe an existing AKS cluster, CAPZ
AzureManagedMachinePool
controller tries to reconcile the createdAzureManagedMachinePool
object. When it tries to callCreateOrUpdate
for the agent pool, Azure API returns the following error:Used CRs:
What did you expect to happen:
AzureManagedMachinePool
controllerCreateOrUpdate
call for the agent pool is successful and Azure API does not return errors.This can be achieved by setting
OsType
field toLinux
inManagedClusterAgentPoolProfileProperties
incontainerservice.AgentPool
.Anything else you would like to add:
I have tested the suggested solution of setting
OsType
field toLinux
inManagedClusterAgentPoolProfileProperties
incontainerservice.AgentPool
, and it's working. I'll submit a PR for this.Environment:
cluster-api-provider-azure version: latest commit
417eccbe0ca8a433f44d1fb2a3a473c494a5ada3
Kubernetes version: (use
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: