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

volume bodies with unset sensibilities results in promise kept because it's sensible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: 3.17.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      This is an offshot of #1436 . Based on information in that report, I wrote a policy which consistently yields inconsistent results.

      bundle agent main {
      	storage:
      	    "/boot" 
      		volume => min_free_space,
      		classes => set_class("boot_good", "boot_nogood");
      
      	reports:
      		boot_good::
      		        "/boot has enough space";
      		boot_nogood::
      		        "/boot does not have enough space";
      }
      
      body volume min_free_space
      {
      	freespace => "200G";
      }
      
      body classes set_class(boot_good,boot_nogood)
      {
      	promise_kept => { "$(boot_good)" };
      	repair_failed => { "$(boot_nogood)" };
      }
      

      I can get no reports at all, I can get a fail, or a pass and fail at the same time:

      2014-04-08T16:35:42+0200    error: /default/test/storage/'/boot'[0]: Disk space under 209715200 kB for volume containing '/boot' (435063 kB free)
      R: /boot has enough space
      R: /boot does not have enough space
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jiraadmin Old User (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: