Actions
Bug #6358
closedRenaming host orphans lookup_values
Description
Using Foreman 1.5.0 I renamed the host 'myproxy.DOMAIN' to 'globus-id.DOMAIN' which was successful. However the class parameters that were overridden no longer are associated to that host. An attempt to name the host back to its original name fails.
ActiveRecord::RecordInvalid Validation failed: Match fqdn=myproxy.DOMAIN does not match an existing host app/models/concerns/host_common.rb:46:in `block in lookup_values_attributes=' app/models/concerns/host_common.rb:39:in `each_value' app/models/concerns/host_common.rb:39:in `lookup_values_attributes=' app/controllers/hosts_controller.rb:117:in `block in update' app/models/taxonomy.rb:41:in `block in no_taxonomy_scope' app/models/taxonomy.rb:48:in `block (2 levels) in as_taxonomy' app/models/concerns/foreman/thread_session.rb:143:in `as_location' app/models/taxonomy.rb:47:in `block in as_taxonomy' app/models/concerns/foreman/thread_session.rb:108:in `as_org' app/models/taxonomy.rb:46:in `as_taxonomy' app/models/taxonomy.rb:40:in `no_taxonomy_scope' app/controllers/hosts_controller.rb:109:in `update' app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' lib/middleware/catch_json_parse_errors.rb:9:in `call'
Updated by Dominic Cleal over 10 years ago
- Status changed from New to Ready For Testing
- Assignee set to Trey Dockendorf
- Target version set to 1.8.1
- Translation missing: en.field_release set to 18
Updated by Trey Dockendorf over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 89730c3c8e21eb6c05770728ba425e817a03f3e0.
Actions