← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1554922] Re: External DNS driver fails with Python 3.4 with an index computed with a division operation when slicing a string

 

Reviewed:  https://review.openstack.org/290303
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=2dc6cb7b8d60171eb6c9edb395b3476a35c1eab2
Submitter: Jenkins
Branch:    master

commit 2dc6cb7b8d60171eb6c9edb395b3476a35c1eab2
Author: Miguel Lavalle <malavall@xxxxxxxxxx>
Date:   Wed Mar 9 06:39:51 2016 +0000

    Fixes external DNS driver failure with Python 3.4
    
    The external DNS driver uses an index computed with a division to slice strings
    when calculating PTR records. In Python 3.4, this division returns a float
    instead of an int, which causes the slice operation to fail leading to Python
    3.4 unit tests to fail in Jenkins
    
    Change-Id: I15ec039a095e00db9087b67557f9fab997e48648
    Closes-Bug: 1554922


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

Title:
  External DNS driver fails with Python 3.4 with an index computed with
  a division operation  when slicing a string

Status in neutron:
  Fix Released

Bug description:
  The external DNS driver for Designate has method
  _get_in_addr_zone_name that utilizes a division operation to compute
  an index to slice a string. The string slicing fails if the index is
  not explicitly converted to int in python 3.4

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


References