Re: [Puppet Users] puppet 6 facter -p Thread.exclusive is deprecated, use Thread::Mutex

2019-04-09 Thread Andreas Dvorak
Great thank you.
Years ago we created the fact.


Am Freitag, 5. April 2019 18:54:04 UTC+2 schrieb Josh Cooper:
>
>
> On Thu, Apr 4, 2019 at 11:45 PM Andreas Dvorak  > wrote:
>
>> Hi,
>>
>> I have installed a new server with puppet 6.
>>
>> I get these errors with facter. Can somebody please help me?
>>
>> facter -v
>> 3.13.1 (commit 4e1df48f76caa0eaeee90af4239a1df450d45cd7)
>>
>>
>> facter -p osmajorrelease
>> Thread.exclusive is deprecated, use Thread::Mutex
>> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in 
>> `meminfo_number'
>> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3 
>> levels) in '
>> Thread.exclusive is deprecated, use Thread::Mutex
>> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in 
>> `meminfo_number'
>> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3 
>> levels) in '
>> Thread.exclusive is deprecated, use Thread::Mutex
>> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in 
>> `meminfo_number'
>> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3 
>> levels) in '
>> Thread.exclusive is deprecated, use Thread::Mutex
>> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in 
>> `meminfo_number'
>> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3 
>> levels) in '
>> 7
>>
>> puppet-agent-6.4.0-1.el7.x86_64
>> puppetserver-6.3.0-1.el7.noarch
>> puppet6-release-6.0.0-1.el7.noarch
>>
>> Regards
>> Andreas
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to puppet...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/038d99f1-8562-40c3-b993-548374913995%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> The "meminbytes" fact is coming from a module and downloaded to the agent. 
> The Thread.exclusive call is not needed, and likely occurred when 
> copy/pasting from an old core fact in the Ruby facter implementation. We 
> removed that from core Ruby in 
> https://github.com/puppetlabs/facter/commit/159d3a682f141a5183c933be5ef2cf763f59bb6c#diff-5ac9627bb8707b6cf7eb398ec448edb2
>
> Josh
>
> -- 
> Josh Cooper | Software Engineer
> jo...@puppet.com  | @coopjn
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ede14e7b-ab18-4cc4-978a-9d78dfb77aee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet 6 facter -p Thread.exclusive is deprecated, use Thread::Mutex

2019-04-05 Thread Josh Cooper
On Thu, Apr 4, 2019 at 11:45 PM Andreas Dvorak 
wrote:

> Hi,
>
> I have installed a new server with puppet 6.
>
> I get these errors with facter. Can somebody please help me?
>
> facter -v
> 3.13.1 (commit 4e1df48f76caa0eaeee90af4239a1df450d45cd7)
>
>
> facter -p osmajorrelease
> Thread.exclusive is deprecated, use Thread::Mutex
> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in
> `meminfo_number'
> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3
> levels) in '
> Thread.exclusive is deprecated, use Thread::Mutex
> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in
> `meminfo_number'
> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3
> levels) in '
> Thread.exclusive is deprecated, use Thread::Mutex
> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in
> `meminfo_number'
> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3
> levels) in '
> Thread.exclusive is deprecated, use Thread::Mutex
> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in
> `meminfo_number'
> /opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3
> levels) in '
> 7
>
> puppet-agent-6.4.0-1.el7.x86_64
> puppetserver-6.3.0-1.el7.noarch
> puppet6-release-6.0.0-1.el7.noarch
>
> Regards
> Andreas
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/038d99f1-8562-40c3-b993-548374913995%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

The "meminbytes" fact is coming from a module and downloaded to the agent.
The Thread.exclusive call is not needed, and likely occurred when
copy/pasting from an old core fact in the Ruby facter implementation. We
removed that from core Ruby in
https://github.com/puppetlabs/facter/commit/159d3a682f141a5183c933be5ef2cf763f59bb6c#diff-5ac9627bb8707b6cf7eb398ec448edb2

Josh

-- 
Josh Cooper | Software Engineer
j...@puppet.com | @coopjn

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2Bu97ukR0ou7cVY31jYMvx-cAB1x-HCTdAWCXfo3avo4Dh0gwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppet 6 facter -p Thread.exclusive is deprecated, use Thread::Mutex

2019-04-04 Thread Andreas Dvorak
Hi,

I have installed a new server with puppet 6.

I get these errors with facter. Can somebody please help me?

facter -v
3.13.1 (commit 4e1df48f76caa0eaeee90af4239a1df450d45cd7)


facter -p osmajorrelease
Thread.exclusive is deprecated, use Thread::Mutex
/opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in `meminfo_number'
/opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3 
levels) in '
Thread.exclusive is deprecated, use Thread::Mutex
/opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in `meminfo_number'
/opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3 
levels) in '
Thread.exclusive is deprecated, use Thread::Mutex
/opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in `meminfo_number'
/opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3 
levels) in '
Thread.exclusive is deprecated, use Thread::Mutex
/opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:20:in `meminfo_number'
/opt/puppetlabs/puppet/cache/lib/facter/meminbytes.rb:13:in `block (3 
levels) in '
7

puppet-agent-6.4.0-1.el7.x86_64
puppetserver-6.3.0-1.el7.noarch
puppet6-release-6.0.0-1.el7.noarch

Regards
Andreas

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/038d99f1-8562-40c3-b993-548374913995%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.