Trouble with foreman-salt

Hi all,

i have successfully setup foreman with salt in my testing enviroment and
i can accept/reject keys, run highstates on minions and have the results
uploaded to foreman. I have also imported my states and environments

However something seems to be broken when i try editing hosts (to apply,
states, parameters, etc.). I hit 'Edit', select the values from the
dropdown lists, hit 'Submit' and get an 500 error

"undefined method `build?' for nil:NilClass".

The full trace with debug enabled from the production.log is available here:

Has anyone stumbled upon this problem/bug before?

Core Info:
HOSTNAME: api.intern.domain.com
OS: debian
RELEASE: 8.2
FOREMAN: 1.9.2
RUBY: ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
PUPPET: 3.7.2
ruby-foreman-salt: 3.0.2-1
ruby-smart-proxy-salt: 2.1.5-1

Any hint is highly appreciated!

  • Volker
··· from my master.

Just for reference, Bug #12159: editing hosts with foreman_salt breaks - Salt - Foreman is the
bug report from Volker.

··· On 14/10/15 10:14, Volker Schwicking wrote: > Hi all, > > i have successfully setup foreman with salt in my testing enviroment and > i can accept/reject keys, run highstates on minions and have the results > uploaded to foreman. I have also imported my states and environments > from my master. > > However something seems to be broken when i try editing hosts (to apply, > states, parameters, etc.). I hit 'Edit', select the values from the > dropdown lists, hit 'Submit' and get an 500 error > > "undefined method `build?' for nil:NilClass". > > The full trace with debug enabled from the production.log is available here: > > https://gist.github.com/felskrone/3c714d8d15f0482a75fb > > Has anyone stumbled upon this problem/bug before?


Dominic Cleal
dominic@cleal.org