Skip to content

Conversation

@zaneb
Copy link
Member

@zaneb zaneb commented Dec 14, 2021

Report errors through the CRD when they are related to the input or the configuration (i.e. are not transient).

@zaneb zaneb changed the title Imrprove error reporting Improve error reporting Dec 14, 2021
@openshift-ci openshift-ci bot requested review from hardys and sadasu December 14, 2021 02:58
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 14, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zaneb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 14, 2021
size, err := f.getBaseImage(initramfs).Size()
if err != nil {
return "", err
return "", InvalidBaseImageError{cause: err}
Copy link
Contributor

Choose a reason for hiding this comment

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

For completeness, we could add a check to make sure that in addition to there being no errors, the size is also not zero.

@openshift-ci openshift-ci bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 6, 2022
zaneb added 5 commits January 7, 2022 11:03
If the address for Ironic is not available (e.g. if the metal3 Pod is
not running) then the CBO will start the controller with an empty
IRONIC_BASE_URL. In this case we don't want it to crashloop, but rather
start and update the CRDs to indicate that the images are not available.
Enforce the early checking for a valid publish address base URL by
requiring a URL object as the input to NewImageHandler().
If the network data is in an invalid format, report the error from
nmstatectl and flag an error in the image CR.
If the base image cannot be read, this is not a transient error but a
reason to mark the image as in error.
@openshift-ci openshift-ci bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 7, 2022
@zaneb
Copy link
Member Author

zaneb commented Jan 7, 2022

/retitle Bug 2038272: Improve error reporting

@openshift-ci openshift-ci bot changed the title Improve error reporting Bug 2038272: Improve error reporting Jan 7, 2022
@openshift-ci openshift-ci bot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jan 7, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 7, 2022

@zaneb: This pull request references Bugzilla bug 2038272, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (augol@redhat.com), skipping review request.

Details

In response to this:

Bug 2038272: Improve error reporting

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/test-infra repository.

@zaneb
Copy link
Member Author

zaneb commented Jan 10, 2022

/retest-required

@dtantsur
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2022
@zaneb
Copy link
Member Author

zaneb commented Jan 10, 2022

/retest-required

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 10, 2022

@zaneb: all tests passed!

Full PR test history. Your PR dashboard.

Details

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

@openshift-merge-robot openshift-merge-robot merged commit 778f0a2 into openshift:main Jan 10, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 10, 2022

@zaneb: All pull requests linked via external trackers have merged:

Bugzilla bug 2038272 has been moved to the MODIFIED state.

Details

In response to this:

Bug 2038272: Improve error reporting

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/test-infra repository.

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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants