Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1666

Add support for openvz virtualization detection

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 3.9.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Platform OS
    • Story Points:
      2
    • Sprint:
      Platform OS 2017-08-09
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      No Action

      Description

      If run by root, facter detects openvz using virt-what, which checks that 1) /proc/vz exists and 2) /proc/bc does not exist (bc exists on nodes, but not inside containers - vz exists both inside and outside) - in this case it reports openvz, which is not correct, since it should differentiate between VMs (reporting openvzve) and hardware nodes (reporting openvzhn) (see FACT-454).

      When facter is not run by root, it seems to correctly make the node/VM differentiation by looking at /proc/vz, /proc/lve/list, and /proc/self/status.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              casey.williams Casey Williams
              Reporter:
              casey.williams Casey Williams
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support