-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
dhcp-relay and macsec dockers are not tagged with the image version #11521
Comments
@saiarcot895 Could you please describe the use case where you need to see the docker image tagged also with the image version? It is by design that the app. ext images have a single tag present in the system, so that it is easy to manage the image. You can find the Tag in the docker image labels. |
It's more of a visual expectation. All of the other dockers that are packaged with this image are tagged with the image version. Older images (such as those from the 202012 branch) have docker-dhcp-relay tagged with the image version. |
@renukamanavalan Can you assess this design change from K8 perspective? |
Looks good to me. |
Is this issue fix? |
@stepanblyschak We should support multiple tags. I could give a use case. If some docker controller ask SONiC device to pull a latest |
@qiluo-msft Just to understand is this your use case? Have you tested it?:
|
Discussed online. Will keep SONiC version string instead of latest, but will not keep the latest, scripts generated by spm are using image id to identify image. Medium priority issue. |
Fixes: sonic-net#11521 - Why I did it When build SONiC dockers, SONiC build system tags all of them with latest tag. This is Ok for all built-in dockers because we will also tag them with image version tag in sonic_debian_extension.j2 script. On the other hand, some of these dockers are SONiC packages and they are installed by sonic-package-manager which creates a only one tag whcih is recorded in the corresponding .gz file. This leads to having these dockers tagged only with latest tag. This change saves the tag as an image version string in .gz file, so that these dockers have version identification in their tag. - How I did it I modified slave.mk to save the version tag instead of latest tag. - How to verify it I verified this change by running show version Signed-off-by: Stepan Blyschak <[email protected]>
Fixes: sonic-net#11521 - Why I did it When build SONiC dockers, SONiC build system tags all of them with latest tag. This is Ok for all built-in dockers because we will also tag them with image version tag in sonic_debian_extension.j2 script. On the other hand, some of these dockers are SONiC packages and they are installed by sonic-package-manager which creates a only one tag whcih is recorded in the corresponding .gz file. This leads to having these dockers tagged only with latest tag. This change saves the tag as an image version string in .gz file, so that these dockers have version identification in their tag. - How I did it I modified slave.mk to save the version tag instead of latest tag. - How to verify it I verified this change by running show version Signed-off-by: Stepan Blyschak <[email protected]>
Fixes: #11521 - Why I did it When build SONiC dockers, SONiC build system tags all of them with latest tag. This is Ok for all built-in dockers because we will also tag them with image version tag in sonic_debian_extension.j2 script. On the other hand, some of these dockers are SONiC packages and they are installed by sonic-package-manager which creates a only one tag whcih is recorded in the corresponding .gz file. This leads to having these dockers tagged only with latest tag. This change saves the tag as an image version string in .gz file, so that these dockers have version identification in their tag. - How I did it I modified slave.mk to save the version tag instead of latest tag. - How to verify it I verified this change by running show version Signed-off-by: Stepan Blyschak <[email protected]>
Description
The dhcp-relay and macsec docker containers are not tagged with the image version in
docker images
. They have thelatest
tag, but not the image version tag.Steps to reproduce the issue:
docker images
to see what images are availableDescribe the results you received:
docker-dhcp-relay:latest
is tagged, but notdocker-dhcp-relay:master.125402-ba991ab2b
.docker-macsec
isn't present in this build, but is also affected.Describe the results you expected:
docker-dhcp-relay:master.125402-ba991ab2b
should be present.Output of
show version
:This was taken from the log of the most recent VS image build.
Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: