Jira (FACT-2824) Facter make ec2 metadata requests when on gce

7 views
Skip to first unread message

Bogdan Irimie (Jira)

unread,
Oct 1, 2020, 4:40:03 AM10/1/20
to puppe...@googlegroups.com
Bogdan Irimie created an issue
 
Facter / Bug FACT-2824
Facter make ec2 metadata requests when on gce
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/10/01 1:39 AM
Priority: Normal Normal
Reporter: Bogdan Irimie

The ec2_metadata fact calls the EC2 resolver is it detects hypervisor as kvm, xen or aws. As there are many cloud providers that use kvm and xen as their hypervisors, the fact will call the EC2 resolver even on systems that are not EC2. 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Oct 1, 2020, 4:40:03 AM10/1/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Priority: Normal Blocker

Bogdan Irimie (Jira)

unread,
Oct 1, 2020, 4:40:04 AM10/1/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage ghost-7.10

Bogdan Irimie (Jira)

unread,
Oct 1, 2020, 4:41:03 AM10/1/20
to puppe...@googlegroups.com
Bogdan Irimie commented on Bug FACT-2824
 
Re: Facter make ec2 metadata requests when on gce

With the fix

bundle exec facter virtual is_virtual hypervisors dmi
dmi => {
 bios => {
 release_date => "10/16/2017",
 vendor => "Amazon EC2",
 version => "1.0"
 },
 board => {
 asset_tag => "i-055c63d9627867723",
 manufacturer => "Amazon EC2",
 product => "",
 serial_number => ""
 },
 chassis => {
 asset_tag => "Amazon EC2",
 type => "Other"
 },
 manufacturer => "Amazon EC2",
 product => {
 name => "c5.xlarge",
 serial_number => "ec2f146b-3a98-dc7a-adb5-467554865fbe",
 uuid => "EC2F146B-3A98-DC7A-ADB5-467554865FBE"
 }
}
hypervisors => {
 kvm => {
 amazon => true
 },
 xen => {
 context => "pv",
 privileged => false
 }
}
is_virtual => true
virtual => kvm

Bogdan Irimie (Jira)

unread,
Oct 2, 2020, 2:44:03 AM10/2/20
to puppe...@googlegroups.com
Bogdan Irimie assigned an issue to Bogdan Irimie
 
Change By: Bogdan Irimie
Assignee: Bogdan Irimie
Reply all
Reply to author
Forward
0 new messages