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

'Bad Request'. Details: Must define at least one system pool." #166

Closed
boraozkan opened this issue Jun 16, 2020 · 2 comments
Closed

'Bad Request'. Details: Must define at least one system pool." #166

boraozkan opened this issue Jun 16, 2020 · 2 comments

Comments

@boraozkan
Copy link

boraozkan commented Jun 16, 2020

SUMMARY

I am using 20-04-01 API for aks managed cluster but getting the error with below:
'Bad Request'. Details: Must define at least one system pool."

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION

CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The full traceback is:
  File "/tmp/ansible_azure.azcollection.azure_rm_aks_payload_6b2sjfcj/ansible_azure.azcollection.azure_rm_aks_payload.zip/ansible_collections/azure/azcollection/plugins/modules/azure_rm_aks.py", line 791, in create_update_aks
  File "/usr/local/lib/python3.5/dist-packages/azure/mgmt/containerservice/v2020_04_01/operations/_managed_clusters_operations.py", line 670, in create_or_update
    **operation_config
  File "/usr/local/lib/python3.5/dist-packages/azure/mgmt/containerservice/v2020_04_01/operations/_managed_clusters_operations.py", line 621, in _create_or_update_initial
    raise exp
[WARNING]: Azure API profile latest does not define an entry for ContainerServiceClient
fatal: [127.0.0.1]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "aad_profile": null,
            "ad_user": null,
            "addon": null,
            "adfs_authority_url": null,
            "agent_pool_profiles": [
                {
                    "count": 2,
                    "dns_prefix": null,
                    "enable_auto_scaling": null,
                    "max_count": null,
                    "min_count": null,
                    "name": "default",
                    "os_disk_size_gb": null,
                    "os_type": null,
                    "ports": null,
                    "storage_profiles": null,
                    "type": "VirtualMachineScaleSets",
                    "vm_size": "Standard_D2_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": "myaks1",
            "enable_rbac": true,
            "kubernetes_version": "1.16.9",
            "linux_profile": {
                "admin_username": "azureuser",
                "ssh_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
            },
            "location": "uksouth",
            "name": "myaks",
            "network_profile": null,
            "node_resource_group": "nodetest",
            "password": null,
            "profile": null,
            "resource_group": "mytest",
            "secret": null,
            "service_principal": {
                "client_id": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                "client_secret": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
            },
            "state": "present",
            "subscription_id": null,
            "tags": {
                "Environment": "Production"
            },
            "tenant": null
        }
    },
    "msg": "Error creating the AKS instance: Operation failed with status: 'Bad Request'. Details: Must define at least one system pool."
}
@boraozkan
Copy link
Author

anyone face this problem?

@boraozkan
Copy link
Author

it is fixed by this pull request

#170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant