Skip to content

Commit 2ef80e8

Browse files
Release v1.4.2 (#77)
1 parent 1b1e986 commit 2ef80e8

File tree

18 files changed

+103
-141
lines changed

18 files changed

+103
-141
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL = bash
22

3-
PKG_VERSION ?= v1.4.1
3+
PKG_VERSION ?= v1.4.2
44
OCI_DRIVER_VERSION ?= v1.32.0
55

66
PRE_COMMIT := $(shell command -v pre-commit 2> /dev/null)

custom_manifests/manifests/01-oci-csi.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -517,17 +517,17 @@ parameters:
517517

518518
---
519519

520-
# # https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/volume-snapshot-and-restore-using-csi.md
521-
# apiVersion: snapshot.storage.k8s.io/v1
522-
# kind: VolumeSnapshotClass
523-
# metadata:
524-
# name: oci-snapshot
525-
# annotations:
526-
# snapshot.storage.kubernetes.io/is-default-class: "true"
527-
# driver: blockvolume.csi.oraclecloud.com
528-
# parameters:
529-
# backupType: full
530-
# deletionPolicy: Delete
520+
# https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/volume-snapshot-and-restore-using-csi.md
521+
apiVersion: snapshot.storage.k8s.io/v1
522+
kind: VolumeSnapshotClass
523+
metadata:
524+
name: oci-snapshot
525+
annotations:
526+
snapshot.storage.kubernetes.io/is-default-class: "true"
527+
driver: blockvolume.csi.oraclecloud.com
528+
parameters:
529+
backupType: full
530+
deletionPolicy: Delete
531531

532532
---
533533

custom_manifests/oci-ccm-csi-drivers/v1.32.0-UHP/01-oci-csi.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -532,17 +532,17 @@ reclaimPolicy: Delete
532532

533533
---
534534

535-
# # https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/volume-snapshot-and-restore-using-csi.md
536-
# apiVersion: snapshot.storage.k8s.io/v1
537-
# kind: VolumeSnapshotClass
538-
# metadata:
539-
# name: oci-snapshot
540-
# annotations:
541-
# snapshot.storage.kubernetes.io/is-default-class: "true"
542-
# driver: blockvolume.csi.oraclecloud.com
543-
# parameters:
544-
# backupType: full
545-
# deletionPolicy: Delete
535+
# https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/volume-snapshot-and-restore-using-csi.md
536+
apiVersion: snapshot.storage.k8s.io/v1
537+
kind: VolumeSnapshotClass
538+
metadata:
539+
name: oci-snapshot
540+
annotations:
541+
snapshot.storage.kubernetes.io/is-default-class: "true"
542+
driver: blockvolume.csi.oraclecloud.com
543+
parameters:
544+
backupType: full
545+
deletionPolicy: Delete
546546

547547
---
548548

custom_manifests/oci-ccm-csi-drivers/v1.32.0/01-oci-csi.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -517,17 +517,17 @@ parameters:
517517

518518
---
519519

520-
# # https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/volume-snapshot-and-restore-using-csi.md
521-
# apiVersion: snapshot.storage.k8s.io/v1
522-
# kind: VolumeSnapshotClass
523-
# metadata:
524-
# name: oci-snapshot
525-
# annotations:
526-
# snapshot.storage.kubernetes.io/is-default-class: "true"
527-
# driver: blockvolume.csi.oraclecloud.com
528-
# parameters:
529-
# backupType: full
530-
# deletionPolicy: Delete
520+
# https://github.com/oracle/oci-cloud-controller-manager/blob/master/docs/volume-snapshot-and-restore-using-csi.md
521+
apiVersion: snapshot.storage.k8s.io/v1
522+
kind: VolumeSnapshotClass
523+
metadata:
524+
name: oci-snapshot
525+
annotations:
526+
snapshot.storage.kubernetes.io/is-default-class: "true"
527+
driver: blockvolume.csi.oraclecloud.com
528+
parameters:
529+
backupType: full
530+
deletionPolicy: Delete
531531

532532
---
533533

docs/openshift-virtualization.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
- [Limits and Considerations](#limitations-and-considerations)
55
- [Installation](#installation)
66

7-
[OpenShift Virtualization](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/virtualization/index) provides scalable, enterprise-grade virtualization in OpenShift. You can use it to manage virtual machines (VMs) exclusively or alongside container workloads. Another use-case for OpenShift Virtualization is as a migration destination for VMs moving from vSphere to OpenShift using the Migration Toolkit for Virtualization.
7+
[OpenShift Virtualization](https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/virtualization/index) provides scalable, enterprise-grade virtualization in OpenShift. You can use it to manage virtual machines (VMs) exclusively or alongside container workloads. Another use-case for OpenShift Virtualization is as a migration destination for VMs moving from vSphere to OpenShift using the Migration Toolkit for Virtualization.
88

99
In collaboration with Red Hat and their Virtualization team, OpenShift Virtualization is available for OpenShift on OCI.
1010

1111
For more information, see:
12-
- [Red Hat - Planning and Installing OpenShift Virtualization](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/virtualization/getting-started#planning-and-installing-virt_virt-getting-started)
12+
- [Red Hat - Planning and Installing OpenShift Virtualization](https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/virtualization/getting-started#planning-and-installing-virt_virt-getting-started)
1313
- [Red Hat - Migration Toolkit for Virtualization](https://developers.redhat.com/products/mtv/overview)
1414

1515
## Prerequisites
@@ -25,7 +25,7 @@ We also recommend that you use Ultra High Performance Raw Block Volumes (UHP RBV
2525
2626
For more information, see:
2727
- [oci-openshift - STORAGE.md](/docs/STORAGE.md)
28-
- [Red Hat - Planning a bare metal cluster for OpenShift Virtualization](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html-single/installing_on_bare_metal/index#virt-planning-bare-metal-cluster-for-ocp-virt_preparing-to-install-on-bare-metal)
28+
- [Red Hat - Planning a bare metal cluster for OpenShift Virtualization](https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html-single/installing_on_bare_metal/index#virt-planning-bare-metal-cluster-for-ocp-virt_preparing-to-install-on-bare-metal)
2929
- [OCI - OpenShift on OCI: Supported Shapes](https://docs.oracle.com/en-us/iaas/Content/openshift-on-oci/overview.htm#supported-shapes)
3030
- [OCI - Bare Metal Compute Shapes](https://docs.oracle.com/en-us/iaas/Content/Compute/References/computeshapes.htm#baremetalshapes)
3131
- [OCI - Ultra High Performance Block Volumes](https://docs.oracle.com/en-us/iaas/Content/Block/Concepts/blockvolumeultrahighperformance.htm)
@@ -87,39 +87,41 @@ reclaimPolicy: Delete
8787
---
8888
8989
### Installing OpenShift Virtualization
90-
1. Follow the [installation](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/virtualization/installing#virt-installing-virt-operator_installing-virt) documentation from Red Hat to install the OpenShift Virtualization operator.
90+
1. Follow the [installation](https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/virtualization/installing#virt-installing-virt-operator_installing-virt) documentation from Red Hat to install the OpenShift Virtualization operator.
9191
92-
2. After you have installed the OpenShift Virtualization operator and created your HyperConverged instance, you need to [update](https://docs.redhat.com/en/documentation/openshift_container_platform/4.18/html/virtualization/storage#virt-configuring-storage-profile) the StorageProfile for your **default** StorageClass:
93-
```
92+
2. After you have installed the OpenShift Virtualization operator and created your HyperConverged instance, verify the StorageProfiles created by HyperConverged and [update](https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/virtualization/storage#virt-configuring-storage-profile) them if needed:
93+
```bash
9494
oc patch storageprofile oci-bv-uhp --type=merge -p '{"spec": {"claimPropertySets": [{"accessModes": ["ReadWriteMany","ReadWriteOnce"], "volumeMode": "Block"}], "cloneStrategy": "csi-clone"}}'
9595
```
9696
97-
3. To clone VMs, you must have a **default** StorageClass. If no StorageClass is annotated as the **default**, you can patch an existing StorageClass. For Ultra High Performance (UHP) Block Volumes, use `oci-bv-uhp`:
98-
```
97+
3. You must have a **default** StorageClass for OpenShift Virtualization. If no StorageClass is annotated as the **default**, you can annotate/patch an existing StorageClass. For Ultra High Performance (UHP) Block Volumes, use `oci-bv-uhp` from the [Using the UHP CSI Driver](#using-the-uhp-csi-driver):
98+
99+
Annotate it if necessary:
100+
```bash
99101
oc patch storageclass oci-bv-uhp -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
100102
```
101103

102-
4. **If you want to be able to clone VMs or use snapshot/restore operations, you must manually create the `VolumeSnapshotClass` resource after installation.**
103-
The OCI CSI driver supports snapshotting, but the `VolumeSnapshotClass` is **not installed by default** for compatibility reasons.
104-
Create the following manifest and apply it to your cluster:
105-
106-
```yaml
107-
apiVersion: snapshot.storage.k8s.io/v1
108-
kind: VolumeSnapshotClass
109-
metadata:
110-
name: oci-snapshot
111-
annotations:
112-
snapshot.storage.kubernetes.io/is-default-class: "true"
113-
driver: blockvolume.csi.oraclecloud.com
114-
parameters:
115-
backupType: full
116-
deletionPolicy: Delete
117-
```
104+
4. The OCI CSI driver supports snapshotting, and if you want to be able to clone VMs or perform snapshot/restore operations, you must have a **default** `VolumeSnapshotClass`. The `oci-snapshot` `VolumeSnapshotClass` is annotated as the **default** and included in the `dynamic_custom_manifest` output from `create-cluster` (**>=v1.4.2**).
105+
106+
If you are missing a `VolumeSnapshotClass` and need to add one to an existing cluster, review the following manifest and apply it to your cluster:
107+
108+
```yaml
109+
apiVersion: snapshot.storage.k8s.io/v1
110+
kind: VolumeSnapshotClass
111+
metadata:
112+
name: oci-snapshot
113+
annotations:
114+
snapshot.storage.kubernetes.io/is-default-class: "true"
115+
driver: blockvolume.csi.oraclecloud.com
116+
parameters:
117+
backupType: full
118+
deletionPolicy: Delete
119+
```
118120

119-
Apply it with:
121+
Apply it with:
120122

121-
```bash
122-
oc apply -f <your-volumesnapshotclass-file>.yaml
123-
```
123+
```bash
124+
oc apply -f oci-snapshot.yaml
125+
```
124126

125127
For more details, see [STORAGE.md - Enabling VolumeSnapshotClass](/docs/STORAGE.md#enabling-volumesnapshotclass).

terraform-stacks/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ Create the OCI resources for an OpenShift cluster on OCI and facilitate the inst
8585
- Count: 3
8686
- Shape: VM.Standard.E5.Flex
8787
- OCPU: 6
88-
- Memory: 16 GB
88+
- Memory: 32 GB
8989
- Boot Volume
90-
- Size: 1024 GB
90+
- Size: 300 GB
9191
- VPUs/GB: 30
9292

9393
#### OCI Resources
@@ -166,9 +166,9 @@ Create the OCI resources for an OpenShift cluster on OCI and facilitate the inst
166166
- Count: 3
167167
- Shape: VM.Standard.E5.Flex
168168
- OCPU: 6
169-
- Memory: 16 GB
169+
- Memory: 32 GB
170170
- Boot Volume
171-
- Size: 100 GB
171+
- Size: 300 GB
172172
- VPUs/GB: 30
173173

174174
#### Compact Bare Metal

terraform-stacks/add-nodes/schema.yaml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
#
2-
# Copyright (c) 2024 Oracle and/or its affiliates. Licensed under the Universal Permissive License (UPL), Version 1.0. See LICENSE for more details.
3-
#
4-
5-
title: Adding Nodes to OpenShift Cluster on OCI
1+
title: Add Nodes to OpenShift Cluster on OCI - v1.4.2
62
description: A Terraform Stack for creating resources required for adding nodes to OpenShift Cluster on OCI
7-
schemaVersion: 1.1.0
8-
version: "20241106"
3+
schemaVersion: 1.4.2
4+
version: "20250916"
95
locale: "en"
106

117

@@ -227,49 +223,37 @@ variables:
227223
compute_shape:
228224
type: string
229225
title: Compute Shape
230-
description: Compute Instance shape of compute nodes. For more detail regarding supported shapes, please visit https://docs.oracle.com/en-us/iaas/Content/openshift-on-oci/overview.htm#supported-shapes
231-
default: "VM.Standard.E5.Flex"
232226
required: true
233227

234228
compute_count:
235229
type: integer
236230
title: Compute Node Count
237-
description: The number of compute nodes to add to the cluster. The default value is 1.
238231
required: true
239-
default: 1
240232

241233
compute_ocpu:
242234
type: integer
243235
title: Compute Node OCPU
244-
description: The number of OCPUs available for the shape of each compute node. The default value is 6.
245-
default: 6
246236
minimum: 1
247237
maximum: 144
248238
required: true
249239

250240
compute_memory:
251241
type: integer
252242
title: Compute Node Memory
253-
description: The amount of memory available for the shape of each compute node, in gigabytes. The default value is 16.
254-
default: 16
255243
minimum: 1
256244
maximum: 1760
257245
required: true
258246

259247
compute_boot_size:
260248
type: integer
261249
title: Compute Node Boot Volume
262-
description: The size of the boot volume of each compute node in GBs. The minimum value is 50 GB and the maximum value is 32,768 GB (32 TB). The default value is 100 GB.
263-
default: 100
264250
minimum: 50
265251
maximum: 32768
266252
required: true
267253

268254
compute_boot_volume_vpus_per_gb:
269255
type: integer
270256
title: Compute Node VPU
271-
description: The number of volume performance units (VPUs) that will be applied to this volume per GB of each compute node. The default value is 30.
272-
default: 30
273257
minimum: 10
274258
maximum: 120
275259
multipleOf: 10

terraform-stacks/add-nodes/variables.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ variable "compute_count" {
6363
variable "compute_shape" {
6464
default = "VM.Standard.E5.Flex"
6565
type = string
66-
description = "Compute shape of the compute nodes. The default shape is BM.Standard3.64. For more detail regarding supported shapes, please visit https://docs.oracle.com/en-us/iaas/Content/openshift-on-oci/overview.htm#supported-shapes"
66+
description = "Compute shape of the compute nodes. The default shape is VM.Standard.E5.Flex for VM setup and BM.Standard3.64 for BM setup. For more details regarding supported shapes, review OpenShift on OCI <a href='https://docs.oracle.com/en-us/iaas/Content/openshift-on-oci/overview.htm#supported-shapes'>supported shapes</a>."
6767
}
6868

6969
variable "compute_ocpu" {
7070
default = 6
7171
type = number
72-
description = "The number of OCPUs available for the shape of each compute node. The default value is 4. "
72+
description = "The number of OCPUs available for the shape of each compute node."
7373

7474
validation {
7575
condition = var.compute_ocpu >= 1 && var.compute_ocpu <= 114
@@ -89,9 +89,9 @@ variable "compute_boot_volume_vpus_per_gb" {
8989
}
9090

9191
variable "compute_memory" {
92-
default = 16
92+
default = 32
9393
type = number
94-
description = "The amount of memory available for the shape of each compute node, in gigabytes. The default value is 16."
94+
description = "The amount of memory available for the shape of each compute node, in gigabytes."
9595

9696
validation {
9797
condition = var.compute_memory >= 1 && var.compute_memory <= 1760
@@ -100,9 +100,9 @@ variable "compute_memory" {
100100
}
101101

102102
variable "compute_boot_size" {
103-
default = 100
103+
default = 300
104104
type = number
105-
description = "The size of the boot volume of each compute node in GBs. The minimum value is 50 GB and the maximum value is 32,768 GB (32 TB). The default value is 100 GB."
105+
description = "The size of the boot volume of each compute node in GBs. The minimum value is 50 GB and the maximum value is 32,768 GB (32 TB)."
106106

107107
validation {
108108
condition = var.compute_boot_size >= 50 && var.compute_boot_size <= 32768
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
locals {
2-
stack_version = "v1.4.1"
2+
stack_version = "v1.4.2"
33
}

terraform-stacks/create-cluster/schema.yaml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
#
2-
# Copyright (c) 2019-2020 Oracle and/or its affiliates. All rights reserved.
3-
#
4-
5-
title: OpenShift on OCI
1+
title: OpenShift Cluster on OCI - v1.4.2
62
description: A Terraform Stack for creating resources required for installing OpenShift on OCI
7-
schemaVersion: 1.2.0
8-
version: "20250602"
3+
schemaVersion: 1.4.2
4+
version: "20250916"
95
locale: "en"
106

117
variableGroups:
@@ -368,49 +364,38 @@ variables:
368364
compute_shape:
369365
type: string
370366
title: Compute Shape
371-
description: Compute Instance shape of compute nodes. For more details, review OpenShift on OCI <a href='https://docs.oracle.com/en-us/iaas/Content/openshift-on-oci/overview.htm#supported-shapes'>supported shapes</a>
372367
default: "VM.Standard.E5.Flex"
373368
required: true
374369

375370
compute_count:
376371
type: integer
377372
title: Compute Node Count
378-
description: The number of compute nodes in the cluster. The default value is 3.
379373
required: true
380-
default: 3
381374

382375
compute_ocpu:
383376
type: integer
384377
title: Compute Node OCPU
385-
description: The number of OCPUs available for the shape of each compute node. The default value is 6.
386-
default: 6
387378
minimum: 1
388379
maximum: 144
389380
required: true
390381

391382
compute_memory:
392383
type: integer
393384
title: Compute Node Memory
394-
description: The amount of memory available for the shape of each compute node, in gigabytes. The default value is 16.
395-
default: 16
396385
minimum: 1
397386
maximum: 1760
398387
required: true
399388

400389
compute_boot_size:
401390
type: integer
402391
title: Compute Node Boot Volume
403-
description: The size of the boot volume of each compute node in GBs. The minimum value is 50 GB and the maximum value is 32,768 GB (32 TB). The default value is 100 GB.
404-
default: 100
405392
minimum: 50
406393
maximum: 32768
407394
required: true
408395

409396
compute_boot_volume_vpus_per_gb:
410397
type: integer
411398
title: Compute Node VPU
412-
description: The number of volume performance units (VPUs) that will be applied to this volume per GB of each compute node. The default value is 30.
413-
default: 30
414399
minimum: 10
415400
maximum: 120
416401
multipleOf: 10

0 commit comments

Comments
 (0)