Foreman 1.12.0-RC2 available for testing

Foreman 1.12.0-RC2 is now available for further testing - please help by
trying it out, reporting and fixing bugs.

This update includes Hammer CLI 0.7.0 to accompany the release, fixes to
the installer and a handful of fixes for Foreman and Smart Proxy. A
couple of known issues remain (one around overriding parameters), so
it's likely that we'll release a third RC soon.

Installation quick start:
https://theforeman.org/manuals/1.12/quickstart_guide.html

Upgrade instructions:
https://theforeman.org/manuals/1.12/index.html#3.6Upgrade

Release notes:
https://theforeman.org/manuals/1.12/index.html#Releasenotesfor1.12

Changes in this release

··· ======================= Some notable changes in this release are listed below, so we'll be particularly looking out for new issues in these areas:
  1. Puppet 4 support in the installer, including setting up Puppet Server
    when using a Puppet Agent (AIO).

  2. Puppet 4 support in the smart proxy, using a new API available in
    Puppet Server to import environments and classes instead of parsing.

  3. Ruby on Rails upgraded from version 4.1 to 4.2, under the covers.

Lots more features can be found listed in the release notes by
category, please have a look through for anything that you might rely
on and give it a test:
https://theforeman.org/manuals/1.12/index.html#Releasenotesfor1.12

Do take note of the upgrade warnings and deprecations in this release:
https://theforeman.org/manuals/1.12/index.html#Upgradewarnings

Our list of supported OSes has changed, so please check these when
setting up new installations or upgrading.

We also have an experimental guide to upgrading a combined Foreman 1.12
and Puppet 3 installation to a Puppet 4 installation:
http://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_3_to_4

Downloads

Packages may be found in the 1.12 directories on both deb.foreman.org
and yum.theforeman.org, and tarballs are on downloads.theforeman.org.

The GPG key used for RPMs and tarballs has the following fingerprint:
860D D70A 378A 84CE 8D47 C10E B507 F6A6 7D49 2D06
(Foreman :: Security)

Bug reporting

If you come across a bug in your testing, please file it and note the
version of Foreman that you’re using in the report.

Foreman: Foreman
Proxy: Foreman
Installer:
Foreman


Dominic Cleal
dominic@cleal.org

Hi,

I upgraded from 1.12 RC1 to RC2 today since then importing puppet classes
from the foreman host fails with "*Error: *ERF12-2749
[ProxyAPI::ProxyException]: Unable to get environments from Puppet
([RestClient::ResourceNotFound]: 404 Resource Not Found) for proxy
https://xxxx:8443/puppet"
Any idea how to address this issue?

Thank you

From foreman-proxy/proxy.log:

