devmapper: log pool status when mkfs fails#5283
Conversation
|
Hi @alakesh. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
Build succeeded.
|
f517da0 to
e414989
Compare
|
Build succeeded.
|
e414989 to
d0a462d
Compare
|
Build succeeded.
|
|
Why not to use "official" way, what linux/devmapper already provide to take care of this? (specify water mark in thin-pool and trap the event)? containerd will not reallocate thin pool, so it needs custom handling any way. Also I don't think ppl will be noticing this warning until it's too late. |
I agree, that is the right thing to do. But in cases where the event is not handled, device mapper can silently run out of space and cause number of other issues which are sometimes difficult to track down. A warning or a debug level message at least would help in this case. We can possibly rate limit such warnings/debug level messages. |
|
If containerd's usage is way above the low water mark and cannot run mkfs anymore, what would the error we will get from either mkfs or dmsetup? |
d0a462d to
ce13a76
Compare
|
Build succeeded.
|
ce13a76 to
aae6a6f
Compare
|
Build succeeded.
|
aae6a6f to
e7ff8f0
Compare
|
Build succeeded.
|
mxpv
left a comment
There was a problem hiding this comment.
LGTM on green
(CI is having a hard time)
|
Can you rebase changes to get CI green? |
2f9ccf2 to
3deaba0
Compare
|
Build succeeded.
|
Looks like one test is still having hard time: "CI / Project Checks". I tried twice. Any suggestion? |
3deaba0 to
cb3ddb2
Compare
|
Build succeeded.
|
f63373b to
59877fc
Compare
|
Build succeeded.
|
If mkfs on device mapper thin pool fails, it will show pool status as returned by dmsetup for enahnced error reporting. Signed-off-by: Alakesh Haloi <[email protected]>
59877fc to
5ce35ac
Compare
|
Build succeeded.
|
CI looks green now. |
if mkfs on device mapper thin pool fails, it will show pool status
as returned by dmsetup for enahnced error reporting.
Signed-off-by: Alakesh Haloi [email protected]