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

Virtual interfaces being ignored

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.0
    • Component/s: Environment Detection
    • Labels:
      None
    • Found in version (details):
      3.5.0a1

      Description

      In unix.c:

      <pre>
      if (strstr(ifp->ifr_name, ":"))
      {
      if (VSYSTEMHARDCLASS == linuxx)

      { CfOut(cf_verbose, "", "Skipping apparent virtual interface %d: %s\n", j + 1, ifp->ifr_name); continue; }

      }

      </pre>

      This causes interface detection to fail on OpenVZ as these are point-to-point virtual interfaces.
      <pre>

      1. uname -a && ifconfig venet0:0
        Linux testhost 2.6.32-5-openvz-amd64 #1 SMP Sun May 6 05:21:56 UTC 2012 x86_64 GNU/Linux
        venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
        inet addr:10.10.10.10 P-t-P:10.10.10.10 Bcast:0.0.0.0 Mask:255.255.255.255
        UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
        </pre>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                a10007 Jon Henrik Bjørnstad (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel