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

🐛 Rework error handling in the controller #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dtantsur
Copy link
Member

@dtantsur dtantsur commented Jan 9, 2025

Currently, many error conditions are not reported on the Ironic object,
getting it stuck in e.g. "new version detected". This change makes
certain errors be reported in the status conditions. This includes
inability to find the database or the API secret, as well as validation
failures on the API secret.

The database link does pose a UX problem right now: it's not possible to
change it once it's set. I will leave this as a known issue for now.

Closes: #105
Signed-off-by: Dmitry Tantsur [email protected]

@metal3-io-bot metal3-io-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 9, 2025
@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from dtantsur. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 9, 2025
@metal3-io-bot metal3-io-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 9, 2025
@dtantsur dtantsur force-pushed the error branch 2 times, most recently from 43c8c2c to 98e5059 Compare January 10, 2025 14:39
@dtantsur dtantsur changed the title [WIP] Rework error handling in the controller 🐛 Rework error handling in the controller Jan 10, 2025
@metal3-io-bot metal3-io-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 10, 2025
Currently, many error conditions are not reported on the Ironic object,
getting it stuck in e.g. "new version detected". This change makes
certain errors be reported in the status conditions. This includes
inability to find the database or the API secret, as well as validation
failures on the API secret.

The database link does pose a UX problem right now: it's not possible to
change it once it's set. I will leave this as a known issue for now.

Closes: metal3-io#105
Signed-off-by: Dmitry Tantsur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad error reporting when the API secret or database is not found
2 participants