Azure / azure-cli

Azure Command-Line Interface
MIT License
4k stars 2.98k forks source link

azure-cli 2.37.0-2 from debian unstable: API version 2021-08-01 does not have operation group 'network_interfaces' #23094

Open nyetwurk opened 2 years ago

nyetwurk commented 2 years ago

Describe the bug

Command Name az vm list-ip-addresses

Errors:

The command failed with an unexpected error. Here is the traceback:
API version 2021-08-01 does not have operation group 'network_interfaces'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/lib/python3/dist-packages/azure/cli/command_modules/vm/custom.py", line 1281, in list_vm_ip_addresses
    nics = network_client.network_interfaces.list_all()
  File "/usr/lib/python3/dist-packages/azure/mgmt/network/_network_management_client.py", line 4475, in network_interfaces
    raise ValueError("API version {} does not have operation group 'network_interfaces'".format(api_version))
ValueError: API version 2021-08-01 does not have operation group 'network_interfaces'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

Linux-5.18.0-2-cloud-amd64-x86_64-with-glibc2.33, Debian GNU/Linux bookworm/sid
Python 3.10.5
Installer: DEB

azure-cli 2.37.0

Extensions:
azure-devops 0.24.0

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.0.0

Additional Context

nyetwurk commented 2 years ago

2.37.0-1~buster works

    2.37.0-1~buster 500
        500 https://packages.microsoft.com/repos/azure-cli buster/main amd64 Packages
        500 https://packages.microsoft.com/repos/azure-cli buster/main all Packages
nyetwurk commented 2 years ago
*** 2.37.0-2 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

is broken

yonzhan commented 2 years ago

Compute

nyetwurk commented 2 years ago

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014203

zhoxing-ms commented 2 years ago

/usr/lib/python3/dist-packages/azure/mgmt/network/_network_management_client.py

It should be related to issue https://github.com/Azure/azure-cli/issues/19640 @jiasli Could you please help have a look?

jiasli commented 2 years ago

@zhoxing-ms, you are right. 2.37.0-2 is release by @bluca, not Microsoft.

ericjs commented 2 years ago

I get the same error with azure-cli v 2.39.0 on openSUSE tumbleweed, running an "az ssh config ..." command.

nyetwurk commented 2 years ago

Even worse, unattended upgrades continues to upgrade over it

ghost commented 2 years ago

Thank you for your feedback. This has been routed to the support team for assistance.

RakeshMohanMSFT commented 2 years ago

Please upgrade to latest version of az cli 2.39.0 and retry.

nyetwurk commented 2 years ago

I would prefer the non-MS azure-cli package is renamed entirely so it does not overlap with the MS azure-cli package. The non-MS one installs several dozen dependencies and is entirely different from the MS azure-cli package.

  python-pkginfo-doc python3-adal python3-aiohttp python3-aiosignal python3-antlr4 python3-applicationinsights python3-async-timeout python3-avro python3-azext-devops
  python3-azure python3-azure-cli python3-azure-cli-core python3-azure-cli-telemetry python3-azure-cosmos python3-azure-datalake-store python3-azure-multiapi-storage
  python3-blinker python3-cffi python3-deprecated python3-fabric python3-frozenlist python3-github python3-humanfriendly python3-isodate python3-javaproperties
  python3-jsondiff python3-jwt python3-knack python3-msal python3-msal-extensions python3-msrest python3-msrestazure python3-multidict python3-oauthlib python3-pkginfo
  python3-portalocker python3-pycparser python3-requests-oauthlib python3-scp python3-semver python3-sshtunnel python3-tabulate python3-uamqp python3-wrapt python3-yarl
nyetwurk commented 2 years ago

Please upgrade to latest version of az cli 2.39.0 and retry.

ERROR: API version 2021-08-01 does not have operation group 'network_interfaces'
 *** 2.39.0-1 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
     2.39.0-1~buster 500
        500 https://packages.microsoft.com/repos/azure-cli buster/main amd64 Packages
        500 https://packages.microsoft.com/repos/azure-cli buster/main all Packages
RakeshMohanMSFT commented 2 years ago

@nyetwurk Please share az --version details with us please. For some reason we are unable to reproduce this issue at our end.

nyetwurk commented 2 years ago

@nyetwurk Please share az --version details with us please. For some reason we are unable to reproduce this issue at our end.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014203 and https://github.com/Azure/azure-cli/issues/23094#issuecomment-1173262831

nyetwurk commented 2 years ago

https://github.com/Azure/azure-cli/issues/19640#issuecomment-1227878091