Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1776830

Summary: Web console displays partial image URL for container
Product: OpenShift Container Platform Reporter: Ravi Trivedi <travi>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: aos-bugs, bparees, jokerman, nmukherj
Target Milestone: ---   
Target Release: 4.4.0   
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: 2019-12-02 14:08:10 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 Ravi Trivedi 2019-11-26 13:24:17 UTC
Description of problem:

Webconsole does not show image URL as expected when using the default image URL pattern:

<registry_server>/<user_name>/<image_name>:<tag>

I reproduced the issue and have the following findings:

- I put sample httpd image in a private docker registry (external to Openshift Cluster) and tagged the image differently and checked for the console output.
- Console output I checked as follows:

Select "Application Console" after login -> Select "Applications" tab -> Select "Deployments" -> Select respective deployment name and number -> Navigate to "Template" section under "Details" tab of deployment -> Check "Image" of container.

1. (PROBLEMATIC) With image as registry.example.com:5000/rhscl/httpd-24-rhel7:2.4 (This is based on the default image convention followed [1])

OUTPUT IN CONSOLE: 
> Image: rhscl/httpd-24-rhel7

2. (WORKING) With image as registry.example.com:5000/httpd-24-rhel7:2.4

OUTPUT IN CONSOLE:
> Image: registry.example.com:5000/httpd-24-rhel7:2.4

3. (WORKING) With image as registry.example.com:5000/openshift/rhscl/httpd-24-rhel7:2.4

OUTPUT IN CONSOLE:
> Image: registry.example.com:5000/openshift/rhscl/httpd-24-rhel7:2.4

4. (WORKING) With image as registry.example.com:5000/openshift/rhscl/httpd/httpd-24-rhel7:2.4

OUTPUT IN CONSOLE:
> Image: registry.example.com:5000/openshift/rhscl/httpd/httpd-24-rhel7:2.4
      
So we see that if the image follows the standard convention for image tagging as per [1] i.e, then the console shows a short output of the image. Else it shows the full URL in all other cases.

	<registry_server>/<user_name>/<image_name>:<tag>

Seeing the example in the documentation [2], this seems to be expected for another known image as per format too. Since I see uniformity here, the concern right now is more about knowing the reason why the short format is chosen to be displayed in console for standard convention images. This also has a chance in ending up as not a bug.

However, I just wanted you to confirm if this is the very same situation you are facing as well or not. 

[1] - https://docs.openshift.com/container-platform/3.11/dev_guide/managing_images.html#tagging-images
[2] - https://docs.openshift.com/container-platform/3.11/architecture/infrastructure_components/web_console.html#jvm-console

Actual results:

Partial name of image displayed

Expected results:

Full URL of image displayed (whether internal or external registry)

Additional info:

Maybe relates below?

[1] - https://github.com/openshift/origin-web-console/blob/enterprise-3.11/app/scripts/filters/resources.js#L106-L109

Comment 2 Samuel Padgett 2019-12-02 14:08:10 UTC

*** This bug has been marked as a duplicate of bug 1760767 ***