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

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 this issue Jul 2, 2022 · 16 comments
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@nyetwurk
Copy link

nyetwurk commented Jul 2, 2022

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.

  • Put any pre-requisite steps here...
  • az vm list-ip-addresses

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

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Compute az vm/vmss/image/disk/snapshot labels Jul 2, 2022
@ghost ghost added this to the Backlog milestone Jul 2, 2022
@ghost ghost assigned zhoxing-ms Jul 2, 2022
@ghost ghost added the Auto-Assign Auto assign by bot label Jul 2, 2022
@nyetwurk nyetwurk changed the title API version 2021-08-01 does not have operation group 'network_interfaces' azure-cli 2.37.0: API version 2021-08-01 does not have operation group 'network_interfaces' Jul 2, 2022
@nyetwurk
Copy link
Author

nyetwurk commented Jul 2, 2022

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
Copy link
Author

nyetwurk commented Jul 2, 2022

*** 2.37.0-2 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status

is broken

@nyetwurk nyetwurk changed the title azure-cli 2.37.0: API version 2021-08-01 does not have operation group 'network_interfaces' azure-cli 2.37.0-2 from debian unstable: API version 2021-08-01 does not have operation group 'network_interfaces' Jul 2, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 2, 2022

Compute

@nyetwurk
Copy link
Author

nyetwurk commented Jul 2, 2022

@zhoxing-ms
Copy link
Contributor

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

It should be related to issue #19640 @jiasli Could you please help have a look?

@jiasli
Copy link
Member

jiasli commented Jul 4, 2022

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

@RakeshMohanMSFT RakeshMohanMSFT added the needs-author-feedback More information is needed from author to address the issue. label Aug 22, 2022
@ericjs
Copy link

ericjs commented Aug 25, 2022

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

@nyetwurk
Copy link
Author

Even worse, unattended upgrades continues to upgrade over it

@ghost ghost added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels Aug 26, 2022
@yonzhan yonzhan added SSH VM SSH CXP Attention This issue is handled by CXP team. labels Aug 26, 2022
@ghost
Copy link

ghost commented Aug 26, 2022

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

@yonzhan yonzhan removed the Compute az vm/vmss/image/disk/snapshot label Aug 26, 2022
@RakeshMohanMSFT RakeshMohanMSFT self-assigned this Aug 31, 2022
@RakeshMohanMSFT
Copy link
Contributor

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

@RakeshMohanMSFT RakeshMohanMSFT added needs-author-feedback More information is needed from author to address the issue. and removed needs-team-attention This issue needs attention from Azure service team or SDK team labels Aug 31, 2022
@nyetwurk
Copy link
Author

nyetwurk commented Aug 31, 2022

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

@ghost ghost added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels Aug 31, 2022
@nyetwurk
Copy link
Author

nyetwurk commented Aug 31, 2022

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
Copy link
Contributor

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

@RakeshMohanMSFT RakeshMohanMSFT added needs-author-feedback More information is needed from author to address the issue. and removed needs-team-attention This issue needs attention from Azure service team or SDK team labels Sep 6, 2022
@nyetwurk
Copy link
Author

nyetwurk commented Sep 6, 2022

@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 #23094 (comment)

@ghost ghost added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels Sep 6, 2022
@nyetwurk
Copy link
Author

nyetwurk commented Sep 6, 2022

#19640 (comment)

@RakeshMohanMSFT RakeshMohanMSFT removed their assignment Sep 12, 2022
@RakeshMohanMSFT RakeshMohanMSFT added Service Attention This issue is responsible by Azure service team. and removed CXP Attention This issue is handled by CXP team. labels Sep 12, 2022
@vthiebaut10
Copy link

The SSH extension no longer uses the network client that was causing this issue. @yonzhan can the SSH and VM SSH tags be removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

7 participants