Project

General

Profile

Actions

Bug #32959

closed

Registration migration - Unassign OS from registration templates

Added by Leos Stejskal over 3 years ago. Updated over 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

Also available in: Atom PDF