<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openvswitch.git/python, branch branch-2.9</title>
<subtitle>github.com: openvswitch/ovs.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/'/>
<entry>
<title>python: Add 'six' to list of install requirements.</title>
<updated>2021-02-01T20:01:44+00:00</updated>
<author>
<name>Thomas Neuman</name>
<email>thomas.neuman@nutanix.com</email>
</author>
<published>2020-10-27T17:39:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=343fb9c3cc302609e94e76eac84f79b3bb88ba07'/>
<id>343fb9c3cc302609e94e76eac84f79b3bb88ba07</id>
<content type='text'>
Fixes: 73eb682edb67 ("python: Fix xmlrpclib imports.")
Signed-off-by: Thomas Neuman &lt;thomas.neuman@nutanix.com&gt;
Signed-off-by: Ilya Maximets &lt;i.maximets@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: 73eb682edb67 ("python: Fix xmlrpclib imports.")
Signed-off-by: Thomas Neuman &lt;thomas.neuman@nutanix.com&gt;
Signed-off-by: Ilya Maximets &lt;i.maximets@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vlog: Better handle syslog handler exceptions.</title>
<updated>2019-03-14T12:15:32+00:00</updated>
<author>
<name>Ilya Maximets</name>
<email>i.maximets@samsung.com</email>
</author>
<published>2019-02-26T13:00:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=11fac545d24c2919a17ce8a230c452623e686b4d'/>
<id>11fac545d24c2919a17ce8a230c452623e686b4d</id>
<content type='text'>
'set_levels_from_string' doesn't check for exceptions that could
happen while opening syslog files or connecting to syslog sockets.

For example, if rsyslog stopped on a system:

  $ test-unixctl.py -vFACILITY:daemon --detach
  Traceback (most recent call last):
    File "../../../../tests/test-unixctl.py", line 90, in &lt;module&gt;
      main()
    File "../../../../tests/test-unixctl.py", line 61, in main
      ovs.vlog.handle_args(args)
    File "python/ovs/vlog.py", line 463, in handle_args
      msg = Vlog.set_levels_from_string(verbose)
    File "python/ovs/vlog.py", line 345, in set_levels_from_string
      Vlog.add_syslog_handler(words[1])
    File "python/ovs/vlog.py", line 321, in add_syslog_handler
      facility=syslog_facility)
    File "/python2.7/logging/handlers.py", line 759, in __init__
      self._connect_unixsocket(address)
    File "/python2.7/logging/handlers.py", line 787, in _connect_unixsocket
      self.socket.connect(address)
    File "/python2.7/socket.py", line 224, in meth
      return getattr(self._sock,name)(*args)
  socket.error: [Errno 111] Connection refused

In this case "/dev/log" file exists, so the check inside
'add_syslog_handler' doesn't help.

We need to catch the exceptions in 'set_levels_from_string' same way
as it done in 'init' function.
Also, we don't really need to check for '/dev/log' existence, because
exception will be catched on the upper layer and properly handled by
disabling the corresponding logger.

Fixes: d69d61c7c175 ("vlog: Ability to override the default log facility.")
Signed-off-by: Ilya Maximets &lt;i.maximets@samsung.com&gt;
Signed-off-by: Simon Horman &lt;simon.horman@netronome.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
'set_levels_from_string' doesn't check for exceptions that could
happen while opening syslog files or connecting to syslog sockets.

For example, if rsyslog stopped on a system:

  $ test-unixctl.py -vFACILITY:daemon --detach
  Traceback (most recent call last):
    File "../../../../tests/test-unixctl.py", line 90, in &lt;module&gt;
      main()
    File "../../../../tests/test-unixctl.py", line 61, in main
      ovs.vlog.handle_args(args)
    File "python/ovs/vlog.py", line 463, in handle_args
      msg = Vlog.set_levels_from_string(verbose)
    File "python/ovs/vlog.py", line 345, in set_levels_from_string
      Vlog.add_syslog_handler(words[1])
    File "python/ovs/vlog.py", line 321, in add_syslog_handler
      facility=syslog_facility)
    File "/python2.7/logging/handlers.py", line 759, in __init__
      self._connect_unixsocket(address)
    File "/python2.7/logging/handlers.py", line 787, in _connect_unixsocket
      self.socket.connect(address)
    File "/python2.7/socket.py", line 224, in meth
      return getattr(self._sock,name)(*args)
  socket.error: [Errno 111] Connection refused

In this case "/dev/log" file exists, so the check inside
'add_syslog_handler' doesn't help.

We need to catch the exceptions in 'set_levels_from_string' same way
as it done in 'init' function.
Also, we don't really need to check for '/dev/log' existence, because
exception will be catched on the upper layer and properly handled by
disabling the corresponding logger.

Fixes: d69d61c7c175 ("vlog: Ability to override the default log facility.")
Signed-off-by: Ilya Maximets &lt;i.maximets@samsung.com&gt;
Signed-off-by: Simon Horman &lt;simon.horman@netronome.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Un-revert Work around Python/C JSON unicode differences</title>
<updated>2019-01-16T16:00:51+00:00</updated>
<author>
<name>Terry Wilson</name>
<email>twilson@redhat.com</email>
</author>
<published>2019-01-14T14:15:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=ab1ec5907f3d32cca8cc347007656771467f4af3'/>
<id>ab1ec5907f3d32cca8cc347007656771467f4af3</id>
<content type='text'>
This fix was reverted because it depended on a small bit of code
in a patch that was reverted that changed some python/ovs testing
and build. The fix is still necessary.

The OVS C-based JSON parser operates on bytes, so the parser_feed
function returns the number of bytes that are processed. The pure
Python JSON parser currently operates on unicode, so it expects
that Parser.feed() returns a number of characters. This difference
leads to parsing errors when unicode characters are passed to the
C JSON parser from Python.

Acked-by: Lucas Alvares Gomes &lt;lucasagomes@gmail.com&gt;
Signed-off-by: Terry Wilson &lt;twilson@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fix was reverted because it depended on a small bit of code
in a patch that was reverted that changed some python/ovs testing
and build. The fix is still necessary.

The OVS C-based JSON parser operates on bytes, so the parser_feed
function returns the number of bytes that are processed. The pure
Python JSON parser currently operates on unicode, so it expects
that Parser.feed() returns a number of characters. This difference
leads to parsing errors when unicode characters are passed to the
C JSON parser from Python.

Acked-by: Lucas Alvares Gomes &lt;lucasagomes@gmail.com&gt;
Signed-off-by: Terry Wilson &lt;twilson@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python: Escape backslashes while formatting logs.</title>
<updated>2019-01-15T17:12:34+00:00</updated>
<author>
<name>Ilya Maximets</name>
<email>i.maximets@samsung.com</email>
</author>
<published>2019-01-15T14:03:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=8d47a48f4b3a55307e1a8204d6062b234836c439'/>
<id>8d47a48f4b3a55307e1a8204d6062b234836c439</id>
<content type='text'>
Since python version 3.7 (and some 3.6+ versions) regexp engine
changed to treat the wrong escape sequences as errors. Previously,
if the replace string had something like '\u0000', '\u' was
qualified as a bad escape sequence and treated just as a sequence
of characters '\' and 'u'. But know this triggers an error:

  Traceback (most recent call last):
    File "/usr/lib/python3.7/sre_parse.py", line 1021, in parse_template
      this = chr(ESCAPES[this][1])
  KeyError: '\\u'

From the documentation [1]:

  Unknown escapes consisting of '\' and an ASCII letter in replacement
  templates for re.sub() were deprecated in Python 3.5, and will now
  cause an error.

[1] https://docs.python.org/3/whatsnew/3.7.html#api-and-feature-removals

We need to escape the backslash by another one to keep regexp engine
from errors. In case of '\\u000', '\\' is a valid escape sequence
and the 'u' is a simple character.

To be 100% safe we need to use 're.escape(replace)', but it escapes
too many characters making the logs hard to read.

This change fixes Python 3 tests on systems with python 3.7.
Should be backward compatible.

Reported-by: Ben Pfaff &lt;blp@ovn.org&gt;
Signed-off-by: Ilya Maximets &lt;i.maximets@samsung.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since python version 3.7 (and some 3.6+ versions) regexp engine
changed to treat the wrong escape sequences as errors. Previously,
if the replace string had something like '\u0000', '\u' was
qualified as a bad escape sequence and treated just as a sequence
of characters '\' and 'u'. But know this triggers an error:

  Traceback (most recent call last):
    File "/usr/lib/python3.7/sre_parse.py", line 1021, in parse_template
      this = chr(ESCAPES[this][1])
  KeyError: '\\u'

From the documentation [1]:

  Unknown escapes consisting of '\' and an ASCII letter in replacement
  templates for re.sub() were deprecated in Python 3.5, and will now
  cause an error.

[1] https://docs.python.org/3/whatsnew/3.7.html#api-and-feature-removals

We need to escape the backslash by another one to keep regexp engine
from errors. In case of '\\u000', '\\' is a valid escape sequence
and the 'u' is a simple character.

To be 100% safe we need to use 're.escape(replace)', but it escapes
too many characters making the logs hard to read.

This change fixes Python 3 tests on systems with python 3.7.
Should be backward compatible.

Reported-by: Ben Pfaff &lt;blp@ovn.org&gt;
Signed-off-by: Ilya Maximets &lt;i.maximets@samsung.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python: Catch setsockopt exceptions for TCP stream.</title>
<updated>2018-12-20T18:11:56+00:00</updated>
<author>
<name>Ilya Maximets</name>
<email>i.maximets@samsung.com</email>
</author>
<published>2018-12-20T17:35:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=72b79601b1298c70b2976b37dbc7e875611204ad'/>
<id>72b79601b1298c70b2976b37dbc7e875611204ad</id>
<content type='text'>
'sock.setsockopt' could throw exceptions. For example, if non-blocking
connection failed before the call:

  Traceback (most recent call last):
    File "../.././test-ovsdb.py", line 896, in &lt;module&gt;
      main(sys.argv)
    File "../.././test-ovsdb.py", line 891, in main
      func(*args)
    File "../.././test-ovsdb.py", line 604, in do_idl
      ovs.stream.Stream.open(r))
    File "/root/git_/ovs/python/ovs/stream.py", line 190, in open
      error, sock = cls._open(suffix, dscp)
    File "/root/git_/ovs/python/ovs/stream.py", line 744, in _open
      sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
    File "/usr/local/lib/python2.7/socket.py", line 228, in meth
      return getattr(self._sock,name)(*args)
  socket.error: [Errno 54] Connection reset by peer

This fixes tests on FreeBSD.

Signed-off-by: Ilya Maximets &lt;i.maximets@samsung.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
'sock.setsockopt' could throw exceptions. For example, if non-blocking
connection failed before the call:

  Traceback (most recent call last):
    File "../.././test-ovsdb.py", line 896, in &lt;module&gt;
      main(sys.argv)
    File "../.././test-ovsdb.py", line 891, in main
      func(*args)
    File "../.././test-ovsdb.py", line 604, in do_idl
      ovs.stream.Stream.open(r))
    File "/root/git_/ovs/python/ovs/stream.py", line 190, in open
      error, sock = cls._open(suffix, dscp)
    File "/root/git_/ovs/python/ovs/stream.py", line 744, in _open
      sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
    File "/usr/local/lib/python2.7/socket.py", line 228, in meth
      return getattr(self._sock,name)(*args)
  socket.error: [Errno 54] Connection reset by peer

This fixes tests on FreeBSD.

Signed-off-by: Ilya Maximets &lt;i.maximets@samsung.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python-c-ext: Fix memory leak in Parser_finish</title>
<updated>2018-10-31T17:35:29+00:00</updated>
<author>
<name>Eric Lapointe</name>
<email>elapointe@corsa.com</email>
</author>
<published>2018-10-31T16:11:42+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=99b7cf4d690fc8d3d07ba5c64f25267de5e5cc45'/>
<id>99b7cf4d690fc8d3d07ba5c64f25267de5e5cc45</id>
<content type='text'>
The memory returned by json_parser_finish needs to be freed by the caller.

Signed-off-by: Eric Lapointe &lt;elapointe@corsa.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The memory returned by json_parser_finish needs to be freed by the caller.

Signed-off-by: Eric Lapointe &lt;elapointe@corsa.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Work around Python/C JSON unicode differences"</title>
<updated>2018-10-15T21:44:37+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@ovn.org</email>
</author>
<published>2018-10-15T21:42:15+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=bcd2fa997da2173fa4075af50474d1278e7d4396'/>
<id>bcd2fa997da2173fa4075af50474d1278e7d4396</id>
<content type='text'>
This reverts commit fdf76010bf1b3c95bafd1cb02c7b06b231bfad70.
The commit caused large numbers of test failures like the following:

