def _check_obj_versions(self): """Check that the DB versions of objects are compatible. Checks that the object versions are compatible with this release of ironic. It does this by comparing the objects' .version field in the database, with the expected versions of these objects. """ msg = dbsync.DBCommand().check_obj_versions(ignore_missing_tables=True) if not msg: return upgradecheck.Result(upgradecheck.Code.SUCCESS) else: return upgradecheck.Result(upgradecheck.Code.FAILURE, details=msg)
def setUp(self): super(OnlineMigrationTestCase, self).setUp() self.context = context.get_admin_context() self.db_cmds = dbsync.DBCommand()