Bug 1828638 - [vsphere-ipi] The disksize of master vm is hard coded to 120G, and could not customize through install_config
Summary: [vsphere-ipi] The disksize of master vm is hard coded to 120G, and could not ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.5.0
Assignee: Patrick Dillon
QA Contact: jima
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-28 01:42 UTC by jima
Modified: 2020-07-13 17:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: disk size for master nodes was hard coded Consequence: if a user specified master disk size in the install config it was ignored Fix: read specified value when creating master nodes Result: masters are created with specified disk size
Clone Of:
Environment:
Last Closed: 2020-07-13 17:32:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 3584 0 None closed Bug 1828638: set vSphere node diskSize based on machine pool 2020-06-24 01:25:52 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:32:18 UTC

Description jima 2020-04-28 01:42:45 UTC
Description of problem:
Install vsphere/ipi on ocp4.5 nightly build, after generating install-config through command "openshift-install create install-config, and update install-config to customize cpu,memory and disksize of master node and worker node, then continue installation, the disksize of master is always 120G. After checking code, it is hard coded.
https://github.com/openshift/installer/blob/master/data/data/vsphere/master/main.tf#L23


How reproducible:
100%

Steps to Reproduce:
1. run command "openshift-install create install-config" to generate install-config file
2. update install-config.yaml file to customize cpu,memory and disksize of master node and worker node
--------
apiVersion: v1
baseDomain: qe.devcluster.openshift.com
compute:
- hyperthreading: Enabled
  name: worker
  replicas: 2
  platform:
    vsphere:
      cpus: 4
      coresPerSocket: 2
      memoryMB: 4096
      osDisk:
        diskSizeGB: 50
controlPlane:
  hyperthreading: Enabled
  name: master
  replicas: 3
  platform:
    vsphere:
      cpus: 4
      coresPerSocket: 2
      memoryMB: 8192
      osDisk:
        diskSizeGB: 50
...

3. run command "openshift-install create cluster" to install cluster
4. After vms are created on vsphere server, checked that the disksize on master node is assigned to 120G

Actual results:
The disk size on master node is assigned to 120G

Expected results:
The disk size on master node should be one defined in install-config

Additional info:

Comment 3 jima 2020-05-13 06:35:10 UTC
Verified on 4.5.0-0.nightly-2020-05-13-014437, control_plane vm's disk has been set to expected one in customized install-config.

Comment 4 errata-xmlrpc 2020-07-13 17:32:07 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, 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:2409


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