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

Masterfiles do not work by default on RHEL4 (packages promise python version)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.7.5, 3.10.1
    • Fix Version/s: 3.11.0, 3.10.2, 3.7.6
    • Component/s: None
    • Labels:
      None

      Description

      First bootstrap of 3.10.1 RHEL4 client shows success. However the policy does not work afterwards and the machine is b0rked:

      # cf-agent -KI
      Traceback (most recent call last):
        File "/var/cfengine/modules/packages/yum", line 5, in ?
          import subprocess
      ImportError: No module named subprocess
          info: Error occurred while getting supported API version.
         error: unsupported package module wrapper API version: -1
         error: Can not set up wrapper for module: yum
      

      Apparently the new packages promise needs python 2.4 or greater. BTW verbose output is useless in this case, it does not give any clue as to which bundle causes the issue.

      Can we check the python version in policy, and disable the relevant bundle based on python being absent or old, based on the PATH library? Remember that after CFE-2445 both python and python3 are acceptable pythons.

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel