Bug 2034147 - OpenShift VMware IPI Installation fails with Resource customization when corespersocket is unset and vCPU count is not a multiple of 4
Summary: OpenShift VMware IPI Installation fails with Resource customization when core...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.9
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Aditya Narayanaswamy
QA Contact: Wenxin Wei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-20 08:34 UTC by Nitish Kaushik
Modified: 2022-08-10 10:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Proper validation was missing for the field "corespersocket" Consequence: The corespersocket value can be more than the numCores set, causing problems during cluster creation Fix: Added a validation for the corespersocket Result: User warned before creating cluster and asked to fix before creation
Clone Of:
Environment:
Last Closed: 2022-08-10 10:40:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 5656 0 None open Bug 2034147: Validate num cores with vcpus 2022-02-21 14:33:58 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:41:00 UTC

Comment 1 Dale Bewley 2022-02-09 20:44:58 UTC
The change is flagged as an enhancement so Doc Type set accordingly. https://github.com/openshift/installer/commit/ea437be225b14fd75a29c881c0ce1c2e9767b61f

Comment 4 Wenxin Wei 2022-03-07 03:42:33 UTC
before fix:

set num_cpus: 6:

output error:
level=error msg=Error: error powering on virtual machine: powerOn task for vm "/SDDC-Datacenter/vm/wwei-bugtest-fb4kx/wwei-bugtest-fb4kx-master-0" failed: Module CPUID power on failed. 


after fix:

set num_cpus: 6:
    coresPerSocket:

output error:
level=fatal msg=failed to fetch Master Machines: failed to load asset "Install Config": invalid "install-config.yaml" file: controlPlane.platform.vsphere.cpus: Invalid value: 6: numCPUs specified should be a multiple of cores per socket which is by default 4



set num_cpus:
    coresPerSocket: 6
./openshift-install create manifests --dir ./
FATAL failed to fetch Master Machines: failed to load asset "Install Config": invalid "install-config.yaml" file: compute[0].platform.vsphere.coresPerSocket: Invalid value: 6: cores per socket must be less than number of CPUs which is by default 4

set num_cpus: 4
    coresPerSocket: 6
./openshift-install create manifests --dir ./
FATAL failed to fetch Master Machines: failed to load asset "Install Config": invalid "install-config.yaml" file: compute[0].platform.vsphere.coresPerSocket: Invalid value: 6: cores per socket must be less than number of CPUs  

set num_cpus: 6
    coresPerSocket: 4

./openshift-install create manifests --dir ./
FATAL failed to fetch Master Machines: failed to load asset "Install Config": invalid "install-config.yaml" file: compute[0].platform.vsphere.cpus: Invalid value: 6: numCPUs specified should be a multiple of cores per socket

Comment 5 Joseph Callen 2022-03-07 18:58:49 UTC
Is this going to be backported to 4.10?

Comment 6 Wenxin Wei 2022-03-08 03:30:01 UTC
reproduce version:
 registry.ci.openshift.org/ocp/release:4.9.0-0.nightly-2022-03-03-053721

verified version:
 registry.ci.openshift.org/ocp/release:4.11.0-0.nightly-2022-03-04-063157

the details refer to comment 4 above

Comment 11 errata-xmlrpc 2022-08-10 10:40:43 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 (Important: OpenShift Container Platform 4.11.0 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-2022:5069


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