neutron/neutron/agent
John Schwarz 3c1bf8697b Don't depend on translated strings for error check
Currently, execute() may raise an exception that contains a *translated*
string that starts with 'Exit code: %(returncode)d...' if the returncode
of a process was not 0. find_child_pids() will then check if the
raised exception contains 'Exit code: 1' (to check if the returncode is
1), but in non-English locales this will fail as the 2 strings are not
encoded the same.

This patch adds a new ProcessExecutionError (which inherits from
RuntimeError, so as to not change all the code that currently depends on
execute() returning RuntimeError) which now accepts a returncode. This
can be changed explicitly without depending on the error message.

Later patches can move ProcessExecutionError to neutron-lib, if this is
needed - this patch intends to write the smallest piece of code that can
be backported.

Closes-Bug: #1638273
Change-Id: I85d3bec13e852918eb13e73c1367c70e1f4d34b1
2016-11-01 14:39:09 +02:00
..
common Replace retrying with tenacity 2016-10-20 13:43:40 -06:00
dhcp Fixes for missing IPs on subnets in DHCP agent 2016-09-25 02:12:35 -07:00
l2 neutron-lib: start using neutron-lib helpers 2016-10-10 01:30:26 -07:00
l3 Merge "Rename ipv6_utils.is_enabled()" 2016-10-27 23:14:55 +00:00
linux Don't depend on translated strings for error check 2016-11-01 14:39:09 +02:00
metadata neutron-lib: use cpu_count 2016-10-12 23:34:40 -07:00
ovsdb Replace retrying with tenacity 2016-10-20 13:43:40 -06:00
windows Merge "Reuse to_utf8() and jsonutils.dump_as_bytes()" 2016-04-15 23:40:59 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
agent_extension.py Generalize agent extension mechanism 2016-07-19 13:45:22 +00:00
agent_extensions_manager.py Fix typo in comment 2016-10-05 01:27:11 +00:00
dhcp_agent.py Refactoring config options for dhcp agent 2016-07-06 17:24:23 +00:00
firewall.py Use ICMPV6_TYPE_* constants from neutron-lib 2016-05-28 07:53:35 -07:00
l3_agent.py Refactoring config options for l3 ha agent opts 2016-09-30 15:00:42 -05:00
metadata_agent.py Switch to oslo.cache 2016-06-02 15:22:36 +00:00
rpc.py Don't use exponential back-off for report_state 2016-07-28 14:54:19 +03:00
securitygroups_rpc.py Cleanup of SecurityGroup classes 2016-10-13 15:38:38 +00:00