Project

General

Profile

Bug #4611

DB migrate and seed should be re-run if an error occurred during the run of either

Added by Eric Helms over 5 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Related issues

Has duplicate Installer - Bug #6862: Rerunning the installer after some issue doesn't make sure that the rake tasks (migreate, seed, apipie:cache) were finishedDuplicate2014-07-31

Associated revisions

Revision 8f9b6994 (diff)
Added by Ivan Necas almost 5 years ago

Refs #4611 - rake-ify foreman-config and db_pending_migration/seed in settings

This way, we can determine in the installer if the rake
db:migrate/seed should be run in the installer.

Later, we also could use this information to inform the entering user
that the application is not in ready state yet: preparation for
maintenance page.

Revision dcde6712 (diff)
Added by Ivan Necas over 4 years ago

Fixes #4611,#7353 - control the db_pending_migration/db_pending_seed from installer

This allows tracking the state of migration/seeding in the database
and making sure the rake tasks are done on subsequential installer attempts when
something goes wrong the first time.

Also, as part of the `foreman-config` calls, we ensure that the
settings are initialised before the httpd starts (preventing the
race-conditions happening when the httpd and rake db:seed start at the
same time)

Closes GH-225

History

#1 Updated by Dominic Cleal about 5 years ago

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

#2 Updated by Dominic Cleal about 5 years ago

  • Has duplicate Bug #6862: Rerunning the installer after some issue doesn't make sure that the rake tasks (migreate, seed, apipie:cache) were finished added

#3 Updated by The Foreman Bot almost 5 years ago

  • Target version set to 1.7.4

#4 Updated by Dmitri Dolguikh almost 5 years ago

  • Target version changed from 1.7.4 to 1.7.3

#5 Updated by Dominic Cleal almost 5 years ago

  • Target version changed from 1.7.3 to 1.7.2

#6 Updated by Dominic Cleal over 4 years ago

  • Assignee changed from Eric Helms to Ivan Necas
  • Legacy Backlogs Release (now unused) set to 29

#7 Updated by Ivan Necas over 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF