Jira (FACT-3064) Please update Google GCE instance check

0 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Sven Mueller (Jira)

ungelesen,
09.08.2021, 04:41:0409.08.21
an puppe...@googlegroups.com
Sven Mueller created an issue
 
Facter / Bug FACT-3064
Please update Google GCE instance check
Issue Type: Bug Bug
Assignee: Unassigned
Components: Facter 3, Facter 4
Created: 2021/08/09 1:40 AM
Priority: Normal Normal
Reporter: Sven Mueller

Hi.

 

Currently, Facter checks if it is running on Google's GCE by checking if the bios vendor is "Google". However, this happens to also be the case on some non-GCE systems (I think also in the Linux VM on Chromebooks as well as some other odd systems), leading to timeout when trying to talk to the Metadata server.

https://cloud.google.com/compute/docs/instances/managing-instances has updated the detection method (avoiding the metadata server) to:

sudo dmidecode -s system-product-name | grep "Google Compute Engine"
Google Compute Engine

For Linux. Please update facter accordingly.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Gheorghe Popescu (Jira)

ungelesen,
16.08.2021, 10:29:0216.08.21
an puppe...@googlegroups.com

Ciprian Badescu (Jira)

ungelesen,
17.08.2021, 02:02:0317.08.21
an puppe...@googlegroups.com
Ciprian Badescu commented on Bug FACT-3064
 
Re: Please update Google GCE instance check

Thank you for filing this issue. We agree it is likely an improvement, but due to other issues demanding precedence, we don’t anticipate being able to address this any time soon. If you are interested in submitting a patch to the repository for this project at https://github.com/puppetlabs/facter, please open a pull request.

Kyle Knobloch (Jira)

ungelesen,
24.05.2022, 14:11:0224.05.22
an puppe...@googlegroups.com

Hello,

I've recently run into a similar situation. I have LXD containers running on a Google machine and it believes the host is virtual as well as the LXD containers being identified as 'gce' instead of 'lxd'.  

 

It seems the check_gce fact is extremely broad resulting in these issues. 

https://github.com/puppetlabs/facter/blob/a2c141ac927c6e8d13b88ed4c54e3899aea8f306/lib/facter/util/facts/posix/virtual_detector.rb#L23-L26

This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten