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

MGMT-19792: Add discovery ignition URL to the infraenv status #7243

Merged

Conversation

carbonin
Copy link
Member

This will mainly be used with integrations that provide the discovery ignition as metadata to hosts that boot with a generic disk image rather than the discovery ISO, but can also be used for debugging.

Resolves https://issues.redhat.com/browse/MGMT-19792

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

Deployed assisted service with this change, created an infraenv, downloaded and checked the discovery ignition using the URL in new API

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see [CONTRIBUTING] guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 29, 2025

@carbonin: This pull request references MGMT-19792 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set.

In response to this:

This will mainly be used with integrations that provide the discovery ignition as metadata to hosts that boot with a generic disk image rather than the discovery ISO, but can also be used for debugging.

Resolves https://issues.redhat.com/browse/MGMT-19792

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

Deployed assisted service with this change, created an infraenv, downloaded and checked the discovery ignition using the URL in new API

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see [CONTRIBUTING] guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 29, 2025
@openshift-ci openshift-ci bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 29, 2025
@openshift-ci openshift-ci bot requested review from pastequo and romfreiman January 29, 2025 22:02
@openshift-ci openshift-ci bot 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 29, 2025
Copy link

codecov bot commented Jan 29, 2025

Codecov Report

Attention: Patch coverage is 68.42105% with 6 lines in your changes missing coverage. Please review.

Project coverage is 68.02%. Comparing base (7490e1a) to head (6343136).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...rnal/controller/controllers/infraenv_controller.go 68.42% 3 Missing and 3 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7243      +/-   ##
==========================================
+ Coverage   67.89%   68.02%   +0.12%     
==========================================
  Files         298      300       +2     
  Lines       40711    41026     +315     
==========================================
+ Hits        27642    27908     +266     
- Misses      10592    10625      +33     
- Partials     2477     2493      +16     
Files with missing lines Coverage Δ
...rnal/controller/controllers/infraenv_controller.go 63.51% <68.42%> (-0.16%) ⬇️

... and 10 files with indirect coverage changes

@@ -202,6 +202,9 @@ type BootArtifacts struct {
// IpxeScriptURL specifies an HTTP/S URL that contains the iPXE script
// +optional
IpxeScriptURL string `json:"ipxeScript"`
// DiscoveryIgnitionURL specifies and HTTP/S URL that contains the discovery ignition
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry just noticed this tiny bit

Suggested change
// DiscoveryIgnitionURL specifies and HTTP/S URL that contains the discovery ignition
// DiscoveryIgnitionURL specifies an HTTP/S URL that contains the discovery ignition

Looks good otherwise!

Copy link
Member Author

Choose a reason for hiding this comment

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

oops

@carbonin carbonin force-pushed the discovery-ignition-api branch from f1d643c to 17f9aca Compare January 30, 2025 15:57
This will mainly be used with integrations that provide the discovery
ignition as metadata to hosts that boot with a generic disk image rather
than the discovery ISO, but can also be used for debugging.

Resolves https://issues.redhat.com/browse/MGMT-19792
@carbonin carbonin force-pushed the discovery-ignition-api branch from 17f9aca to 6343136 Compare January 30, 2025 16:01
Copy link
Contributor

@CrystalChun CrystalChun 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 openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 30, 2025
Copy link

openshift-ci bot commented Jan 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: carbonin, CrystalChun

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:
  • OWNERS [CrystalChun,carbonin]

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
Copy link

/retest-required

Remaining retests: 0 against base HEAD 8c40e9d and 2 for PR HEAD 6343136 in total

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 649f9c7 and 1 for PR HEAD 6343136 in total

Copy link

openshift-ci bot commented Jan 31, 2025

@carbonin: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-scos-e2e-aws-ovn 6343136 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 4dbd6fe into openshift:master Jan 31, 2025
19 of 20 checks passed
@openshift-bot
Copy link
Contributor

[ART PR BUILD NOTIFIER]

Distgit: ose-agent-installer-api-server
This PR has been included in build ose-agent-installer-api-server-container-v4.19.0-202501311037.p0.g4dbd6fe.assembly.stream.el9.
All builds following this will include this PR.

@carbonin carbonin deleted the discovery-ignition-api branch January 31, 2025 13:40
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants