← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1573857] Re: Neutron-LBaaS v2: Creating a member with a weight between 0 and 1 is defaulted to 0

 

Reviewed:  https://review.openstack.org/336461
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=e19acaef5435de95ca7f06f353429c223076b2c3
Submitter: Jenkins
Branch:    master

commit e19acaef5435de95ca7f06f353429c223076b2c3
Author: Pablo Iranzo Gómez <Pablo.Iranzo@xxxxxxxxxx>
Date:   Fri Jul 1 11:58:13 2016 +0200

    Add integer validation to weight
    
    Closes-Bug: 1573857
    
    Change-Id: I69020295609c5557516f6237ef16965e61f69f68


** 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/1573857

Title:
  Neutron-LBaaS v2: Creating a member with a weight between 0 and 1 is
  defaulted to 0

Status in neutron:
  Fix Released

Bug description:
  1.  Create a load balancer
  2.  Create a listener
  3.  Create a pool from listener.
  4.  Add a member to the pool.  Specify that the weight is 0.1
  5.  Check the response.

  Result:  Request is accepted with a 201.   Checking the response body shows weight as 0
  Expected:  API should throw an error

  Log:
      2016-04-22 22:48:07,678 15492 INFO     [tempest.lib.common.rest_client] Request (TestPorts:test_create_listener_and_member_with_port): 201 POST http://127.0.0.1:9696/v2.0/lbaas/pools/dff98fab-2215-4261-9961-d6835f9a3912/members 0.628s
      2016-04-22 22:48:07,679 15492 DEBUG    [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'X-Auth-Token': '<omitted>', 'Accept': 'application/json'}
              Body: {"member": {"address": "127.0.0.1", "admin_state_up": true, "subnet_id": "3769fa54-5dba-4218-a567-986a15e356f5", "protocol_port": 26681, "weight": 0.1}}
          Response - Headers: {'x-openstack-request-id': 'req-1c4e1dca-31a1-4249-b1ab-8690e4cf5caa', 'connection': 'close', 'status': '201', 'content-length': '257', 'date': 'Fri, 22 Apr 2016 22:48:07 GMT', 'content-type': 'application/json'}
              Body: {"member": {"name": "", "weight": 0, "admin_state_up": true, "subnet_id": "3769fa54-5dba-4218-a567-986a15e356f5", "tenant_id": "96cdef60e53945899707a7bb124a8139", "address": "127.0.0.1", "protocol_port": 26681, "id": "caf79c15-bde5-4742-93b1-717ad2dbdb0c"}}

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1573857/+subscriptions


References