Bug 1903055
Summary: | [OSP] Validation should fail when no any IaaS flavor or type related field are given | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | weiwei jiang <wjiang> |
Component: | Installer | Assignee: | Mike Fedosin <mfedosin> |
Installer sub component: | OpenShift on OpenStack | QA Contact: | Gaoyun Pei <gpei> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | m.andre, padillon, pprinett |
Version: | 4.7 | ||
Target Milestone: | --- | ||
Target Release: | 4.8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: the installer didn't take into account defaultMachineSet values in the install config during its validation, which caused it to fail. To workaround this the installer didn't validate empty values for some parameters.
Consequence: since there was no validation for empty fields, sometimes we saw false positive validation results.
Fix: apply default provided values to the install config and start validating empty fields.
Result: install config validation is now always correct.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2021-07-27 22:34:25 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: | |||
Bug Blocks: | 1938426 |
Description
weiwei jiang
2020-12-01 08:47:29 UTC
> What did you expect to happen?
> Validation should prompt user to give a flavor or type for the cluster
This sounds like it would be a new required field. Generally we don't allow new required fields without an API bump. Instead, you should infer or provide a sane default.
Changing the severity to LOW because IIUC it's not going to impede any legit install. Checked with 4.8.0-0.nightly-2021-03-14-134919 and it's fixed. $ ./openshift-install-4.8 create manifests --dir bz1903055 --log-level debug DEBUG OpenShift Installer 4.8.0-0.nightly-2021-03-14-134919 DEBUG Built from commit f6893c869a8ff20bbdc66707643f08ff4f61c7c0 DEBUG Fetching Master Machines... DEBUG Loading Master Machines... DEBUG Loading Cluster ID... DEBUG Loading Install Config... DEBUG Loading SSH Key... DEBUG Loading Base Domain... DEBUG Loading Platform... DEBUG Loading Cluster Name... DEBUG Loading Base Domain... DEBUG Loading Platform... DEBUG Loading Networking... DEBUG Loading Platform... DEBUG Loading Pull Secret... DEBUG Loading Platform... FATAL failed to fetch Master Machines: failed to load asset "Install Config": [controlPlane.platform.openstack.type: Required value: Flavor name must be provided, compute[0].platform.openstack.type: Required value: Flavor name must be provided] *** Bug 1931814 has been marked as a duplicate of this bug. *** 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security 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/RHSA-2021:2438 |