Bug 1859874
Summary: | Specifying engine api address wrong causes segfault | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | David Sundqvist <dsundqvi> |
Component: | Installer | Assignee: | Roberto Ciatti <rciatti> |
Installer sub component: | OpenShift on RHV | QA Contact: | Guilherme Santos <gdeolive> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | jcall, plarsen, rciatti |
Version: | 4.5 | ||
Target Milestone: | --- | ||
Target Release: | 4.5.z | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: invalid URL could be used as API Endpoint
Consequence: after entering the invalid URL and the user credentials, the installer abruptly interrupt with segmentation error
Fix: URLs are validated before requesting user credentials and only URLs with HTTPS scheme are now accepted
Result: No invalid non HTTPS scheme URLs can be entered by the user
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-09-08 10:54:03 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: | |||
Bug Depends On: | 1861251 | ||
Bug Blocks: |
Description
David Sundqvist
2020-07-23 08:43:11 UTC
*** Bug 1858339 has been marked as a duplicate of this bug. *** Verified on: openshift-4.5.0-0.nightly-2020-08-23-191713 Steps: # ./openshift-install create cluster --dir resources/ ? SSH Public Key /root/.ssh/id_rsa.pub ? Platform ovirt ? oVirt API endpoint URL https://gui.com.be ? Is the oVirt CA trusted locally? Yes ? oVirt certificate bundle -----BEGIN CERTIFICATE----- MIIEADCCAuigAwIBAgICEAAw.... -----END CERTIFICATE----- ? oVirt engine username admin@internal ? oVirt engine password ****** X Sorry, your reply was invalid: failed to connect to oVirt platform Post https://gui.com.be/ovirt-engine/sso/oauth/token: dial tcp: lookup gui.com.be on 10.46.0.31:53: no such host X Sorry, your reply was invalid: failed to connect to oVirt platform Post https://gui.com.be/ovirt-engine/sso/oauth/token: dial tcp: lookup gui.com.be on 10.46.0.31:53: no such host X Sorry, your reply was invalid: failed to connect to oVirt platform Post https://gui.com.be/ovirt-engine/sso/oauth/token: dial tcp: lookup gui.com.be on 10.46.0.31:53: no such host ? oVirt engine password Results: No segmentation failure (In reply to Guilherme Santos from comment #6) > Verified on: > openshift-4.5.0-0.nightly-2020-08-23-191713 > > Steps: > # ./openshift-install create cluster --dir resources/ > ? SSH Public Key /root/.ssh/id_rsa.pub > ? Platform ovirt > ? oVirt API endpoint URL https://gui.com.be > > Results: > No segmentation failure Did this include an invalid formatted input? Ie. no https:// or just random characters? Also, it's worrisome that the process continues after getting the errors in the example. Hi, yes the validation check allows only https scheme (so no url without scheme or with a scheme different from https, like ftp, http and so on). Please remember that this is valid only for 4.5 cause in 4.6 the installer is asking for the FQDN and not for the API URL. 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.5.8 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-2020:3510 |