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

az aks create fails when aks-preview is added on CentOS 7.5 #908

Closed
david618 opened this issue Apr 10, 2019 · 1 comment · Fixed by Azure/azure-cli-extensions#641
Closed
Assignees

Comments

@david618
Copy link

What happened:

az aks create     --resource-group dj0409mp     --name dj0409mp-cluster     --enable-vmss     --node-count 3     --node-vm-size Standard_D8s_v3     --enable-addons monitoring     --admin-username azureuser     --ssh-key-value az.pub     --node-osdisk-size 100     --kubernetes-version 1.12.7
The command failed with an unexpected error. Here is the traceback:

super() takes at least 1 argument (0 given)
Traceback (most recent call last):
  File "/usr/lib64/az/lib/python2.7/site-packages/knack/cli.py", line 206, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib64/az/lib/python2.7/site-packages/azure/cli/core/commands/__init__.py", line 274, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/lib64/az/lib/python2.7/site-packages/azure/cli/core/__init__.py", line 266, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
  File "/root/.azure/cliextensions/aks-preview/azext_aks_preview/__init__.py", line 35, in load_arguments
    super().load_arguments(command)
TypeError: super() takes at least 1 argument (0 given)

To open an issue, please visit: https://aka.ms/azcli/issues

What you expected to happen:

Expected the creation of an AKS. Same command worked on Ubuntu 18.04 and on Mac.

How to reproduce it (as minimally and precisely as possible):

  • Install AZ
    Install Az on CentOS 7.5 using yum instructions

  • Add aks-preview Extension

az extension add --name aks-preview
  • Register Features
az feature register --name MultiAgentpoolPreview --namespace Microsoft.ContainerService
az feature register --name VMSSPreview --namespace Microsoft.ContainerService
  • Create Resource Group

  • Try to Create AKS

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): N/A
  • Size of cluster (how many worker nodes are in the cluster?): 3 D8sv3
  • General description of workloads in the cluster (e.g. HTTP microservices, Java app, Ruby on Rails, machine learning, etc.): N/A
  • Others:
@mboersma
Copy link
Member

@david618 it appears some Python3-specific syntax crept into the preview extension. I made a PR to fix it. For now you may be able to work around it this way:

$ export EXT=aks-preview
$ pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/mboersma/azure-cli-extensions.git@fix-aks-python2#subdirectory=src/$EXT&egg=$EXT"

@ghost ghost locked as resolved and limited conversation to collaborators Jul 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants