Project

General

Profile

Actions

Bug #11991

closed

[foreman-tasks/action] [E] undefined method `job_templates' for #<Organization:0x007f1a85025a48> (NoMethodError)

Added by Sachin Ghai over 8 years ago. Updated over 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

On my installed foreman+katello nightly box, when I tried to create a new org I got following error:

 | Started POST "/organizations" for 10.65.193.85 at 2015-09-29 04:58:23 -0400
2015-09-29 04:58:23 [app] [I] Processing by OrganizationsController#create as HTML
2015-09-29 04:58:23 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"4EqIQej2Av7qPzZ+f44dk0V9tbFXI+avRwFZR3hStyQ=", "organization"=>{"name"=>"test", "label"=>"", "description"=>""}, "commit"=>"Submit"}
2015-09-29 04:58:23 [foreman-tasks/action] [E] undefined method `job_templates' for #<Organization:0x007f1a85025a48> (NoMethodError)
 | /opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/attribute_methods.rb:407:in `method_missing'
 | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods.rb:149:in `method_missing'
 | /usr/share/foreman/app/models/taxonomy.rb:187:in `block in assign_default_templates'
 | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:6:in `each'
 | /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/relation/delegation.rb:6:in `each'
 | /usr/share/foreman/app/models/taxonomy.rb:186:in `assign_default_templates'
 | /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:469:in `_run__3131709793935100361__create__1453868857134192696__callbacks'

Reproducible with following build:
------------------------------------
foreman-release-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch
foreman-libvirt-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch
foreman-1.10.0-0.develop.201509171905gitd7b8c7a.el7.noarch
rubygem-smart_proxy_remote_execution_ssh-0.0.5-1.el7.noarch
tfm-rubygem-foreman_remote_execution-0.0.6-1.fm1_10.el7.noarch


Related issues 1 (0 open1 closed)

Is duplicate of Foreman Remote Execution - Bug #11805: error creating organization in assign_default_templatesClosed09/14/2015Actions
Actions #1

Updated by Stephen Benjamin over 8 years ago

  • Is duplicate of Bug #11805: error creating organization in assign_default_templates added
Actions #2

Updated by Stephen Benjamin over 8 years ago

  • Status changed from New to Duplicate

Thanks Sachin, fix should be in the next iteration.

Actions

Also available in: Atom PDF