Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1377749

Summary: system containers metadata have no daemon version info
Product: Red Hat Enterprise Linux 7 Reporter: Qian Cai <qcai>
Component: atomicAssignee: Lokesh Mandvekar <lsm5>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: high Docs Contact: Yoana Ruseva <yruseva>
Priority: high    
Version: 7.3CC: gscrivan, jerzhang, lsm5, yruseva
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 20:23:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.