How to get rid of /production/ in url

Hi,

I know I've been asking many questions (some of them were a bit n00b)
but it's a whole new world out there with foreman and puppet :wink:
I'll do more digging before posting to the list.

So I've been debugging a lot trying to get my last problem (for now at
least) resolved:

Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find class ovirtpk for test1.test.nu on node
test1.test.nu

From what I see, it should be a simpel thing but I've been looking in
many places without a fix.

The url that gets called is:

https://foreman.test.nu/production/catalog/test1.test.nu

or

GET /production/certificate/test1.test.nu? HTTP/1.1" 404 79 "-" "Ruby"

And this url doesn't work. What does work is an url without
"/production/" like the url below

https://foreman.test.nu/node/test1.test.nu

So it appears it uses "/production/" in the url and this is not working.
How do I get rid of the "/production/" or get passenger to actually
accept this as the correct url? I've read dynamic environments are not
supported but I don't have it enabled and no "$environment" in the config.

This is my puppet.conf at the moment:

### File managed with puppet ###
## Module:           'puppet'

[main]
     # The Puppet log directory.
     # The default value is '$vardir/log'.
     logdir = /var/log/puppet

     # Where Puppet PID files are kept.
     # The default value is '$vardir/run'.
     rundir = /var/run/puppet

     # Where SSL certificates are kept.
     # The default value is '$confdir/ssl'.
     ssldir = $vardir/ssl

     # Allow services in the 'puppet' group to access key (Foreman +
proxy)
     privatekeydir = $ssldir/private_keys { group = service }
     hostprivkey = $privatekeydir/$certname.pem { mode = 640 }

     # Puppet 3.0.x requires this in both [main] and [master] -
harmless on agents
     autosign       = $confdir/autosign.conf { mode = 664 }

     show_diff     = false

     hiera_config = $confdir/hiera.yaml
     filetimeout = 60
### Next part of the file is managed by a different template ###
## Module:           'puppet'
    environmentpath  =  $confdir/environments
    basemodulepath   =
/etc/puppet/environments/common:/etc/puppet/modules:/usr/share/puppet/modules

[agent]
     # The file in which puppetd stores a list of the classes
     # associated with the retrieved configuration.  Can be loaded in
     # the separate ``puppet`` executable using the ``--loadclasses``
     # option.
     # The default value is '$statedir/classes.txt'.
     classfile = $vardir/classes.txt

     # Where puppetd caches the local configuration.  An
     # extension indicating the cache format is added automatically.
     # The default value is '$confdir/localconfig'.
     localconfig = $vardir/localconfig

     # Disable the default schedules as they cause continual skipped
     # resources to be displayed in Foreman - only for Puppet >= 3.4
     default_schedules = false

     report            = true
     pluginsync        = true
     masterport        = 8140
     environment       = production
     certname          = foreman.test.nu
     server            = foreman.test.nu
     listen            = true
     splay             = false
     splaylimit        = 1800
     runinterval       = 1800
     noop              = false
     configtimeout     = 120
     usecacheonfailure = true
### Next part of the file is managed by a different template ###
## Module:           'puppet'
    environmentpath = $confdir/environments

[master]
     autosign       = $confdir/autosign.conf { mode = 664 }
     reports        = foreman
     external_nodes = /etc/puppet/node.rb
     node_terminus  = exec
     ca             = true
     ssldir         = /var/lib/puppet/ssl
     certname       = foreman.test.nu
     strict_variables = false

    environmentpath  =  $confdir/environments
    basemodulepath   =
/etc/puppet/environments/common:/etc/puppet/modules:/usr/share/puppet/modules

Kind regards,

Jorick Astrego
Netbulae

> I know I've been asking many questions (some of them were a bit n00b)
> but it's a whole new world out there with foreman and puppet :wink:
> I'll do more digging before posting to the list.
>
> So I've been debugging a lot trying to get my last problem (for now at
> least) resolved:
>
> Error: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Could not find class ovirtpk for test1.test.nu on node
> test1.test.nu
>
>
> From what I see, it should be a simpel thing but I've been looking in
> many places without a fix.
>
> The url that gets called is:
>
> https://foreman.test.nu/production/catalog/test1.test.nu
>
> or
>
> GET /production/certificate/test1.test.nu? HTTP/1.1" 404 79 "-" "Ruby"

I think you're on the wrong track to fixing your ovirtpk issue, and
muddling Foreman and Puppet a little.

This request is actually on a different port, which the log doesn't
show. It's on port 8140, Puppet's own port.

> And this url doesn't work. What does work is an url without
> "/production/" like the url below
>
>
> https://foreman.test.nu/node/test1.test.nu
>
> So it appears it uses "/production/" in the url and this is not working.
> How do I get rid of the "/production/" or get passenger to actually
> accept this as the correct url? I've read dynamic environments are not
> supported but I don't have it enabled and no "$environment" in the config.

