yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #56421
[Bug 1621430] Re: L3 flavors handling flavor request incorrectly
Reviewed: https://review.openstack.org/367333
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=b4b12f7ace84bbd62b3365ef05e712d178a1de18
Submitter: Jenkins
Branch: master
commit b4b12f7ace84bbd62b3365ef05e712d178a1de18
Author: Kevin Benton <kevin@xxxxxxxxxx>
Date: Wed Sep 7 22:49:43 2016 -0700
Defer setting 'ha'/'distributed' flags in L3 code
Both DVR and the HA code were setting the 'ha' and 'distributed'
flags in the API body before it was being sent into the core L3
code. This meant that it could not distinguish between
user-requested flags and config-defaults, which is important for
flavor validation.
This patch just adjusts it so they aren't set until after the core
create method is called.
Long term these will be refactored to live in their corresponding
driver anyway and will not need to be responsible for setting these
flags to get them stored in the DB.
Closes-Bug: #1621430
Change-Id: I9945920d5540653cf5b86e8f1a2ba7b073595921
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1621430
Title:
L3 flavors handling flavor request incorrectly
Status in neutron:
Fix Released
Bug description:
When creating a router only specifying a flavor ID, the L3 plugin is
incorrectly assuming both a flavor ID and a distributed attribute were
set because the DVR code populates the API body with the distributed
flag. This results in a validation error like this:
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/opt/stack/neutron/neutron/tests/tempest/api/admin/test_routers_flavors.py", line 65, in test_create_router_with_flavor
router = self.client.create_router('name', flavor_id=flavor['id'])
File "/opt/stack/neutron/neutron/tests/tempest/services/network/json/network_client.py", line 327, in create_router
resp, body = self.post(uri, body)
File "tempest/lib/common/rest_client.py", line 273, in post
return self.request('POST', url, extra_headers, headers, body, chunked)
File "tempest/lib/common/rest_client.py", line 667, in request
resp, resp_body)
File "tempest/lib/common/rest_client.py", line 831, in _error_checker
message=message)
tempest.lib.exceptions.ServerFault: Got server fault
Details: Provider single_node does not support distributed=True
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1621430/+subscriptions
References