Jira (FACT-2993) Facter 4.0.52 does not provide trusted['hostname'] in Docker environments

15 views
Skip to first unread message

Manuel Laug (Jira)

unread,
Mar 23, 2021, 7:28:02 AM3/23/21
to puppe...@googlegroups.com
Manuel Laug updated an issue
 
Facter / Bug FACT-2993
Facter 4.0.52 does not provide trusted['hostname'] in Docker environments
Change By: Manuel Laug
We du run Puppet RSpec tests in a Gitlab Pipeline and use a specific Ruby Docker Image for that (basically *ruby:2-alpine* with some additional packages).

I've noticed that tests depending on *$::trusted['hostname']* start failing with *Facter 4.0.52* as the variable is *Undef*. Running the exact same test using *Facter 4.0.51* works fine (as it did with all previous versions we used).

Interestingly this only happens when running the tests using the Docker Image (in Gitlab and also locally). If I execute the tests on a MacOS
or Linux system directly , they successfully run.

I've also tried using a different Puppet and Ruby version, but had the exact same behaviour.
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Manuel Laug (Jira)

unread,
Mar 23, 2021, 7:28:03 AM3/23/21
to puppe...@googlegroups.com
Manuel Laug created an issue
Issue Type: Bug Bug
Affects Versions: FACT 4.0.52
Assignee: Unassigned
Components: Facter 4
Created: 2021/03/23 4:27 AM
Environment:
  • Puppet version: 6.21.0 and 7.3.0
  • Facter version: 4.0.52
  • Ruby version: 2.5.7 and 2.7.1
Priority: Normal Normal
Reporter: Manuel Laug

We du run Puppet RSpec tests in a Gitlab Pipeline and use a specific Ruby Docker Image for that (basically ruby:2-alpine with some additional packages).

I've noticed that tests depending on $::trusted['hostname'] start failing with Facter 4.0.52 as the variable is Undef. Running the exact same test using Facter 4.0.51 works fine (as it did with all previous versions we used).

Interestingly this only happens when running the tests using the Docker Image (in Gitlab and also locally). If I execute the tests on a MacOS system, they successfully run.

I've also tried using a different Puppet and Ruby version, but had the exact same behaviour.

Manuel Laug (Jira)

unread,
Mar 23, 2021, 7:29:02 AM3/23/21
to puppe...@googlegroups.com
Manuel Laug updated an issue
Change By: Manuel Laug
We du run Puppet RSpec tests in a Gitlab Pipeline and use a specific Ruby Docker Image for that (basically *ruby:2-alpine* with some additional packages).

I've noticed that tests depending on *$::trusted['hostname']* start failing with *Facter 4.0.52* as the variable is *Undef*. Running the exact same test using *Facter 4.0.51* works fine (as it did with all previous versions we used).

Interestingly this only happens when running the tests using the Docker Image (in Gitlab and also locally). If I execute the tests on a MacOS or Linux system directly, they
successfully run throw no error .


I've also tried using a different Puppet and Ruby version, but had the exact same behaviour.

Gheorghe Popescu (Jira)

unread,
Mar 23, 2021, 9:40:02 AM3/23/21
to puppe...@googlegroups.com

Manuel Laug (Jira)

unread,
Mar 24, 2021, 3:45:03 AM3/24/21
to puppe...@googlegroups.com
Manuel Laug commented on Bug FACT-2993

Gheorghe Popescu, this might be the cause. Currently I've pinned our Facter version used to one that works. I will revisit this after 4.0.53 is released.

Mihai Buzgau (Jira)

unread,
Mar 26, 2021, 9:38:02 AM3/26/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
Apr 13, 2021, 9:38:02 AM4/13/21
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Team: Night's Watch
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Apr 13, 2021, 9:38:04 AM4/13/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Apr 14, 2021, 4:50:04 AM4/14/21
to puppe...@googlegroups.com

Manuel Laug (Jira)

unread,
Apr 20, 2021, 7:29:03 AM4/20/21
to puppe...@googlegroups.com
Manuel Laug commented on Bug FACT-2993
 
Re: Facter 4.0.52 does not provide trusted['hostname'] in Docker environments

Gheorghe Popescu, I've tried Facter 4.1.0 and the Spec tests work again with that version. I think this Issue can be closed.

Manuel Laug (Jira)

unread,
Apr 20, 2021, 7:29:04 AM4/20/21
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages