Could not retrieve catalog from remote server: Error 400 on SERVER: Failed
when searching for node puppetwin.localdomain: Failed to find
puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
puppetwin.localdomain' returned 1:
Debug: Finishing transaction 27367640
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: node supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached certificate for ca
Debug: Using cached certificate for puppetwin.localdomain
Debug: Creating new connection for https://puppetforeman.localhost:8140
Debug: Using cached certificate_revocation_list for ca
Debug: Starting connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Failed to find puppetwin.localdomain via
exec: Execution of '/etc/puppet/node.rb puppetwin.localdomain' returned 1:
Info: Retrieving pluginfacts
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Debug: Finishing transaction 31700960
Info: Retrieving plugin
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Debug: Finishing transaction 50629060
Debug: Loading external facts from
C:/ProgramData/PuppetLabs/puppet/var/facts.d
Info: Loading facts
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_package_updates.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_security_updates.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_updates.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/facter_dot_d.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/last_run.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/pe_version.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppet_vardir.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppi_projects.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/root_home.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/windows_common_appdata.rb
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw
Debug: Closing connection for https://puppetforeman.localhost:8140
Debug: Creating new connection for https://puppetforeman.localhost:8140
Debug: Starting connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed when searching for node puppetwin.localdomain: Failed to find
puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
puppetwin.localdomain' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Debug: Using cached connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Debug: Closing connection for https://puppetforeman.localhost:8140
I had similar problems, and what seems to be going on is that the ENC is
not able to get information about the node. Because of that, puppet fails.
So, to confirm, you can go to the foreman server and do:
/etc/foreman/node.rb "hostname"
It seems that yor ENC is looking for puppetwin.localdomain, which is not
defined in foreman.
I hope this may help you.
Cheers!
···
Em segunda-feira, 8 de dezembro de 2014 16h30min20s UTC+1, Cesar Sturion escreveu:
>
> Hi,
>
> I'm using the Foreman with ENC and Puppet. In this case the agent is
> instaled in the windows 7.
>
> I have included a module to install the openoffice software in this node.
> But when I execute the command below, I receive this error:
>
> C:\Windows\system32>puppet agent --test --debug --verbose
>
> Could not retrieve catalog from remote server: Error 400 on SERVER: Failed
> when searching for node puppetwin.localdomain: Failed to find
> puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
> puppetwin.localdomain' returned 1:
>
> Debug: Finishing transaction 27367640
> Debug: Failed to load library 'msgpack' for feature 'msgpack'
> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
> Debug: node supports formats: pson b64_zlib_yaml yaml raw
> Debug: Using cached certificate for ca
> Debug: Using cached certificate for puppetwin.localdomain
> Debug: Creating new connection for https://puppetforeman.localhost:8140
> Debug: Using cached certificate_revocation_list for ca
> Debug: Starting connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Warning: Unable to fetch my node definition, but the agent run will
> continue:
> Warning: Error 400 on SERVER: Failed to find puppetwin.localdomain via
> exec: Execution of '/etc/puppet/node.rb puppetwin.localdomain' returned 1:
> Info: Retrieving pluginfacts
> Debug: Failed to load library 'msgpack' for feature 'msgpack'
> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
> Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
> Debug: Using cached connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Debug: Finishing transaction 31700960
> Info: Retrieving plugin
> Debug: Failed to load library 'msgpack' for feature 'msgpack'
> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
> Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
> Debug: Using cached connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Debug: Finishing transaction 50629060
> Debug: Loading external facts from
> C:/ProgramData/PuppetLabs/puppet/var/facts.d
> Info: Loading facts
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_package_updates.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_security_updates.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_updates.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/facter_dot_d.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/last_run.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/pe_version.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppet_vardir.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppi_projects.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/root_home.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/windows_common_appdata.rb
> Debug: Failed to load library 'msgpack' for feature 'msgpack'
> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
> Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw
> Debug: Closing connection for https://puppetforeman.localhost:8140
> Debug: Creating new connection for https://puppetforeman.localhost:8140
> Debug: Starting connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Failed when searching for node puppetwin.localdomain: Failed to find
> puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
> puppetwin.localdomain' returned 1:
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
> Debug: Using cached connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Debug: Closing connection for https://puppetforeman.localhost:8140
>
It works great. I had lost any hope to fix this. Thank you very much,
Dominic.
···
On Monday, December 8, 2014 at 4:30:20 PM UTC+1, Cesar Sturion wrote:
>
> Hi,
>
> I'm using the Foreman with ENC and Puppet. In this case the agent is
> instaled in the windows 7.
>
> I have included a module to install the openoffice software in this node.
> But when I execute the command below, I receive this error:
>
> C:\Windows\system32>puppet agent --test --debug --verbose
>
> Could not retrieve catalog from remote server: Error 400 on SERVER: Failed
> when searching for node puppetwin.localdomain: Failed to find
> puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
> puppetwin.localdomain' returned 1:
>
> Debug: Finishing transaction 27367640
> Debug: Failed to load library 'msgpack' for feature 'msgpack'
> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
> Debug: node supports formats: pson b64_zlib_yaml yaml raw
> Debug: Using cached certificate for ca
> Debug: Using cached certificate for puppetwin.localdomain
> Debug: Creating new connection for https://puppetforeman.localhost:8140
> Debug: Using cached certificate_revocation_list for ca
> Debug: Starting connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Warning: Unable to fetch my node definition, but the agent run will
> continue:
> Warning: Error 400 on SERVER: Failed to find puppetwin.localdomain via
> exec: Execution of '/etc/puppet/node.rb puppetwin.localdomain' returned 1:
> Info: Retrieving pluginfacts
> Debug: Failed to load library 'msgpack' for feature 'msgpack'
> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
> Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
> Debug: Using cached connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Debug: Finishing transaction 31700960
> Info: Retrieving plugin
> Debug: Failed to load library 'msgpack' for feature 'msgpack'
> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
> Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
> Debug: Using cached connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Debug: Finishing transaction 50629060
> Debug: Loading external facts from
> C:/ProgramData/PuppetLabs/puppet/var/facts.d
> Info: Loading facts
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_package_updates.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_security_updates.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/apt_updates.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/facter_dot_d.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/last_run.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/pe_version.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppet_vardir.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/puppi_projects.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/root_home.rb
> Debug: Loading facts from
> C:/ProgramData/PuppetLabs/puppet/var/lib/facter/windows_common_appdata.rb
> Debug: Failed to load library 'msgpack' for feature 'msgpack'
> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
> Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw
> Debug: Closing connection for https://puppetforeman.localhost:8140
> Debug: Creating new connection for https://puppetforeman.localhost:8140
> Debug: Starting connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
> Failed when searching for node puppetwin.localdomain: Failed to find
> puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
> puppetwin.localdomain' returned 1:
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
> Debug: Using cached connection for https://puppetforeman.localhost:8140
> Debug: Caching connection for https://puppetforeman.localhost:8140
> Debug: Closing connection for https://puppetforeman.localhost:8140
>
Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed when searching for node puppetwin.localdomain: Failed to find
puppetwin.localdomain via exec: Execution of ‘/etc/puppet/node.rb
puppetwin.localdomain’ returned 1:
Debug: Finishing transaction 27367640
Debug: Failed to load library ‘msgpack’ for feature 'msgpack’
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: node supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached certificate for ca
Debug: Using cached certificate for puppetwin.localdomain
Debug: Creating new connection for https://puppetforeman.localhost:8140
Debug: Using cached certificate_revocation_list for ca
Debug: Starting connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Failed to find puppetwin.localdomain via
exec: Execution of ‘/etc/puppet/node.rb puppetwin.localdomain’ returned 1:
Info: Retrieving pluginfacts
Debug: Failed to load library ‘msgpack’ for feature 'msgpack’
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Debug: Finishing transaction 31700960
Info: Retrieving plugin
Debug: Failed to load library ‘msgpack’ for feature 'msgpack’
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Debug: Finishing transaction 50629060
Debug: Loading external facts from C:/ProgramData/PuppetLabs/
puppet/var/facts.d
Info: Loading facts
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/apt_package_updates.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/apt_security_updates.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/apt_updates.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/facter_dot_d.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/last_run.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/pe_version.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/puppet_vardir.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/puppi_projects.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/root_home.rb
Debug: Loading facts from C:/ProgramData/PuppetLabs/
puppet/var/lib/facter/windows_common_appdata.rb
Debug: Failed to load library ‘msgpack’ for feature 'msgpack’
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw
Debug: Closing connection for https://puppetforeman.localhost:8140
Debug: Creating new connection for https://puppetforeman.localhost:8140
Debug: Starting connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Failed when searching for node puppetwin.localdomain: Failed to
find puppetwin.localdomain via exec: Execution of ‘/etc/puppet/node.rb
puppetwin.localdomain’ returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Debug: Using cached connection for https://puppetforeman.localhost:8140
Debug: Caching connection for https://puppetforeman.localhost:8140
Debug: Closing connection for https://puppetforeman.localhost:8140
I have the same problem and /etc/puppet/node.rb "puppetwin" works just fine.
Do you have any success with that?
Thank you for advance…
···
среда, 17 декабря 2014 г., 19:14:22 UTC+3 пользователь Cesar Sturion написал:
>
> When I executed, the command shows:
>
> pcguest@puppetmaster:/$ sudo /etc/puppet/node.rb "puppetwin"
> ---
> classes:
> base:
> parameters:
> puppetmaster: puppetmaster.matera.com
> hostgroup: Windows_Machine
> root_pw:
> foreman_env: production
> owner_name: Admin User
> owner_email: ro...@matera.com
> environment: production
>
>
>
>
> On Fri, Dec 12, 2014 at 1:37 PM, José Antonio Insua > wrote:
>>
>> Hello!
>>
>> I had similar problems, and what seems to be going on is that the ENC is
>> not able to get information about the node. Because of that, puppet fails.
>>
>> So, to confirm, you can go to the foreman server and do:
>>
>> /etc/foreman/node.rb "hostname"
>>
>> It seems that yor ENC is looking for puppetwin.localdomain, which is not
>> defined in foreman.
>>
>> I hope this may help you.
>>
>> Cheers!
>>
>>
>> Em segunda-feira, 8 de dezembro de 2014 16h30min20s UTC+1, Cesar Sturion >> escreveu:
>>
>>> Hi,
>>>
>>> I'm using the Foreman with ENC and Puppet. In this case the agent is
>>> instaled in the windows 7.
>>>
>>> I have included a module to install the openoffice software in this
>>> node. But when I execute the command below, I receive this error:
>>>
>>> C:\Windows\system32>puppet agent --test --debug --verbose
>>>
>>> Could not retrieve catalog from remote server: Error 400 on SERVER:
>>> Failed when searching for node puppetwin.localdomain: Failed to find
>>> puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
>>> puppetwin.localdomain' returned 1:
>>>
>>> Debug: Finishing transaction 27367640
>>> Debug: Failed to load library 'msgpack' for feature 'msgpack'
>>> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
>>> Debug: node supports formats: pson b64_zlib_yaml yaml raw
>>> Debug: Using cached certificate for ca
>>> Debug: Using cached certificate for puppetwin.localdomain
>>> Debug: Creating new connection for https://puppetforeman.localhost:8140
>>> Debug: Using cached certificate_revocation_list for ca
>>> Debug: Starting connection for https://puppetforeman.localhost:8140
>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>> Warning: Unable to fetch my node definition, but the agent run will
>>> continue:
>>> Warning: Error 400 on SERVER: Failed to find puppetwin.localdomain via
>>> exec: Execution of '/etc/puppet/node.rb puppetwin.localdomain' returned 1:
>>> Info: Retrieving pluginfacts
>>> Debug: Failed to load library 'msgpack' for feature 'msgpack'
>>> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
>>> Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
>>> Debug: Using cached connection for https://puppetforeman.localhost:8140
>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>> Debug: Finishing transaction 31700960
>>> Info: Retrieving plugin
>>> Debug: Failed to load library 'msgpack' for feature 'msgpack'
>>> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
>>> Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
>>> Debug: Using cached connection for https://puppetforeman.localhost:8140
>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>> Debug: Finishing transaction 50629060
>>> Debug: Loading external facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/facts.d
>>> Info: Loading facts
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/apt_package_updates.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/apt_security_updates.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/apt_updates.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/facter_dot_d.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/last_run.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/pe_version.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/puppet_vardir.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/puppi_projects.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/root_home.rb
>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>> puppet/var/lib/facter/windows_common_appdata.rb
>>> Debug: Failed to load library 'msgpack' for feature 'msgpack'
>>> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
>>> Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw
>>> Debug: Closing connection for https://puppetforeman.localhost:8140
>>> Debug: Creating new connection for https://puppetforeman.localhost:8140
>>> Debug: Starting connection for https://puppetforeman.localhost:8140
>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>> Error: Could not retrieve catalog from remote server: Error 400 on
>>> SERVER: Failed when searching for node puppetwin.localdomain: Failed to
>>> find puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
>>> puppetwin.localdomain' returned 1:
>>> Warning: Not using cache on failed catalog
>>> Error: Could not retrieve catalog; skipping run
>>> Debug: Using cached connection for https://puppetforeman.localhost:8140
>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>> Debug: Closing connection for https://puppetforeman.localhost:8140
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Foreman users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to foreman-user...@googlegroups.com .
>> To post to this group, send email to forema...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/foreman-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
I have same problems with all windows nodes and I have same results than
you have. Linux nodes just work fine. Is there a bug report opened already?
···
On Tuesday, March 10, 2015 at 9:09:43 AM UTC+1, Ivan Ivanov wrote:
>
> I have the same problem and /etc/puppet/node.rb "puppetwin" works just
> fine.
> Do you have any success with that?
> Thank you for advance...
>
> среда, 17 декабря 2014 г., 19:14:22 UTC+3 пользователь Cesar Sturion > написал:
>>
>> When I executed, the command shows:
>>
>> pcguest@puppetmaster:/$ sudo /etc/puppet/node.rb "puppetwin"
>> ---
>> classes:
>> base:
>> parameters:
>> puppetmaster: puppetmaster.matera.com
>> hostgroup: Windows_Machine
>> root_pw:
>> foreman_env: production
>> owner_name: Admin User
>> owner_email: ro...@matera.com
>> environment: production
>>
>>
>>
>>
>> On Fri, Dec 12, 2014 at 1:37 PM, José Antonio Insua >> wrote:
>>>
>>> Hello!
>>>
>>> I had similar problems, and what seems to be going on is that the ENC is
>>> not able to get information about the node. Because of that, puppet fails.
>>>
>>> So, to confirm, you can go to the foreman server and do:
>>>
>>> /etc/foreman/node.rb "hostname"
>>>
>>> It seems that yor ENC is looking for puppetwin.localdomain, which is not
>>> defined in foreman.
>>>
>>> I hope this may help you.
>>>
>>> Cheers!
>>>
>>>
>>> Em segunda-feira, 8 de dezembro de 2014 16h30min20s UTC+1, Cesar Sturion >>> escreveu:
>>>
>>>> Hi,
>>>>
>>>> I'm using the Foreman with ENC and Puppet. In this case the agent is
>>>> instaled in the windows 7.
>>>>
>>>> I have included a module to install the openoffice software in this
>>>> node. But when I execute the command below, I receive this error:
>>>>
>>>> C:\Windows\system32>puppet agent --test --debug --verbose
>>>>
>>>> Could not retrieve catalog from remote server: Error 400 on SERVER:
>>>> Failed when searching for node puppetwin.localdomain: Failed to find
>>>> puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
>>>> puppetwin.localdomain' returned 1:
>>>>
>>>> Debug: Finishing transaction 27367640
>>>> Debug: Failed to load library 'msgpack' for feature 'msgpack'
>>>> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
>>>> Debug: node supports formats: pson b64_zlib_yaml yaml raw
>>>> Debug: Using cached certificate for ca
>>>> Debug: Using cached certificate for puppetwin.localdomain
>>>> Debug: Creating new connection for https://puppetforeman.localhost:8140
>>>> Debug: Using cached certificate_revocation_list for ca
>>>> Debug: Starting connection for https://puppetforeman.localhost:8140
>>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>>> Warning: Unable to fetch my node definition, but the agent run will
>>>> continue:
>>>> Warning: Error 400 on SERVER: Failed to find puppetwin.localdomain via
>>>> exec: Execution of '/etc/puppet/node.rb puppetwin.localdomain' returned 1:
>>>> Info: Retrieving pluginfacts
>>>> Debug: Failed to load library 'msgpack' for feature 'msgpack'
>>>> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
>>>> Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
>>>> Debug: Using cached connection for https://puppetforeman.localhost:8140
>>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>>> Debug: Finishing transaction 31700960
>>>> Info: Retrieving plugin
>>>> Debug: Failed to load library 'msgpack' for feature 'msgpack'
>>>> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
>>>> Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
>>>> Debug: Using cached connection for https://puppetforeman.localhost:8140
>>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>>> Debug: Finishing transaction 50629060
>>>> Debug: Loading external facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/facts.d
>>>> Info: Loading facts
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/apt_package_updates.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/apt_security_updates.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/apt_updates.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/facter_dot_d.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/last_run.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/pe_version.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/puppet_vardir.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/puppi_projects.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/root_home.rb
>>>> Debug: Loading facts from C:/ProgramData/PuppetLabs/
>>>> puppet/var/lib/facter/windows_common_appdata.rb
>>>> Debug: Failed to load library 'msgpack' for feature 'msgpack'
>>>> Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
>>>> Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw
>>>> Debug: Closing connection for https://puppetforeman.localhost:8140
>>>> Debug: Creating new connection for https://puppetforeman.localhost:8140
>>>> Debug: Starting connection for https://puppetforeman.localhost:8140
>>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>>> Error: Could not retrieve catalog from remote server: Error 400 on
>>>> SERVER: Failed when searching for node puppetwin.localdomain: Failed to
>>>> find puppetwin.localdomain via exec: Execution of '/etc/puppet/node.rb
>>>> puppetwin.localdomain' returned 1:
>>>> Warning: Not using cache on failed catalog
>>>> Error: Could not retrieve catalog; skipping run
>>>> Debug: Using cached connection for https://puppetforeman.localhost:8140
>>>> Debug: Caching connection for https://puppetforeman.localhost:8140
>>>> Debug: Closing connection for https://puppetforeman.localhost:8140
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Foreman users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to foreman-user...@googlegroups.com.
>>> To post to this group, send email to forema...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/foreman-users.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
This fix should be in new Foreman 1.8 installations. The problem is
that when the node.rb is run from the Puppet master, it's run in a 'C'
locale so can't parse UTF-8 timezone facts from Windows clients.
···
--
Dominic Cleal
Red Hat Engineering
On 23/03/15 10:12, Raul Gonzalez wrote:
I have same problems with all windows nodes and I have same results than
you have. Linux nodes just work fine. Is there a bug report opened already?
On Tuesday, March 10, 2015 at 9:09:43 AM UTC+1, Ivan Ivanov wrote:
I have the same problem and /etc/puppet/node.rb "puppetwin" works
just fine.
Do you have any success with that?
Thank you for advance...
среда, 17 декабря 2014 г., 19:14:22 UTC+3 пользователь Cesar Sturion > написал:
When I executed, the command shows:
pcguest@puppetmaster:/$ sudo /etc/puppet/node.rb "puppetwin"
---
classes:
base:
parameters:
puppetmaster: puppetmaster.matera.com
<http://puppetmaster.matera.com>
hostgroup: Windows_Machine
root_pw:
foreman_env: production
owner_name: Admin User
owner_email: ro...@matera.com
environment: production
On Fri, Dec 12, 2014 at 1:37 PM, José Antonio Insua > <ungo...@gmail.com> wrote:
Hello!
I had similar problems, and what seems to be going on is
that the ENC is not able to get information about the node.
Because of that, puppet fails.
So, to confirm, you can go to the foreman server and do:
/etc/foreman/node.rb "hostname"
It seems that yor ENC is looking for puppetwin.localdomain,
which is not defined in foreman.
I hope this may help you.
Cheers!
Em segunda-feira, 8 de dezembro de 2014 16h30min20s UTC+1, > Cesar Sturion escreveu:
Hi,
I'm using the Foreman with ENC and Puppet. In this case
the agent is instaled in the windows 7.
I have included a module to install the openoffice
software in this node. But when I execute the command
below, I receive this error:
C:\Windows\system32>puppet agent --test --debug --verbose
Could not retrieve catalog from remote server: Error 400
on SERVER: Failed when searching for node
puppetwin.localdomain: Failed to find
puppetwin.localdomain via exec: Execution of
'/etc/puppet/node.rb puppetwin.localdomain' returned 1:
Debug: Finishing transaction 27367640
Debug: Failed to load library 'msgpack' for feature
'msgpack'
Debug: Puppet::Network::Format[__msgpack]: feature
msgpack is missing
Debug: node supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached certificate for ca
Debug: Using cached certificate for puppetwin.localdomain
Debug: Creating new connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Using cached certificate_revocation_list for ca
Debug: Starting connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Caching connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Warning: Unable to fetch my node definition, but the
agent run will continue:
Warning: Error 400 on SERVER: Failed to find
puppetwin.localdomain via exec: Execution of
'/etc/puppet/node.rb puppetwin.localdomain' returned 1:
Info: Retrieving pluginfacts
Debug: Failed to load library 'msgpack' for feature
'msgpack'
Debug: Puppet::Network::Format[__msgpack]: feature
msgpack is missing
Debug: file_metadata supports formats: pson
b64_zlib_yaml yaml raw
Debug: Using cached connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Caching connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Finishing transaction 31700960
Info: Retrieving plugin
Debug: Failed to load library 'msgpack' for feature
'msgpack'
Debug: Puppet::Network::Format[__msgpack]: feature
msgpack is missing
Debug: file_metadata supports formats: pson
b64_zlib_yaml yaml raw
Debug: Using cached connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Caching connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Finishing transaction 50629060
Debug: Loading external facts from
C:/ProgramData/PuppetLabs/__puppet/var/facts.d
Info: Loading facts
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/apt___package_updates.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/apt___security_updates.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/apt___updates.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/facter___dot_d.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/last___run.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/pe___version.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/puppet___vardir.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/puppi___projects.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/root___home.rb
Debug: Loading facts from
C:/ProgramData/PuppetLabs/__puppet/var/lib/facter/windows___common_appdata.rb
Debug: Failed to load library 'msgpack' for feature
'msgpack'
Debug: Puppet::Network::Format[__msgpack]: feature
msgpack is missing
Debug: catalog supports formats: pson b64_zlib_yaml yaml
dot raw
Debug: Closing connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Creating new connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Starting connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Caching connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Error: Could not retrieve catalog from remote server:
Error 400 on SERVER: Failed when searching for node
puppetwin.localdomain: Failed to find
puppetwin.localdomain via exec: Execution of
'/etc/puppet/node.rb puppetwin.localdomain' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Debug: Using cached connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Caching connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
Debug: Closing connection for
https://puppetforeman.__localhost:8140
<https://puppetforeman.localhost:8140>
--
You received this message because you are subscribed to the
Google Groups "Foreman users" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to foreman-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at
http://groups.google.com/group/foreman-users
<http://groups.google.com/group/foreman-users>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.