Hi All,

I have a strange issue with the puppetclasses which don't want to be 
imported into the environments with puppet 4

My modules are in /etc/puppetlabs/code/environments/common which normally 
imported them in all available environments which they don't. As this is an 
upgrade/migration the classes were already in the database and I was able 
to import one to test. I saw that my agents were not able to find the 
classes on a run where I tried to import again to see what happened. All 
classes were removed from all environments in Foreman but they still exist 
in Foreman, just not assigned to environments.

In general:

- My modules are in: /etc/puppetlabs/code/environments/common
- All module folders and manifests are owned by puppet:puppet
- I don't see any errors on debug level.

*foreman-proxy.log*

D, [2016-10-16T23:08:06.837427 #2139] DEBUG -- : close: 172.16.3.211:54628
D, [2016-10-16T23:29:39.917682 #2139] DEBUG -- : accept: 172.16.3.211:54704
D, [2016-10-16T23:29:39.921191 #2139] DEBUG -- : Rack::Handler::WEBrick is 
invoked.
D, [2016-10-16T23:29:39.923338 #2139] DEBUG -- : verifying remote client 
172.16.3.211 against trusted_hosts ["foreman-01.my.domain"]
I, [2016-10-16T23:29:40.128618 #2139]  INFO -- : 172.16.3.211 - - 
[16/Oct/2016:23:29:40 +0200] "GET /puppet/environments HTTP/1.1" 200 37 
0.2055

D, [2016-10-16T23:29:40.170844 #2139] DEBUG -- : close: 172.16.3.211:54704
D, [2016-10-16T23:29:40.250892 #2139] DEBUG -- : accept: 172.16.3.211:54708
D, [2016-10-16T23:29:40.254132 #2139] DEBUG -- : Rack::Handler::WEBrick is 
invoked.
D, [2016-10-16T23:29:40.256609 #2139] DEBUG -- : verifying remote client 
172.16.3.211 against trusted_hosts ["foreman-01.my.domain"]
I, [2016-10-16T23:29:40.462696 #2139]  INFO -- : 172.16.3.211 - - 
[16/Oct/2016:23:29:40 +0200] "GET /puppet/environments/production/classes 
HTTP/1.1" 200 2 0.2063

D, [2016-10-16T23:29:40.503884 #2139] DEBUG -- : close: 172.16.3.211:54708
D, [2016-10-16T23:29:40.581616 #2139] DEBUG -- : accept: 172.16.3.211:54712
D, [2016-10-16T23:29:40.584482 #2139] DEBUG -- : Rack::Handler::WEBrick is 
invoked.
D, [2016-10-16T23:29:40.586922 #2139] DEBUG -- : verifying remote client 
172.16.3.211 against trusted_hosts ["foreman-01.my.domain"]
I, [2016-10-16T23:29:40.799533 #2139]  INFO -- : 172.16.3.211 - - 
[16/Oct/2016:23:29:40 +0200] "GET /puppet/environments/development/classes 
HTTP/1.1" 200 2 0.2129

D, [2016-10-16T23:29:40.841018 #2139] DEBUG -- : close: 172.16.3.211:54712
D, [2016-10-16T23:29:40.925290 #2139] DEBUG -- : accept: 172.16.3.211:54716
D, [2016-10-16T23:29:40.929084 #2139] DEBUG -- : Rack::Handler::WEBrick is 
invoked.
D, [2016-10-16T23:29:40.931537 #2139] DEBUG -- : verifying remote client 
172.16.3.211 against trusted_hosts ["foreman-01.my.domain"]
I, [2016-10-16T23:29:41.126534 #2139]  INFO -- : 172.16.3.211 - - 
[16/Oct/2016:23:29:41 +0200] "GET /puppet/environments/common/classes 
HTTP/1.1" 200 2 0.1953

D, [2016-10-16T23:29:41.168023 #2139] DEBUG -- : close: 172.16.3.211:54716


*puppetserver.log*
2016-10-16 23:29:40,457 INFO  [qtp85066979-69] [puppetserver] Puppet Not 
Found: Could not find instances in resource_type with '*'
2016-10-16 23:29:40,793 INFO  [qtp85066979-69] [puppetserver] Puppet Not 
Found: Could not find instances in resource_type with '*'
2016-10-16 23:29:41,121 INFO  [qtp85066979-69] [puppetserver] Puppet Not 
Found: Could not find instances in resource_type with '*'



But what I do see is:


*puppetserver-access.log*
172.16.3.250 - - [16/Oct/2016:23:33:11 +0200] "PUT 
/puppet/v3/report/foreman-01.my.domain?environment=production& HTTP/1.1" 200 
11 "-" "Ruby" 805
172.16.3.250 - - [16/Oct/2016:23:33:15 +0200] "GET /puppet/v3/environments 
HTTP/1.1" 200 918 "-" "Ruby" 21
172.16.3.250 - - [16/Oct/2016:23:33:15 +0200] "GET 
/puppet/v3/resource_types/*?kind=class&&environment=production HTTP/1.1" 404 
109 "-" "Ruby" 24
172.16.3.250 - - [16/Oct/2016:23:33:16 +0200] "GET 
/puppet/v3/resource_types/*?kind=class&&environment=development HTTP/1.1" 
404 109 "-" "Ruby" 24
172.16.3.250 - - [16/Oct/2016:23:33:16 +0200] "GET 
/puppet/v3/resource_types/*?kind=class&&environment=common HTTP/1.1" 404 109 
"-" "Ruby" 20
172.16.3.250 - - [16/Oct/2016:23:34:34 +0200] "GET 
/puppet/v3/node/puppetca-01.my.domain?environment=production&configured_environment=production&transaction_uuid=07d74bf0-46e1-4695-b156-2dedbf172a22&fail_on_404=true
 
HTTP/1.1" 200 12466 "-" "Ruby" 1414
172.16.3.250 - - [16/Oct/2016:23:34:34 +0200] "GET 
/puppet/v3/file_metadatas/pluginfacts?environment=production&links=follow&recurse=true&source_permissions=use&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
 
HTTP/1.1" 200 219 "-" "Ruby" 22
172.16.3.250 - - [16/Oct/2016:23:34:34 +0200] "GET 
/puppet/v3/file_metadatas/plugins?environment=production&links=follow&recurse=true&source_permissions=ignore&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
 
HTTP/1.1" 200 220 "-" "Ruby" 18
172.16.3.250 - - [16/Oct/2016:23:34:37 +0200] "POST 
/puppet/v3/catalog/puppetca-01.my.domain?environment=production HTTP/1.1" 
200 608 "-" "Ruby" 2006
172.16.3.250 - - [16/Oct/2016:23:34:38 +0200] "PUT 
/puppet/v3/report/puppetca-01.my.domain?environment=production& HTTP/1.1" 
200 11 "-" "Ruby" 486
172.16.3.250 - - [16/Oct/2016:23:35:14 +0200] "GET /puppet/v3/environments 
HTTP/1.1" 200 918 "-" "Ruby" 18
172.16.3.250 - - [16/Oct/2016:23:35:14 +0200] "GET 
/puppet/v3/resource_types/*?kind=class&&environment=production HTTP/1.1" 404 
109 "-" "Ruby" 21
172.16.3.250 - - [16/Oct/2016:23:35:15 +0200] "GET 
/puppet/v3/resource_types/*?kind=class&&environment=development HTTP/1.1" 
404 109 "-" "Ruby" 20
172.16.3.250 - - [16/Oct/2016:23:35:15 +0200] "GET 
/puppet/v3/resource_types/*?kind=class&&environment=common HTTP/1.1" 404 109 
"-" "Ruby" 20



There must be some misconfiguration I guess and I'm not sure what.


-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to