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

packages promises broken - python interpreter missing for rhel8 community

    XMLWordPrintable

    Details

      Description

      Installed and self-bootstrapped 3.15.1 el8 on rhel8. Added packages promise to masterfiles/services/main.cf and received the following error:

      [root@ip-172-31-26-28 masterfiles]# cf-agent -KI
          info: Error occurred while getting supported API version.
         error: unsupported package module wrapper API version: -1
         error: Some error occurred while contacting package module - promise: ed 

      Looks like we aren't properly setting up our python in /var/cfengine/bin?

      [root@ip-172-31-26-28 packages]# which python
      /usr/bin/which: no python in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/var/cfengine/bin:/root/bin)
      [root@ip-172-31-26-28 packages]# ls -l /var/cfengine/bin/python
      ls: cannot access '/var/cfengine/bin/python': No such file or directory
      [root@ip-172-31-26-28 packages]# ./yum
      -bash: ./yum: /var/cfengine/bin/python: bad interpreter: No such file or directory
      [root@ip-172-31-26-28 packages]# whereis python
      python: /usr/lib/python3.6 /usr/lib64/python3.6 /usr/include/python3.6m /usr/share/man/man1/python.1.gz
      [root@ip-172-31-26-28 packages]# ls -l /var/cfengine/bin/python
      ls: cannot access '/var/cfengine/bin/python': No such file or directory 

       

      I will say I ran into several problems self-bootstrapping the agent. So that might be a big part of what is broken.

       

      [root@ip-172-31-26-28 cfengine]# cf-agent --bootstrap 172.31.26.28
      R: Bootstrapping from host '172.31.26.28' via built-in policy '/var/cfengine/inputs/failsafe.cf'
      R: This host assumes the role of policy server
      R: Updated local policy from policy server
      R: Triggered an initial run of the policy
      R: Restarted systemd unit cfengine3
         error: Bootstrapping failed, cf-execd is not running
      [root@ip-172-31-26-28 cfengine]# cf-agent -KIf update.cf
          info: Unable to find host '$(sys.policy_hub)' service '5308' (Name or service not known)
          info: No server is responding on port: 5308
          info: Unable to establish connection to '$(sys.policy_hub)'
         error: No suitable server found
          info: Promise belongs to bundle 'cfe_internal_update_policy_cpv' in file '/var/cfengine/inputs/cfe_internal/update/update_policy.cf' near line 226
          info: Comment is 'Check whether a validation stamp is available for a new policy update to reduce the distributed load'
          info: Unable to find host '$(sys.policy_hub)' service '5308' (Name or service not known)
          info: No server is responding on port: 5308
          info: Unable to establish connection to '$(sys.policy_hub)'
         error: No suitable server found
          info: Promise belongs to bundle 'cfe_internal_update_policy_cpv' in file '/var/cfengine/inputs/cfe_internal/update/update_policy.cf' near line 235
          info: Comment is 'Always update modules files on client side'
          info: Unable to find host '$(sys.policy_hub)' service '5308' (Name or service not known)
          info: No server is responding on port: 5308
          info: Unable to establish connection to '$(sys.policy_hub)'
         error: No suitable server found
          info: Promise belongs to bundle 'cfe_internal_update_policy_cpv' in file '/var/cfengine/inputs/cfe_internal/update/update_policy.cf' near line 243
          info: Comment is 'Always update plugins files on client side'
         error: Method 'cfe_internal_update_policy_cpv' failed in some repairs 

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                craig.comstock Craig Comstock
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel