Bug 1377749 - system containers metadata have no daemon version info [NEEDINFO]
Summary: system containers metadata have no daemon version info
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: atomic
Version: 7.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
Yoana Ruseva
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 14:07 UTC by Qian Cai
Modified: 2017-04-12 20:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-12 20:23:06 UTC
Target Upstream Version:
qcai: needinfo? (lsm5)


Attachments (Terms of Use)

Description Qian Cai 2016-09-20 14:07:07 UTC
Description of problem:
Right now, atomic version <system containers images> only print out hash version instead of application version like rpm -q their counterparts. One of the developers mentioned that system containers do not use the label metadata.

# atomic  version brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7/etcd:latest
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel7/etcd:latest: ba648b580c2ad25f95f9969ff21e138eb062d5c4f9ef3eb19b0461a75e96e8bf

Non-system containers work fine.

# atomic  version registry.access.stage.redhat.com/rhel7/rhel-tools
Image Name: registry.access.stage.redhat.com/rhel7/rhel-tools:latest
distribution-scope: public
build-date: 2016-09-09T14:41:51.833402Z
RUN: docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e HOST=/host -e NAME=NAME -e IMAGE=IMAGE -v /run:/run -v /var/log:/var/log -v /etc/machine-id:/etc/machine-id -v /etc/localtime:/etc/localtime -v /:/host IMAGE
Name: rhel7/rhel-tools
License: GPLv3
Build_Host: rcm-img-docker02.build.eng.bos.redhat.com
vcs-type: git
vcs-ref: 553003eafc24b53361627c933d8afccee085e440
release: 104
Version: 7.2
Architecture: x86_64
Release: 51
Vendor: Red Hat, Inc.
BZComponent: rhel-tools-docker
Authoritative_Registry: registry.access.redhat.com
com.redhat.build-host: rcm-img-docker02.build.eng.bos.redhat.com
architecture: x86_64

Version-Release number of selected component (if applicable):
atomic-1.12.2-3.el7.x86_64

How reproducible:
always

Actual results:
Print out a hash version.

Expected results:
Print out a more meaningful daemon version like 2.3.7-8 like non-system containers.

Additional info:
flannel-docker and etc3-docker have the same issue.

Comment 2 Avesh Agarwal 2016-09-20 18:39:36 UTC
Not sure why is this assigned to etcd-docker, reassigning to atomic.

Comment 3 Giuseppe Scrivano 2016-09-21 06:34:09 UTC
this is still missing.  System containers are currently using Docker to build the image but I am not sure we should hook more into Docker and use the LABELs metadata

Comment 4 Qian Cai 2016-09-27 20:59:10 UTC
There is a workaround that users need to use docker inspect the image to find out the version information.

Comment 6 Qian Cai 2017-03-20 20:05:50 UTC
Lokesh, would you like to add this to the 7.3.4 atomic errata as well? The commit seems to suggest it was fixed a few months ago.


Note You need to log in before you can comment on or make changes to this bug.