-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
bugfix for xfs_quota not properly initializing project quotas #5144
bugfix for xfs_quota not properly initializing project quotas #5144
Conversation
It looks like the tests about idempotency fail. I looked at the code of the module and I haven't seen any code which tries to compare the current state of the target system with the intended state of the target system and then returns |
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.
Thanks for your contribution! I've added a first small comment on the changelog fragment.
@@ -0,0 +1,3 @@ | |||
--- | |||
bugfixes: | |||
- xfs_quota - the call to "xfs_quota" to set up project quotas was missing the project name and hence failed (https://github.com/ansible-collections/community.general/issues/5143). |
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.
- xfs_quota - the call to "xfs_quota" to set up project quotas was missing the project name and hence failed (https://github.com/ansible-collections/community.general/issues/5143). | |
- xfs_quota - the call to ``xfs_quota`` to set up project quotas was missing the project name and hence failed (https://github.com/ansible-collections/community.general/issues/5143). |
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.
Will do. Out of curiosity, why is one quotation mark style preferred over the other one? Do these fragments get parsed later with some script/tool which needs this kind of style?
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.
The strings in these fragments are interpreted as reStructuredText; they end up in CHANGELOG.rst (for exmaple https://github.com/ansible-collections/community.general/blob/stable-5/CHANGELOG.rst).
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.
Thanks for the explanation! I read about .rst files but never worked with them so far.
These tests run (and pass) every night. https://dev.azure.com/ansible/community.general/_build/results?buildId=51843&view=results is such a run. |
I checked the past runs of test suite and they indeed succeed. I will need some time to understand how and why the tests succeed on the current main branch and why I have problems in my application with it. |
Trying to replicate the test suite, but it seems the |
In CI the xfs_quota tests are restricted to VMs since you cannot mount a file in a container when the container isn't privileged, which they are not in CI for security reasons. What you can do is run it locally with |
Please note that in #5461 the collection repository was restructured to remove the directory tree in plugins/modules/, and the corresponding tree in tests/unit/plugins/modules/. Your PR modifies files in this directory structure, and unfortunately now has some conflicts, potentially because of this. Please rebase with the current |
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.
Hi @MichaelRiss, thanks for the contribution! LGTM, but it needs a rebase
By the way, instructions to rebasing: https://docs.ansible.com/ansible/latest/dev_guide/developing_rebasing.html |
See also #6387. |
needs_info |
@MichaelRiss This pullrequest is waiting for your response. Please respond or the pullrequest will be closed. |
@MichaelRiss You have not responded to information requests in this pullrequest so we will assume it no longer affects you. If you are still interested in this, please create a new pullrequest with the requested information. |
SUMMARY
xfs_quota
is not properly initializing xfs project quota groups (#5143), this PR proposes a fix.Fixes #5143
ISSUE TYPE
COMPONENT NAME
xfs_quota
ADDITIONAL INFORMATION
This is an attempt to re-submit #3350. Hopefully this time all tests succeed.