-
Notifications
You must be signed in to change notification settings - Fork 275
Linux GCS: Log disk info on ENOSPC errors #1297
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
Conversation
We've had quite a few times where creating the upper or work directories in the guest fails with ENOSPC but we don't have any view into what the mount looks like at the time we get this. This change just catches any ENOSPC errors when creating an overlayfs mount, calls statfs and logs the disk space and inode info for the mount the failed directory is on. This should make investigating these types of issues much easier. This may be followed up with a change to delete the upper and work directories for a container, as this becomes troublesome with the model for sharing a scratch volume. Signed-off-by: Daniel Canter <[email protected]>
|
@anmaxvl Assigning you as we'd talked about this :) |
helsaawy
left a comment
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.
I am torn between processErrNoSpace and processNoSpaceError, but besides that and other nits, LGTM
@helsaawy I originally had it as processERRNOSPC so we would've had three options! I just landed on ErrNoSpace as its the closest to the actual string rep of the error and in 'Go form', but let me know if you feel strongly on the second. I'm not tied to either |
Signed-off-by: Daniel Canter <[email protected]>
I guess |
anmaxvl
left a comment
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.
LGTM. I was just checking the logs to see what other places could result in this error and whether we should log the stats there as well, but it looks like we'll eventually end up failing to mount overlay for container, so it's fine to just log it here.
* Linux GCS: Log disk info on ENOSPC errors We've had quite a few times where creating the upper or work directories in the guest fails with ENOSPC but we don't have any view into what the mount looks like at the time we get this. This change just catches any ENOSPC errors when creating an overlayfs mount, calls statfs and logs the disk space and inode info for the mount the failed directory is on. This should make investigating these types of issues much easier. This may be followed up with a change to delete the upper and work directories for a container, as this becomes troublesome with the model for sharing a scratch volume. Signed-off-by: Daniel Canter <[email protected]>
We've had quite a few times where creating the upper or work directories in
the guest fails with ENOSPC but we don't have any view into what the mount
looks like at the time we get this. This change just catches any ENOSPC errors
when creating an overlayfs mount, calls statfs and logs the disk space and inode
info for the mount the failed directory is on. This should make investigating
these types of issues much easier.
This may be followed up with a change to delete the upper and work directories
for a container, as this becomes troublesome with the model for sharing a scratch volume.