Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FFU multi-rhel support #900

Merged

Conversation

olliewalsh
Copy link
Contributor

@olliewalsh olliewalsh commented Aug 31, 2023

Adds tripleoRoleOverride param to config generator to allow a different t-h-t role to be applied to a subset of hosts in heat.
Heat indices are shuffled around to compensate but the actual hostnames remain unchanged.

For example:

    tripleoRoleOverride:
      Compute:
        roleName: ComputeRhel8
        hostIndexMap:
          1: true
          3: true
      ComputeFoo:
        roleName: ComputeFooRhel8
        hostIndexMap:
          0: true
          1: false
          2: false
          3: false
          4: false
          5: true

compute-0 remains the same in heat
compute-1 becomes computerhel8-0 in heat (still compute-1 in hostnamemap)
compute-2 becomes compute-1 in heat (still compute-2 in hostnamemap)
compute-3 becomes computerhel8-1 (still compute-3 in hostnamemap)
compute-4 becomes compute-2 in heat (still compute-4 in hostnamemap)

Then, as per a regular director-driven deployment, the role params for the new role can be used to override the contain images etc... just for that role to use the rhel8 config.

hostIndexMap entries default to false if not set, but can be set explicitly e.g to keep track of which hosts have already been migrated to rhel9

Adds tripleoRoleOverride param to config generator to allow a different t-h-t
role to be applied to a subset of hosts in heat.
Heat indices are shuffled around to compensate but the actual hostnames remain
unchanged.

For example:
    tripleoRoleOverride:
      Compute:
        roleName: ComputeRhel8
        hostIndexMap:
          1: true
          3: true
      ComputeFoo:
        roleName: ComputeFooRhel8
        hostIndexMap:
          0: true
          1: false
          2: false
          3: false
          4: false
          5: true

compute-0 remains the same in heat
compute-1 becomes computerhel8-0 in heat (still compute-1 in hostnamemap)
compute-2 becomes compute-1 in heat (still compute-2 in hostnamemap)
compute-3 becomes computerhel8-1 (still compute-3 in hostnamemap)
compute-4 becomes compute-2 in heat (still compute-4 in hostnamemap)

Then, as per a regular director-driven deployment, the role params for
the new role can be used to override the contain images etc... just for
that role to use the rhel8 config.

hostIndexMap entries default to false if not set, but can be set explicitly
e.g to keep track of which hosts have already been migrated to rhel9
@olliewalsh olliewalsh force-pushed the multirhel branch 2 times, most recently from 9189b1c to 1a4711f Compare September 12, 2023 10:02
Copy link
Contributor

@stuggi stuggi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: olliewalsh, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 6d0ead7 into openstack-k8s-operators:master Sep 13, 2023
3 checks passed
@stuggi
Copy link
Contributor

stuggi commented Sep 13, 2023

/cherry-pick v1.3.x

@openshift-cherrypick-robot

@stuggi: new pull request created: #913

In response to this:

/cherry-pick v1.3.x

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants