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 acr credential show fails #18493

Closed
zorzigio opened this issue Jun 15, 2021 · 6 comments
Closed

az acr credential show fails #18493

zorzigio opened this issue Jun 15, 2021 · 6 comments
Assignees
Labels
Container Registry az acr Service Attention This issue is responsible by Azure service team.

Comments

@zorzigio
Copy link

Describe the bug

Command Name
az acr credential show

Errors:

API version 2020-11-01-preview does not have operation group 'registries'
Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 233, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 659, in execute
    raise ex
cli/core/commands/__init__.py, ln 722, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 715, in _run_job
    six.reraise(*sys.exc_info())
...
cli/command_modules/acr/_client_factory.py, ln 20, in cf_acr_registries
    return get_acr_service_client(cli_ctx).registries
azure/mgmt/containerregistry/_container_registry_management_client.py, ln 304, in registries
    raise ValueError("API version {} does not have operation group 'registries'".format(api_version))
ValueError: API version 2020-11-01-preview does not have operation group 'registries'

To Reproduce:

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

Simply running the following command raises the error

  • az acr credential show --name {}

Expected Behavior

No error raised

Environment Summary

Linux-5.11.0-18-generic-x86_64-with-glibc2.33
Python 3.9.5
Installer: DEB

azure-cli 2.18.0 *

Extensions:
interactive Unknown
azure-devops 0.19.0

Additional Context

OS info

>lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

I also tried to run az upgrade but it raises the following error

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.18.0. Latest version available is 2.25.0.
Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): y
Hit:1 http://gb.archive.ubuntu.com/ubuntu hirsute InRelease
Get:2 http://gb.archive.ubuntu.com/ubuntu hirsute-updates InRelease [109 kB]                     
Hit:3 http://gb.archive.ubuntu.com/ubuntu hirsute-backports InRelease                                                                                                             
Hit:4 http://repository.spotify.com stable InRelease                                                  
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                           
Hit:6 http://security.ubuntu.com/ubuntu hirsute-security InRelease                                                     
Ign:7 https://packages.microsoft.com/repos/azure-cli hirsute InRelease
Err:8 https://packages.microsoft.com/repos/azure-cli hirsute Release
  404  Not Found [IP: 40.114.136.21 443]
Reading package lists... Done
E: The repository 'https://packages.microsoft.com/repos/azure-cli hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
CLI upgrade failed.
@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 15, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jun 15, 2021
@yonzhan yonzhan added Service Attention This issue is responsible by Azure service team. and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 15, 2021
@ghost
Copy link

ghost commented Jun 15, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @toddysm, @yugangw-msft, @luisdlp.

Issue Details

Describe the bug

Command Name
az acr credential show

Errors:

API version 2020-11-01-preview does not have operation group 'registries'
Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 233, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 659, in execute
    raise ex
cli/core/commands/__init__.py, ln 722, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 715, in _run_job
    six.reraise(*sys.exc_info())
...
cli/command_modules/acr/_client_factory.py, ln 20, in cf_acr_registries
    return get_acr_service_client(cli_ctx).registries
azure/mgmt/containerregistry/_container_registry_management_client.py, ln 304, in registries
    raise ValueError("API version {} does not have operation group 'registries'".format(api_version))
ValueError: API version 2020-11-01-preview does not have operation group 'registries'

To Reproduce:

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

Simply running the following command raises the error

  • az acr credential show --name {}

Expected Behavior

No error raised

Environment Summary

Linux-5.11.0-18-generic-x86_64-with-glibc2.33
Python 3.9.5
Installer: DEB

azure-cli 2.18.0 *

Extensions:
interactive Unknown
azure-devops 0.19.0

Additional Context

OS info

>lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 21.04
Release:	21.04
Codename:	hirsute

I also tried to run az upgrade but it raises the following error

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.18.0. Latest version available is 2.25.0.
Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): y
Hit:1 http://gb.archive.ubuntu.com/ubuntu hirsute InRelease
Get:2 http://gb.archive.ubuntu.com/ubuntu hirsute-updates InRelease [109 kB]                     
Hit:3 http://gb.archive.ubuntu.com/ubuntu hirsute-backports InRelease                                                                                                             
Hit:4 http://repository.spotify.com stable InRelease                                                  
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                                                           
Hit:6 http://security.ubuntu.com/ubuntu hirsute-security InRelease                                                     
Ign:7 https://packages.microsoft.com/repos/azure-cli hirsute InRelease
Err:8 https://packages.microsoft.com/repos/azure-cli hirsute Release
  404  Not Found [IP: 40.114.136.21 443]
Reading package lists... Done
E: The repository 'https://packages.microsoft.com/repos/azure-cli hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
CLI upgrade failed.
Author: zorzigio
Assignees: -
Labels:

Container Registry, Service Attention

Milestone: -

@yonzhan
Copy link
Collaborator

yonzhan commented Jun 15, 2021

route to service team

@AzurePlumber
Copy link

BTW, The ADO team rejected this issue as an Azure CLI problem and directed comments to this issue:

https://developercommunity.visualstudio.com/t/packagesmicrosoftcom-intermittent-file/1452350

It appears that the file share hosting the https://packages.microsoft.com/repos/ is having service issues. Anyone have an idea how to get a support case started with Microsoft operations team?

@AzurePlumber
Copy link

There is now an event tracking this issue:
https://status.dev.azure.com/_event/246136621

@regulator-g
Copy link

The issue is azure CLI version is 2.18 when 2.27 exists

this is caused because a package has not been created for Ubuntu 21.04 hirsute hippo

@jiasli jiasli self-assigned this Aug 27, 2021
@jiasli
Copy link
Member

jiasli commented Aug 27, 2021

Judging by the issue description:

Linux-5.11.0-18-generic-x86_64-with-glibc2.33
Python 3.9.5
Installer: DEB

azure-cli 2.18.0 *

this is not the Azure CLI distributed by official Microsoft Linux repo. See #19313 (comment) for more information.

The current Azure CLI 2.27.2 should have this issue fixed.

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

No branches or pull requests

5 participants