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

rlist.c:133: Programming Error: Internal error: Rval contains type f instead of expected scalar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Rejected
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 3.10.2
    • Fix Version/s: None
    • Component/s: cf-promises
    • Labels:
      None

      Description

      # control bundle
      bundle agent b0011_itsv_start_services_ldap
      {
            meta:       "tags"  slist => { "itsv" };
      
        methods:
          !(am_policy_hub|DMZ_HOST|kug0103|sag0120|aixsightlinet1|aixsightlinet2)::
            "check_ldap_functionality" usebundle => check_ldap_func;
      }
      
      bundle agent check_ldap_func {
      
        classes:
            "LDAP_CLIENT_IS_WORKING"
              expression => returnszero("/usr/sbin/lsldap >/dev/null", "useshell");
      
            processes:        "/usr/sbin/lsldap"
              process_count  => lsldap_count("LSLDAP_ANOMALY"),
              process_select => lsldap_match,
              comment => "define class when lsldap procs stacks up";
      
        commands:
          !LDAP_CLIENT_IS_WORKING|LSLDAP_ANOMALY::
            "/usr/sbin/restart-secldapclntd"  args       => "",
              comment    => "restart secldapclntd if lsldap is fucked up",
              classes    => if_repaired("LDAP_CLIENT_RESTARTED");
      
        reports:
            LDAP_CLIENT_RESTARTED:: "LDAP clientd has been restarted ..";
      }
      # 1 to 3 lsldap procs are considered kept, everything above triggers ldap client restarts
      body process_count lsldap_count
      {
              match_range => irange("1","3");
      }
      body process_select lsldap_match
      {
              command => "/usr/sbin/lsldap";
              process_result => "command";
      }
      # - execute every 5 Minutes
      # - expire agent after 30 minutes
      body action ldap_client_check_periods
      {
              ifelapsed   => "5";    # minutes
              expireafter => "30";
      }
      
      remote: Running cf-agent -nK on /tmp/cfengine-post-commit-syntax-check/promises.cf
      remote: error: Argument arity mismatch in body 'lsldap_count' at line 27 in file '/tmp/cfengine-post-commit-syntax-check/itsv/itsv_start_services_ldap.cf', expected 0, got 1
      remote: rlist.c:133: Programming Error: Internal error: Rval contains type f instead of expected scalar
      remote: There were policy errors in pushed revision ed3a4f61e5dbb62f7620bf70cec1712fc0d4493b
      remote: error: hook declined to update refs/heads/master
      To git@nimmsag:/gitroot/masterfiles_itsv.git
       ! [remote rejected] master -> master (hook declined)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              a10042 Nick Anderson
              Reporter:
              grumpycat Christian Tremel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: