-
Notifications
You must be signed in to change notification settings - Fork 76
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
add more events for localdiskclaim #1249
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #1249 +/- ##
==========================================
+ Coverage 35.77% 36.35% +0.57%
==========================================
Files 28 28
Lines 2180 2214 +34
==========================================
+ Hits 780 805 +25
- Misses 1297 1306 +9
Partials 103 103 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also take a look at https://github.com/hwameistor/hwameistor/blob/c31d8f050dff9efe526006debe202e456bd795d4/pkg/local-disk-manager/controller/localdiskclaim/localdiskclaim_controller.go#L142C31-L142C42
The most common disk allocation error usually occurs here. But the return information here is not enough to show what happened internally, which is very helpful for troubleshooting disk allocation.
The problem is produced by |
Not add the field maybe ok, the EventRecorder is kept at handler |
Yes, reason for why disks not match can be shown on |
But I think adding a
Yes, but the message is shown on |
It can directly show in |
message should order by type, e.g., nodeName not mach, devType not match.. |
Adding a |
bb17b91
to
158056e
Compare
eb125a6
to
db18c96
Compare
Done, it outputs like |
Signed-off-by: lancerxiu <1377004871@qq.com>
db18c96
to
392a089
Compare
LGTM |
What this PR does / why we need it:
add more event in detail while the localdiskclaim is running
FYI: #1218
Special notes for your reviewer:
Does this PR introduce a user-facing change?