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 task credential add failing with v2.26.0 and v2.26.1 #18949

Closed
sasi-uvr opened this issue Jul 21, 2021 · 3 comments · Fixed by #19006
Closed

az acr task credential add failing with v2.26.0 and v2.26.1 #18949

sasi-uvr opened this issue Jul 21, 2021 · 3 comments · Fixed by #19006
Labels
Container Registry az acr Service Attention This issue is responsible by Azure service team.

Comments

@sasi-uvr
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az acr task credential add

Errors:

The command failed with an unexpected error. Here is the traceback:
'TasksOperations' object has no attribute 'update'
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/acr/task.py", line 635, in acr_task_credential_add
    client.update(resource_group_name, registry_name, task_name, taskUpdateParameters)
AttributeError: 'TasksOperations' object has no attribute 'update'

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 acr task credential add --name {} --registry {} --login-server {} --username {} --password {}

Expected Behavior

Environment Summary

Linux-5.10.25-linuxkit-x86_64-with
Python 3.8.9
Installer: DOCKER

azure-cli 2.26.1

Additional Context

@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 customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Jul 21, 2021
@sasi-uvr sasi-uvr changed the title az acr credential add failing after movement of docker image to mcr az acr task credential add failing after movement of docker image to mcr Jul 21, 2021
@sasi-uvr
Copy link
Author

No problem till the tag 2.25.0. This image has Python 3.8.9. Problem started from tag 2.26.0.

@sasi-uvr sasi-uvr changed the title az acr task credential add failing after movement of docker image to mcr az acr task credential add failing with 2.26.0 and 2.26.1 Jul 21, 2021
@sasi-uvr sasi-uvr changed the title az acr task credential add failing with 2.26.0 and 2.26.1 az acr task credential add failing with v2.26.0 and v2.26.1 Jul 21, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 21, 2021
@yonzhan yonzhan added Service Attention This issue is responsible by Azure service team. and removed customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 21, 2021
@ghost
Copy link

ghost commented Jul 21, 2021

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

Issue Details

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az acr task credential add

Errors:

The command failed with an unexpected error. Here is the traceback:
'TasksOperations' object has no attribute 'update'
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/local/lib/python3.8/site-packages/azure/cli/command_modules/acr/task.py", line 635, in acr_task_credential_add
    client.update(resource_group_name, registry_name, task_name, taskUpdateParameters)
AttributeError: 'TasksOperations' object has no attribute 'update'

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 acr task credential add --name {} --registry {} --login-server {} --username {} --password {}

Expected Behavior

Environment Summary

Linux-5.10.25-linuxkit-x86_64-with
Python 3.8.9
Installer: DOCKER

azure-cli 2.26.1

Additional Context

Author: Sasi-JellyFish
Assignees: -
Labels:

Container Registry, Service Attention

Milestone: -

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 21, 2021

route to service team

@rosanch rosanch mentioned this issue Jul 27, 2021
3 tasks
@jsntcy jsntcy added this to the Jul 2021 (2021-08-03) milestone Jul 28, 2021
@jsntcy jsntcy linked a pull request Jul 28, 2021 that will close this issue
3 tasks
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

Successfully merging a pull request may close this issue.

3 participants