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

packages promise does not work on package names with numbers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.3
    • Component/s: Promise type: packages
    • Labels:
      None
    • Platform:
      Debian

      Description

      This is a report similar to #3280. I can report that the following packages promise does not work for several packages named in the array:

      <pre>
      packages:
      nemo_slave_master::
      "$(nemo_slave_master_packages)"
      policy => "present";
      </pre>

      I have set the package_module to a default of apt_get in body common control (Debian 7). The members of the array that it fails on are:

      <pre>
      "linux-image-3.16.0-0.bpo.4-amd64",
      "linux-headers-3.16.0-0.bpo.4-amd64",
      "linux-tools-3.2",
      "openjdk-7-jdk",
      "openjdk-7-jre-headless",
      </pre>

      The error messages reported by "cf-agent -Kv" are:

      <pre>
      verbose: Using new package promise.
      verbose: P: .........................................................
      verbose: P: BEGIN un-named promise of type "packages" (pass 1)
      verbose: P: Promiser/affected object: 'openjdk-7-jre-headless'
      verbose: P: Part of bundle: nemo_slave_master_packages
      verbose: P: Base context class: nemo_slave_master
      verbose: P: Container path : '/default/nemo_slave_master_packages/packages/'openjdk-7-jre-headless'[98]'
      verbose: P: .........................................................
      verbose:
      verbose: Package module returned with non zero return code: 1
      info: Some error occurred while communicating with package module while collecting package data.
      info: Can not obtain package data for promise: openjdk-7-jre-headless
      error: Error installing package 'openjdk-7-jre-headless'
      verbose: A: Promise NOT KEPT!
      verbose: P: END packages promise (openjdk-7-jre-headless...)
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10040 Kristian Amlie
                Reporter:
                tpdownes Tom Downes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel