Uploaded image for project: 'Agent-based Installer for OpenShift'
  1. Agent-based Installer for OpenShift
  2. AGENT-1031

Enabling Host Role Assignment for OCI Instances Using Cloud-Init

XMLWordPrintable

    • Icon: Spike Spike
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • openshift-4.17, openshift-4.18
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Description:

      Oracle Cloud Infrastructure (OCI) imposes a limitation where the MAC addresses of instances cannot be determined in advance. This limitation prevents the assignment of host roles via the `agent-config.yaml` file during deployment. 

      Ref: https://docs.openshift.com/container-platform/4.17/installing/installing_with_agent_based_installer/preparing-to-install-with-agent-based-installer.html#agent-host-roles_preparing-to-install-with-agent-based-installer 

      OCI instances, however, support specifying a cloud-init script. This capability can be leveraged to dynamically assign a role to each instance.

      Ref: https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengusingcustomcloudinitscripts.htm 

      The role assignment can then be processed by a new `systemd` service that runs conditionally on OCI instances.

      Objectives:

      1. Investigate the use of OCI's cloud-init script to embed role information into the instance configuration.
      2. Explore the feasibility of a systemd service that:

      • Detects whether it is running on an OCI instance.
      • Reads the role assigned via cloud-init.
      • Propagates this role to the agent configuration or a relevant service.

      3. Evaluate potential edge cases, such as:

      • Multiple roles per instance.
      • Non-OCI environments misinterpreting OCI-specific configurations.

      This spike will help establish a robust mechanism to assign host roles in OCI environments without relying on MAC address information.

              ppinjark@redhat.com pawan pinjarkar
              ppinjark@redhat.com pawan pinjarkar
              pawan pinjarkar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: