Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
rockstor update doesn't fail if db migration fails. #1332
Rockstor updates are distributed as rpms. As part of the rpm/yum update, db migrations are run if there are any schema changes. eg: recent network teaming related schema changes.
Rarely, db migration step of the update process fails. I have not seen it myself, but I know of at least 2 reports so far and I believe they are both running Rockstor off USB. For some reason, postgres barfs and we have updated rockstor package without db migration applied.
The fix usually is to run the db migration step as follows:
If steps 2 or 3 throw errors, then there are bigger problems. But for this particular bug, they should run without any errors or much of any useful information as output.
We should tighten the yum update process to catch any db migration errors and put some retry and error handling logic. Also note that this may be best done after we update django #1237