Reviewed:  https://review.openstack.org/568674
Committed: 
https://git.openstack.org/cgit/openstack/neutron/commit/?id=f3f2436d6db724126e5611d632b7d1efe309a2af
Submitter: Zuul
Branch:    master

commit f3f2436d6db724126e5611d632b7d1efe309a2af
Author: Jakub Libosvar <[email protected]>
Date:   Tue May 15 19:00:03 2018 +0000

    py3: Fix ingress_bw_limit_for_dpdk_port() value conversion
    
    Python 3 is not able to type int from string but max_bw_in_bytes is a
    string in float format. This patch types first to float and then to int,
    hence no ValueError is raised.
    
    Change-Id: I7a527a58f79c1451d8593330d433f620cb0a4107
    Closes-bug: #1771409


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

Title:
  test_ingress_bw_limit_dpdk_port functional test fails with python3

Status in neutron:
  Fix Released

Bug description:
    File "/opt/stack/new/neutron/neutron/tests/base.py", line 140, in func
      return f(self, *args, **kwargs)
    File 
"/opt/stack/new/neutron/neutron/tests/functional/agent/test_ovs_lib.py", line 
430, in test_ingress_bw_limit_dpdk_port
      port_name)
    File "/opt/stack/new/neutron/neutron/agent/common/ovs_lib.py", line 865, in 
get_ingress_bw_limit_for_dpdk_port
      common_utils.bytes_to_bits(int(max_bw_in_bytes)),
  ValueError: invalid literal for int() with base 10: '87500.0'

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to