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

New module: xfs_quota #51654

Merged
merged 67 commits into from
Apr 7, 2019
Merged

New module: xfs_quota #51654

merged 67 commits into from
Apr 7, 2019

Conversation

bushvin
Copy link
Contributor

@bushvin bushvin commented Feb 2, 2019

SUMMARY

This is a new module to manage XFS quota's

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

xfs_quota

ADDITIONAL INFORMATION

There was no 'easy' way to manage XFS quota's, so I wrote one.
This module allows to manage block and inode quotas for 'projects' and 'users' on XFS filesystems


@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. labels Feb 2, 2019
@ansibot

This comment has been minimized.

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Feb 2, 2019
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Feb 2, 2019
@ansibot

This comment has been minimized.

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Feb 2, 2019
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Feb 2, 2019
@ansibot
Copy link
Contributor

ansibot commented Feb 2, 2019

@AugustusKling @ColOfAbRiX @EvanK @L2G @LinusU @Mogztter @MorrisA @abulimov @adejoux @ahtik @andrew-d @azaghal @bgurney-rh @brontitall @danieljaouen @dankeder @davidobrien1985 @davixx @dermute @dirtyharrycallahan @dougluce @dsummersl @fishman @flynn1973 @gforster @giovannisciortino @goozbach @groks @haad @hryamzik @indrajitr @jasperla @jbenden @jcftang @jdauphant @jhoekx @jpdasma @jsumners @jtyr @kairoaraujo @kevensen @kyleabenson @lberruti @marvin-sinister @mator @mattjeffery @matze @mcv21 @molekuul @mpdehaan @mulby @natefoo @nibalizer @obourdon @ovcharenko @pilou- @pmarkham @pyykkis @ramooncamacho @rhaido @risaacson @ryan_sb @saito-hideki @scathatheworm @sebastiendarocha @sfromm @srvg @szinck @tacatac @tdtrask @tmshn @troy2914 @wtcross @xen0l

As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add shipit if you would like to see it merged.

click here for bot help

@ansibot ansibot added community_review In order to be merged, this PR must follow the community review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Feb 2, 2019
Copy link
Contributor

@dagwieers dagwieers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, with various remarks.

lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
lib/ansible/modules/system/xfs_quota.py Outdated Show resolved Hide resolved
@dagwieers
Copy link
Contributor

It would be nice to have integration tests for this module, preferably using maybe a file as a filesystem (if that is at all possible).

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Feb 4, 2019
@dagwieers

This comment has been minimized.

@bushvin

This comment has been minimized.

@bushvin
Copy link
Contributor Author

bushvin commented Feb 10, 2019

@dagwieers I would appreciate some help on the integration tests.
I've had a look at the integration test documents, and some other integration tests included in the project, but being intimidated by it, I'm not quite sure where to begin.
If you have some more 'user-friendly' examples, docs, I'd be more than happy to read through them.

I think I may have been looking at the wrong tests...
This might actually be doable... ;)

@bushvin
Copy link
Contributor Author

bushvin commented Feb 12, 2019

There, I added integration tests.

@dagwieers
Copy link
Contributor

Integration tests are looking good! Except, I would do an assert after every task.

The main reason for doing this, is that it is easier to troubleshoot if you can see the output from the task together with the failing assert.

If you don't have them together, you may need to look first in the playbook to know the order of the task, and what the output is registered as, before you can analyse why it failed. That is also why I add a name: for every assert that actually states what output we are testing against.

@dagwieers dagwieers added community_review In order to be merged, this PR must follow the community review workflow. and removed needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. needs_triage Needs a first human triage before being processed. labels Feb 18, 2019
@dagwieers
Copy link
Contributor

rebuild_merge

@dagwieers dagwieers merged commit 993727f into ansible:devel Apr 7, 2019
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants