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

hard class detection fails on RHEL6 "ComputeNode"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.x
    • Component/s: Environment Detection
    • Labels:
      None
    • Platform:
      RHEL or CentOS
    • Found in version (details):
      Community 3.5.1
    • Steps to reproduce:
      Manual steps provided

      Description

      @$ cat /etc/redhat-release@
      Red Hat Enterprise Linux ComputeNode release 6.4 (Santiago)

      @$ cf-promises -v | grep redhat_6@
      <No result>

      @$ rpm -qf /etc/redhat-release@
      redhat-release-computenode-6ComputeNode-6.4.0.4.el6.x86_64

      @$ rpm -qf /var/cfengine/bin/cf-promises@
      cfengine-community-3.5.1-1.x86_64

      Something like this appears likely to fix it (untested):
      <pre><code class="diff">
      — libpromises/sysinfo.c.orig 2013-07-18 15:04:16.936861000 +0200
      +++ libpromises/sysinfo.c 2013-07-18 15:06:25.025913000 +0200
      @@ -1277,6 +1277,7 @@
      #define REDHAT_C_ID "Red Hat Enterprise Linux Client"
      #define REDHAT_S_ID "Red Hat Enterprise Linux Server"
      #define REDHAT_W_ID "Red Hat Enterprise Linux Workstation"
      +#define REDHAT_CN_ID "Red Hat Enterprise Linux ComputeNode"
      #define MANDRAKE_ID "Linux Mandrake"
      #define MANDRAKE_10_1_ID "Mandrakelinux"
      #define WHITEBOX_ID "White Box Enterprise Linux"
      @@ -1367,6 +1368,11 @@
      vendor = "redhat";
      edition = "c";
      }
      + else if (!strncmp(relstring, REDHAT_CN_ID, strlen(REDHAT_CN_ID)))
      +

      { + vendor = "redhat"; + edition = "cn"; + }

      else if (!strncmp(relstring, REDHAT_ID, strlen(REDHAT_ID)))
      {
      vendor = "redhat";
      </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                hakan Håkan Olsson
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel