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

Table output unavailable error after running az aks get-upgrades #12366

Closed
enginaar opened this issue Feb 26, 2020 · 9 comments
Closed

Table output unavailable error after running az aks get-upgrades #12366

enginaar opened this issue Feb 26, 2020 · 9 comments
Labels
AKS az aks/acs/openshift Service Attention This issue is responsible by Azure service team.

Comments

@enginaar
Copy link

enginaar commented Feb 26, 2020

Command Name
az aks get-upgrades

Errors:

Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.

To Reproduce:

Run the following command
az aks get-upgrades --resource-group {resourceName} --name {clusterName} --output table

Expected Behavior

Following result is expected

Name     ResourceGroup     MasterVersion    NodePoolVersion    Upgrades
-------  ----------------  ---------------  -----------------  ---------------
default  myResourceGroup   1.14.8           1.14.8             1.15.5, 1.15.7

Environment Summary

Windows-10-10.0.17763-SP0
Python 3.6.6

azure-cli 2.1.0

Additional Context

  1. Same error when the same command executed in Cloud Shell.
  2. See result below when executed using --debug flag.
...
Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x048FAD20>, <function _x509_from_base64_to_hex_transform at 0x048FAD68>]
Event: CommandInvoker.OnFilterResult []
Traceback (most recent call last):
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-3pnsb50r\knack\knack\output.py", line 56, in format_table
  File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-3pnsb50r\azure-cli\azure\cli\command_modules\acs\_format.py", line 89, in aks_upgrades_table_format
TypeError: 'NoneType' object is not subscriptable

cli.azure.cli.core.util : Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.
Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.
az_command_data_logger : exit code: 1
  1. JSON output below shows there are upgrades available.
{
  "agentPoolProfiles": null,
  "controlPlaneProfile": {
    "kubernetesVersion": "1.14.8",
    "name": null,
    "osType": "Linux",
    "upgrades": [
      {
        "isPreview": null,
        "kubernetesVersion": "1.15.7"
      },
      {
        "isPreview": null,
        "kubernetesVersion": "1.15.5"
      }
    ]
  },
  "id": "/subscriptions/cb3ec624-50d8-450f-a367-d24d39587cce/resourcegroups/EY/providers/Microsoft.ContainerService/managedClusters/engsks/upgradeprofiles/default",
  "name": "default",
  "resourceGroup": "EY",
  "type": "Microsoft.ContainerService/managedClusters/upgradeprofiles"
}
@yungezz yungezz added the AKS az aks/acs/openshift label Feb 27, 2020
@yungezz yungezz added Service Attention This issue is responsible by Azure service team. triage labels Feb 27, 2020
@ghost
Copy link

ghost commented Feb 27, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm

@yungezz
Copy link
Member

yungezz commented Feb 27, 2020

thanks for reporting, we'll look at it

@Jen7714
Copy link

Jen7714 commented May 29, 2020

Hello! Please try again with the latest Azure CLI version. Feel free to reopen an issue if it still doesn't work.
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

@Jen7714 Jen7714 closed this as completed May 29, 2020
@frachel
Copy link

frachel commented Jun 3, 2021

I still get this error using the Azure Cloud shell.

frank_rachel@Azure:~$ az version
{
  "azure-cli": "2.24.0",
  "azure-cli-core": "2.24.0",
  "azure-cli-telemetry": "1.0.6",
  "extensions": {
    "ai-examples": "0.2.5",
    "aks-preview": "0.4.53",
    "resource-graph": "1.1.0",
    "ssh": "0.1.5"
  }
}
frank_rachel@Azure:~$ az aks get-upgrades --resource-group petst-rg --name petst-aks -o table
The behavior of this command has been altered by the following extension: aks-preview
Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.
frank_rachel@Azure:~$

@Shaybs
Copy link

Shaybs commented Sep 17, 2021

Yeah, it isn't working

@mcwienczek
Copy link

still not working for me as well.

❯ az aks get-versions --location westeurope --output table
Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.

Azure CLI version:

❯ az version
{
  "azure-cli": "2.30.0",
  "azure-cli-core": "2.30.0",
  "azure-cli-telemetry": "1.0.6",
  "extensions": {}
}

@usejfijaj
Copy link

Same here!

➜ ~ az aks list -o table Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info. ➜ ~ az version { "azure-cli": "2.30.0", "azure-cli-core": "2.30.0", "azure-cli-telemetry": "1.0.6", "extensions": {} } ➜ ~

@jiasli
Copy link
Member

jiasli commented Nov 24, 2021

The latest tabulate issue is tracked at #20348.

@in-bharath
Copy link

interesting, instead of output table, if we change it to output json, am seeing the results in json format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS az aks/acs/openshift Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

9 participants