Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-11-10 Thread Claire Cadman (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Claire Cadman updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Claire Cadman  
 
 
Labels: 
 doc_reviewed platform_7  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.75637.1605006240042%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-11-05 Thread Florin Dragos (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florin Dragos updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Florin Dragos  
 
 
Release Notes Summary: 
 When getting the uptime inside a docker container, the kernel will report the host uptime. In order to get the container uptime, we should get the uptime of PID 1, that is the process that starts when the container is starting.To get the running time of pid 1 inside the container, we use ps -o etime= -p "1"  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.73361.1604611680034%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-11-05 Thread Florin Dragos (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florin Dragos updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Florin Dragos  
 

  
 
 
 
 

 
 When getting the uptime inside a docker container, the kernel will report the host uptime. In order to get the container uptime, we should get the uptime of PID 1, that is the process that starts when the container is starting.To get the running time of pid 1 inside the container, we  could  use  something like  {code:java}  ps -o etime= -p "1"{code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.73352.1604611380068%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-11-05 Thread Florin Dragos (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florin Dragos updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Florin Dragos  
 

  
 
 
 
 

 
 When getting the uptime inside a docker container, the kernel will report the host uptime. In order to get the container uptime, we should get the uptime of PID 1, that is the process that starts when the container is starting. To get the running time of pid 1 inside the container, we could use something like {code:java}  ps -o etime= -p "1"{code}  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.73348.1604611320035%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-11-05 Thread Florin Dragos (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florin Dragos updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Florin Dragos  
 
 
Release Notes: 
 Not Needed Bug Fix  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.73341.1604611200143%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-11-05 Thread Mihai Buzgau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Mihai Buzgau  
 
 
Fix Version/s: 
 FACT 4.0.45  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.72824.1604587140082%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-08-17 Thread Bogdan Irimie (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bogdan Irimie commented on  FACT-2737  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
 After the fix 
 
on machine  
 
 
 
 
 ./facter facterversion system_uptime  
 
 
 facterversion => 4.0.34  
 
 
 system_uptime => {  
 
 
   days => 3,  
 
 
   hours => 73,  
 
 
   seconds => 264126,  
 
 
   uptime => "3 days"
  
 
 
 
  
 
 
in docker container  
 
 
 
 
 ./facter facterversion system_uptime  
 
 
 facterversion => 4.0.34  
 
 
 system_uptime => {  
   

Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-08-14 Thread Bogdan Irimie (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bogdan Irimie assigned an issue to Bogdan Irimie  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Bogdan Irimie  
 
 
Assignee: 
 Bogdan Irimie  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.16295.1597411560110%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-08-12 Thread Bogdan Irimie (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bogdan Irimie updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Bogdan Irimie  
 
 
Story Points: 
 2  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.14533.1597226040041%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-08-12 Thread Bogdan Irimie (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Bogdan Irimie updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Bogdan Irimie  
 
 
Sprint: 
 ready for triage ghost-19  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.14530.1597225920071%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-08-11 Thread Mihai Buzgau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Mihai Buzgau  
 
 
Team: 
 Night's Watch  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.13639.1597148880096%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-08-11 Thread Mihai Buzgau (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mihai Buzgau updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Change By: 
 Mihai Buzgau  
 
 
Sprint: 
 ready for triage  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)  
 
 

 
   
 

  
 

  
 

   





-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.368100.1596539438000.13599.1597148640511%40Atlassian.JIRA.


Jira (FACT-2737) facter uptime shows host uptime inside docker container

2020-08-04 Thread Florin Dragos (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Florin Dragos created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Facter /  FACT-2737  
 
 
  facter uptime shows host uptime inside docker container   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Facter 4  
 
 
Created: 
 2020/08/04 4:10 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Florin Dragos  
 

  
 
 
 
 

 
 To get the running time of pid 1 inside the container, we could use something like   
 
 
 
 
 ps -o etime= -p "1"
  
 
 
 
   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment