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

LXC detection code raises errors on old OpenVZ

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: FACT 2.2.0
    • Fix Version/s: FACT 2.4.0
    • Component/s: Community
    • Labels:
      None
    • Environment:

      Debian 6.x running OpenVZ.

    • Template:

      Description

      In OpenVZ, /proc/1/cgroup exists and appears readable but actually opening it raises "operation not permitted".

      # facter -p
      Could not retrieve fact='virtual', resolution='<anonymous>': Operation not permitted - /proc/1/cgroup
      Could not retrieve fact='virtual', resolution='<anonymous>': Operation not permitted - /proc/1/cgroup
      architecture => amd64
      .../...
      

      The attached patch to util/virtual.rb fixes the issue; I have not tested it on LXC or Docker but I can't find anything that would break.

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  agomes Arnaud Gomes
                  QA Contact:
                  Eric Thompson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support