../../tests/unixctl-py.at:19: $PYTHON2 $srcdir/appctl.py --timeout 20 -t ovs-vswitchd exit
--- /dev/null	2018-10-15 18:36:00.316000000 +0000
+++ /home/travis/build/openvswitch/ovs/openvswitch-2.10.1/_build/tests/testsuite.dir/at-groups/554/stderr	2018-10-15 20:58:09.726902864 +0000
@@ -0,0 +1,14 @@
+Traceback (most recent call last):
+  File "../../../../tests/appctl.py", line 75, in &lt;module&gt;
+    main()
+  File "../../../../tests/appctl.py", line 60, in main
+    err_no, error, result = client.transact(args.command, args.argv)
+  File "/home/travis/build/openvswitch/ovs/openvswitch-2.10.1/python/ovs/unixctl/client.py", line 39, in transact
+    error, reply = self._conn.transact_block(request)
+  File "/home/travis/build/openvswitch/ovs/openvswitch-2.10.1/python/ovs/jsonrpc.py", line 333, in transact_block
+    error, reply = self.recv_block()
+  File "/home/travis/build/openvswitch/ovs/openvswitch-2.10.1/python/ovs/jsonrpc.py", line 316, in recv_block
+    error, msg = self.recv()
+  File "/home/travis/build/openvswitch/ovs/openvswitch-2.10.1/python/ovs/jsonrpc.py", line 275, in recv
+    if six.PY3 or ovs.json.PARSER == ovs.json.PARSER_PY:
+AttributeError: 'module' object has no attribute 'PARSER'
../../tests/unixctl-py.at:19: exit code was 1, expected 0

See, e.g. https://api.travis-ci.org/v3/job/441866429/log.txt

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit fdf76010bf1b3c95bafd1cb02c7b06b231bfad70.
The commit caused large numbers of test failures like the following:

../../tests/unixctl-py.at:19: $PYTHON2 $srcdir/appctl.py --timeout 20 -t ovs-vswitchd exit
--- /dev/null	2018-10-15 18:36:00.316000000 +0000
+++ /home/travis/build/openvswitch/ovs/openvswitch-2.10.1/_build/tests/testsuite.dir/at-groups/554/stderr	2018-10-15 20:58:09.726902864 +0000
@@ -0,0 +1,14 @@
+Traceback (most recent call last):
+  File "../../../../tests/appctl.py", line 75, in &lt;module&gt;
+    main()
+  File "../../../../tests/appctl.py", line 60, in main
+    err_no, error, result = client.transact(args.command, args.argv)
+  File "/home/travis/build/openvswitch/ovs/openvswitch-2.10.1/python/ovs/unixctl/client.py", line 39, in transact
+    error, reply = self._conn.transact_block(request)
+  File "/home/travis/build/openvswitch/ovs/openvswitch-2.10.1/python/ovs/jsonrpc.py", line 333, in transact_block
+    error, reply = self.recv_block()
+  File "/home/travis/build/openvswitch/ovs/openvswitch-2.10.1/python/ovs/jsonrpc.py", line 316, in recv_block
+    error, msg = self.recv()
+  File "/home/travis/build/openvswitch/ovs/openvswitch-2.10.1/python/ovs/jsonrpc.py", line 275, in recv
+    if six.PY3 or ovs.json.PARSER == ovs.json.PARSER_PY:
+AttributeError: 'module' object has no attribute 'PARSER'
../../tests/unixctl-py.at:19: exit code was 1, expected 0

See, e.g. https://api.travis-ci.org/v3/job/441866429/log.txt

Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Work around Python/C JSON unicode differences</title>
<updated>2018-10-12T15:37:18+00:00</updated>
<author>
<name>Terry Wilson</name>
<email>twilson@redhat.com</email>
</author>
<published>2018-10-09T16:31:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=244bed70895c812ca954fb36b7a47dcec687cfdf'/>
<id>244bed70895c812ca954fb36b7a47dcec687cfdf</id>
<content type='text'>
The OVS C-based JSON parser operates on bytes, so the parser_feed
function returns the number of bytes that are processed. The pure
Python JSON parser currently operates on unicode, so it expects
that Parser.feed() returns a number of characters. This difference
leads to parsing errors when unicode characters are passed to the
C JSON parser from Python.

Signed-off-by: Terry Wilson &lt;twilson@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Lucas Alvares Gomes &lt;lucasagomes@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The OVS C-based JSON parser operates on bytes, so the parser_feed
function returns the number of bytes that are processed. The pure
Python JSON parser currently operates on unicode, so it expects
that Parser.feed() returns a number of characters. This difference
leads to parsing errors when unicode characters are passed to the
C JSON parser from Python.

Signed-off-by: Terry Wilson &lt;twilson@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Lucas Alvares Gomes &lt;lucasagomes@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Python: Make Row's __getattr__ less error prone</title>
<updated>2018-10-06T00:43:15+00:00</updated>
<author>
<name>Lucas Alvares Gomes</name>
<email>lucasagomes@gmail.com</email>
</author>
<published>2018-10-05T15:31:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=ed83d6b551adaa24eeb83fd174cd0c0c2dc2ffea'/>
<id>ed83d6b551adaa24eeb83fd174cd0c0c2dc2ffea</id>
<content type='text'>
Calling getattr() on a Row object after invoking delkey() with a value
that does not exist in the object will cause getattr() to fail with a
KeyError error. For example:

Oct 05 14:59:28 neutron-server[28435]:   File
"/usr/local/lib/python2.7/dist-packages/ovsdbapp/backend/ovs_idl/connection.py",
line 122, in run
Oct 05 14:59:28 neutron-server[28435]:
txn.results.put(txn.do_commit())
Oct 05 14:59:28 neutron-server[28435]:   File
"/usr/local/lib/python2.7/dist-packages/ovsdbapp/backend/ovs_idl/transaction.py",
line 86, in do_commit
Oct 05 14:59:28 neutron-server[28435]:     command.run_idl(txn)
Oct 05 14:59:28 neutron-server[28435]:   File
"/usr/local/lib/python2.7/dist-packages/ovsdbapp/backend/ovs_idl/command.py",
line 299, in run_idl
Oct 05 14:59:28 neutron-server[28435]:     if
isinstance(getattr(record, self.column), dict):
Oct 05 14:59:28 neutron-server[28435]:   File
"/usr/local/lib/python2.7/dist-packages/ovs/db/idl.py", line 843, in
__getattr__
Oct 05 14:59:28 neutron-server[28435]:     del dmap[key]
Oct 05 14:59:28 neutron-server[28435]: KeyError: 'bogusvalue'

This patch is replacing the "del dmap[key]" instruction with a
"dmap.pop(key, None)" instruction instead because a pop() (with a
default value) will not raise an exception in case the key does not
exist in the object in the first place, it will just ignore it.

Signed-off-by: Lucas Alvares Gomes &lt;lucasagomes@gmail.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calling getattr() on a Row object after invoking delkey() with a value
that does not exist in the object will cause getattr() to fail with a
KeyError error. For example:

Oct 05 14:59:28 neutron-server[28435]:   File
"/usr/local/lib/python2.7/dist-packages/ovsdbapp/backend/ovs_idl/connection.py",
line 122, in run
Oct 05 14:59:28 neutron-server[28435]:
txn.results.put(txn.do_commit())
Oct 05 14:59:28 neutron-server[28435]:   File
"/usr/local/lib/python2.7/dist-packages/ovsdbapp/backend/ovs_idl/transaction.py",
line 86, in do_commit
Oct 05 14:59:28 neutron-server[28435]:     command.run_idl(txn)
Oct 05 14:59:28 neutron-server[28435]:   File
"/usr/local/lib/python2.7/dist-packages/ovsdbapp/backend/ovs_idl/command.py",
line 299, in run_idl
Oct 05 14:59:28 neutron-server[28435]:     if
isinstance(getattr(record, self.column), dict):
Oct 05 14:59:28 neutron-server[28435]:   File
"/usr/local/lib/python2.7/dist-packages/ovs/db/idl.py", line 843, in
__getattr__
Oct 05 14:59:28 neutron-server[28435]:     del dmap[key]
Oct 05 14:59:28 neutron-server[28435]: KeyError: 'bogusvalue'

This patch is replacing the "del dmap[key]" instruction with a
"dmap.pop(key, None)" instruction instead because a pop() (with a
default value) will not raise an exception in case the key does not
exist in the object in the first place, it will just ignore it.

Signed-off-by: Lucas Alvares Gomes &lt;lucasagomes@gmail.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add ovs.compat module to python package</title>
<updated>2018-08-31T19:47:41+00:00</updated>
<author>
<name>Terry Wilson</name>
<email>twilson@redhat.com</email>
</author>
<published>2018-08-31T18:40:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=f18adea51cac4f40c50d59d7c001264a8ce83cb3'/>
<id>f18adea51cac4f40c50d59d7c001264a8ce83cb3</id>
<content type='text'>
Signed-off-by: Terry Wilson &lt;twilson@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Timothy Redaelli &lt;tredaelli@redhat.com&gt;
(cherry picked from commit 2360464d629de3acacabd960ffc02fbb5081028d)
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Terry Wilson &lt;twilson@redhat.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
Acked-by: Timothy Redaelli &lt;tredaelli@redhat.com&gt;
(cherry picked from commit 2360464d629de3acacabd960ffc02fbb5081028d)
Signed-off-by: Ben Pfaff &lt;blp@ovn.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
