Hi, I'm testing Foreman 1.15 to work with Puppet 4.8.x in particularly on Debian 9 (stretch) which was released few weeks back, Puppet 4.8.2 is the version shipped with Debian 9. both Foreman+Puppet reside on the same box (all-in-one configuration), seems to have got it up and run, until I tried to import the puppet classes to Foreman, it does not find the environments along with the Puppet classes.
Followed instruction on https://theforeman.org/manuals/1.15/index.html#4.3.6Puppet, I had following ocnfigured: *(./setting.d/puppet.yml)* :enabled: https :puppet_version: 4.8.2 *(/etc/puppet/auth.conf)* path /puppet/v3/environments method find allow * path /puppet/v3/environment_classes method find allow * path /puppet/v3/resource_type method search allow * *(/etc/foreman-proxy/setting.d/puppet_proxy_legacy.yml)* :puppet_conf: /etc/puppet/puppet.conf :puppet_url: https://playbox.cs.nsls2.local:8140 Started debugging both Foreman-proxy as well as the Puppet Master, when foreman-proxy is trying to find the environments, production.log says: ------------------------------------------------ E, [2017-07-10T16:18:56.142122 ] ERROR -- : Error while retrieving puppet classes for 'production' environment D, [2017-07-10T16:18:56.142231 ] DEBUG -- : Could not find environment 'production' (Proxy::Puppet::EnvironmentNotFound) /usr/share/foreman-proxy/modules/puppet_proxy_puppet_api/v3_api_request.rb:27:in `list_classes' /usr/share/foreman-proxy/modules/puppet_proxy_puppet_api/v3_environment_classes_api_classes_retriever.rb:81:in `block in async_get_classes' /usr/lib/ruby/vendor_ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute' /usr/lib/ruby/vendor_ruby/concurrent/synchronization/mri_lockable_object.rb:38:in `block in synchronize' /usr/lib/ruby/vendor_ruby/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize' /usr/lib/ruby/vendor_ruby/concurrent/synchronization/mri_lockable_object.rb:38:in `synchronize' /usr/lib/ruby/vendor_ruby/concurrent/executor/safe_task_executor.rb:19:in `execute' /usr/lib/ruby/vendor_ruby/concurrent/promise.rb:526:in `block in realize' /usr/lib/ruby/vendor_ruby/concurrent/executor/ruby_thread_pool_executor.rb:333:in `run_task' /usr/lib/ruby/vendor_ruby/concurrent/executor/ruby_thread_pool_executor.rb:322:in `block (3 levels) in create_worker' /usr/lib/ruby/vendor_ruby/concurrent/executor/ruby_thread_pool_executor.rb:305:in `loop' /usr/lib/ruby/vendor_ruby/concurrent/executor/ruby_thread_pool_executor.rb:305:in `block (2 levels) in create_worker' /usr/lib/ruby/vendor_ruby/concurrent/executor/ruby_thread_pool_executor.rb:304:in `catch' /usr/lib/ruby/vendor_ruby/concurrent/executor/ruby_thread_pool_executor.rb:304:in `block in create_worker' E, [2017-07-10T16:18:56.204027 ] ERROR -- : Error while retrieving puppet classes for 'common' environment D, [2017-07-10T16:18:56.204108 ] DEBUG -- : Could not find environment 'common' (Proxy::Puppet::EnvironmentNotFound) /usr/share/foreman-proxy/modules/puppet_proxy_puppet_api/v3_api_request.rb:27:in `list_classes' /usr/share/foreman-proxy/modules/puppet_proxy_puppet_api/v3_environment_classes_api_classes_retriever.rb:81:in `block in async_get_classes' ............ (skip the repeatedly lines) ----------- Puppet debug logged: ------------------------------ Jul 10 16:18:56 playbox puppet-master[18102]: Routes Registered: Jul 10 16:18:56 playbox puppet-master[18102]: Route /^\/puppet\// Jul 10 16:18:56 playbox puppet-master[18102]: Route /^\/puppet-ca\// Jul 10 16:18:56 playbox puppet-master[18102]: Route /.*/ Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /^\/puppet\// Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /v3/ Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /^\/environments$/ Jul 10 16:18:56 playbox puppet-master[18102]: Did not match path ("/environment_classes") Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /^\/environment\/[^\/]+$/ Jul 10 16:18:56 playbox puppet-master[18102]: Did not match path ("/environment_classes") Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /.*/ Jul 10 16:18:56 playbox puppet-master[18102]: Not Found: Could not find indirection 'environment_classe' Jul 10 16:18:56 playbox puppet-master[18102]: Handling request: GET /puppet/v3/environment_classes?environment=production Jul 10 16:18:56 playbox puppet-master[18102]: Routes Registered: Jul 10 16:18:56 playbox puppet-master[18102]: Route /^\/puppet\// Jul 10 16:18:56 playbox puppet-master[18102]: Route /^\/puppet-ca\// Jul 10 16:18:56 playbox puppet-master[18102]: Route /.*/ Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /^\/puppet\// Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /v3/ Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /^\/environments$/ Jul 10 16:18:56 playbox puppet-master[18102]: Did not match path ("/environment_classes") Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /^\/environment\/[^\/]+$/ Jul 10 16:18:56 playbox puppet-master[18102]: Did not match path ("/environment_classes") Jul 10 16:18:56 playbox puppet-master[18102]: Evaluating match for Route /.*/ Jul 10 16:18:56 playbox puppet-master[18102]: Not Found: Could not find indirection 'environment_classe' Jul 10 16:18:56 playbox puppet-master[18102]: Handling request: GET /puppet/v3/environment_classes?environment=common ----------------------- Did someone have the same experience before? Could this be potential puppet bug ? Thanks. MK -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
