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

Storage promises do not unmount the filesystem as promised

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0, 3.7.4
    • Component/s: Promise type: storage
    • Labels:
      None

      Description

      File systems are not actually unmounted, however if edit_fstab is true the appropriate entry will be removed from fstab.

      I expected that the entry in fstab was gone, and that the filesystem was not mounted, or at least I should have gotten promise_failed or something trying to unmount the volume.

      [root@hub masterfiles]# mount | grep "/data"
      192.168.1.130:/data on /data type nfs (rw,noatime,nfsvers=3,hard,intr,rsize=65536,wsize=65536,addr=192.168.1.130)
      
      [root@hub masterfiles]# grep "/data" /etc/fstab 
      192.168.1.130:/data 	 /data 	 nfs 	 nfsvers=3,rw,hard,intr,rsize=65536,wsize=65536,noatime
      
      [root@hub masterfiles]# cf-agent -KIf ./promises.cf -b zendesk_1694 --define be_unmounted
      2015-01-09T17:35:35+0000     info: Using command line specified bundlesequence
      2015-01-09T17:35:35+0000     info: /default/zendesk_1694/methods/'NFS'/default/netapp_nfs/storage/'/data'[0]: Deleting file system mounted on '192.168.1.130'
      R: Reporting from netapp_nfs: activated
      R: Reporting from netapp_nfs: the class 'netapp_nfs_reached' is defined
      R: Reporting from netapp_nfs: the class 'netapp_nfs_repaired' is defined
      R: Reporting from netapp_nfs: the class 'netapp_nfs_ok' is defined
      R: Reporting from zendesk_1694: activated
      R: Reporting from zendesk_1694: the class 'netapp_nfs_reached' is defined
      R: Reporting from zendesk_1694: the class 'netapp_nfs_repaired' is defined
      R: Reporting from zendesk_1694: the class 'netapp_nfs_ok' is defined
      [root@hub masterfiles]# mount | grep "/data"
      192.168.1.130:/data on /data type nfs (rw,noatime,nfsvers=3,hard,intr,rsize=65536,wsize=65536,addr=192.168.1.130)
      [root@hub masterfiles]# grep "/data" /etc/fstab 
      [root@hub masterfiles]#
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                a10042 Nick Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel