Bug 1962274

Summary: OCP on RHV installer fails to generate an install-config with only 2 hosts in RHV cluster
Product: OpenShift Container Platform Reporter: Peter Lauterbach <pelauter>
Component: InstallerAssignee: Gal Zaidman <gzaidman>
Installer sub component: OpenShift on RHV QA Contact: michal <mgold>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: urgent CC: gzaidman, lleistne, mburman
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:09:14 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:
Bug Depends On:    
Bug Blocks: 1931217    
Description Flags
Openshift install log none

Description Peter Lauterbach 2021-05-19 16:24:19 UTC
Created attachment 1784868 [details]
Openshift install log


$ openshift-install version
./openshift-install 4.8.0-0.nightly-2021-05-18-164623
built from commit 65650b2689cadf5627992f733b41970444ed55be
release image quay.io/openshift-release-dev/ocp-release-nightly@sha256:a74be79fd7549642a838b783957f1164593ba8fb38f279fd40544ccef32ee963


RHV (ovirt)

Please specify:
* IPI (automated install with `openshift-install`. If you don't know, then it's IPI)

What happened?

I tried to create an install config in a 2 host RHV cluster, it failed because there are not enough hosts to create 3 affinity groups. It always fails in this case.

What did you expect to happen?

The install-config should have been generated, then I could edit it to disable affinity groups and create my cluster.

How to reproduce it (as minimally and precisely as possible)?

openshift-install create install-config --dir my-install --log-level info

? SSH Public Key id_rsa.pub
? Platform ovirt
? Cluster Ultron
? Storage domain ocpnightly
? Network ocprhv
? Internal API virtual IP
? Ingress virtual IP
? Base Domain lab
? Cluster Name nightly
? Pull Secret [? for help] *****
FATAL failed to fetch Install Config: failed to generate asset "Install Config": [platform.ovirt.affinityGroups: Invalid value: ovirt.AffinityGroup{Name:"compute", Priority:3, Description:"AffinityGroup for spreading each compute machine to a different host", Enforcing:true}: Affinity Group compute cannot be fulfilled, oVirt cluster doesn'thave enough hosts: found 2 hosts but 3 replicas assigned to affinity group, platform.ovirt.affinityGroups: Invalid value: ovirt.AffinityGroup{Name:"controlplane", Priority:5, Description:"AffinityGroup for spreading each control plane machine to a different host", Enforcing:true}: Affinity Group controlplane cannot be fulfilled, oVirt cluster doesn'thave enough hosts: found 2 hosts but 3 replicas assigned to affinity group]

Anything else we need to know?

see attached Openshift-install.log

Comment 2 michal 2021-05-24 13:27:23 UTC
ocp: openshift-install-linux-4.8.0-0.nightly-2021-05-21-233425

1. ./openshift-install create install-config --dir my-install
install-config file created successfully.
user can edit the install config and remove the Affinity Group
and installation without Affinity succeed 

Affinity Group doesn't support maintenance host

Comment 5 errata-xmlrpc 2021-07-27 23:09:14 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 (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.