Description of problem: Quota tables are not present when Cisco N1KV plugin is loaded with neutron. Missing quota tables affected multiple such plugins and cisco N1KV plugin is one of them. The bug was resolved upstream by the community. Reference bug id 1207402.
Created attachment 931648 [details] Email thread Email thread between Cisco and RedHat on this issue
From a thread on the cisco list, the relevant part is - https://review.openstack.org/#/c/40296/32/neutron/db/migration/alembic_migrations/common_ext_ops.py Abhishek Raut - Can you please confirm this is the only thing that is needed. Can we please get a link to the u/s patch in stable Icehouse so we can cherry-pick it to the product.
In addition to the above fix, the following two changes also need to be ported for the fix to work. https://review.openstack.org/#/c/40296/32/neutron/db/migration/alembic_migrations/versions/folsom_initial.py https://review.openstack.org/#/c/51991/1/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py This bug has not been ported to stable/icehouse because it is a part of a big database cleanup change (https://bugs.launchpad.net/neutron/+bug/1207402) which will not be backported in stable/icehouse. But for quota table to be populated in database for stable/icehouse we need the above three changes. One option is to open up a bug against stable/icehouse branch and fix it there and then cherrypick it to the product.
(In reply to Abhishek Raut from comment #4) > > But for quota table to be populated in database for stable/icehouse we need > the above three changes. > One option is to open up a bug against stable/icehouse branch and fix it > there and then cherrypick it to the product. That would be a very good path to take. Please update this bug when you report the bug against stable/Icehouse and send a patch which includes all 3 fixes we need (It doesn't have to be in a single patch). Ihar, once Abhishek Raut send such a patch can you please review it and asses the risk/help him get it merged. Kuba can you please review the patch as well when it is available.
Setting NEEDINFO to the reporter. Once you backport the fixes in upstream, please provide the links to backports and clear NEEDINFO flag to inform us about backported patches being available for cherry-picking.
Review link for creation of quota tables as part of folsom_initial in stable/icehouse -> https://review.openstack.org/#/c/124026/ Review link for quota support in n1kv monolithic plugin in stable/icehouse -> https://review.openstack.org/#/c/125531/
As per Abhishek from Cisco, only one of the patches are included in the build, but they are ok with it. We'll backport the second auxiliary part later, but the quota tables should still be created by neutron server on startup.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2014-1786.html