Environments import

Hi,

I'm trying to import the environments from puppet, but I get the following error:

Error: ERF12-4115 [ProxyAPI::ProxyException]: Unable to get classes from
Puppet for kasrvprod ([RestClient::RequestTimeout]: Request Timeout) for
proxy https://mgmt-puppetmaster-02.edu.local:8443/puppet

When I try https://puppetmaster.domain.nl:8443/features/ from the
foreman server, I get an resonse:


<h2>Suported features</h2>
<ul>

&lt;li&gt;puppet&lt;/li&gt;

&lt;li&gt;puppetca&lt;/li&gt;

Probably the query to get the classes are taking to long.

On the puppet master I use dynamic classes:
environmentpath=/opt/puppet

What can I do to troubleshoot?

Kind regards,

Michiel Piscaer

Hi,

>
> Hi,
>
> I'm trying to import the environments from puppet, but I get the following error:
>
> Error: ERF12-4115 [ProxyAPI::ProxyException]: Unable to get classes from
> Puppet for kasrvprod ([RestClient::RequestTimeout]: Request Timeout) for
> proxy https://mgmt-puppetmaster-02.edu.local:8443/puppet
>
> When I try https://puppetmaster.domain.nl:8443/features/ from the
> foreman server, I get an resonse:
>
> …
> <h2>Suported features</h2>
> <ul>
>
> <li>puppet</li>
>
> <li>puppetca</li>
> …
>
>
> Probably the query to get the classes are taking to long.
>
> On the puppet master I use dynamic classes
> environmentpath=/opt/puppet
>
>
> What can I do to troubleshoot?
>
>
>

After some digging I see in the access log from apache to the puppet
master, the following:

puppetmaster.domain.nl:8140 10.20.16.43 - - [19/May/2016:17:01:47 +0200]
"GET /v2.0/environments HTTP/1.1" 200 10863 "-" "Ruby"

When I do an query like:

curl --cert /var/lib/puppet/ssl/certs/puppetmaster.domain.nl.pem --key
/var/lib/puppet/ssl/private_keys/puppetmaster.domain.nl.pem --cacert
/var/lib/puppet/ssl/ca/ca_crt.pem -H 'Accept: pson'https://puppetmaster.domain.nl:8140/v2.0/environments

I see the results and see some environments mentioned.

Kind regards,

Michiel Piscaer

··· On Thursday, 19 May 2016 11:46:33 UTC+2, Michiel Piscaer wrote: