Skip to contentSkip to conversation

terraform/oci: Add VM.Standard.x86.Generic shape to available options

PATCH In review Chandan Babu R 3 participants 8 messages May 7, 2025 – May 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 terraform/oci: Add VM.Standard.x86.Generic shape to available options

The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel developers. This commit adds this shape to the list of available flexible shapes.

---
Chuck,

Kconfig's "choice" construct does not allow "free text" to be entered. Hence, I had to add the new entry as a choice.

Also, I did not find any official documentation for VM.Standard.x86.Generic. The limits for OCPUs and memory were obtained from the web console which is used during the creation of a VM.

 terraform/oci/kconfigs/shapes/Kconfig.flex | 7 +++++++
 1 file changed, 7 insertions(+)
terraform/oci/kconfigs/shapes/Kconfig.flex +7 -0
index 67d50604..c2b3f571 100644
@@ -9,6 +9,13 @@ choice
 
 	  https://docs.oracle.com/en-us/iaas/Content/Compute/References/computeshapes.htm#flexible
 
+config TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC
+       bool "VM.Standard.x86.Generic"
+	depends on TARGET_ARCH_X86_64
+	help
+	  Selecting this option provisions each guest with between 1
+	  and 32 OCPUs (physical cores) and up to 512MB of memory.
+
 config TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX
 	bool "VM.Standard3.Flex"
 	depends on TARGET_ARCH_X86_64
Signature · 1 line
2.45.2
#1 lore raw
Quoted 8 lines · Chandan Babu R

The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel developers. This commit adds this shape to the list of available flexible shapes.

---
Chuck,

Quoted 6 lines

Kconfig's "choice" construct does not allow "free text" to be entered. Hence, I had to add the new entry as a choice.

Also, I did not find any official documentation for VM.Standard.x86.Generic. The limits for OCPUs and memory were obtained from the web console which is used during the creation of a VM.

I don't understand. Is there a problem with commit 0283fcd8dc6f ("terraform/OCI: Add a generic shape selector") ?

Quoted 21 lines
 terraform/oci/kconfigs/shapes/Kconfig.flex | 7 +++++++
 1 file changed, 7 insertions(+)
terraform/oci/kconfigs/shapes/Kconfig.flex +7 -0
index 67d50604..c2b3f571 100644
@@ -9,6 +9,13 @@ choice
 
 	  https://docs.oracle.com/en-us/iaas/Content/Compute/References/computeshapes.htm#flexible
 
+config TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC
+       bool "VM.Standard.x86.Generic"
+	depends on TARGET_ARCH_X86_64
+	help
+	  Selecting this option provisions each guest with between 1
+	  and 32 OCPUs (physical cores) and up to 512MB of memory.
+
 config TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX
 	bool "VM.Standard3.Flex"
 	depends on TARGET_ARCH_X86_64
Signature · 1 line
Chuck Lever
#2 lore raw
In reply to Chandan Babu R
Quoted 10 lines · Chandan Babu R

The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel developers. This commit adds this shape to the list of available flexible shapes.

---
Chuck,

Kconfig's "choice" construct does not allow "free text" to be entered. Hence, I had to add the new entry as a choice.

You can resolve this as follows?

terraform/oci/kconfigs/shapes/Kconfig.flex +1 -0
index c2b3f5719c48..e8d0860aac67 100644
@@ -73,6 +73,7 @@ endchoice
 config TERRAFORM_OCI_SHAPE
 	string
 	output yaml
+	default "VM.Standard.x86.Generic" if TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC
 	default "VM.Standard3.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX
 	default "VM.Standard.E4.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E4_FLEX
 	default "VM.Standard.E5.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E5_FLEX
#3 lore raw
Quoted 19 lines · Luis Chamberlain
Quoted 10 lines · Chandan Babu R

The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel developers. This commit adds this shape to the list of available flexible shapes.

---
Chuck,

Kconfig's "choice" construct does not allow "free text" to be entered. Hence, I had to add the new entry as a choice.

You can resolve this as follows?

terraform/oci/kconfigs/shapes/Kconfig.flex +0 -0
index c2b3f5719c48..e8d0860aac67 100644

terraform/oci/kconfigs/shapes/Kconfig.flex endchoice · line 79

Quoted 7 lines
terraform/oci/kconfigs/shapes/Kconfig.flex +1 -0
@@ -73,6 +73,7 @@ endchoice
 config TERRAFORM_OCI_SHAPE
 	string
 	output yaml
+	default "VM.Standard.x86.Generic" if TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC
 	default "VM.Standard3.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX
 	default "VM.Standard.E4.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E4_FLEX
 	default "VM.Standard.E5.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E5_FLEX

I'm able to select the VM.Standard.x86.Generic shape by going to

Bring up methods -> Node bring up methods

Choose Terraform then OCI, then

Compute -> OCI shape family

and choose "Generic"

Is that not working?

Signature · 1 line
Chuck Lever
#4 lore raw
Quoted 32 lines · Chuck Lever
Quoted 19 lines · Luis Chamberlain
Quoted 10 lines · Chandan Babu R

The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel developers. This commit adds this shape to the list of available flexible shapes.

---
Chuck,

Kconfig's "choice" construct does not allow "free text" to be entered. Hence, I had to add the new entry as a choice.

You can resolve this as follows?

terraform/oci/kconfigs/shapes/Kconfig.flex +0 -0
index c2b3f5719c48..e8d0860aac67 100644

terraform/oci/kconfigs/shapes/Kconfig.flex endchoice · line 79

Quoted 7 lines
terraform/oci/kconfigs/shapes/Kconfig.flex +1 -0
@@ -73,6 +73,7 @@ endchoice
 config TERRAFORM_OCI_SHAPE
 	string
 	output yaml
+	default "VM.Standard.x86.Generic" if TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC
 	default "VM.Standard3.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX
 	default "VM.Standard.E4.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E4_FLEX
 	default "VM.Standard.E5.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E5_FLEX

I'm able to select the VM.Standard.x86.Generic shape by going to

Bring up methods -> Node bring up methods

Quoted 7 lines

Choose Terraform then OCI, then

Compute -> OCI shape family

and choose "Generic"

Is that not working?

Oh never mind, I thought Chandan had an issue with using kconfig choice to map to string. If the respective string is already populated my recomendaiton is nonsense :)

Luis

#5 lore raw
Quoted 37 lines · Luis Chamberlain
Quoted 36 lines · Chuck Lever
Quoted 19 lines · Luis Chamberlain
Quoted 10 lines · Chandan Babu R

The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel developers. This commit adds this shape to the list of available flexible shapes.

---
Chuck,

Kconfig's "choice" construct does not allow "free text" to be entered. Hence, I had to add the new entry as a choice.

You can resolve this as follows?

terraform/oci/kconfigs/shapes/Kconfig.flex +0 -0
index c2b3f5719c48..e8d0860aac67 100644

terraform/oci/kconfigs/shapes/Kconfig.flex endchoice · line 79

Quoted 7 lines
terraform/oci/kconfigs/shapes/Kconfig.flex +1 -0
@@ -73,6 +73,7 @@ endchoice
 config TERRAFORM_OCI_SHAPE
 	string
 	output yaml
+	default "VM.Standard.x86.Generic" if TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC
 	default "VM.Standard3.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX
 	default "VM.Standard.E4.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E4_FLEX
 	default "VM.Standard.E5.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E5_FLEX

I'm able to select the VM.Standard.x86.Generic shape by going to

Bring up methods -> Node bring up methods

Choose Terraform then OCI, then

Compute -> OCI shape family

Quoted 8 lines
Quoted 3 lines

and choose "Generic"

Is that not working?

Oh never mind, I thought Chandan had an issue with using kconfig choice to map to string. If the respective string is already populated my recomendaiton is nonsense :)

Sorry, it was my mistake. I did not check the options under "Generic Shapes".

Sorry once again.

Signature · 1 line
Chandan
#6 lore raw
Quoted 42 lines · Chandan Babu R
Quoted 41 lines · Luis Chamberlain
Quoted 39 lines · Chuck Lever
Quoted 19 lines · Luis Chamberlain
Quoted 10 lines · Chandan Babu R

The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel developers. This commit adds this shape to the list of available flexible shapes.

---
Chuck,

Kconfig's "choice" construct does not allow "free text" to be entered. Hence, I had to add the new entry as a choice.

You can resolve this as follows?

terraform/oci/kconfigs/shapes/Kconfig.flex +0 -0
index c2b3f5719c48..e8d0860aac67 100644

terraform/oci/kconfigs/shapes/Kconfig.flex endchoice · line 79

Quoted 7 lines
terraform/oci/kconfigs/shapes/Kconfig.flex +1 -0
@@ -73,6 +73,7 @@ endchoice
 config TERRAFORM_OCI_SHAPE
 	string
 	output yaml
+	default "VM.Standard.x86.Generic" if TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC
 	default "VM.Standard3.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX
 	default "VM.Standard.E4.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E4_FLEX
 	default "VM.Standard.E5.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E5_FLEX

I'm able to select the VM.Standard.x86.Generic shape by going to

Bring up methods -> Node bring up methods

Choose Terraform then OCI, then

Compute -> OCI shape family

and choose "Generic"

Is that not working?

Quoted 9 lines
Quoted 4 lines

Oh never mind, I thought Chandan had an issue with using kconfig choice to map to string. If the respective string is already populated my recomendaiton is nonsense :)

Sorry, it was my mistake. I did not check the options under "Generic Shapes".

Sorry once again.

It is perhaps not as obvious as it should be.

Signature · 1 line
Chuck Lever
#7 lore raw
Quoted 48 lines · Chuck Lever
Quoted 47 lines · Chandan Babu R
Quoted 45 lines · Luis Chamberlain
Quoted 32 lines · Chuck Lever
Quoted 19 lines · Luis Chamberlain
Quoted 10 lines · Chandan Babu R

The VM.Standard.x86.Generic is another shape available for Oracle Linux kernel developers. This commit adds this shape to the list of available flexible shapes.

---
Chuck,

Kconfig's "choice" construct does not allow "free text" to be entered. Hence, I had to add the new entry as a choice.

You can resolve this as follows?

terraform/oci/kconfigs/shapes/Kconfig.flex +0 -0
index c2b3f5719c48..e8d0860aac67 100644

terraform/oci/kconfigs/shapes/Kconfig.flex endchoice · line 79

Quoted 7 lines
terraform/oci/kconfigs/shapes/Kconfig.flex +1 -0
@@ -73,6 +73,7 @@ endchoice
 config TERRAFORM_OCI_SHAPE
 	string
 	output yaml
+	default "VM.Standard.x86.Generic" if TERRAFORM_OCI_SHAPE_VM_STANDARD_X86_GENERIC
 	default "VM.Standard3.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD3_FLEX
 	default "VM.Standard.E4.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E4_FLEX
 	default "VM.Standard.E5.Flex" if TERRAFORM_OCI_SHAPE_VM_STANDARD_E5_FLEX

I'm able to select the VM.Standard.x86.Generic shape by going to

Bring up methods -> Node bring up methods

Quoted 7 lines

Choose Terraform then OCI, then

Compute -> OCI shape family

and choose "Generic"

Is that not working?

Oh never mind, I thought Chandan had an issue with using kconfig choice to map to string. If the respective string is already populated my recomendaiton is nonsense :)

Quoted 6 lines
Quoted 4 lines

Sorry, it was my mistake. I did not check the options under "Generic Shapes".

Sorry once again.

It is perhaps not as obvious as it should be.

The classification of shapes is correct. I somehow missed the "Generic" shape menu entry.

Signature · 1 line
Chandan