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

Classes body is not used when storage promises are kept

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Promise type: storage
    • Labels:
      None
    • Story Points:
      1
    • Platform:
      RHEL or CentOS, Linux
    • Steps to reproduce:
      Manual steps provided

      Description

      When using body classes classes_generic from the stdlib to define classes based on the outcome of a storage promsie classes do not appear to beset when the storage promise is "kept";

      Note in this example output that neither 'netapp_nfs_reached', 'netapp_nfs_ok", or 'netapp_nfs_kept' were defined.
      <pre>
      [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_mounted
      2015-01-09T17:11:13+0000 info: Using command line specified bundlesequence
      R: Reporting from netapp_nfs: activated
      R: Reporting from zendesk_1694: activated
      </pre>

      Compared to when the filesystem gets mounted and the storage promise has a repaired outcome.

      ```
      [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

      #+being_src sh
      cf-agent -KIf /var/cfengine/masterfiles/promises.cf -b zendesk_1694 --define be_mounted
      #+end_src

      2015-01-09T16:37:54+0000 info: Using command line specified bundlesequence
      2015-01-09T16:37:54+0000 info: /default/zendesk_1694/methods/'NFS'/default/netapp_nfs/storage/'/data'[0]: Adding file system '192.168.1.130:/data' to '/etc/fstab'
      2015-01-09T16:37:55+0000 error: /default/zendesk_1694/methods/'NFS'/default/netapp_nfs/storage: Attempting abort because mount went into a retry loop.
      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
      ```

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10003 Eystein Maloy Stenberg
                Reporter:
                a10042 Nick Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel