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

What is the _additional_packages_ attribute for packages promises listed in the syntax description?

    XMLWordPrintable

    Details

    • Type: Knowledge acquisition
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: 3.15.0b1
    • Fix Version/s: None
    • Component/s: Promise type: packages
    • Labels:
      None

      Description

      What is the additional_packages attribute for packages promises listed in the syntax description?

      Show version, packages promiseType attributes, and details of questionable additional_packages attribute
      exec 2&>1
      cf-promises --version
      echo "Attributes for promiseType packages:"
      cf-promises --syntax-description=json  | jq '.promiseTypes.packages.attributes | keys[]'
      echo "Details of additional_packages packages attribute:"
      cf-promises --syntax-description=json  | jq '.promiseTypes.packages.attributes.additional_packages '
      :
      
      CFEngine Core 3.15.0a.90b67ded3
      CFEngine Enterprise 3.15.0a.e473483
      Attributes for promiseType packages:
      "action"
      "additional_packages"
      "architecture"
      "classes"
      "comment"
      "depends_on"
      "handle"
      "if"
      "ifvarclass"
      "meta"
      "options"
      "package_architectures"
      "package_method"
      "package_module"
      "package_policy"
      "package_select"
      "package_version"
      "policy"
      "unless"
      "version"
      "with"
      Details of additional_packages packages attribute:
      {
        "attribute": "additional_packages",
        "range": "",
        "status": "normal",
        "type": "slist",
        "visibility": "promiseType"
      }
      

      There is no documentation for it, and when I try to use it, I get syntax errors.

      bundle agent main
      {
        packages:
          "sed"
          additional_packagees => { "awk" };
      }
      
      /home/nickanderson/org/cfengine3-BxtXEY:6:25: error: Unknown attribute 'additional_packagees' for promise type 'packages' in bundle with type 'agent'
          additional_packagees => { "awk" };
                              ^
         error: There are syntax errors in policy files
         error: Policy failed validation with command '"/home/nickanderson/.cfagent/bin/cf-promises" -c "/home/nickanderson/org/cfengine3-BxtXEY"'
         error: CFEngine was not able to get confirmation of promises from cf-promises, so going to failsafe
         error: CFEngine failsafe.cf: /home/nickanderson/.cfagent/inputs /home/nickanderson/.cfagent/inputs/failsafe.cf
          info: Unable to find host '$(sys.policy_hub)' service '$(sys.policy_hub_port)' (Servname not supported for ai_socktype)
          info: No server is responding on port: $(sys.policy_hub_port)
          info: Unable to establish connection to '$(sys.policy_hub)'
         error: No suitable server found
          info: Promise belongs to bundle 'failsafe_cfe_internal_update' in file '/home/nickanderson/.cfagent/inputs/failsafe.cf' near line 114
          info: Unable to find host '$(sys.policy_hub)' service '$(sys.policy_hub_port)' (Servname not supported for ai_socktype)
          info: No server is responding on port: $(sys.policy_hub_port)
          info: Unable to establish connection to '$(sys.policy_hub)'
         error: No suitable server found
          info: Promise belongs to bundle 'failsafe_cfe_internal_update' in file '/home/nickanderson/.cfagent/inputs/failsafe.cf' near line 123
          info: Unable to find host '$(sys.policy_hub)' service '$(sys.policy_hub_port)' (Servname not supported for ai_socktype)
          info: No server is responding on port: $(sys.policy_hub_port)
          info: Unable to establish connection to '$(sys.policy_hub)'
         error: No suitable server found
          info: Promise belongs to bundle 'failsafe_cfe_internal_update' in file '/home/nickanderson/.cfagent/inputs/failsafe.cf' near line 137
          info: Comment is 'If we failed to fetch policy we try again using
                          the legacy default in case we are fetching policy
                          from a hub that is not serving mastefiles via a
                          shortcut.'
         error: Method 'failsafe_cfe_internal_update' failed in some repairs
          info: Executing 'no timeout' ... '"/home/nickanderson/.cfagent/bin/cf-agent" -f /home/nickanderson/.cfagent/inputs/update.cf --define failsafe_mode'
          info: Completed execution of '"/home/nickanderson/.cfagent/bin/cf-agent" -f /home/nickanderson/.cfagent/inputs/update.cf --define failsafe_mode'
      R: Built-in failsafe policy triggered
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              a10042 Nick Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel