Skip to content

Commit

Permalink
Add OCI controller implemented with oracle API code.
Browse files Browse the repository at this point in the history
This patch allow us decouple terraform code from cluster testing.
Terraform provided by oracle and maintained by them.
Terraform version / code may be updated by oracle .

We run the test same as customer , created support for the next steps:
1. Create a bucket (object-storage)
2. Upload ISO file to the object-storage bucket
3. Create pre authenticated - return ISO download link from OCI storage
4. Create a stack , declare the provision configuration.
5. Upload infrastructure zip file to the stack and set terraform variable
6. Start running job creating oci nodes discovered by redhat cluster and return terraform output files
7. Once nodes are discovered we configure manifest return in #6

We handle cleanup on teardown , running destory .
  • Loading branch information
bkopilov committed Sep 12, 2024
1 parent 4ba9c2b commit d20030c
Show file tree
Hide file tree
Showing 7 changed files with 486 additions and 2 deletions.
3 changes: 3 additions & 0 deletions skipper.env
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ DAY2_PROVISIONING_CIDR6
DAY2_NETWORK_IF
DAY2_SECONDARY_NETWORK_IF
OCI_COMPARTMENT
OCI_COMPUTE_SHAPE
OCI_CONTROLLER_SHAPE
OCI_INFRASTRUCTURE_ZIP_FILE
OCI_USER
OCI_PRIVATE_KEY_PATH
OCI_PUBLIC_KEY_FINGERPRINT
Expand Down
2 changes: 2 additions & 0 deletions src/assisted_test_infra/test_infra/controllers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .node_controllers.node import Node
from .node_controllers.nutanix_controller import NutanixController
from .node_controllers.oci_controller import OciController
from .node_controllers.oci_api_controller import OciApiController
from .node_controllers.terraform_controller import TerraformController
from .node_controllers.vsphere_controller import VSphereController
from .proxy_controller.proxy_controller import ProxyController
Expand All @@ -25,6 +26,7 @@
"TerraformController",
"LibvirtController",
"OciController",
"OciApiController",
"VSphereController",
"NutanixController",
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from .node import Node
from .node_controller import NodeController
from .oci_controller import OciController
from .oci_api_controller import OciApiController
from .terraform_controller import TerraformController
from .vsphere_controller import VSphereController
from .zvm_controller import ZVMController
Expand All @@ -15,5 +16,6 @@
"Node",
"LibvirtController",
"OciController",
"OciApiController",
"ZVMController",
]
Loading

0 comments on commit d20030c

Please sign in to comment.