This URL is Foreman and is correct.

When you run the Puppet agent, it makes a request to
/production/catalog/test1.test.nu on port 8140, and the master then
calls Foreman via the node.rb script to get a list of classes + data on
the /node/test.test.ru URL on port 443.

It was unclear to me from the previous thread whether:
a) Foreman shouldn't be returning "ovirtpk" as a class to include
b) "ovirtpk" is correct, but Puppet can't find the manifest

The latter would be an issue somewhere in your Puppet configuration or
module layout.

··· On 07/08/14 11:31, Jorick Astrego wrote:

–
Dominic Cleal
Red Hat Engineering

>> I know I've been asking many questions (some of them were a bit n00b)
>> but it's a whole new world out there with foreman and puppet :wink:
>> I'll do more digging before posting to the list.
>>
>> So I've been debugging a lot trying to get my last problem (for now at
>> least) resolved:
>>
>> Error: Could not retrieve catalog from remote server: Error 400 on
>> SERVER: Could not find class ovirtpk for test1.test.nu on node
>> test1.test.nu
>>
>>
>> From what I see, it should be a simpel thing but I've been looking in
>> many places without a fix.
>>
>> The url that gets called is:
>>
>> https://foreman.test.nu/production/catalog/test1.test.nu
>>
>> or
>>
>> GET /production/certificate/test1.test.nu? HTTP/1.1" 404 79 "-" "Ruby"
> I think you're on the wrong track to fixing your ovirtpk issue, and
> muddling Foreman and Puppet a little.
>
> This request is actually on a different port, which the log doesn't
> show. It's on port 8140, Puppet's own port.
Is there a way to log that?
>> And this url doesn't work. What does work is an url without
>> "/production/" like the url below
>>
>>
>> https://foreman.test.nu/node/test1.test.nu
>>
>> So it appears it uses "/production/" in the url and this is not working.
>> How do I get rid of the "/production/" or get passenger to actually
>> accept this as the correct url? I've read dynamic environments are not
>> supported but I don't have it enabled and no "$environment" in the config.
> This URL is Foreman and is correct.
>
> When you run the Puppet agent, it makes a request to
> /production/catalog/test1.test.nu on port 8140, and the master then
> calls Foreman via the node.rb script to get a list of classes + data on
> the /node/test.test.ru URL on port 443.
Sounds ok but that is not happening, from the httpd access log I see
it's trying to get a different url on 443 :

GET*/production/**node*/test1.test.nu?transaction_uuid=b01c8d9d-85a5-420c-ae48-4b4126d6e42b&fail_on_404=true
HTTP/1.1" 200 3462 "-" "Ruby"

> It was unclear to me from the previous thread whether:
> a) Foreman shouldn't be returning "ovirtpk" as a class to include
> b) "ovirtpk" is correct, but Puppet can't find the manifest
>
> The latter would be an issue somewhere in your Puppet configuration or
> module layout.
It should be a problem in the puppet config, because it doesn't really
matter which class I use. I've downloaded ntp from puppetlabs and it
throws the same error, also tried puppet git and several others.

Kind regards,

Jorick Astrego

··· On 08/07/2014 12:55 PM, Dominic Cleal wrote: > On 07/08/14 11:31, Jorick Astrego wrote:

Ah yes, I did some more reading and understand now. The puppet agent is
running under passenger (httpd)…

After some more study time I now understand the concepts better.

I had already added the following to puppet.conf (master) as instructed:

 environmentpath  = /etc/puppet/environments
 basemodulepath   = 

/etc/puppet/environments/common:/etc/puppet/modules:/usr/share/puppet/modules

After doing a "puppet module install theforeman-git", I see the module
gets installed in /etc/puppet/modules and works properly.

When moving my ovirtpk module to the same directory things start to work.

So it doesn't accept the production module path. This is a little bit of
a problem as I have to specify different settings in development and
production but at least I can do stuff now.

It does print the correct path:

puppet config print modulepath --section master --environment production
/etc/puppet/environments/production/modules:/etc/puppet/environments/common:/etc/puppet/modules:/usr/share/puppet/modules

