Bug 1924224

Summary: Console bug - source code URL broken for gitlab self-hosted repositories
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Dev ConsoleAssignee: divgupta
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.6CC: aballant, aos-bugs, cjerolim, divgupta, nmukherj, spathak
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-22 13:54:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1921949    
Bug Blocks:    
Attachments:
Description Flags
Console bug - source code URL works for gitlab self-hosted repositories none

Description OpenShift BugZilla Robot 2021-02-02 20:27:27 UTC
+++ This bug was initially created as a clone of Bug #1921949 +++

Description of problem:
In the Topology view there are icons representing pods. If the pod was created from a source code repository, a handle is shown on the lower right of the pod circle icon. It was the case before that clicking on this handle would open the repository holding the source code.

In a case where the pod was created in the current OKD (4.6.0-0.okd-2021-01-23-132511) or earlier versions from the Wildfly s2i image (for example, in the catalogue), the repo URL has been modified so it is no longer correct.

For example, a URL which used to be https://gitlab.infoteach.ca/bdlink/ch1-login/tree/master has been changed after the upgrade to https://infoteach.ca/bdlink/ch1-login/tree/master. This pod would have been created from the repo URL https://gitlab.infoteach.ca/bdlink/ch1-login.git, and identified as a gitlab repository.

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


How reproducible:
100%

Steps to Reproduce:
1. Create Wildfly 20 deployment from catalog Wildfly Builder image
2. use https://gitlab.infoteach.ca/bdlink/ch1-login.git as URL
3. select git type: gitlab 
4. accept rest of defaults and Create
5. Wait for pod to deploy
6. go to topology view
7. Click on lower right "Edit source code" handle

Actual results:
This site cannot be reached.  Incorrect URL https://infoteach.ca/bdlink/ch1-login/tree/master

Expected results:
Open source code page with URL https://gitlab.infoteach.ca/bdlink/ch1-login/tree/master

Additional info:
Worked before upgrading OKD to latest stable release.  OKD team indicated this seems to be an OCP regression

Affects preexisting pods (which used to work) and newly created pods.

Comment 3 spathak@redhat.com 2021-02-16 20:09:33 UTC
Created attachment 1757349 [details]
Console bug - source code URL works for gitlab self-hosted repositories

Comment 4 spathak@redhat.com 2021-02-16 20:10:01 UTC
Verified on build version: 4.6.0-0.nightly-2021-02-13-034601
Browser version: Chrome 84

Comment 6 errata-xmlrpc 2021-02-22 13:54:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6.18 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:0510