Hi, I'm following this guide:
https://theforeman.org/manuals/1.12/index.html#2.2PuppetManagement
When I run:
puppet agent --test
I got these result:
Warning: Unable to fetch my node definition, but the agent run will
> continue:
> Warning: Find
> /puppet/v3/node/foreman.forest.go.th?environment=production&configured_environment=production&tra…
> resulted in 404 with the message: {"message":"Not Found: Could not find
> node foreman.forest.go.th","issue_kind":"RESOURCE_NOT_FOUND"}
> Info: Retrieving pluginfacts
> Info: Retrieving plugin
> Error: Could not retrieve catalog from remote server: Error 500 on SERVER:
> Server Error: Could not find node 'foreman.forest.go.th'; cannot compile
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
>
Which is OK (according to the guide). However, when I click the Hosts tab
> All hosts, my Foreman host isn't visible in the list.
How should I fix this? Thank you.
<https://lh3.googleusercontent.com/-wgZBH4ts-3s/V7QxruBlAmI/AAAAAAAAC7U/nxQoBPNC8Bk4K8YWx5dyJI-xA_4WXph0gCEw/s1600/foreman-host.PNG>
foreman-debug-VJ9fF.tar.xz (10.8 KB)
Solved!
Because I installed Foreman on a VM, I also have to enable
foreman_compute_libvirt puppet module (luckily, we can run
foreman-installer multiple times without breaking the system):
foreman-installer --enable-foreman-compute-libvirt
After it completed (and about 15 minutes passed), the host automatically
appears in Foreman without having to run puppet agent --test again,
didn't know why.
เมื่อ วันพุธที่ 17 สิงหาคม ค.ศ. 2016 16 นาฬิกา 51 นาที 54 วินาที UTC+7, Wee
Sritippho เขียนว่า:
···
>
> Hi, I'm following this guide:
> https://theforeman.org/manuals/1.12/index.html#2.2PuppetManagement
>
> When I run:
>
> # puppet agent --test
>
> I got these result:
>
> Warning: Unable to fetch my node definition, but the agent run will
>> continue:
>> Warning: Find /puppet/v3/node/
>> foreman.forest.go.th?environment=production&configured_environment=production&tra...
>> resulted in 404 with the message: {"message":"Not Found: Could not find
>> node foreman.forest.go.th","issue_kind":"RESOURCE_NOT_FOUND"}
>> Info: Retrieving pluginfacts
>> Info: Retrieving plugin
>> Error: Could not retrieve catalog from remote server: Error 500 on
>> SERVER: Server Error: Could not find node 'foreman.forest.go.th'; cannot
>> compile
>> Warning: Not using cache on failed catalog
>> Error: Could not retrieve catalog; skipping run
>>
>
> Which is OK (according to the guide). However, when I click the *Hosts*
> tab > All hosts, my Foreman host isn't visible in the list.
>
> How should I fix this? Thank you.
>
>
I have exactly same problem. And it is resolved in the same way. Thanks
···
>