Project

General

Profile

Actions

Bug #2171

closed

Duplicate template entries after installing 1.1rc5

Added by Dennis Jacobfeuerborn over 11 years ago. Updated about 11 years ago.

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

Description

I just did a fresh install of 1.1rc5 using the installer which worked without error but after the installation there a duplicate copies of some provisioning templates. This also means you cannot edit these template as foreman complains that the template already exists when you try to save the changes. (see the attached screenshot)


Files

duplicate-templates.png View duplicate-templates.png 43.3 KB screenshot of duplicate entries Dennis Jacobfeuerborn, 02/03/2013 12:00 PM
Actions #1

Updated by Dennis Jacobfeuerborn over 11 years ago

A workaround is to delete all but one of the duplicate entries. After that the remaining entry can be updated again.

Actions #2

Updated by Dominic Cleal over 11 years ago

  • Status changed from New to Feedback

Perhaps an unclean database to begin with? You can run "rake db:drop" (with RAILS_ENV) to clear the database, but it sounds like it was installed a couple of times or something.. this doesn't happen on a clean install.

Actions #3

Updated by Dennis Jacobfeuerborn over 11 years ago

I installed a fresh virtual machine to test foreman 1.1rc5 with. I also have a VM with foreman 1.0.2 but I didn't want to upgrade that precisely to avoid running into issues with stale data.

Actions #4

Updated by Dominic Cleal about 11 years ago

  • Status changed from Feedback to Resolved

We tracked this down to a problem in Foreman core with the database migrations. It's fixed in Foreman 1.2. Thanks for the report!

Actions

Also available in: Atom PDF