Public bug reported:

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

** Affects: neutron
     Importance: High
     Assignee: Kevin Benton (kevinbenton)
         Status: New

** Changed in: neutron
   Importance: Undecided => High

** Changed in: neutron
     Assignee: (unassigned) => Kevin Benton (kevinbenton)

** Changed in: neutron
    Milestone: None => newton-rc1

-- 
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:
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to