Project

General

Profile

Actions

Bug #4018

open

API host creation fails with 500 error when unattended == false

Added by Tomáš Strachota over 10 years ago. Updated about 9 years ago.

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

Description

Host creation ends up with error 500 caused by missing compute_attributes accessor on attended installations.

unknown attribute: compute_attributes (ActiveRecord::UnknownAttributeError)
/root/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.15/lib/active_record/attribute_assignment.rb:88:in `block in assign_attributes'
/root/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.15/lib/active_record/attribute_assignment.rb:78:in `each'
/root/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.15/lib/active_record/attribute_assignment.rb:78:in `assign_attributes'
/root/foreman/vendor/ruby/1.9.1/gems/activerecord-3.2.15/lib/active_record/base.rb:498:in `initialize'
/root/foreman/app/models/concerns/foreman/sti.rb:22:in `new'
/root/foreman/app/models/concerns/foreman/sti.rb:22:in `new_with_cast'
/root/foreman/app/models/host.rb:16:in `method_missing'
/root/foreman/app/controllers/api/v2/hosts_controller.rb:62:in `create'

Related issues 1 (0 open1 closed)

Related to Foreman - Refactor #10413: Reimplement !unattended mode support as mainline featureClosedTomer BriskerActions
Actions

Also available in: Atom PDF