Jira (FACT-1808) Incorrectly detects OS in docker container

2020-03-22 Thread Matej Žerovnik
Title: Message Title


 
 
 
 

 
 
 

 
   
 Matej Žerovnik commented on  FACT-1808  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Incorrectly detects OS in docker container   
 

  
 
 
 
 

 
 This breaks facter v4 in debian based docker images with the error below. After installed lsb-release package, it works. But at least ruby docker image, which is based on debian, doesn't work by default.  
 
 
 
 
 $ facterfacter#0x55965be434e0@/usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/internal_fact_manager.rb:23 run> terminated with exception (report_on_exception is true):Traceback (most recent call last): 2: from /usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/internal_fact_manager.rb:25:in `block (2 levels) in start_threads' 1: from /usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/core_fact.rb:12:in `create'/usr/local/bundle/gems/facter-4.0.11/lib/facts/debian/os/release.rb:12:in `call_the_resolver': undefined method `split' for nil:NilClass (NoMethodError)#0x55965be432b0@/usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/internal_fact_manager.rb:23 run> terminated with exception (report_on_exception is true):Traceback (most recent call last): 2: from /usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/internal_fact_manager.rb:25:in `block (2 levels) in start_threads' 1: from /usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/core_fact.rb:12:in `create'/usr/local/bundle/gems/facter-4.0.11/lib/facts/debian/os/release.rb:12:in `call_the_resolver': undefined method `split' for nil:NilClass (NoMethodError)#0x55965be433c8@/usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/internal_fact_manager.rb:23 run> terminated with exception (report_on_exception is true):Traceback (most recent call last): 2: from /usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/internal_fact_manager.rb:25:in `block (2 levels) in start_threads' 1: from /usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/core_fact.rb:12:in `create'/usr/local/bundle/gems/facter-4.0.11/lib/facts/debian/os/release.rb:12:in `call_the_resolver': undefined method `split' for nil:NilClass (NoMethodError)Traceback (most recent call last): 2: from /usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/internal_fact_manager.rb:25:in `block (2 levels) in start_threads' 1: from /usr/local/bundle/gems/facter-4.0.11/lib/framework/core/fact/internal/core_fact.rb:12:in `create'/usr/local/bundle/gems/facter-4.0.11/lib/facts/debian/os/release.rb:12:in `call_the_resolver': undefined method `split' for nil:NilClass (NoMethodError)
  
 
 
 
   
 

  
 
 
 
 

 
 
  

Jira (FACT-1808) Incorrectly detects OS in docker container

2018-02-20 Thread Geoff Nichols (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Geoff Nichols updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-1808  
 
 
  Incorrectly detects OS in docker container   
 

  
 
 
 
 

 
Change By: 
 Geoff Nichols  
 
 
Labels: 
 triaged virtualization  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1808) Incorrectly detects OS in docker container

2018-02-19 Thread David Wood (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David Wood commented on  FACT-1808  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Incorrectly detects OS in docker container   
 

  
 
 
 
 

 
 Thanks, this workaround solves the problem for me.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1808) Incorrectly detects OS in docker container

2018-02-06 Thread Branan Riley (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Branan Riley commented on  FACT-1808  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Incorrectly detects OS in docker container   
 

  
 
 
 
 

 
 We currently rely on the lsb-release package (specifically the lsb_release command) to identify various Debian derivatives. Probably we need to switch to the os-release file, since that appears to have filtered into most modern versions of various distros at this point. For now, you should be able to install the lsb-release package in your container images to get Facter to behave correctly.    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1808) Incorrectly detects OS in docker container

2018-02-06 Thread Branan Riley (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Branan Riley updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-1808  
 
 
  Incorrectly detects OS in docker container   
 

  
 
 
 
 

 
Change By: 
 Branan Riley  
 
 
Team: 
 Platform OS  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1808) Incorrectly detects OS in docker container

2018-02-06 Thread Scott McClellan (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Scott McClellan assigned an issue to Branan Riley  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-1808  
 
 
  Incorrectly detects OS in docker container   
 

  
 
 
 
 

 
Change By: 
 Scott McClellan  
 
 
Assignee: 
 Branan Riley  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.5.1#75006-sha1:7df2574)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (FACT-1808) Incorrectly detects OS in docker container

2018-01-12 Thread David Wood (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 David Wood created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Facter /  FACT-1808 
 
 
 
  Incorrectly detects OS in docker container  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 FACT 3.9.3 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2018/01/12 5:08 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 David Wood 
 
 
 
 
 
 
 
 
 
 
When running in a Docker container, facter incorrectly reports the OS. 
To reproduce this, start a docker container with the "ubuntu" image, install Facter from the Puppet repository, run "puppet os" and notice it is reported as "Debian". 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment