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

🐛 Fix IMAGE_LOCATION in build-image.sh #816

Merged

Conversation

mquhuy
Copy link
Member

@mquhuy mquhuy commented Jul 16, 2024

node_image_building is currently failing because the location of the file is incorrect. The built image locates in the directory, from where the script is run (which is the repo root), while the verify script assumes that image locates in jenkins/image_building.

This PR fixes the IMAGE_LOCATION, so that dev-env could find the image.

Edit: Also add the ${IMAGE_NAME}.d directory cleanup. This directory was created as a part of the image building.

@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 16, 2024
@mquhuy mquhuy force-pushed the mquhuy/fix-node-image-build-pipeline branch from a6be787 to f40f14b Compare July 16, 2024 14:00
@mboukhalfa
Copy link
Member

/approve

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 16, 2024
Copy link
Member

@Rozzii Rozzii left a comment

Choose a reason for hiding this comment

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

minor nit

jenkins/image_building/build-image.sh Outdated Show resolved Hide resolved
jenkins/image_building/build-image.sh Show resolved Hide resolved
Signed-off-by: Huy Mai <huy.mai@est.tech>
@mquhuy mquhuy force-pushed the mquhuy/fix-node-image-build-pipeline branch from f40f14b to 6a6c8a4 Compare July 17, 2024 05:58
@mquhuy mquhuy requested review from Rozzii and mboukhalfa July 17, 2024 05:58
@mquhuy
Copy link
Member Author

mquhuy commented Jul 17, 2024

/test metal3-ubuntu-e2e-integration-test-main

@Sunnatillo
Copy link
Member

@mquhuy, now I remember one issue I faced.
DiskImageBuilder also has a variable called IMAGE_LOCATION. This might be conflicting with dev-env's IMAGE_LOCATION variable,

@metal3-io-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mboukhalfa, Rozzii

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

@Rozzii
Copy link
Member

Rozzii commented Jul 17, 2024

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2024
@metal3-io-bot metal3-io-bot merged commit a048917 into metal3-io:main Jul 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants