]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix Neutron flavor framework
authorJames Arendt <james.arendt@hp.com>
Tue, 1 Sep 2015 22:27:26 +0000 (15:27 -0700)
committerJames Arendt <james.arendt@hp.com>
Thu, 19 Nov 2015 19:27:05 +0000 (11:27 -0800)
commit6bc53cc7f8dbec729f83caa6f440775ca58410b8
tree6c337af8e39cf62e34ab4a89d97edacfef008d76
parenta93b889ae517d29332848854b0757a92ffb4f76b
Fix Neutron flavor framework

Make flavor service profile store actual driver instead of
hardcoded dummy driver.  Ensure service type on flavor persisted.

Raise ServiceProfileDriverNotFound if non-empty driver is not part
of ServiceTypeManager providers.

Raise ServiceProfileEmpty if profile has neither a driver nor
any metainfo.

Raise InvalidFlavorServiceType if invalid service type passed.

Show flavors associated with a profile, not just profiles associated
with a flavor, to ease diagnosis when ServiceProfileInUse raised.

Create method to extract provider given a flavor for use with
neutron-lbaas plus tests.

Ensure various boolean forms accepted for enabled flag.

To enable in DevStack, add to local.conf:
enable_plugin neutron https://git.openstack.org/openstack/neutron
enable_service q-flavors

Add associated unit tests. Fix tempest api test that used invalid
LOADBALANCERS service type.

Change-Id: I5c22ab655a8e2a2e586c10eae9de9b72db49755f
Implements: blueprint neutron-flavor-framework
14 files changed:
devstack/lib/flavors [new file with mode: 0644]
devstack/plugin.sh
etc/policy.json
neutron/api/v2/attributes.py
neutron/db/flavors_db.py
neutron/extensions/flavors.py
neutron/manager.py
neutron/services/flavors/__init__.py [new file with mode: 0644]
neutron/services/flavors/flavors_plugin.py [new file with mode: 0644]
neutron/tests/api/test_flavors_extensions.py
neutron/tests/etc/policy.json
neutron/tests/unit/extensions/test_flavors.py
neutron/tests/unit/test_manager.py
setup.cfg