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

Redfish Error visibility enhancement #142

Closed
jezogwza opened this issue Mar 26, 2020 · 3 comments
Closed

Redfish Error visibility enhancement #142

jezogwza opened this issue Mar 26, 2020 · 3 comments
Assignees
Labels
bug Something isn't working priority/medium Default priority for items ready for review Change related to the issue is ready for review
Milestone

Comments

@jezogwza
Copy link
Contributor

Describe the bug
Many errors simply ignored on redfish calls -
e.g. media injection returns 400 but we say success

Expected behavior
Errors should be bubbled up so we can define the appropriate response to errors.
It appears some of the errors can be treated as warning or simple ignored.

Currently

  1. We verify the http response code and throw an error if it's not 200 or 204.
  2. The redfish client likes to return non-nil errors on success, so checking err is not always reliable
@jezogwza jezogwza added bug Something isn't working triage Needs evaluation by project members component/remote labels Mar 26, 2020
@jezogwza jezogwza added this to the betav1 milestone Mar 26, 2020
@drewwalters96
Copy link
Contributor

Where are these error codes reported? Is this in a virtualized environment or baremetal? All of our redfish requests are checked by http status code here, so I'm not sure how we would pass a 400 that was returned by one of our requests.

I have seen 307s in the sushy emulator that are swallowed and not returned to airshipctl. Could the same thing be happening here?

@drewwalters96 drewwalters96 self-assigned this Apr 1, 2020
@drewwalters96
Copy link
Contributor

Submitted: https://review.opendev.org/716612

@jezogwza jezogwza added priority/medium Default priority for items and removed triage Needs evaluation by project members labels Apr 1, 2020
@airshipbot
Copy link

airshipbot commented Apr 1, 2020

Related Change #716768

Subject: Reduce the complexity of ScreenRedfishError
Link: https://review.opendev.org/716768
Status: MERGED
Owner: Ian Howell (ian.howell0@gmail.com)

Approvals

Code-Review
+1 Drew Walters
+2 Alan Meadows
+2 Matt McEuen
Verified
+2 Zuul
Workflow
+1 Alan Meadows

Last Updated: 2020-04-01 16:45:03 CDT

@airshipbot airshipbot added the ready for review Change related to the issue is ready for review label Apr 1, 2020
airshipbot pushed a commit that referenced this issue Apr 1, 2020
Change-Id: I69b7e546cd814f5e3b6b890348f4e808058ae6ef
Relates-To: #142
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority/medium Default priority for items ready for review Change related to the issue is ready for review
Projects
None yet
Development

No branches or pull requests

3 participants