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

Bug 1639143

Summary: Public hostname provided by `oc cluster up --public-hostname` redirects to https://127.0.0.1:8443 and failed to be accessed
Product: OpenShift Container Platform Reporter: Praveen Kumar <prkumar>
Component: ocAssignee: Juan Vallejo <jvallejo>
Status: CLOSED DUPLICATE QA Contact: Xingxing Xia <xxia>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
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: 2018-10-15 08:44:24 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 Praveen Kumar 2018-10-15 07:13:33 UTC
With 3.11 after running oc cluster up doesn't redirect the web console properly.

Version

```
$ ./oc version                                   
oc v3.11.0-alpha.0+f7602dd-1284
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://192.168.42.239:8443
kubernetes v1.11.0+d4cacc0
```

Steps To Reproduce
```
$ export MINISHIFT_ENABLE_EXPERIMENTAL=y
$ ./minishift start --no-provision
$ ./minishift ip
192.168.42.239

$ docker image pull openshift/origin-control-plane:v3.11.0
$ docker create --name tmp docker.io/openshift/origin-control-plane:v3.11.0
$ docker cp tmp:/usr/bin/oc .
$ ./oc cluster up --public-hostname 192.168.42.239
[...]
The server is accessible via web console at:
    https://192.168.42.239:8443

You are logged in as:
    User:     developer
    Password: <any value>

To login as administrator:
    oc login -u system:admin
```

Current Result

```
Try to put https://192.168.42.239:8443 in the web browser and it redirected to https://127.0.0.1:8443/console/ instead https://192.168.42.239:8443/console/
```

Expected Result
```
When accessing the https://192.168.42.239:8443 should be redirected to https://192.168.42.239:8443/console/ not to https://127.0.0.1:8443/console/
```

Similiar issue was with 3.10 https://bugzilla.redhat.com/show_bug.cgi?id=1579598 but that got fixed now it is happening for 3.11

Comment 1 Xingxing Xia 2018-10-15 08:44:24 UTC

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