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

EC2 Metadata Broken with Facter 2.5.4 - Works Fine in 2.5.1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: CLI, Community
    • Labels:
      None
    • Environment:

      Linux ip-10-3-2-218 4.9.70-25.242.amzn1.x86_64 #1 SMP Wed Jan 3 05:36:22 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

    • Template:
    • Acceptance Criteria:
      Hide

      EC2 Metadata should return as proper facts across all versions. 

      Show
      EC2 Metadata should return as proper facts across all versions. 
    • Method Found:
      Other (please specify in description)
    • QA Risk Assessment:
      Needs Assessment

      Description

      Facter at version 2.5.4 can no longer read and display facts from EC2 Metadata in AWS.  This has been breaking our puppet runs across Puppet and Dev environments, as on bootstrap we're automatically pulling the latest in the 2.x series. 

       

      Facter @ 2.5.4

      [root@ip-10-3-2-87 log]# facter | grep ec2
      serialnumber => ec23a2bd-0a32-7111-8ee9-ecd6038d22d0
      

      Facter @ 2.5.1

      [root@ip-10-3-2-85 vkumase]# facter | grep ec2
       
      domain => ec2.internal
       
      ec2_ami_id => ami-923b64e8
       
      ec2_ami_launch_index => 0
       
      ec2_ami_manifest_path => (unknown)
       
      ec2_block_device_mapping_ami => /dev/xvda
       
      ec2_block_device_mapping_ebs1 => xvdcz
       
      ec2_block_device_mapping_root => /dev/xvda
       
      ec2_events_maintenance_history => []
       
      ec2_events_maintenance_scheduled => []
       
      ec2_hostname => ip-10-3-2-85
       
      ec2_iam_info_0 => {
       
      ec2_iam_info_1 =>   "Code" : "Success",
       
      ec2_iam_info_2 =>   "LastUpdated" : "2019-07-17T15:54:48Z",
      

      This will break all Puppet modules that are using EC2 metadata as a fact in older puppet installations. 

        Attachments

          Activity

            People

            Assignee:
            mihai.buzgau Mihai Buzgau
            Reporter:
            seankumar5 Sean Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support