← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1404250] [NEW] get_binary_name should returns strings without spaces

 

Public bug reported:

get_binary_name() generates a string from sys.argv[0] which could contains spaces: 
 * python -m unittest whatever implies sys.argv[0] = "python -m unittest" and get_binary_name == 'python -m unitte'

But  iptables does not support spaces in chain name ... and get_binary_name() is used as prefix in chain name by iptables_manager
 *  python -m unittest whatever implies incorrect iptables chain definition: iptables -N python -m unittest.


It typically brakes functional tests runned using python -m unittest $class.

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: l3-ipam-dhcp

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1404250

Title:
  get_binary_name should returns strings without spaces

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  get_binary_name() generates a string from sys.argv[0] which could contains spaces: 
   * python -m unittest whatever implies sys.argv[0] = "python -m unittest" and get_binary_name == 'python -m unitte'

  But  iptables does not support spaces in chain name ... and get_binary_name() is used as prefix in chain name by iptables_manager
   *  python -m unittest whatever implies incorrect iptables chain definition: iptables -N python -m unittest.

  
  It typically brakes functional tests runned using python -m unittest $class.

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


Follow ups

References