Octane executes nova-manage with a key that is not implemented

Bug #1619311 reported by Andrey Volochay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Ilya Kharin
Mitaka
Fix Released
High
Ilya Kharin

Bug Description

Detailed bug description:
 During upgrade MOS8.0 to MOS9.0 via Octane(stable/mitaka and master), I have faced with following bug.

 By doing second controller upgrade via Octane (octane upgrade-db <original_env_id> <seed_env_id>), Octane fails with an error

 2016-09-01 11:30:12 INFO octane.util.subprocess Started process nova-manage[at node-4]: nova-manage db migrate_flavor_data
 2016-09-01 11:30:15 ERROR octane.util.subprocess nova-manage[at node-4] stderr: No handlers could be found for logger "oslo_config.cfg"
 2016-09-01 11:30:15 ERROR octane.util.subprocess nova-manage[at node-4] stderr: usage: nova-manage db [-h]
 2016-09-01 11:30:15 ERROR octane.util.subprocess nova-manage[at node-4] stderr: {archive_deleted_rows,contract,expand,migrate,null_instance_uuid_scan,sync,version}
 2016-09-01 11:30:15 ERROR octane.util.subprocess nova-manage[at node-4] stderr: ...
 2016-09-01 11:30:15 ERROR octane.util.subprocess nova-manage[at node-4] stderr: nova-manage db: error: argument action: invalid choice: 'migrate_flavor_data' (choose from 'archive_deleted_rows', 'contract', 'expand', 'migrate', 'null_instance_uuid_scan', 'sync', 'versi
on')

Steps to reproduce:
 1) Have MOS8.0 environment
 2) Backup environment settings, following documented process
 3) Prepare new master node (fuel 9.0)
 4) Restore the backup from second step
 5) Upgrade restored environment via Octane
 6) Upgrade primary controller via Octane
 7) Upgrade DB via Octane

Expected results:
 Database from original controllers has been copied to new one

Actual result:
 Octane returns an error which in turn breaks data base migration

Reproducibility:
 Octane from stable/mitaka and master branches

Ilya Kharin (akscram)
Changed in fuel:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Ilya Kharin (akscram)
milestone: none → 9.1
Revision history for this message
Ilya Kharin (akscram) wrote :

The data migration for flavors have to be executed only on the Kilo release and only for the next upgraded paths: 7.0 -> 9.0 and 7.0 -> 8.0.

Changed in fuel:
milestone: 9.1 → next
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-octane (master)

