Step 5: Execute Build Pipeline

Update the catalog_rhel.json file and execute the Omnia BuildStreaM build pipeline through GitLab. This procedure covers catalog modifications, pipeline triggering (automatic and manual), and verification of pipeline status and job execution.

The BuildStream build pipeline automates the creation of diskless images based on catalog specifications. The pipeline consists of four sequential stages:

  • parse-catalog: Parses and validates the catalog file for build requirements

  • generate-input-files: Generates input files and configuration data for image building

  • create-local-repository: Creates and configures the local repository for build artifacts

  • build-image: Builds the diskless images based on catalog specifications

The build pipeline is automatically triggered when you update the catalog_rhel.json file in the GitLab repository, or can be manually initiated through the GitLab interface.

Note

Do not cancel a running GitLab pipeline or stage. Cancellation prevents some pipeline steps from executing, which leaves the BuildStreaM job in an intermediate, inconsistent state. Note that backend BuildStreaM tasks already in progress will continue running to completion regardless of the cancellation.

Prerequisites

Before updating catalogs and checking pipelines:

Procedure

  1. Go to the GitLab project URL:

    https://<gitlab_host>:<gitlab_https_port>/root/<gitlab_project_name>
    
  2. Go to CodeRepository.

  3. Locate the catalog file catalog_rhel.json.

  4. Modify the catalog_rhel.json file to define your build requirements.

Note

Ensure that the catalog file is updated with valid functional group names, architecture types, operating system types and versions, and package types. The pipeline fails if invalid details are provided.

The following are the supported values:
  1. Trigger the build pipeline by committing and pushing the catalog changes. The pipeline triggers automatically when catalog changes are committed. This pipeline can also be executed manually through the GitLab UI. See Execute Build Pipeline Manually for detailed instructions.

    BuildStreaM Build Trigger
  2. Monitor the pipeline progress to ensure it completes successfully. See Monitor Pipeline Progress for detailed instructions.

    BuildStreaM Pipeline Execution

Note

  • Currently, BuildStreaM supports only one catalog file and one pipeline trigger. BuildStreaM pipeline behavior is controlled by the GitLab CI/CD configuration in your environment.

  • Each pipeline processes the catalog changes independently and builds the specified images based on the catalog requirements. Once a pipeline execution is complete, users can modify the catalog and re-trigger the pipeline as needed. However, multiple pipeline triggers cannot be executed simultaneously.

Execute Build Pipeline Manually

To manually execute the build pipeline, follow these steps:

Procedure

  1. Review the pipeline logs in GitLab to check the current status.

    1. Navigate to BuildPipelines.

    2. Click on the desired pipeline.

    3. Click on the stage to view logs.

  2. Update the input configuration files in the GitLab repository.

    1. Navigate to the input/ folder in the GitLab repository.

    2. Edit the relevant configuration file.

    3. Commit and push the changes.

    For detailed descriptions of the configuration parameters in the configuration files, see ../reference/configuration-tables.

  3. Manually trigger the pipeline with the updated parameters.

    1. Navigate to BuildPipelines.

    2. Click New Pipeline.

    3. In the Run new pipeline dialog box, enter the variable name as PIPELINE_TYPE and enter the value as build.

    GitLab Build Manual Configuration
    1. Click Run Pipeline to execute the build pipeline.

  4. Monitor the pipeline progress to ensure it completes successfully. See Monitor Pipeline Progress for detailed instructions.

For troubleshooting common pipeline issues, see Troubleshooting BuildStreaM Pipeline Issues.

Monitor Build Pipeline Progress

Monitor the build pipeline progress through the GitLab web interface to track stage execution and identify any issues.

  1. Navigate to BuildPipeline.

  2. Click on the running pipeline to view details.

  3. Monitor each stage as it progresses:
    • parse-catalog: Parses and validates the catalog file for build requirements

    • create-local-repository: Creates and configures the local repository for build artifacts

    • generate-input-files: Generates input files and configuration data for image building

    • build-image: Builds the diskless images based on catalog specifications

  4. Review the stage status indicators:
    • success Green checkmark: Stage completed successfully

    • failed Red X: Stage failed (click for error details)

    • running Blue circle: Stage currently running

  5. If any stage fails, review the error logs by clicking on the failed job.

The following image shows the BuildStreaM pipeline is currently running and the stages are being executed:

Note

The build pipeline uses the catalog file to determine which images to build based on functional group assignments.

Verification

After the pipeline is completed, you can check the overall pipeline status and job execution.

  1. Navigate to BuildPipelines

  2. Review the job list and status.

  3. Click on individual jobs to view:
    • Execution logs

    • Resource usage

    • Error messages (if any)

Next Steps

After successful execution of the build pipeline, proceed with deploying the images to cluster nodes. See Step 6: Execute Deploy Pipeline for detailed instructions on executing the deploy pipeline.

If you have any feedback about Omnia documentation, please reach out at omnia.readme@dell.com.