Bug 2228932

Summary: "podman version" does not display entire version number
Product: Red Hat Enterprise Linux 8 Reporter: aruffin <aruffin>
Component: podmanAssignee: Matthew Heon <mheon>
Status: CLOSED NOTABUG QA Contact: atomic-bugs <atomic-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.4CC: bbaude, dwalsh, jligon, jnovy, lsm5, mboddu, mheon, pthomas, tsweeney
Target Milestone: rcFlags: aruffin: needinfo? (tsweeney)
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 08:37:46 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 aruffin@redhat.com 2023-08-03 16:44:38 UTC
Description of problem:
BugZilla 2210139 corrected the issue of inaccurate stats being displayed when the "podman stats" command was run with the --no-stream option.

However, "podman version" returns no difference in the version number returned between the inaccurate podman 3.0.1 vs the corrected podman 3.0.1-11.  In both cases, the version returned is 3.0.1.

Customer would like the entire version number displayed to make it easier to identify which podman is in use.

Version-Release number of selected component (if applicable):
3.0.1-11

How reproducible:
Very.   

Steps to Reproduce:
1. Install podman 3.0.1-11 (or later)
2. Execute "podman version"


Actual results:
# podman version
Version:      3.0.1

Expected results:
We expect podman to not cut off the end of the version number 

Additional info:

Comment 1 Matthew Heon 2023-08-03 17:17:09 UTC
The output of `podman version` is correct, as this is Podman 3.0.1 - plus some extra, RHEL-specific patches. 3.0.1-11 is the RPM version, which is not correlated to the version of Podman (and I don't really know how we'd correlate them - Podman 4.4.1, for example, is shipped in both RHEL8 and RHEL9, so we could easily end up with podman-4.4.1-3 on RHEL8 referring to the same code as Podman 4.4.1-5 on RHEL9, or similar. As such we have no plans to make changes to `podman version` to include information on the RPM Podman was shipped in.

That said, it should be possible to include full information on the RPM package in `podman info` to indicate the RPM that the installed Podman came from. Would this be acceptable?