ENC fails on first run - Error reading YAML file: No such file or directory - /var/lib/puppet/yaml/facts/nexus.myhost.com.yaml

329 views
Skip to first unread message

Taylor Leese

unread,
Jul 14, 2014, 5:43:54 PM7/14/14
to puppet...@googlegroups.com
Hi all -

I setup an ENC and classification works for the most part except on the first run. I've noticed that the yaml file in /var/lib/puppet/yaml/facts doesn't exist on the first run so I receive a warning during Vagrant provisioning similar to below. Note, when I run the Puppet agent a subsequent time there is no error. I am using Puppet 3.4.3 and Facter 1.7.5. I also found a similar issue referenced in the Foreman project here (https://projects.theforeman.org/issues/5925). Any idea what could be causing this or if this might be a bug?

==> nexus: Warning: Unable to fetch my node definition, but the agent run will continue:

==> nexus: Warning: Error 400 on SERVER: Failed to find nexus.myhost.com via exec: Execution of '/etc/puppet/bin/node_classifier my.host.com' returned 1: Error reading YAML file: No such file or directory - /var/lib/puppet/yaml/facts/nexus.myhost.com.yaml

==> nexus: 

- Taylor

Taylor Leese

unread,
Jul 14, 2014, 5:47:33 PM7/14/14
to puppet...@googlegroups.com
I incorrectly redacted the host name in the error message. Here is the correct version:

==> nexus: Warning: Unable to fetch my node definition, but the agent run will continue:

==> nexus: Warning: Error 400 on SERVER: Failed to find nexus.myhost.com via exec: Execution of '/etc/puppet/bin/node_classifier nexus.myhost.com' returned 1: Error reading YAML file: No such file or directory - /var/lib/puppet/yaml/facts/nexus.myhost.com.yaml

==> nexus: 



--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/kbL4rwAsG1g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7d6f51e3-62e0-4311-a5a3-dbcf92d3070b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Schmitt

unread,
Jul 21, 2014, 2:02:38 AM7/21/14
to puppet...@googlegroups.com
You ENC seems to depend upon the host's facts in the default yaml cache
location. Perhaps you have removed the yaml caching of facts?

Regards, David

On 2014-07-14 23:46, Taylor Leese wrote:
> I incorrectly redacted the host name in the error message. Here is the
> correct version:
>
> *==> nexus: **Warning: Unable to fetch my node definition, but the agent
> run will continue:*
>
> *==> nexus: **Warning: Error 400 on SERVER: Failed to find
> nexus.myhost.com <http://nexus.myhost.com/> via exec: Execution of
> '/etc/puppet/bin/node_classifier nexus.myhost.com <http://my.host.com/>'
> returned 1: Error reading YAML file: No such file or directory -
> /var/lib/puppet/yaml/facts/nexus.myhost.com.yaml*
>
> *==> nexus: *
>
>
>
> On Mon, Jul 14, 2014 at 2:43 PM, Taylor Leese <tlee...@gmail.com
> <mailto:tlee...@gmail.com>> wrote:
>
> Hi all -
>
> I setup an ENC and classification works for the most part except on
> the first run. I've noticed that the yaml file in
> /var/lib/puppet/yaml/facts doesn't exist on the first run so I
> receive a warning during Vagrant provisioning similar to below.
> Note, when I run the Puppet agent a subsequent time there is no
> error. I am using Puppet 3.4.3 and Facter 1.7.5. I also found a
> similar issue referenced in the Foreman project here
> (https://projects.theforeman.org/issues/5925). Any idea what could
> be causing this or if this might be a bug?
>
> *==> nexus: **Warning: Unable to fetch my node definition, but the
> agent run will continue:*
>
> *==> nexus: **Warning: Error 400 on SERVER: Failed to find
> nexus.myhost.com <http://nexus.myhost.com> via exec: Execution of
> '/etc/puppet/bin/node_classifier my.host.com <http://my.host.com>'
> returned 1: Error reading YAML file: No such file or directory -
> /var/lib/puppet/yaml/facts/nexus.myhost.com.yaml*
>
> *==> nexus: *
>
> - Taylor
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/kbL4rwAsG1g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> <https://groups.google.com/d/msgid/puppet-users/7d6f51e3-62e0-4311-a5a3-dbcf92d3070b%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAKwbMverR_hndKRZ%2BdRA%2BvorW6ONKxCV6okwz0C%2BopzadS0GxA%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAKwbMverR_hndKRZ%2BdRA%2BvorW6ONKxCV6okwz0C%2BopzadS0GxA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Taylor Leese

unread,
Jul 21, 2014, 2:11:01 AM7/21/14
to puppet...@googlegroups.com
I don't believe so because it works fine on the second run. I actually switched to using Hiera as the "classifier" since this was problematic.


    <https://groups.google.com/d/msgid/puppet-users/7d6f51e3-62e0-4311-a5a3-dbcf92d3070b%40googlegroups.com?utm_medium=email&utm_source=footer>.

    For more options, visit https://groups.google.com/d/optout.


--
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
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/kbL4rwAsG1g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53CCACE2.80203%40dasz.at.
Reply all
Reply to author
Forward
0 new messages