Fix proposed to branch: master
Review: https://review.openstack.org/364373

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-octane (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/364569

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-octane (master)

Reviewed: https://review.openstack.org/364373
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=243a2ce5b6e8b473011c280ed1b691e3af7efc5b
Submitter: Jenkins
Branch: master

commit 243a2ce5b6e8b473011c280ed1b691e3af7efc5b
Author: Ilya Kharin <email address hidden>
Date: Thu Sep 1 17:53:57 2016 +0300

    Perform flavor data migrations only for 7.0 envs

    The next command performs data migrations for flavors:

      nova-manage db migrate_flavor_data

    This migration have to be executed only on environments with the Kilo
    version.

    Change-Id: Ic65c4b1bc96ca69e8b74dd1a969953ac4283578d
    Closes-Bug: #1619311

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-octane (master)

Reviewed: https://review.openstack.org/364569
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=a54ab589635b9b1a5368c455078570e3d0cce2f2
Submitter: Jenkins
Branch: master

commit a54ab589635b9b1a5368c455078570e3d0cce2f2
Author: Ilya Kharin <email address hidden>
Date: Fri Sep 2 00:51:22 2016 +0300

    Unit tests and fixes for nova_migrate_flavor_data

    Some unit test cases were wrote alongside with some fixes

    Change-Id: Ie4d23a4238beb6c9d42637bb16fc1a55c10993a4
    Related-Bug: #1619311

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-octane (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/365010

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-octane (master)

Reviewed: https://review.openstack.org/365010
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=c95b137224601631ea6cc87e78a9f2a9fae5e937
Submitter: Jenkins
Branch: master

commit c95b137224601631ea6cc87e78a9f2a9fae5e937
Author: Ilya Kharin <email address hidden>
Date: Fri Sep 2 17:34:50 2016 +0300

    Return removed CEPH_UPSTART_VERSION constant

    Change-Id: I89ca8bfb76fd5af1bd44017104e8f1fa73240db9
    Related-Bug: #1619311

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-octane (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/365042

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-octane (stable/mitaka)
Download full text (4.1 KiB)

Reviewed: https://review.openstack.org/365042
Committed: https://git.openstack.org/cgit/openstack/fuel-octane/commit/?id=378a8d70a57f5ad91a74c844e170cc5a62e02441
Submitter: Jenkins
Branch: stable/mitaka

commit c95b137224601631ea6cc87e78a9f2a9fae5e937
Author: Ilya Kharin <email address hidden>
Date: Fri Sep 2 17:34:50 2016 +0300

    Return removed CEPH_UPSTART_VERSION constant

    Change-Id: I89ca8bfb76fd5af1bd44017104e8f1fa73240db9
    Related-Bug: #1619311

commit a54ab589635b9b1a5368c455078570e3d0cce2f2
Author: Ilya Kharin <email address hidden>
Date: Fri Sep 2 00:51:22 2016 +0300

    Unit tests and fixes for nova_migrate_flavor_data

    Some unit test cases were wrote alongside with some fixes

    Change-Id: Ie4d23a4238beb6c9d42637bb16fc1a55c10993a4
    Related-Bug: #1619311

commit 243a2ce5b6e8b473011c280ed1b691e3af7efc5b
Author: Ilya Kharin <email address hidden>
Date: Thu Sep 1 17:53:57 2016 +0300

    Perform flavor data migrations only for 7.0 envs

    The next command performs data migrations for flavors:

      nova-manage db migrate_flavor_data

    This migration have to be executed only on environments with the Kilo
    version.

    Change-Id: Ic65c4b1bc96ca69e8b74dd1a969953ac4283578d
    Closes-Bug: #1619311

commit 10409edb220584c921ae857032da22b0b3f1c615
Author: Ilya Kharin <email address hidden>
Date: Tue Aug 30 18:15:42 2016 +0300

    Do not upgrade libvirt packages to 8.0

    Libvirt packages have not to be upgraded to the version that is shipped
    by the 8.0 release.

    Change-Id: I4ebd9722cdfd02476ba743c2a713baf5efed704b
    Partial-Bug: #1618517

commit f717784237e14d3deaa687e563a0a11068f2a3bc
Author: Sergey Abramov <email address hidden>
Date: Tue Aug 30 14:27:56 2016 +0300

    Add validation on upgrade node in isolation

    required for fix problem with update first
    controller without isolation

    Change-Id: Ie3a07eb12ad306b6bdfc7f91d5ec922e19d48017

commit 5989919ed2f11fcd3aa2a5342a8f2487c28eb855
Author: Vladimir Khlyunev <email address hidden>
Date: Tue Aug 30 13:58:24 2016 +0300

    Upload net template to seed env while cloning

    Right now there is a typo in network template uploading code
    which leads to uploading of template to existing cluster but expected
    behavior is uploading to new cluster.

    Change-Id: I2c52921e367216bcdf39682a43a2b0940e4cb8c3
    Closes-bug:1618408

commit 1c5952ec88ddaf57d41f67eb4424f7fbbd4229df
Author: Sergey Ryabin <email address hidden>
Date: Tue Aug 30 14:08:37 2016 +0300

    Fix for mysql usage with non-root access

    Change-Id: Ieae0f86bacadf074200e3b0e2e0c4c21d6778bc2
    Closes-Bug: #1606504

commit 7aadd4265ec3401e7d883f5b01a1870ea5b750ca
Author: Pavel Chechetin <email address hidden>
Date: Tue Aug 30 14:27:48 2016 +0300

    Resolve all current Puppet lint warnings

    Change-Id: I8d1e486fdb25a8d7cf52fdec7b36f7acfa38cbab

commit f9f18276ddf6738f2fab64c3c609d68e30889706
Author: Pavel Chechetin <email address hidden>
Date: Tue Aug 30 14:21:16 2016 +0300

    Start testing Puppet related code by CI

    Change-Id: I12aa288f4613b69d332e448c3a50f0c36de139ea

commit...

Read more...

tags: added: in-stable-mitaka
Revision history for this message
Vladimir Khlyunev (vkhlyunev) wrote :

snapshot 251 - upgrade of full control plane works from nova side

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-octane ocata-eol

This issue was fixed in the openstack/fuel-octane ocata-eol release.

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.