Project

General

Profile

Bug #32959

Registration migration - Unassign OS from registration templates

Added by Leos Stejskal 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Operating systems cannot be assigned to registration templates,
so the migration file should also remove these associations.

How to reproduce the issue

  • Checkout 2.4-stable branch
  • Assign OS to registration template
  • Checkout develop branch
  • Run rails db:migrate & then rails db:seed
ActiveRecord::RecordInvalid: 
Validation failed: Operatingsystems can't assign operating system to Registration template

From https://community.theforeman.org/t/foreman-update-2-5-1-foreman-rake-db-seed-fails/24242


Related issues

Related to Foreman - Feature #31663: Usability issues with templates & operating systemsClosed
Related to Foreman - Bug #33269: Error in db:seed after 3.0.0rc1 upgradeResolved

Associated revisions

Revision 9499e273 (diff)
Added by Leos Stejskal 5 months ago

Fixes #32959 - Unassign OS in registration migration

Operating systems cannot be assigned to registration templates,
so the migration file should also remove these associations.

History

#1 Updated by Leos Stejskal 5 months ago

  • Related to Feature #31663: Usability issues with templates & operating systems added

#2 Updated by The Foreman Bot 5 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8645 added

#3 Updated by Tomer Brisker 5 months ago

  • Target version set to 2.5.2

#4 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases 3.0.0 added

#5 Updated by Tomer Brisker 5 months ago

  • Fixed in Releases 2.5.2 added

#6 Updated by Leos Stejskal 5 months ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Tomer Brisker 4 months ago

  • Related to Bug #33269: Error in db:seed after 3.0.0rc1 upgrade added

Also available in: Atom PDF