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

Umount not working for entries without mount options #588

Open
lexxman123 opened this issue Dec 13, 2024 · 2 comments
Open

Umount not working for entries without mount options #588

lexxman123 opened this issue Dec 13, 2024 · 2 comments
Assignees

Comments

@lexxman123
Copy link

Describe the bug
Umount is not working when mounted directory has no mount options

To Reproduce
Steps to reproduce the behavior:

Directory is mounted without mount options, e.g. :

# mount
  node       mounted        mounted over    vfs       date        options
-------- ---------------  ---------------  ------ ------------ ---------------
         /dev/hd4         /                jfs2   Nov 25 15:18 rw,log=/dev/hd8
         /dev/hd2         /usr             jfs2   Nov 25 15:18 rw,log=/dev/hd8
...
...
nim1     /export/expfs    /mnt2            nfs3   Dec 13 14:31 
ibm.power_aix.mount:
          state: umount
          mount_over_dir: "/mnt2"

Looking at plugins/modules/mount.py it says in is_fspath_mounted:

        for ln in stdout.splitlines()[1:]:
            fdirs.append(ln.split()[-6])

This fails as without mount options the correct parameter would be -5.

Expected behavior
Umount should work, even when no mount options are present

Environment (please complete the following information):

  • OS: AIX 7.3.2.1
  • Python Version: 3.9.17
  • Ansible Version: 2.14.13
  • AIX Collection Version: 1.9.2
@schamola
Copy link
Contributor

Hi @lexxman123
Thanks for reporting this issue, we will check and update you.

@vivekpandeyibm
Copy link
Contributor

Hi @lexxman123
It's working fine on our environment, please update to the latest version of power_aix collection.
Let us know, if the issue still persists.

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

No branches or pull requests

3 participants