Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regression - source build fails to fully initialise db #1983
Re-order db migration by early --fake-initial migration of contenttypes. Refactor initial database initialisation to be only within initrock to centralised this mechanism, removes previous db migration redundancy within buildout and some associated legacy db operations and in turn avoids major duplication of db initialisation on initial clean (no db or no .initrock file) builds. Move to only invoking the initrock script (during source build) via systemd dependency execution. This gives cleaner error reporting re failed dependency on rockstor-pre (which normally invokes initrock) and follows / tests normal execution flow. Consequently avoided runtime error: "Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually." on recent first attempt migrations during clean (no db or no .initrock) builds. Summary: - Migrate --fake-initial contenttypes before individual apps. - Remove buildout db prep to centralise within initrock. - Use systemd execution chain to invoke initrock / rockstor-pre - Add systemd services setup step in buildout: required by prior item. - Add logging for db delete within initrock. - Add debug logging to existing db --fake migrations - Remove currently unused gulp-install from buildout, this entry breaks non legacy builds.
- Loading branch information