Bug 1962274 - OCP on RHV installer fails to generate an install-config with only 2 hosts in RHV cluster
Summary: OCP on RHV installer fails to generate an install-config with only 2 hosts in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.8
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: ---
: 4.8.0
Assignee: Gal Zaidman
QA Contact: michal
URL:
Whiteboard:
Depends On:
Blocks: 1931217
TreeView+ depends on / blocked
 
Reported: 2021-05-19 16:24 UTC by Peter Lauterbach
Modified: 2021-07-27 23:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 23:09:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Openshift install log (3.84 KB, text/plain)
2021-05-19 16:24 UTC, Peter Lauterbach
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 4944 0 None open Bug 1962274: oVirt move affinity groups validations to ValidateForProvisioning 2021-05-20 07:20:54 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:09:36 UTC

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

Version:

$ 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

Platform:

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 172.16.7.110
? Ingress virtual IP 172.16.7.111
? 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
rhv: 4.4.6.5
ocp: openshift-install-linux-4.8.0-0.nightly-2021-05-21-233425

steps:
1. ./openshift-install create install-config --dir my-install
actual:
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.

https://access.redhat.com/errata/RHSA-2021:2438


Note You need to log in before you can comment on or make changes to this bug.