Bug 2056460 - Implement preallocated disks for oVirt in the OCP installer
Summary: Implement preallocated disks for oVirt in the OCP installer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.11
Hardware: All
OS: All
high
high
Target Milestone: ---
: 4.11.0
Assignee: Janos Bonic
QA Contact: Veronika Fuxova
Eli Marcus
URL:
Whiteboard:
Depends On: 2056454
Blocks: 2035334
TreeView+ depends on / blocked
 
Reported: 2022-02-21 10:01 UTC by Janos Bonic
Modified: 2022-08-10 10:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-10 10:50:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 5594 0 None Draft WIP: Bug 2056460: Preallocated disks for OCP nodes 2022-02-21 10:03:17 UTC
Red Hat Issue Tracker OCPRHV-690 0 None None None 2022-02-21 10:01:10 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 10:51:03 UTC

Description Janos Bonic 2022-02-21 10:01:10 UTC
As per RFE 2035334, this BZ is tracking the implementation of preallocated disks for the control plane nodes and the intially created worker nodes.

This implementation exposes 3 options in the install config. (See https://docs.openshift.com/container-platform/4.9/installing/installing_rhv/installing-rhv-customizations.html for details.)

- clone: creates virtual machines that are cloned from the template instead of linking it to the original. (Default so far was: false)
- sparse: creates a thin-provisioned disk. (Default so far was: true)
- format: lets users switch disk formats. Can be "raw" or "cow". Raw disks don't support backups, but may be better for sparse provisioning on the underlying storage system. (Default so far was: "cow")

Suggestion for default values in this BZ is welcome. Default values will only be applied to newly created install configs. When using an install config from a previous OCP version the old default values will still be applied.

Note: The installer creates the control plane nodes with the given settings and the initial machine set for worker nodes. The control plane node configuration cannot be changed after installation at this time. The machine set for worker nodes can be updated and worker nodes can be replaced after the installation for preallocated worker nodes.

This change is dependent on the Terraform provider supporting these flags, which is not tracked in Bugzilla: https://github.com/oVirt/terraform-provider-ovirt/pull/313

Comment 4 Veronika Fuxova 2022-05-23 14:09:29 UTC
Verified by testing these three configurations: 

Configuration 1

This installation should be performed without modifications to the install config. The flags on the control plane nodes should be:

cloned
sparse provisioned
QCOW2 format

Configuration 2

In this configuration we preallocate disks and the following configuration should be used.

controlPlane: 
  platform: 
    ovirt: 
      clone: true 
      sparse: false
      format: raw
compute: 
  platform: 
    ovirt: 
      clone: true 
      sparse: false
      format: raw


Configuration 3

controlPlane: 
  platform: 
    ovirt: 
      clone: false 
      sparse: true
      format: cow
compute: 
  platform: 
    ovirt: 
      clone: false 
      sparse: true
      format: cow

OCP version: 4.11.0-0.nightly-2022-05-18-053037

Platform: RHV 4.5.0.6-0.7.el8ev

IPI


Steps: 

Configuration 1: 
1. Created new install-config using Openshift installer. 
2. Ran Openshift installation using unmodified install-config
3. Verified relevant flags on control plane and worker nodes as follows:
 
Masters:

    - Disk format
            Expected: cow
            Actual: cow

    - Sparseness
            Expected: true (thin provision)
            Actual: true (thin provision)

    - Cloned from the template
            Expected: true (Clone/Independent)
            Actual: true (Clone/Independent)

Workers:

    - Disk format
            Expected: cow
            Actual: cow

    - Sparseness
            Expected: true (thin provision)
            Actual: true (thin provision)

    - Cloned from the template
            Expected: true (Clone/Independent)
            Actual: true (Clone/Independent)

 

Configuration 2: 
1. Modified install-config as outlined above. 
2. Ran Openshift installation using modified install-config
3. Verified relevant flags on control plane and worker nodes as follows:
 
Masters:   

    - Disk format
            Expected: raw 
            Actual: raw

    - Sparseness
            Expected: false (preallocated)
            Actual: false (preallocated) 

    - Cloned from the template
            Expected: true (Clone/Independent)
            Actual: true (Clone/Independent) 

Workers:  

    - Disk format
            Expected: raw 
            Actual: raw

    - Sparseness
            Expected: false (preallocated)
            Actual: false (preallocated) 

    - Cloned from the template
            Expected: true (Clone/Independent)
            Actual: true (Clone/Independent)  

             
Configuration 3: 
1. Modified install-config as outlined above. 
2. Ran Openshift installation using modified install-config
3. Verified relevant flags on control plane and worker nodes as follows:

Masters:

    - Disk format
            Expected: cow
            Actual: cow

    - Sparseness
            Expected: true (thin provision)
            Actual: true (thin provision)

    - Cloned from the template
            Expected: false (Thin/Dependent)
            Actual: false (Thin/Dependent)

Workers:

    - Disk format
            Expected: cow
            Actual: cow

    - Sparseness
            Expected: true (thin provision)
            Actual: true (thin provision)

    - Cloned from the template
            Expected: false (Thin/Dependent)
            Actual: false (Thin/Dependent)

Comment 6 Eli Marcus 2022-06-27 13:19:14 UTC
Documentation  - new PR 
 https://github.com/openshift/openshift-docs/pull/47085

Comment 7 errata-xmlrpc 2022-08-10 10:50:27 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.