Jira (FACT-2740) 'gce' fact missing in Facter 4.x

15 views
Skip to first unread message

Nate McCurdy (Jira)

unread,
Aug 6, 2020, 8:28:04 PM8/6/20
to puppe...@googlegroups.com
Nate McCurdy updated an issue
 
Facter / Bug FACT-2740
'gce' fact missing in Facter 4.x
Change By: Nate McCurdy
h3. The Problem

The core fact 'gce' is missing from Facter 4 when run on a Google Cloud instance.

h3. The Expectation

I expected by a Google Cloud instance to have a 'gce' fact that resolves to the metadata of the GCE instance just like it does in Facter 3.

[ https://puppet.com/docs/facter/3.11/core_facts.html#gce ]

h3. The Reproduction

On a GCE instance, start with Facter 3.x that ships with puppet-agent 5 or 6:
{noformat}

$ facter --version
3.11.8 (commit eb5f71136af5012f3a7169ed3a77a111c1e4d765)
$ facter gce | head
{
  instance => {
    attributes => {
      boot-script => "#!/usr/bin/python

# Read this for more information on the startup-script process
# https://cloud.google.com/deployment-manager/docs/step-by-step-guide/setting-metadata-and-startup-scripts

import fcntl
import json

$ facter gce --json | jq '.gce | keys'
[
  "instance",
  "oslogin",
  "project"
]
{noformat}

Then install the Facter 4.0.33 gem and run {{facter gce}}:
{noformat}

$ sudo /opt/puppetlabs/puppet/bin/gem install facter-4.0.33.gem thor-1.0.1.gem hocon-1.3.1.gem --no-doc
Successfully installed hocon-1.3.1
facter's executable "facter" conflicts with /opt/puppetlabs/puppet/bin/facter
Overwrite the executable? [yN]  y
Successfully installed facter-4.0.33
Successfully installed thor-1.0.1
Successfully installed hocon-1.3.1
4 gems installed

$ facter --version
4.0.33

$ facter gce

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

Nate McCurdy (Jira)

unread,
Aug 6, 2020, 8:28:04 PM8/6/20
to puppe...@googlegroups.com
Nate McCurdy created an issue
Issue Type: Bug Bug
Affects Versions: FACT 4.0.33
Assignee: Unassigned
Components: Facter 4
Created: 2020/08/06 5:27 PM
Priority: Normal Normal
Reporter: Nate McCurdy

The Problem

The core fact 'gce' is missing from Facter 4 when run on a Google Cloud instance.

The Expectation

I expected by Google Cloud instance to have a 'gce' fact that resolves to the metadata of the GCE instance just like it does in Facter 3.

https://puppet.com/docs/facter/3.11/core_facts.html#gce

The Reproduction

On a GCE instance, start with Facter 3.x that ships with puppet-agent 5 or 6:

$ facter --version
3.11.8 (commit eb5f71136af5012f3a7169ed3a77a111c1e4d765)
$ facter gce | head
{
  instance => {
    attributes => {
      boot-script => "#!/usr/bin/python
 
# Read this for more information on the startup-script process
# https://cloud.google.com/deployment-manager/docs/step-by-step-guide/setting-metadata-and-startup-scripts
 
import fcntl
import json
 
$ facter gce --json | jq '.gce | keys'
[
  "instance",
  "oslogin",
  "project"
]

Then install the Facter 4.0.33 gem and run facter gce:

$ sudo /opt/puppetlabs/puppet/bin/gem install facter-4.0.33.gem thor-1.0.1.gem hocon-1.3.1.gem --no-doc
Successfully installed hocon-1.3.1
facter's executable "facter" conflicts with /opt/puppetlabs/puppet/bin/facter
Overwrite the executable? [yN]  y
Successfully installed facter-4.0.33
Successfully installed thor-1.0.1
Successfully installed hocon-1.3.1
4 gems installed
 
$ facter --version
4.0.33
 
$ facter gce
 
$

Mihai Buzgau (Jira)

unread,
Aug 7, 2020, 8:44:03 AM8/7/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: ready for triage

Mihai Buzgau (Jira)

unread,
Aug 7, 2020, 8:45:03 AM8/7/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Labels: community

Mihai Buzgau (Jira)

unread,
Aug 11, 2020, 6:56:03 AM8/11/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Labels: community platform_7

Mihai Buzgau (Jira)

unread,
Aug 11, 2020, 8:27:03 AM8/11/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sub-team: ghost
Team: Night's Watch

Bogdan Irimie (Jira)

unread,
Aug 12, 2020, 4:59:03 AM8/12/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage ghost-19

Bogdan Irimie (Jira)

unread,
Aug 12, 2020, 5:03:03 AM8/12/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Story Points: 3

Andrei Filipovici (Jira)

unread,
Aug 13, 2020, 5:52:03 AM8/13/20
to puppe...@googlegroups.com
Andrei Filipovici assigned an issue to Andrei Filipovici
Change By: Andrei Filipovici
Assignee: Andrei Filipovici

Bogdan Irimie (Jira)

unread,
Aug 19, 2020, 9:12:06 AM8/19/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-19 , ready for triage 2
Reply all
Reply to author
Forward
0 new messages