Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2350

unmount promise with mount-server or mount-source considered an error



    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • Component/s: Promise type: storage
    • Labels:
    • Environment:
      CentOS 7
    • Platform:
      RHEL or CentOS


      I'm working on pointing specific mounts to a new server. I wrote a policy using storage promises to unmount the specific mount that was migrating and mount it from the new server. So as not to unmount the other mounts that were not migrating, I needed an unmount body that was aware of the old server/location. I constructed such a body, but cf-agent -v reports the following and fails to do the unmount.

       verbose: An unmount promise indicates a mount-source information - probably an error
       verbose: An unmount promise indicates a mount-server information - probably an error

      This seems like an oversight. It would be very useful to be able to unmount specific mounts rather than all mounts of a certain type. I don't want my users to lose access to their mounted home directories, because I am updating another shared filesystem.

      My workaround is to check for old mounts and use a files promise to edit /etc/fstab and a commands promise to unmount the old server.

      Here is the body:

      body mount umount_nfs4(server, source)
        mount_type => "nfs4";
        mount_source => "$(source)";
        mount_server => "$(server)";
        edit_fstab => "true";
        unmount => "true";


          Issue Links



              • Assignee:
                a10003 Eystein Maloy Stenberg
                neile.havens@wheaton.edu Neile Havens
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created:

                  Summary Panel