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

Facter 4.0.46 (from puppet 7) breaks virtual flag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: FACT 4.0.44
    • Fix Version/s: FACT 4.0.47
    • Component/s: Facter 4
    • Environment:
      • Tested in similar Systems running CentOS 7,
      • Puppet-agent 7,
      • same code,
      • with above commands.

      100% reproduceable.

    • Template:
    • Team:
      Night's Watch
    • Sub-team:
    • Sprint:
      ghost-9.12
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Description of the problem: Facter fails to detect that it is on virtual environment when it's run on OpenVZ.
      Description of the fix: Check if /proc/lve/list file is a regular file instead of checking if it's executable.
      Show
      Description of the problem: Facter fails to detect that it is on virtual environment when it's run on OpenVZ. Description of the fix: Check if /proc/lve/list file is a regular file instead of checking if it's executable.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Hey,

      I am running the puppet-collection 7 with facter 4.0.46 that comes along. I have a few containers that are inside OpenVZ / Virtuozzo environment. Previously it was matched correctly as "openvz" or "openvzhe", now its just "physical":

      [root@zen10:~] # systemd-detect-virt
      openvz
      [root@zen10:~] # facter is_virtual virtual
      is_virtual => false
      virtual => physical
      [root@zen10:~] # facter -v 
      4.0.46

       

      On a similar system, albeit not updates to Puppet 7:

       

      [root@babbel:~] # systemd-detect-virt
      openvz
      [root@babbel:~] # facter is_virtual virtual
      is_virtual => true
      virtual => openvz
      [root@babbel:~] # facter -v 
      3.14.12 (commit 70d26da13c9fee27973c1eb22200871e21445d97)

       

        Attachments

          Activity

            People

            Assignee:
            oana.tanasoiu Oana Tanasoiu
            Reporter:
            creiss Christian Reiss
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support