Project

General

Profile

Actions

Bug #32959

closed

Registration migration - Unassign OS from registration templates

Added by Leos Stejskal about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
Difficulty:
Triaged:
No
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 2 (0 open2 closed)

Related to Foreman - Feature #31663: Usability issues with templates & operating systemsClosedLeos StejskalActions
Related to Foreman - Bug #33269: Error in db:seed after 3.0.0rc1 upgradeResolvedActions
Actions #1

Updated by Leos Stejskal about 3 years ago

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

Updated by The Foreman Bot about 3 years ago

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

Updated by Tomer Brisker about 3 years ago

  • Target version set to 2.5.2
Actions #4

Updated by The Foreman Bot about 3 years ago

  • Fixed in Releases 3.0.0 added
Actions #5

Updated by Tomer Brisker about 3 years ago

  • Fixed in Releases 2.5.2 added
Actions #6

Updated by Leos Stejskal about 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Tomer Brisker almost 3 years ago

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

Also available in: Atom PDF