Open T1loc opened 4 years ago
@T1loc My execution on 2.9.2 was successful. Could you please share your parameter information and location? I'll try again. Or you can reinstall ansible and retry it. Thank you very much! --"sudo PIP install ansible[azure]== 2.9.2 -I"
TASK [for test] ************************************************************************************************
task path: /home/fred/task/azure_338/tasks.yml:22
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: fred
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1576463885.19-278245734078679 `" && echo ansible-tmp-1576463885.19-278245734078679="` echo $HOME/.ansible/tmp/ansible-tmp-1576463885.19-278245734078679 `" ) && sleep 0'
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/azure_rm_aks.py
<127.0.0.1> PUT /home/fred/.ansible/tmp/ansible-local-5626ikVeve/tmptmG0Y2 TO /home/fred/.ansible/tmp/ansible-tmp-1576463885.19-278245734078679/AnsiballZ_azure_rm_aks.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/fred/.ansible/tmp/ansible-tmp-1576463885.19-278245734078679/ /home/fred/.ansible/tmp/ansible-tmp-1576463885.19-278245734078679/AnsiballZ_azure_rm_aks.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /home/fred/.ansible/tmp/ansible-tmp-1576463885.19-278245734078679/AnsiballZ_azure_rm_aks.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/fred/.ansible/tmp/ansible-tmp-1576463885.19-278245734078679/ > /dev/null 2>&1 && sleep 0'
[WARNING]: Azure API profile latest does not define an entry for ContainerServiceClient
changed: [127.0.0.1] => {
"aad_profile": {},
"addon": {},
"agent_pool_profiles": [
{
"count": 1,
"name": "default",
"os_disk_size_gb": 100,
"os_type": "Linux",
"storage_profile": "ManagedDisks",
"vm_size": "Standard_DS1_v2",
"vnet_subnet_id": null
}
],
"changed": true,
"dns_prefix": "fredaks01",
"enable_rbac": true,
"fqdn": "fredaks01-2a51dbb0.hcp.eastus.azmk8s.io",
"id": xxxxxx/managedClusters/fredaks01",
"invocation": {
"module_args": {
"aad_profile": null,
"ad_user": null,
"addon": null,
"adfs_authority_url": null,
"agent_pool_profiles": [
{
"count": 1,
"dns_prefix": null,
"name": "default",
"os_disk_size_gb": null,
"os_type": null,
"ports": null,
"storage_profiles": null,
"vm_size": "Standard_DS1_v2",
"vnet_subnet_id": null
}
],
"api_profile": "latest",
"append_tags": true,
"auth_source": null,
"cert_validation_mode": null,
"client_id": null,
"cloud_environment": "AzureCloud",
"dns_prefix": "fredaks01",
"enable_rbac": true,
"kubernetes_version": "1.14.8",
"linux_profile": {
"admin_username": "azureuser",
"ssh_key": "xxxxxx"
},
"location": null,
"name": "fredaks01",
"network_profile": null,
"password": null,
"profile": null,
"resource_group": "v-xisuRG02",
"secret": null,
"service_principal": {
"client_id": "ae12946a-f4de-4609-a5d1-68c36604f3b0",
"client_secret": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"state": "present",
"subscription_id": null,
"tags": {
"Environment": "test"
},
"tenant": null
}
},
"kube_config": "apiVersion: v1\nclusters:\n- cluster:\n xxxx,
"kubernetes_version": "1.14.8",
"linux_profile": {
"admin_username": "azureuser",
"ssh_key": "xxxxxxxx"
},
"location": "eastus",
"name": "fredaks01",
"network_profile": {
"dns_service_ip": "10.0.0.10",
"docker_bridge_cidr": "172.17.0.1/16",
"network_plugin": "kubenet",
"network_policy": null,
"pod_cidr": "10.244.0.0/16",
"service_cidr": "10.0.0.0/16"
},
"node_resource_group": "MC_v-xisuRG02_fredaks01_eastus",
"provisioning_state": "Succeeded",
"service_principal_profile": {
"client_id": "ae12946a-f4de-4609-a5d1-68c36604f3b0"
},
"tags": {
"Environment": "test"
},
"type": "Microsoft.ContainerService/ManagedClusters"
}
kindly ping
Sorry for the delay,
I use the westeurope location. And : p task.args give me :
agent_pool_profiles': [{'count': 5,
'name': 'default',
'vm_size': 'Standard_D2s_v3'}],
'dns_prefix': 'mySubDomain',
'enable_rbac': True,
'kubernetes_version': '1.14.8',
'linux_profile': {'admin_username': 'myAdmin',
'ssh_key': 'ssh-rsa '
'xxxxx'},
'location': 'westeurope',
'name': 'myAksName',
'profile': 'myAzureFileSection',
'resource_group': 'Staging',
'service_principal': {'client_id': 'xxxx',
'client_secret': 'xxxx'},
'tags': {'Environment': 'Staging'}}
Is it not something related to the addon key ? I do not set this key on my task
@T1loc Thanks for your share! I will try agin!
@T1loc Thank you very much for your interest in Ansible. This repo is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/azure Please re-submit this Issue in the above repository and closed this. Thank you very much!
Since I update to ansible 2.9 I'm not able anymore to use this task. (It was working well before) Ansible task:
Stack trace :
pip freeze