unable to create new flavors

Bug #1565497 reported by Serguei Bezverkhi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Serguei Bezverkhi
Mitaka
Fix Released
High
Serguei Bezverkhi

Bug Description

running nova flavor-create command fails with the following error:

ERROR (Conflict): Not all flavors have been migrated to the API database (HTTP 409) (Request-ID: req-4bab98c2-cf10-462e-a488-19ab975ee624)

/var/log/kolla/nova/nova-api.log:2016-04-03 16:57:22.172 52 DEBUG nova.api.openstack.wsgi [req-4bab98c2-cf10-462e-a488-19ab975ee624 5b478fa071f7478dac8e6b5aceef0fba 241712c5100f430da17f35458f5a68fa - - -] Action: 'create', calling method: <bound method FlavorManageController._create of <nova.api.openstack.compute.flavor_manage.FlavorManageController object at 0x7842f90>>, body: {"flavor": {"vcpus": 14, "disk": 55, "name": "xrv9k-32G_14xvCPU", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "ram": 32768, "id": null, "swap": 0}} _process_stack /var/lib/kolla/venv/lib/python2.7/site-packages/nova/api/openstack/wsgi.py:696
/var/log/kolla/nova/nova-api.log:2016-04-03 16:57:22.246 52 WARNING nova.objects.flavor [req-4bab98c2-cf10-462e-a488-19ab975ee624 5b478fa071f7478dac8e6b5aceef0fba 241712c5100f430da17f35458f5a68fa - - -] Main database contains 5 unmigrated flavors
/var/log/kolla/nova/nova-api.log:2016-04-03 16:57:22.247 52 INFO nova.api.openstack.wsgi [req-4bab98c2-cf10-462e-a488-19ab975ee624 5b478fa071f7478dac8e6b5aceef0fba 241712c5100f430da17f35458f5a68fa - - -] HTTP exception thrown: Not all flavors have been migrated to the API database
/var/log/kolla/nova/nova-api.log:2016-04-03 16:57:22.248 52 DEBUG nova.api.openstack.wsgi [req-4bab98c2-cf10-462e-a488-19ab975ee624 5b478fa071f7478dac8e6b5aceef0fba 241712c5100f430da17f35458f5a68fa - - -] Returning 409 to user: Not all flavors have been migrated to the API database __call__ /var/lib/kolla/venv/lib/python2.7/site-packages/nova/api/openstack/wsgi.py:1070
/var/log/kolla/nova/nova-api.log:2016-04-03 16:57:22.248 52 INFO nova.osapi_compute.wsgi.server [req-4bab98c2-cf10-462e-a488-19ab975ee624 5b478fa071f7478dac8e6b5aceef0fba 241712c5100f430da17f35458f5a68fa - - -] 192.168.80.24 "POST /v2/241712c5100f430da17f35458f5a68fa/flavors HTTP/1.1" status: 409 len: 324 time: 0.0789909

Steven Dake (sdake)
Changed in kolla:
status: New → Confirmed
importance: Undecided → High
milestone: none → newton-1
assignee: nobody → Serguei Bezverkhi (sbezverk)
Revision history for this message
Steven Dake (sdake) wrote :

I have confirmed this by running the command:
nova flavor-create xrv9k-32G_14xvCPU auto 32768 55 14
ERROR (Conflict): Not all flavors have been migrated to the API database (HTTP 409) (Request-ID: req-843c7d2b-a80e-4421-a3b9-b7140b361c22)

note this bug: https://bugs.launchpad.net/nova/+bug/1511466

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

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

Changed in kolla:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/300904
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=7676b079e6b812b16ac63d753d27853e75732d69
Submitter: Jenkins
Branch: master

commit 7676b079e6b812b16ac63d753d27853e75732d69
Author: Serguei Bezverkhi <email address hidden>
Date: Sun Apr 3 17:35:25 2016 -0400

    Adds migration step from nova to nova_api database

    This patch adds a missing required step to migrate information from the nova
    to the new nova_api database.

    Closes-Bug: #1565497

    Change-Id: Ia1554e12c688e5a6509af2d37f1825fd4ab666be
    Co-Authored-By: Steven Dake <email address hidden>

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
Swapnil Kulkarni (coolsvap-deactivatedaccount) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/mitaka)

Reviewed: https://review.openstack.org/302931
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=d3f771c841f93069f3e801320f0f40363c0ab85a
Submitter: Jenkins
Branch: stable/mitaka

commit d3f771c841f93069f3e801320f0f40363c0ab85a
Author: Serguei Bezverkhi <email address hidden>
Date: Sun Apr 3 17:35:25 2016 -0400

    Adds migration step from nova to nova_api database

    This patch adds a missing required step to migrate information from the nova
    to the new nova_api database.

    Closes-Bug: #1565497

    Change-Id: Ia1554e12c688e5a6509af2d37f1825fd4ab666be
    Co-Authored-By: Steven Dake <email address hidden>
    (cherry picked from commit 7676b079e6b812b16ac63d753d27853e75732d69)

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/kolla 2.0.0.0rc4

This issue was fixed in the openstack/kolla 2.0.0.0rc4 release candidate.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 2.0.0

This issue was fixed in the openstack/kolla 2.0.0 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 1.1.0

This issue was fixed in the openstack/kolla 1.1.0 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 3.0.0.0b1

This issue was fixed in the openstack/kolla 3.0.0.0b1 development milestone.

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.