I, [2016-06-22T20:07:07.563568 #11712] INFO – : xxx.xxx.xxx.xxx - -
[22/Jun/2016 20:07:07] "GET /puppet/environments HTTP/1.1" 404 548 0.0004

from foreman/production.log:

> ProxyAPI::ProxyException: ERF12-2749 [ProxyAPI::ProxyException]: Unable
to get environments from Puppet ([RestClient::ResourceNotFound]: 404
Resource Not Found) for proxy https:/XXXX:8443/puppet
> /usr/share/foreman/lib/proxy_api/puppet.rb:11:in rescue in environments' > /usr/share/foreman/lib/proxy_api/puppet.rb:9:inenvironments'
> /usr/share/foreman/app/services/puppet_class_importer.rb:131:in
actual_environments' > /usr/share/foreman/app/services/puppet_class_importer.rb:23:inchanges'
>
/usr/share/foreman/app/controllers/concerns/foreman/controller/environments.rb:11:in
import_environments' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/implicit_render.rb:4:insend_action'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:198:in
process_action' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/rendering.rb:10:inprocess_action'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/abstract_controller/callbacks.rb:20:in
block in process_action' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:117:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:117:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:555:inblock (2 levels) in compile'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:498:in
block (2 levels) in around' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in
block (2 levels) in halting' > /usr/share/foreman/vendor/ruby/2.0.0/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:inaround'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:455:in
public_send' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:455:inblock in make_lambda'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:inblock in halting'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:inblock in around'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:498:in
block (2 levels) in around' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in
block (2 levels) in halting' > /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:inset_timezone'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:432:in
block in make_lambda' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in
block in halting' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in
block in around' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:498:inblock (2 levels) in around'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:inblock (2 levels) in halting'
> /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in
clear_thread' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:432:inblock in make_lambda'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:inblock in halting'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:inblock in around'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:498:in
block (2 levels) in around' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in
block (2 levels) in halting' > /usr/share/foreman/vendor/ruby/2.0.0/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:inaround'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:455:in
public_send' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:455:inblock in make_lambda'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:inblock in halting'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:inblock in around'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:92:in
__run_callbacks__' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:778:in_run_process_action_callbacks'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:81:in
run_callbacks' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/abstract_controller/callbacks.rb:19:inprocess_action'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/rescue.rb:29:in
process_action' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/instrumentation.rb:32:inblock in process_action'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in
block in instrument' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:ininstrument'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in
instrument' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/instrumentation.rb:30:inprocess_action'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/params_wrapper.rb:250:in
process_action' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.2.6/lib/active_record/railties/controller_runtime.rb:18:inprocess_action'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:137:in
process' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.2.6/lib/action_view/rendering.rb:30:inprocess'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal.rb:196:in
dispatch' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/rack_delegation.rb:13:indispatch'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal.rb:237:in
block in action' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:74:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:74:in
dispatch' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:43:inserve'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/journey/router.rb:43:in
block in serve' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/journey/router.rb:30:ineach'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/journey/router.rb:30:in
serve' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:817:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/static_dispatcher.rb:65:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/extractor/recorder.rb:132:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/middleware/checksum_in_headers.rb:27:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/etag.rb:24:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/head.rb:13:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/params_parser.rb:27:in
call' > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/flash.rb:260:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:incontext'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/cookies.rb:560:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.2.6/lib/active_record/query_cache.rb:36:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/callbacks.rb:29:in
block in call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:88:inrun_callbacks'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:778:in
_run_call_callbacks' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:81:inrun_callbacks'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/callbacks.rb:27:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/remote_ip.rb:78:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/debug_exceptions.rb:17:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/show_exceptions.rb:30:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/rack/logger.rb:38:in
call_app' > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/rack/logger.rb:22:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/request_id.rb:21:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/static.rb:120:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:518:in
call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/application.rb:165:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:194:in
public_send' > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:194:inmethod_missing'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in
block in call' > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:ineach'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in
call' > /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request'
>
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in
accept_and_process_next_request' > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:inmain_loop'
> /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in
block (3 levels) in start_threads' > /usr/share/foreman/vendor/ruby/2.0.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:incall'
>
/usr/share/foreman/vendor/ruby/2.0.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in
`block in create_with_logging_context'

··· On Tuesday, June 21, 2016 at 9:23:16 AM UTC+2, Dominic Cleal wrote: > > Foreman 1.12.0-RC2 is now available for further testing - please help by > trying it out, reporting and fixing bugs. > > This update includes Hammer CLI 0.7.0 to accompany the release, fixes to > the installer and a handful of fixes for Foreman and Smart Proxy. A > couple of known issues remain (one around overriding parameters), so > it's likely that we'll release a third RC soon. > > Installation quick start: > https://theforeman.org/manuals/1.12/quickstart_guide.html > > Upgrade instructions: > https://theforeman.org/manuals/1.12/index.html#3.6Upgrade > > Release notes: > https://theforeman.org/manuals/1.12/index.html#Releasenotesfor1.12 > > > Changes in this release > ======================= > Some notable changes in this release are listed below, so we'll be > particularly looking out for new issues in these areas: > > 1) Puppet 4 support in the installer, including setting up Puppet Server > when using a Puppet Agent (AIO). > > 2) Puppet 4 support in the smart proxy, using a new API available in > Puppet Server to import environments and classes instead of parsing. > > 3) Ruby on Rails upgraded from version 4.1 to 4.2, under the covers. > > Lots more features can be found listed in the release notes by > category, please have a look through for anything that you might rely > on and give it a test: > https://theforeman.org/manuals/1.12/index.html#Releasenotesfor1.12 > > Do take note of the upgrade warnings and deprecations in this release: > https://theforeman.org/manuals/1.12/index.html#Upgradewarnings > > Our list of supported OSes has changed, so please check these when > setting up new installations or upgrading. > > We also have an experimental guide to upgrading a combined Foreman 1.12 > and Puppet 3 installation to a Puppet 4 installation: > > http://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_3_to_4 > > > Downloads > ========= > Packages may be found in the 1.12 directories on both deb.foreman.org > and yum.theforeman.org, and tarballs are on downloads.theforeman.org. > > The GPG key used for RPMs and tarballs has the following fingerprint: > 860D D70A 378A 84CE 8D47 C10E B507 F6A6 7D49 2D06 > (https://theforeman.org/security.html#GPGkeys) > > > Bug reporting > ============= > If you come across a bug in your testing, please file it and note the > version of Foreman that you're using in the report. > > Foreman: http://projects.theforeman.org/projects/foreman/issues/new > Proxy: http://projects.theforeman.org/projects/smart-proxy/issues/new > Installer: > http://projects.theforeman.org/projects/puppet-foreman/issues/new > > -- > Dominic Cleal > dom...@cleal.org > > > >

I managed to solve the issue by changing the puppet version
in /etc/foreman-proxy/settings.d/puppet.yml from 4.1 to the previous 4.5.0.

··· On Wednesday, June 22, 2016 at 8:13:16 PM UTC+2, lubyou wrote: > > Hi, > > I upgraded from 1.12 RC1 to RC2 today since then importing puppet classes > from the foreman host fails with "*Error: *ERF12-2749 > [ProxyAPI::ProxyException]: Unable to get environments from Puppet > ([RestClient::ResourceNotFound]: 404 Resource Not Found) for proxy > https://xxxx:8443/puppet" > Any idea how to address this issue? > > Thank you > > From foreman-proxy/proxy.log: > > I, [2016-06-22T20:07:07.563568 #11712] INFO -- : xxx.xxx.xxx.xxx - - > [22/Jun/2016 20:07:07] "GET /puppet/environments HTTP/1.1" 404 548 0.0004 > > from foreman/production.log: > > > ProxyAPI::ProxyException: ERF12-2749 [ProxyAPI::ProxyException]: Unable > to get environments from Puppet ([RestClient::ResourceNotFound]: 404 > Resource Not Found) for proxy https:/XXXX:8443/puppet > > /usr/share/foreman/lib/proxy_api/puppet.rb:11:in `rescue in > environments' > > /usr/share/foreman/lib/proxy_api/puppet.rb:9:in `environments' > > /usr/share/foreman/app/services/puppet_class_importer.rb:131:in > `actual_environments' > > /usr/share/foreman/app/services/puppet_class_importer.rb:23:in `changes' > > > /usr/share/foreman/app/controllers/concerns/foreman/controller/environments.rb:11:in > `import_environments' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/implicit_render.rb:4:in > `send_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:198:in > `process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/rendering.rb:10:in > `process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/abstract_controller/callbacks.rb:20:in > `block in process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:117:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:117:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:555:in > `block (2 levels) in compile' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:498:in > `block (2 levels) in around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in > `block (2 levels) in halting' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in > `around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:455:in > `public_send' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:455:in > `block in make_lambda' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in > `block in halting' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in > `block in around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:498:in > `block (2 levels) in around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in > `block (2 levels) in halting' > > /usr/share/foreman/app/controllers/concerns/application_shared.rb:13:in > `set_timezone' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:432:in > `block in make_lambda' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in > `block in halting' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in > `block in around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:498:in > `block (2 levels) in around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in > `block (2 levels) in halting' > > /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in > `clear_thread' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:432:in > `block in make_lambda' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in > `block in halting' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in > `block in around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:498:in > `block (2 levels) in around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:313:in > `block (2 levels) in halting' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rails-observers-0.1.2/lib/rails/observers/action_controller/caching/sweeping.rb:73:in > `around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:455:in > `public_send' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:455:in > `block in make_lambda' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:312:in > `block in halting' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:497:in > `block in around' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:505:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:92:in > `__run_callbacks__' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:778:in > `_run_process_action_callbacks' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:81:in > `run_callbacks' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/abstract_controller/callbacks.rb:19:in > `process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/rescue.rb:29:in > `process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/instrumentation.rb:32:in > `block in process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in > `block in instrument' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in > `instrument' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in > `instrument' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/instrumentation.rb:30:in > `process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/params_wrapper.rb:250:in > `process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.2.6/lib/active_record/railties/controller_runtime.rb:18:in > `process_action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:137:in > `process' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionview-4.2.6/lib/action_view/rendering.rb:30:in > `process' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal.rb:196:in > `dispatch' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal/rack_delegation.rb:13:in > `dispatch' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_controller/metal.rb:237:in > `block in action' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:74:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:74:in > `dispatch' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:43:in > `serve' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/journey/router.rb:43:in > `block in serve' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/journey/router.rb:30:in > `each' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/journey/router.rb:30:in > `serve' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/routing/route_set.rb:817:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/static_dispatcher.rb:65:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/extractor/recorder.rb:132:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/apipie-rails-0.3.6/lib/apipie/middleware/checksum_in_headers.rb:27:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/head.rb:13:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/params_parser.rb:27:in > `call' > > /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/flash.rb:260:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in > `context' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/cookies.rb:560:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.2.6/lib/active_record/query_cache.rb:36:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/callbacks.rb:29:in > `block in call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:88:in > `__run_callbacks__' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:778:in > `_run_call_callbacks' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:81:in > `run_callbacks' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/callbacks.rb:27:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/remote_ip.rb:78:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/debug_exceptions.rb:17:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/show_exceptions.rb:30:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/rack/logger.rb:38:in > `call_app' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/rack/logger.rb:22:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/request_id.rb:21:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/activesupport-4.2.6/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/actionpack-4.2.6/lib/action_dispatch/middleware/static.rb:120:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/engine.rb:518:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/application.rb:165:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:194:in > `public_send' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/railties-4.2.6/lib/rails/railtie.rb:194:in > `method_missing' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in > `block in call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in > `each' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in > `call' > > > /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:77:in > `process_request' > > > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:142:in > `accept_and_process_next_request' > > > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in > `main_loop' > > /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:448:in > `block (3 levels) in start_threads' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in > `call' > > > /usr/share/foreman/vendor/ruby/2.0.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in > `block in create_with_logging_context' > > > On Tuesday, June 21, 2016 at 9:23:16 AM UTC+2, Dominic Cleal wrote: >> >> Foreman 1.12.0-RC2 is now available for further testing - please help by >> trying it out, reporting and fixing bugs. >> >> This update includes Hammer CLI 0.7.0 to accompany the release, fixes to >> the installer and a handful of fixes for Foreman and Smart Proxy. A >> couple of known issues remain (one around overriding parameters), so >> it's likely that we'll release a third RC soon. >> >> Installation quick start: >> https://theforeman.org/manuals/1.12/quickstart_guide.html >> >> Upgrade instructions: >> https://theforeman.org/manuals/1.12/index.html#3.6Upgrade >> >> Release notes: >> https://theforeman.org/manuals/1.12/index.html#Releasenotesfor1.12 >> >> >> Changes in this release >> ======================= >> Some notable changes in this release are listed below, so we'll be >> particularly looking out for new issues in these areas: >> >> 1) Puppet 4 support in the installer, including setting up Puppet Server >> when using a Puppet Agent (AIO). >> >> 2) Puppet 4 support in the smart proxy, using a new API available in >> Puppet Server to import environments and classes instead of parsing. >> >> 3) Ruby on Rails upgraded from version 4.1 to 4.2, under the covers. >> >> Lots more features can be found listed in the release notes by >> category, please have a look through for anything that you might rely >> on and give it a test: >> https://theforeman.org/manuals/1.12/index.html#Releasenotesfor1.12 >> >> Do take note of the upgrade warnings and deprecations in this release: >> https://theforeman.org/manuals/1.12/index.html#Upgradewarnings >> >> Our list of supported OSes has changed, so please check these when >> setting up new installations or upgrading. >> >> We also have an experimental guide to upgrading a combined Foreman 1.12 >> and Puppet 3 installation to a Puppet 4 installation: >> >> http://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_3_to_4 >> >> >> Downloads >> ========= >> Packages may be found in the 1.12 directories on both deb.foreman.org >> and yum.theforeman.org, and tarballs are on downloads.theforeman.org. >> >> The GPG key used for RPMs and tarballs has the following fingerprint: >> 860D D70A 378A 84CE 8D47 C10E B507 F6A6 7D49 2D06 >> (https://theforeman.org/security.html#GPGkeys) >> >> >> Bug reporting >> ============= >> If you come across a bug in your testing, please file it and note the >> version of Foreman that you're using in the report. >> >> Foreman: http://projects.theforeman.org/projects/foreman/issues/new >> Proxy: http://projects.theforeman.org/projects/smart-proxy/issues/new >> Installer: >> http://projects.theforeman.org/projects/puppet-foreman/issues/new >> >> -- >> Dominic Cleal >> dom...@cleal.org >> >> >> >>

If you have a copy of the file when it wasn't working and the logs, it
would be good to know what the nature of the failure was and perhaps
file a bug. There shouldn't be any difference between 4.1 and 4.5.0 in
behaviour.

··· On 22/06/16 20:15, lubyou wrote: > I managed to solve the issue by changing the puppet version > in /etc/foreman-proxy/settings.d/puppet.yml from 4.1 to the previous 4.5.0.


Dominic Cleal
dominic@cleal.org