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

[WIP] MGMT-2977 Create cluster-specific minimal iso #926

Closed
wants to merge 6 commits into from

Conversation

carbonin
Copy link
Member

@carbonin carbonin commented Jan 14, 2021

This PR customizes the minimal iso for a specific cluster.

It adds an option to the iso generation endpoint to request either the minimal or the full iso. Only one can be used at a time, so whichever one was generated most recently will be downloaded.
To generate the cluster ISO we download the minimal iso template from s3 (using a cache) and make two sets of customizations:

  1. Add the discovery ignition to the iso directly (rather than patching the iso using s3 apis)
  2. Add the files in the discovery ignition as an additional image in the initrd stage of boot.
    - This may or may not be necessary depending on if MGMT-3510 requires it.

This will take a cluster and add the files specified in the
discovery ignition patch to the iso as an additional initrd image.

This will allow these customizations to take effect before the
rootfs is downloaded
This adds a type enum to both the cluster image info and the
image creation parameters
This will make it easier to share between the existing logic
which creates the archive then uploads it to s3 and the new logic
which will write the archive to the fs before bundling it into the
minimal iso directly
@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 14, 2021
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carbonin

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-ci-robot openshift-ci-robot added api-review Categorizes an issue or PR as actively needing an API review. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 14, 2021
@carbonin carbonin force-pushed the add_ignition_files_to_iso branch from 4b63649 to 43247e3 Compare January 14, 2021 15:02
@carbonin
Copy link
Member Author

Closing this and splitting it into a few separate PRs

@carbonin carbonin closed this Jan 14, 2021
@carbonin
Copy link
Member Author

Split this into:
#930
#931
#932

Left out the bit that creates the new archive with the ignition files because we can get a full installation without it and it applies more to handling static networking than to just being able to use a minimal iso.

@carbonin carbonin deleted the add_ignition_files_to_iso branch March 26, 2021 17:58
mkowalski pushed a commit to mkowalski/assisted-service that referenced this pull request May 21, 2021
Fix world-readable check in sanitychecks.sh
mkowalski pushed a commit to mkowalski/assisted-service that referenced this pull request May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review Categorizes an issue or PR as actively needing an API review. approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants