openshift-manage-in-process-machines¶
A task to take pre-install machines and manage them into or out of the OpenShift cluster
This task processes the machines that are in-process, meaning they have been allocated
but not yet consumed by the OpenShift cluster. It manages these machines into the cluster
based on the role defined by openshift/role parameter and handles the necessary steps to
complete their integration (Approving CSRs, etc.).
Machines without the openshift/role parameter that were previously part of the cluster
will be removed from the cluster and released back to the pool.
Requirements¶
- Must be used with
universal-application-openshift-cluster - Assumes that the pool is defined by
broker-pool/poolor the name of the cluster.
Parameters¶
- openshift/version: The OpenShift version to use for the node installation.
Usage¶
- The system will wait for the machines to be ready.
- The in-process flag will be cleared.
- This will inject manifests into the OpenShift cluster for the machines.
Machine config delivery¶
A joining machine renders its own ignition from
openshift/worker or
openshift/controlplane, but a
machine cannot read values held by its cluster. This task therefore copies
the machine config for the machine's role from the cluster onto the machine
before starting its install, and removes the copy once the node has booted.
- The copy is a sealed secure param on the machine object. It is the same whether the cluster keeps its secrets in DRP or in an external secret store; the store stays the permanent home and is not written to.
- If the cluster has no usable machine config for the role, the task fails before starting the install.
- If a machine times out before booting, its copy is left in place so a late boot still gets its machine config. No later run approves that node's CSRs, so they have to be approved by hand.
- Each run first removes copies left on machines that have already booted, which covers a timed-out machine that joined later and a run that ended early. Releasing a machine from the cluster removes its copy as well.
- This task owns
openshift/workerandopenshift/controlplaneon member machines. A value set on a member machine by hand is overwritten when the config is delivered and removed along with the copy. - Because the copy is removed after the install, a node can only be reinstalled through this blueprint: remove it from the cluster, then add it again. Rerunning the node's workflow by hand installs it without a machine config.
Objects that Reference openshift-manage-in-process-machines¶
- blueprints openshift-cluster-add-nodes in Openshift as part of Tasks (declared)
Objects used by openshift-manage-in-process-machines¶
- templates prelude.tmpl
- templates openshift-cluster-prelude.sh.tmpl
- params openshift/cluster-complete
- params broker/set-pipeline
- params openshift/version
- params broker/set-workflow
- params broker-pool/pool
- params broker-pool/return-workflow
- params broker-pool/return-pipeline
- params openshift/allow-node-removal