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

improve pool import with disabled or indeterminate quota state. Fixes #1987 #1988

Conversation

phillxnet
Copy link
Member

Add sensitivity / heed warnings re a quota disabled state (often only displayed for a short period and accompanied by otherwise normal quota enabled behaviour) and additionally make our 'btrfs qgroup assign' wrapper fail elegantly in this interim / indeterminate quota state.

Addressed issue could in rare situations also block share creation.

Summary:

  • Enhance qgroup_max() re qgroup disabled warnings.
  • Enhance are_quotas_enabled() re qgroup disabled warnings.
  • Don’t fail import / share creation for failure to quota group assign: log as error and continue.

Fixes #1987
See issue text for more context.

@schakrava Ready for review.

Testing:

During unrelated Rockstor development on docker-ce a larger number of docker service enable / disable cycles were performed. This is suspected as the cause for a then persistent indeterminate quota state that blocked further share creation. See issue:
"docker-ce dictating pool quota enabled disabled status" #1906
for buggy docker-ce btrfs quota interaction.
It was then also noticed that importing certain prior quota disabled pools failed in a related manner.
Post pr the remaining reproducer examples behaved as expected, ie share creation was fixed and imports were successful in the respective instances.

…or#1987

Add sensitivity / heed warnings re a quota disabled state (often only
displayed for a short period and accompanied by otherwise normal quota
enabled behaviour) and additionally make our 'btrfs qgroup assign'
wrapper fail elegantly in this interim / indeterminate quota state.

Addressed issue could in rare situations also block share creation.

Summary:

- Enhance qgroup_max() re qgroup disabled warnings.
- Enhance are_quotas_enabled() re qgroup disabled warnings.
- Don’t fail import / share creation for failure to quota group assign:
log as error and continue.
@schakrava
Copy link
Member

Thank you @phillxnet

@schakrava schakrava merged commit 83df297 into rockstor:master Nov 15, 2018
@phillxnet phillxnet deleted the 1987_improve_pool_import_with_disabled_or_indeterminate_quota_state branch November 15, 2018 14:04
@phillxnet
Copy link
Member Author

@schakrava Cheers, and thanks for merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve pool import with disabled or indeterminate quota state
2 participants