I enabled debugging:

Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Handling request: GET
/production/node/node3.test.nu?transaction_uuid=be08899c-4974-4bb6-9f89-f937577ecfc1&fail_on_404=true
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Did not match path
("/production/node/node3.test.nu")
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Evaluating match for
Route /.*/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Executing
'/etc/puppet/node.rb node3.test.nu'
Mon Aug 11 16:20:21 +0200 2014 Puppet (info): Caching node for
node3.test.nu
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Failed to load
library 'msgpack' for feature 'msgpack'
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug):
Puppet::Network::Format[msgpack]: feature msgpack is missing
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): node supports
formats: pson yaml b64_zlib_yaml raw
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Handling request: GET
/production/file_metadatas/pluginfacts?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Did not match path
("/production/file_metadatas/pluginfacts")
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Evaluating match for
Route /.*/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No pluginfacts found
in subpath
'/etc/puppet/environments/production/modules/ovirtpk/facts.d' (file
/ directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No pluginfacts found
in subpath
'/etc/puppet/environments/production/modules/puppet-otrs/facts.d'
(file / directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No pluginfacts found
in subpath
'/etc/puppet/environments/production/modules/ovirt/facts.d' (file /
directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No pluginfacts found
in subpath
'/etc/puppet/environments/production/modules/puppet-megaraid/facts.d' (file
/ directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No pluginfacts found
in subpath '/etc/puppet/environments/production/modules/facts.d'
(file / directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No pluginfacts found
in subpath '/etc/puppet/environments/production/manifests/facts.d'
(file / directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Failed to load
library 'msgpack' for feature 'msgpack'
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug):
Puppet::Network::Format[msgpack]: feature msgpack is missing
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): file_metadata
supports formats: pson yaml b64_zlib_yaml raw
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Handling request: GET
/production/file_metadatas/plugins?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Did not match path
("/production/file_metadatas/plugins")
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Evaluating match for
Route /.*/
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No plugins found in
subpath '/etc/puppet/environments/production/modules/ovirtpk/lib'
(file / directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No plugins found in
subpath
'/etc/puppet/environments/production/modules/puppet-otrs/lib' (file
/ directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No plugins found in
subpath '/etc/puppet/environments/production/modules/ovirt/lib'
(file / directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No plugins found in
subpath '/etc/puppet/environments/production/modules/lib' (file /
directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): No plugins found in
subpath '/etc/puppet/environments/production/manifests/lib' (file /
directory does not exist)
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): Failed to load
library 'msgpack' for feature 'msgpack'
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug):
Puppet::Network::Format[msgpack]: feature msgpack is missing
Mon Aug 11 16:20:21 +0200 2014 Puppet (debug): file_metadata
supports formats: pson yaml b64_zlib_yaml raw
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Handling request:
POST /production/catalog/node3.test.nu
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Did not match path
("/production/catalog/node3.test.nu")
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Evaluating match for
Route /.*/
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Executing
'/etc/puppet/node.rb node3.test.nu'
Mon Aug 11 16:20:22 +0200 2014 Puppet (info): Caching node for
node3.test.nu
Mon Aug 11 16:20:22 +0200 2014 Puppet (err): Could not find class
ovirtpk for node3.test.nu on node node3.test.nu
Mon Aug 11 16:20:22 +0200 2014 Puppet (err): Could not find class
ovirtpk for node3.test.nu on node node3.test.nu
Mon Aug 11 16:20:22 +0200 2014 Puppet (err): Could not find class
ovirtpk for node3.test.nu on node node3.test.nu
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Handling request: PUT
/production/report/node3.test.nu
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Did not match path
("/production/report/node3.test.nu")
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Evaluating match for
Route /.*/
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Received report to
process from node3.test.nu
Mon Aug 11 16:20:22 +0200 2014 Puppet (debug): Processing report
from node3.test.nu with processor Puppet::Reports::Foreman

After putting it in /etc/puppet/modules:

Mon Aug 11 17:33:54 +0200 2014 Puppet (debug): Handling request: GET
/production/node/node3.test.nu?transaction_uuid=501ef29a-012f-439b-ae1f-96ac6c97017b&fail_on_404=true
Mon Aug 11 17:33:54 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 17:33:54 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 17:33:54 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 17:33:54 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
Mon Aug 11 17:33:54 +0200 2014 Puppet (debug): Did not match path
("/production/node/node3.test.nu")
Mon Aug 11 17:33:54 +0200 2014 Puppet (debug): Evaluating match for
Route /.*/
Mon Aug 11 17:33:54 +0200 2014 Puppet (debug): Executing
'/etc/puppet/node.rb node3.test.nu'
Mon Aug 11 17:33:55 +0200 2014 Puppet (info): Caching node for
node3.test.nu
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Failed to load
library 'msgpack' for feature 'msgpack'
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug):
Puppet::Network::Format[msgpack]: feature msgpack is missing
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): node supports
formats: pson yaml b64_zlib_yaml raw
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Handling request: GET
/production/file_metadatas/pluginfacts?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Did not match path
("/production/file_metadatas/pluginfacts")
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Evaluating match for
Route /.*/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No pluginfacts found
in subpath
'/etc/puppet/environments/production/modules/puppet-otrs/facts.d'
(file / directory does not exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No pluginfacts found
in subpath
'/etc/puppet/environments/production/modules/ovirt/facts.d' (file /
directory does not exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No pluginfacts found
in subpath
'/etc/puppet/environments/production/modules/puppet-megaraid/facts.d' (file
/ directory does not exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No pluginfacts found
in subpath '/etc/puppet/modules/git/facts.d' (file / directory does
not exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No pluginfacts found
in subpath '/etc/puppet/modules/ovirtpk/facts.d' (file / directory
does not exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Failed to load
library 'msgpack' for feature 'msgpack'
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug):
Puppet::Network::Format[msgpack]: feature msgpack is missing
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): file_metadata
supports formats: pson yaml b64_zlib_yaml raw
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Handling request: GET
/production/file_metadatas/plugins?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Did not match path
("/production/file_metadatas/plugins")
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Evaluating match for
Route /.*/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No plugins found in
subpath
'/etc/puppet/environments/production/modules/puppet-otrs/lib' (file
/ directory does not exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No plugins found in
subpath '/etc/puppet/environments/production/modules/ovirt/lib'
(file / directory does not exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No plugins found in
subpath '/etc/puppet/modules/git/lib' (file / directory does not exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): No plugins found in
subpath '/etc/puppet/modules/ovirtpk/lib' (file / directory does not
exist)
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Failed to load
library 'msgpack' for feature 'msgpack'
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug):
Puppet::Network::Format[msgpack]: feature msgpack is missing
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): file_metadata
supports formats: pson yaml b64_zlib_yaml raw
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Handling request:
POST /production/catalog/node3.test.nu
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Routes Registered:
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Route /^\/v2\.0/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Route /.*/
Mon Aug 11 17:33:55 +0200 2014 Puppet (debug): Evaluating match for
Route /^\/v2\.0/
··· On 08/07/2014 02:42 PM, Jorick Astrego wrote: > > On 08/07/2014 12:55 PM, Dominic Cleal wrote: >> On 07/08/14 11:31, Jorick Astrego wrote: >>> I know I've been asking many questions (some of them were a bit n00b) >>> but it's a whole new world out there with foreman and puppet ;-) >>> I'll do more digging before posting to the list. >>> >>> So I've been debugging a lot trying to get my last problem (for now at >>> least) resolved: >>> >>> Error: Could not retrieve catalog from remote server: Error 400 on >>> SERVER: Could not find class ovirtpk for test1.test.nu on node >>> test1.test.nu >>> >>> >>> From what I see, it should be a simpel thing but I've been looking in >>> many places without a fix. >>> >>> The url that gets called is: >>> >>> https://foreman.test.nu/production/catalog/test1.test.nu >>> >>> or >>> >>> GET /production/certificate/test1.test.nu? HTTP/1.1" 404 79 "-" "Ruby" >> I think you're on the wrong track to fixing your ovirtpk issue, and >> muddling Foreman and Puppet a little. >> >> This request is actually on a different port, which the log doesn't >> show. It's on port 8140, Puppet's own port. > Is there a way to log that? >>> And this url doesn't work. What does work is an url without >>> "/production/" like the url below >>> >>> >>> https://foreman.test.nu/node/test1.test.nu >>> >>> So it appears it uses "/production/" in the url and this is not working. >>> How do I get rid of the "/production/" or get passenger to actually >>> accept this as the correct url? I've read dynamic environments are not >>> supported but I don't have it enabled and no "$environment" in the config. >> This URL is Foreman and is correct. >> >> When you run the Puppet agent, it makes a request to >> /production/catalog/test1.test.nu on port 8140, and the master then >> calls Foreman via the node.rb script to get a list of classes + data on >> the /node/test.test.ru URL on port 443. > Sounds ok but that is not happening, from the httpd access log I see > it's trying to get a different url on 443 : > > GET*/production/**node*/test1.test.nu?transaction_uuid=b01c8d9d-85a5-420c-ae48-4b4126d6e42b&fail_on_404=true > HTTP/1.1" 200 3462 "-" "Ruby" > > >> It was unclear to me from the previous thread whether: >> a) Foreman shouldn't be returning "ovirtpk" as a class to include >> b) "ovirtpk" is correct, but Puppet can't find the manifest >> >> The latter would be an issue somewhere in your Puppet configuration or >> module layout. > It should be a problem in the puppet config, because it doesn't really > matter which class I use. I've downloaded ntp from puppetlabs and it > throws the same error, also tried puppet git and several others. > > Kind regards, > > Jorick Astrego > > --