Skip to content

mount resource tries to umount all filesystems with nfs handler #64

@jorhett

Description

@jorhett

Describe the Bug

It tries to use umount.nfs to umount filesystems of all types.

Expected Behavior

It should check the filesystem, or use the declared type to umount it.

Steps to Reproduce

  1. Mount a ceph (or likely any other) filesystem
  2. Run puppet resource mount /mnt/test (or whatever) and direct to a file
  3. Change 'mounted' to 'absent'
  4. Run puppet apply filename.pp
Error: Execution of '/bin/umount /mnt/test' returned 1: umount.nfs: /mnt/test: is not an NFS filesystem
Error: /Stage[main]/Mount[/mnt/test]/ensure: change from 'mounted' to 'unmounted' failed: Execution of '/bin/umount /mnt/test' returned 1: umount.nfs: /mnt/test: is not an NFS filesystem

Environment

  • Version [e.g. 1.27.0] 8.10.1
  • Platform [e.g. Ubuntu 18.04] AlmaLinux 8.10

Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions