get_binary_name should returns strings without spaces
Bug #1404250 reported by
Cedric Brandily
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Cedric Brandily |
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.
Changed in neutron: | |
assignee: | nobody → venkata anil (anil-venkata) |
Changed in neutron: | |
assignee: | venkata anil (anil-venkata) → Cedric Brandily (cbrandily) |
Changed in neutron: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | kilo-2 → 2015.1.0 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/143108
Review: https:/