Newton -> Queens FFU upgrade: fast_forward_upgrade_playbook fails during Cinder db sync task with "Error during database migration: There are still 1 unmigrated records in the messages table. Migration cannot continue until all records have been migrated."

Bug #1744056 reported by Marius Cornea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Marius Cornea

Bug Description

Newton -> Queens FFU upgrade: fast_forward_upgrade_playbook fails during Cinder db sync task with "Error during database migration: There are still 1 unmigrated records in the messages table. Migration cannot continue until all records have been migrated."

TASK [Cinder db sync] *************************************************************************************************************************************************************************************************************************
fatal: [192.168.24.9]: FAILED! => {"changed": true, "cmd": ["cinder-manage", "db", "sync"], "delta": "0:00:02.538621", "end": "2018-01-18 12:26:04.920501", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2018-01-18 12:26:
02.381880", "stderr": "Option \"logdir\" from group \"DEFAULT\" is deprecated. Use option \"log-dir\" from group \"DEFAULT\".", "stderr_lines": ["Option \"logdir\" from group \"DEFAULT\" is deprecated. Use option \"log-dir\" from group \"D
EFAULT\"."], "stdout": "Error during database migration: There are still 1 unmigrated records in the messages table. Migration cannot continue until all records have been migrated.", "stdout_lines": ["Error during database migration: There
 are still 1 unmigrated records in the messages table. Migration cannot continue until all records have been migrated."]}

Note: one cinder volume was created before starting the ffu upgrade procedure

Tags: upgrade
Changed in tripleo:
milestone: queens-3 → queens-rc1
Revision history for this message
Gorka Eguileor (gorka) wrote :

The error is an internal check that we have in Cinder Pike to verify that online migrations from Ocata have been completed.

Just like with Nova you need to run online migration using cinder-manage since you won't be running the service during a FF upgrade.

We don't seem to have any online migrations in Pike, but calling the command will be a NOOP, so it's better to just run this command in Ocata and later releases after the DB sync, except on the final destination version, where we should leave them to be done online.

Changed in tripleo:
assignee: nobody → Jose Luis Franco (jfrancoa)
status: Triaged → In Progress
Changed in tripleo:
assignee: Jose Luis Franco (jfrancoa) → Lukas Bezdicka (social-b)
Changed in tripleo:
assignee: Lukas Bezdicka (social-b) → Pradeep Kilambi (pkilambi)
Changed in tripleo:
assignee: Pradeep Kilambi (pkilambi) → Marius Cornea (mcornea)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/521545
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=d2073a13a297e234643c086430d13fc765b7a9a6
Submitter: Zuul
Branch: master

commit d2073a13a297e234643c086430d13fc765b7a9a6
Author: Lee Yarwood <email address hidden>
Date: Fri Nov 17 09:59:30 2017 +0000

    ffu: Introduce Cinder fast-forward upgrade tasks

    fast_forward_upgrade_tasks for Glance covering Ocata and Pike.
    - Service status check
    - Stop services when updating from Ocata to Pike
    - Update cinder packages
    - Db sync

    Resolves: rhbz#1536010
    Closes-Bug: #1744056
    bp fast-forward-upgrades
    Change-Id: I172c3a1868a8b7a94b282cbe5c2f6b323f7ca101

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.0.0rc1

This issue was fixed in the openstack/tripleo-heat-templates 8.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.