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 repository update command does not show updated metadata on initial response #212

Closed
dlepow opened this issue Apr 22, 2019 · 3 comments
Assignees

Comments

@dlepow
Copy link
Contributor

dlepow commented Apr 22, 2019

Is this a BUG REPORT or FEATURE REQUEST?:
Bug report
What happened?:
See MicrosoftDocs/azure-docs#29517. Customer found that metadata updated by az acr repository update did not appear accurately in the output of the command but did subsequently when running az acr repository show.

I was able to reproduce the behavior, but not consistently. That is, the updated metadata sometimes did appear correctly in the output of az acr repository update
What did you expect to happen?:
Updated metadata appears correctly in the output of az acr repository update after successful execution.
How do you reproduce it (as minimally and precisely as possible)?:
See customer issue
Anything else we need to know?:

Environment (if applicable to the issue):

  • Azure CLI. I used CLI v 2.0.62 in Azure Cloud Shell
@msyihchen
Copy link
Contributor

@dlepow @yuwaMSFT2 //cc @sajayantony
I am able to reproduce this. I try 10 times and finally hit this. Will take a look tomorrow.
root@MyUbuntuVM:# az acr repository update -n acryihchentest0611 --repository alpine --write-enabled true
{
"changeableAttributes": {
"deleteEnabled": true,
"listEnabled": true,
"readEnabled": false,
"writeEnabled": true
},
"createdTime": "2019-06-11T20:43:07.423098Z",
"imageName": "alpine",
"lastUpdateTime": "2019-06-18T01:16:15.0766354Z",
"manifestCount": 11,
"registry": "acryihchentest0611.azurecr.io",
"tagCount": 9
}
root@MyUbuntuVM:
# az acr repository update -n acryihchentest0611 --repository alpine --write-enabled false
{
"changeableAttributes": {
"deleteEnabled": true,
"listEnabled": true,
"readEnabled": false,
"writeEnabled": true
},
"createdTime": "2019-06-11T20:43:07.423098Z",
"imageName": "alpine",
"lastUpdateTime": "2019-06-18T01:16:15.0766354Z",
"manifestCount": 11,
"registry": "acryihchentest0611.azurecr.io",
"tagCount": 9
}
root@MyUbuntuVM:~# az acr repository show -n acryihchentest0611 --repository alpine
{
"changeableAttributes": {
"deleteEnabled": true,
"listEnabled": true,
"readEnabled": false,
"writeEnabled": false
},
"createdTime": "2019-06-11T20:43:07.423098Z",
"imageName": "alpine",
"lastUpdateTime": "2019-06-18T01:16:15.0766354Z",
"manifestCount": 11,
"registry": "acryihchentest0611.azurecr.io",
"tagCount": 9
}

@msyihchen
Copy link
Contributor

Somehow github strikes out my words. Please ignore it.

@msyihchen
Copy link
Contributor

We did az acr cli change as well as server side change. Please upgrade to latest CLI version. This is already fixed. Close this issue as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants