Jira (FACT-3077) Inconsistent values coming from facter-ng output

39 views
Skip to first unread message

Selvakumar Azhagarsami (Jira)

unread,
Oct 5, 2021, 2:39:03 AM10/5/21
to puppe...@googlegroups.com
Selvakumar Azhagarsami updated an issue
 
Facter / Bug FACT-3077
Inconsistent values coming from facter-ng output
Change By: Selvakumar Azhagarsami
Labels: Support
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Selvakumar Azhagarsami (Jira)

unread,
Oct 5, 2021, 2:39:04 AM10/5/21
to puppe...@googlegroups.com
Selvakumar Azhagarsami created an issue
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2021/10/04 11:38 PM
Priority: Normal Normal
Reporter: Selvakumar Azhagarsami

Selvakumar Azhagarsami (Jira)

unread,
Oct 5, 2021, 2:44:02 AM10/5/21
to puppe...@googlegroups.com
Selvakumar Azhagarsami updated an issue
Change By: Selvakumar Azhagarsami
Facter & Facter-ng version:
{code:java}
[root@pepm facts.d]# /opt/puppetlabs/puppet/bin/facter --version
3.14.18 (commit 92e6f64d36589c8a537d4a4d5c574c872c3aa329) {code}
{code:java}
[root@pepm facts.d]# /opt/puppetlabs/puppet/bin/facter-ng --version
4.2.1 {code}
 

The output of the `Puppet` command shows the inconsistent value and for boolean value `false` the result is showing as empty.

 

 

 

Selvakumar Azhagarsami (Jira)

unread,
Oct 5, 2021, 2:49:02 AM10/5/21
to puppe...@googlegroups.com
Selvakumar Azhagarsami updated an issue
Facter & Facter-ng version:
{code:java}

[root@pepm facts.d]# /opt/puppetlabs/puppet/bin/facter --version
3.14.18 (commit 92e6f64d36589c8a537d4a4d5c574c872c3aa329) {code}
{code:java}

[root@pepm facts.d]# /opt/puppetlabs/puppet/bin/facter-ng --version
4.2.1 {code}
 

The output of the ` * Puppet ` * command shows the inconsistent value and the result for the boolean value `false` the result is showing as empty string .

Below are the steps to reproduce and the output:

  1) Created an external fact:
{code:java}
[root@pepm facts.d]# cat /etc/facter/facts.d/build_information.yaml
---
key1: true
key2: false {code}
  2) Output of the *Puppet* command shows the empty result boolean value `false`
{code:java}
[root@pepm facts.d]# puppet facts show --facterng key1 key2
2021-10-05 05:45:07.491417 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C
{
  "key1": true,
  "key2": ""
}

[root@pepm facts.d]# puppet facts show key1 key2
2021-10-05 05:45:24.325235 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C
{
  "key1": true,
  "key2": false
}{code}
 

Austin Boyd (Jira)

unread,
Oct 5, 2021, 2:49:03 AM10/5/21
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Labels: Support jira_escalated

Austin Boyd (Jira)

unread,
Oct 5, 2021, 2:49:03 AM10/5/21
to puppe...@googlegroups.com
Austin Boyd updated an issue
Change By: Austin Boyd
Zendesk Ticket Count: 1
Zendesk Ticket IDs: 46021

Ciprian Badescu (Jira)

unread,
Oct 6, 2021, 3:08:02 AM10/6/21
to puppe...@googlegroups.com

Victor Bobosila (Jira)

unread,
Oct 6, 2021, 3:32:02 AM10/6/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Oct 6, 2021, 4:59:02 AM10/6/21
to puppe...@googlegroups.com

Gabriel Nagy (Jira)

unread,
Oct 6, 2021, 6:30:03 AM10/6/21
to puppe...@googlegroups.com

Jeremy Mozes (Jira)

unread,
Oct 12, 2021, 11:39:02 AM10/12/21
to puppe...@googlegroups.com
Jeremy Mozes commented on Bug FACT-3077

Gabriel Nagy Hello, do we know if this bug is also in Puppet 7/PE 2021?

Victor Bobosila (Jira)

unread,
Oct 13, 2021, 3:36:02 AM10/13/21
to puppe...@googlegroups.com

Victor Bobosila (Jira)

unread,
Oct 13, 2021, 3:37:02 AM10/13/21
to puppe...@googlegroups.com
Victor Bobosila updated an issue
Change By: Victor Bobosila
Release Notes Summary: Fix inconsistency between facter3 and facter4 for boolean values

Jeremy Mozes (Jira)

unread,
Oct 14, 2021, 11:17:03 AM10/14/21
to puppe...@googlegroups.com
Jeremy Mozes commented on Bug FACT-3077
 
Re: Inconsistent values coming from facter-ng output

Selvakumar Azhagarsami or Gabriel Nagy Hi, do you know if this bug is also in PE 2021?

Selvakumar Azhagarsami (Jira)

unread,
Oct 15, 2021, 1:09:03 AM10/15/21
to puppe...@googlegroups.com

Jeremy Mozes I just did a quick test in my lab PE 2021.3.0 machine.

[root@pe-server-262baf-0 facts.d]# facter -p pe_build
2021.3.0
 
 
[root@pe-server-262baf-0 facts.d]# /opt/puppetlabs/puppet/bin/facter --version
4.2.2
 
 
[root@pe-server-262baf-0 facts.d]# /opt/puppetlabs/puppet/bin/facter-ng --version
-bash: /opt/puppetlabs/puppet/bin/facter-ng: No such file or directory 

[root@pe-server-262baf-0 facts.d]# puppet facts show --facterng key1 key2
Error: Could not parse application options: invalid option: --facterng
Did you mean?  facts-terminus
 
[root@pe-server-262baf-0 facts.d]# puppet facts show key1 key2
{
  "key1": true,
  "key2": ""
} 

Jeremy Mozes (Jira)

unread,
Oct 15, 2021, 10:18:02 AM10/15/21
to puppe...@googlegroups.com
Jeremy Mozes commented on Bug FACT-3077

Selvakumar Azhagarsami Thank you for the update, good to know. Do we happen to know what version of PE/Facter that facter-ng was deprecated?  One of our customers relies on facter-ng and I want to make sure that we are able to identify at what point facter-ng is no longer available.  I've looke through release notes for facter, Puppet 6 and 7 and do not see any mention of facter-ng being removed.  If you have some information on when it was removed or if you know where to find that information that would be very helpful.  Thanks!

Gabriel Nagy (Jira)

unread,
Oct 15, 2021, 10:30:02 AM10/15/21
to puppe...@googlegroups.com
Gabriel Nagy commented on Bug FACT-3077

Jeremy Mozes, PE 2019.8.x ships with Facter 3 by default. Facter 4 (known as facter-ng in PE 2019.8.x) can be activated by setting facterng to true in the puppet.conf file. To my knowledge it will not be deprecated, it's just a way for customers to be able to opt-in to use Facter 4 while on PE 2019.

In PE 2021, Facter 4 is shipped by default.

Jeremy Mozes (Jira)

unread,
Oct 15, 2021, 2:34:02 PM10/15/21
to puppe...@googlegroups.com
Jeremy Mozes commented on Bug FACT-3077

Selvakumar Azhagarsami Gabriel Nagy The output above indicates the bug also exists in 2021 correct?

Jeremy Mozes (Jira)

unread,
Oct 18, 2021, 12:24:06 PM10/18/21
to puppe...@googlegroups.com
Jeremy Mozes commented on Bug FACT-3077

Selvakumar Azhagarsami Thanks, do we think this will be resolved in 2021.4 or is there a plan of action to resolve the bug?

Ciprian Badescu (Jira)

unread,
Nov 2, 2021, 6:00:04 AM11/2/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
 
Change By: Ciprian Badescu
Fix Version/s: FACT 4.2.6

Erwin Solis (Jira)

unread,
Nov 15, 2021, 12:47:02 PM11/15/21
to puppe...@googlegroups.com
Erwin Solis commented on Bug FACT-3077
 
Re: Inconsistent values coming from facter-ng output

T-Mobile was hoping to see his fixed in 2019.8.9 so I just want to pile on that LTS customers have a need.

Parker Leach (Jira)

unread,
Dec 8, 2021, 11:55:03 AM12/8/21
to puppe...@googlegroups.com
Parker Leach updated an issue
 
Change By: Parker Leach
Labels: Support docs_reviewed jira_escalated
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages