On Thu, Sep 27, 2018 at 3:55 AM Christian Reiß <reiss.symgen...@gmail.com>
wrote:

> Hey Rafael,
>
> thanks for your reply. Ironically I was readind the deprecated logs and
> seem to have missed that, After doing a puppet module install the error
> changed to
>
> Error: Could not retrieve catalog from remote server: Error 500 on SERVER:
> Server Error: Evaluation Error: Error while evaluating a Type-Name, Could
> not autoload puppet/type/nagios_service: no such file to load -- puppet/
> util/nagios_maker (file: /etc/puppetlabs/code/environments/production/
> modules/pn_icinga/manifests/client/raid.pp, line: 15, column: 3) on node
> outleapt.test
>
>
This is a bug in the nagios_core module. Any time a module type or provider
loads helper code (for example
https://github.com/puppetlabs/puppetlabs-nagios_core/blob/d97ec08c78d966a500cf172f6575329f82df27a6/lib/puppet/type/nagios_service.rb#L1)
it needs to use require_relative or pass a relative path to require. The
reason is because the master needs to serve multiple environments, so we
can't add the environment-specific module path to the global ruby
$LOAD_PATH. Please open a MODULES ticket with component set to nagios_core.

This wasn't an issue prior to puppet6, because the nagios type/provider was
in core puppet, and so was in the $LOAD_PATH.

Mind pushing me once more in the right direction?
>
> -Chris.
>
>
> Am Donnerstag, 27. September 2018 11:25:34 UTC+1 schrieb Rafael Tomelin:
>>
>> Hi dear,
>>
>> This link the puppet6 release notes.
>> https://puppet.com/docs/puppet/6.0/release_notes.html#deprecations
>>
>>
>>    - The Nagios types no longer ship with Puppet, and are now available
>>    as the puppetlabs/nagios_core module from the Forge.
>>
>>
>> Em qui, 27 de set de 2018 às 07:14, Christian Reiß <reiss.s...@gmail.com>
>> escreveu:
>>
>>> Hey folks,
>>>
>>> I am currently upgrading to 6.x on a test setup using my live puppet
>>> code; trying to get it to work with 6.x.
>>> One weird issue I am getting is that alle default definitions (upper
>>> case classes) are faulting:
>>>
>>> Error: Could not retrieve catalog from remote server: Error 500 on
>>> SERVER: Server Error: Evaluation Error: Resource type not found:
>>> Nagios_service (file: /etc/puppetlabs/code/environments/production/
>>> modules/pn_icinga/manifests/client/checks.pp, line: 83, column: 3) on
>>> node outleapt.test
>>> Warning: Not using cache on failed catalog
>>> Error: Could not retrieve catalog; skipping run
>>>
>>>
>>>
>>> The corresponding manifest looks like this:
>>>
>>> Nagios_service {
>>>     check_period          => '24x7',
>>>     ensure                => $::pn_icinga::client::installed,
>>>     host_name             => $::trusted['certname'],
>>>     initial_state         => 'o',
>>>     max_check_attempts    => '3',
>>>     notification_interval => '5',
>>>     notification_options  => 'w,u,c,r',
>>>     notification_period   => $notification_period,
>>>     notifications_enabled => '0',
>>>     [...]
>>> }
>>>
>>> Did I miss a regression somewhere?
>>> Any help is greatly appreciated!
>>>
>>> -Chris.
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/puppet-users/bde5ac1d-f1ef-4454-885d-b499f22062c8%40googlegroups.com
>>> <https://groups.google.com/d/msgid/puppet-users/bde5ac1d-f1ef-4454-885d-b499f22062c8%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>>
>> Atenciosamente,
>>
>> Rafael Tomelin
>>
>> skype: rafael.tomelin
>>
>> E-mail: rafael....@gmail.com
>>
>> RHCE      - Red Hat Certified Engineer
>> PPT-205 - Puppet Certified Professional 2017
>> Zabbix    - ZABBIX Certified Specialist
>> LPI3
>> ITIL v3
>>
> --
> 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/c2b29923-114f-4a82-8a66-cba5e428ca4b%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/c2b29923-114f-4a82-8a66-cba5e428ca4b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
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%2Bu97umPBP%3DrLECbiRcFeLEcAo1vUoQAPiz%2BtoyT02RcDqPvmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to