Open ljmc-github opened 4 years ago
I will try to find some time to troubleshoot this.
I didn't realise where this issue was made. I actually got the module into the ansible project as one of the modules since v2.8 I did some additional refactoring and bugfixes to get it in, so could you check if you experience the same issue with the same module in Ansible 2.8 ? Thanks
My bad, I didn't know where to log the issue so I created it in the module. Do you want me to move it ?
Also, I am using ansible 2.9.11 provided in RHEL 8. Anything you need me to test in this setup ?
That's fine. I just wanted to make sure you were using the one included with Ansible. Maybe in the future, open an issue on the ansible project, but I'll trace the issue here...
Will try to free up some time this week to test/troubleshoot this. I think I have everything, but if you could provide me with the relevant bits from '/etc/projid' and '/etc/projects' that would be awesome!
/etc/projects
# user homedirs 10:99 in /stor/home
10:/stor/home/bvance
/etc/projid
# user homedirs 10:99 as home_user:number
home_bvance:10
Just a quick ping to check if there is any solution to this, especially since 2.10 came out recently. :)
Apologies, life happened. I'll make sure to make modifications for both 2.9 and 2.10
No worries, I was just checking. It's fairly easy to just issue the xfs_quota set command.
yes, I pinpointed it down to a change in output on xfs_quota's part...
Before doeing anything, I perform the following:
xfs_quota> project <project name>
And back in the days when I wrote this, the result for a non-initialized project directory was
Project Id '<project name>' - is not set.
Now it seems to have changed to
project identifier is not set
In a way, this is good, as looking for it becomes easier... I'll post an update here shortly
@BiochemLouis I've updated this repo for testing purposes. When you have time, could you test? If it works as well on your end, I will do the necessary to update the relevant ansible repo's
Servers are down for the afternoon and maybe tomorrow, I'll spin up a VM as soon as possible.
Works perfectly, tested with the following playbook in a Centos 8 server VM.
---
- hosts: localhost
become: true
tasks:
- name: test quotas
xfs_quota:
type: project
name: "home_{{item}}"
mountpoint: /mnt/quotadisk
bsoft: 1G
bhard: 1.5G
isoft: 100
ihard: 150
state: present
loop:
- alice
- bob
Awesome! I'll get started on updating the ansible repo's.
Sep 30, 2020 10:27:57 Louis Cochen notifications@github.com:
Works perfectly, tested with the following playbook in a Centos 8 server VM.
--- - hosts: localhost become: true tasks: - name: test quotas xfsquota: type: project name: "home{{item}}" mountpoint: /mnt/quotadisk bsoft: 1G bhard: 1.5G isoft: 100 ihard: 150 state: present loop: - alice - bob— You are receiving this because you commented. Reply to this email directly, view it on GitHub[https://github.com/bushvin/ansible-module-xfs_quota/issues/4#issuecomment-701243948], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ABEQMYCK4HCECXYT7YFOLQTSILTYLANCNFSM4PE3BPCQ]. [https://github.com/notifications/beacon/ABEQMYHGHJ6OSZO74JTC3IDSILTYLA5CNFSM4PE3BPC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFHGCELA.gif]
Hi,
I just used this module to set up project quotas on XFS directories as per the task I join, but then when connecting to the target machine, the projects do not seem to be set.
I dd'ed a 1GB file in there and chowned it to the expected owner but it is not accounted for the project in xfs_quota report.
/etc/projects
and/etc/projid
are set correctly.From the correct path,
xfs_quota> project -c home_bvance
gives:So, I force set the project with
xfs_quota> project -s home_bvance
which gives:Then,
xfs_quota> project -c home_bvance
gives:And the 1GB file is reported correctly in the report.
Thanks for the module, I hope there is a solution for this.
Task:
Output results:
EDIT: correct a typo