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

Amazon EC2 C5 Instances not detected as is_virtual causing ec2_metadata fact data not to resolve

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: FACT 3.6.10, FACT 3.9.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      AWS EC2 Instance C5.Large - Windows server 2012 R2
      AWS EC2 Instance C5.Large - Windows server 2016

    • Template:
    • Team:
      Platform OS
    • Sprint:
      Platform OS Kanban
    • Method Found:
      Customer Feedback
    • CS Priority:
      Major
    • CS Frequency:
      3 - 25-50% of Customers
    • CS Severity:
      3 - Serious
    • CS Business Value:
      5 - $$$$$$
    • CS Impact:
      AWS is the most widely used cloud service and the ec2_* facts are the primary way users pull data from ec2 into puppet for use during compilation.
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Hide
      Updates facter virtualization resolvers so that they are able to recognize the SMBIOS data reported by Amazon's newer (kvm-based) hypervisor, which is used with c5 instances. Facter now reports the hypervisor as kvm for these cases, allowing c5 instances to be detected as virtual and fill the ec2_metadata fact.
      Show
      Updates facter virtualization resolvers so that they are able to recognize the SMBIOS data reported by Amazon's newer (kvm-based) hypervisor, which is used with c5 instances. Facter now reports the hypervisor as kvm for these cases, allowing c5 instances to be detected as virtual and fill the ec2_metadata fact.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Facter detects new EC2 instances as physical and not virtualized.

      Running facter in debug mode:
      2017-11-11 09:46:28.638634 DEBUG puppetlabs.facter - resolving EC2 facts.
      2017-11-11 09:46:28.638634 DEBUG puppetlabs.facter - resolving virtualization facts.
      2017-11-11 09:46:28.651297 DEBUG puppetlabs.facter - fact "is_virtual" has resolved to false.
      2017-11-11 09:46:28.652289 DEBUG puppetlabs.facter - fact "virtual" has resolved to "physical".
      2017-11-11 09:46:28.653273 DEBUG puppetlabs.facter - EC2 facts are unavailable: not running under an EC2 instance.
      2017-11-11 09:46:28.654284 DEBUG puppetlabs.facter - fact "ec2_metadata" does not exist.

      When doing the wmi query on a working instance(t2.medium) the result is:
      Manufacturer : Xen
      Model : HVM domU

      Result from C5.Large:
      Manufacturer : Amazon EC2
      Model : c5.large

      Query: Get-WmiObject -Query "SELECT Manufacturer,Model FROM Win32_ComputerSystem" | Select-Object Manufacturer,Model | fl

      Facter not resolving ec2_metadata or ec2_userdata.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              casey.williams Casey Williams
              Reporter:
              vissieza Maarten
              Votes:
              9 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support