When performing a major upgrade in the undercloud, from newton to ocata, it is failing with the following error:
2017-11-10 10:43:00,891 INFO: Notice: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: INFO [alembic.runtime.migration] Context impl MySQLImpl.
2017-11-10 10:43:00,892 INFO: Notice: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: INFO [alembic.runtime.migration] Will assume non-transactional DDL.
2017-11-10 10:43:00,892 INFO: Notice: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: ERROR [alembic.util.messaging] Can't locate revision identified by '021'
2017-11-10 10:43:00,893 INFO: Notice: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: FAILED: Can't locate revision identified by '021'
2017-11-10 10:43:00,893 INFO: Error: mistral-db-manage --config-file=/etc/mistral/mistral.conf upgrade head returned 255 instead of one of [0]
2017-11-10 10:43:00,894 INFO: Error: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: change from notrun to 0 failed: mistral-db-manage --config-file=/etc/mistral/mistral.conf upgrade head returned 255 instead of one of [0]
2017-11-10 10:44:48,254 INFO: Notice: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: INFO [alembic.runtime.migration] Context impl MySQLImpl.
2017-11-10 10:44:48,255 INFO: Notice: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: INFO [alembic.runtime.migration] Will assume non-transactional DDL.
2017-11-10 10:44:48,255 INFO: Notice: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: ERROR [alembic.util.messaging] Can't locate revision identified by '021'
2017-11-10 10:44:48,256 INFO: Notice: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]/returns: FAILED: Can't locate revision identified by '021'
2017-11-10 10:44:48,256 INFO: Error: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]: Failed to call refresh: mistral-db-manage --config-file=/etc/mistral/mistral.conf upgrade head returned 255 instead of one of [0]
2017-11-10 10:44:48,257 INFO: Error: /Stage[main]/Mistral::Db::Sync/Exec[mistral-db-sync]: mistral-db-manage --config-file=/etc/mistral/mistral.conf upgrade head returned 255 instead of one of [0]
Then finally:
2017-11-10 10:59:08,892 INFO: + echo 'puppet apply exited with exit code 6'
2017-11-10 10:59:08,892 INFO: puppet apply exited with exit code 6
2017-11-10 10:59:08,892 INFO: + '[' 6 '!=' 2 -a 6 '!=' 0 ']'
2017-11-10 10:59:08,893 INFO: + exit 6
2017-11-10 10:59:08,893 INFO: [2017-11-10 10:59:08,891] (os-refresh-config) [ERROR] during configure phase. [Command '['dib-run-parts', '/usr/libexec/os-refresh-config/configure.d']' returned non-zero exit status 1]
2017-11-10 10:59:08,893 INFO:
2017-11-10 10:59:08,893 INFO: [2017-11-10 10:59:08,892] (os-refresh-config) [ERROR] Aborting...
2017-11-10 10:59:08,901 ERROR:
mistral --version
mistral 3.0.2