<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openvswitch.git/python, branch branch-2.0</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: Catch setsockopt exceptions for TCP stream.</title>
<updated>2018-12-20T18:12:53+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=d8bd74950c0dec18f350a99fe89bfdf14543013f'/>
<id>d8bd74950c0dec18f350a99fe89bfdf14543013f</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>vlog: Fix formatting of milliseconds in Python log messages.</title>
<updated>2013-09-17T20:57:03+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@nicira.com</email>
</author>
<published>2013-09-16T22:15:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=75ab5755897d3deda272fbc57ba4cf924e05d8ff'/>
<id>75ab5755897d3deda272fbc57ba4cf924e05d8ff</id>
<content type='text'>
Commit 2b31d8e713de7 (vlog: Report timestamps in millisecond resolution in
log messages.) introduced milliseconds to log messages by default, but the
Python version did not ensure that milliseconds were always formatted with
3 digits, so 3.001 was formatted as "3.1" and 3.012 as "3.12", and so on.
This commit fixes the problem.

CC: Paul Ingram &lt;paul@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 2b31d8e713de7 (vlog: Report timestamps in millisecond resolution in
log messages.) introduced milliseconds to log messages by default, but the
Python version did not ensure that milliseconds were always formatted with
3 digits, so 3.001 was formatted as "3.1" and 3.012 as "3.12", and so on.
This commit fixes the problem.

CC: Paul Ingram &lt;paul@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vlog: Report timestamps in millisecond resolution in log messages.</title>
<updated>2013-09-17T20:55:55+00:00</updated>
<author>
<name>Paul Ingram</name>
<email>pingram@nicira.com</email>
</author>
<published>2013-09-13T01:19:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=45739ed1153f99471ca4c68b1a9576dcfdb6e497'/>
<id>45739ed1153f99471ca4c68b1a9576dcfdb6e497</id>
<content type='text'>
To make debugging easier.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Signed-off-by: Paul Ingram &lt;pingram@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To make debugging easier.

Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Signed-off-by: Paul Ingram &lt;pingram@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix misspellings in comments and docs.</title>
<updated>2013-06-05T04:53:33+00:00</updated>
<author>
<name>Andy Hill</name>
<email>hillad@gmail.com</email>
</author>
<published>2013-06-04T22:35:36+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=ec9f40dce11c7e81bc41d42e3bbfaaf8287165ce'/>
<id>ec9f40dce11c7e81bc41d42e3bbfaaf8287165ce</id>
<content type='text'>
Flagged with: https://github.com/lyda/misspell-check
Run with: git ls-files | misspellings -f -

Signed-off-by: Andy Hill &lt;hillad@gmail.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Flagged with: https://github.com/lyda/misspell-check
Run with: git ls-files | misspellings -f -

Signed-off-by: Andy Hill &lt;hillad@gmail.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python: fix a typo error in python/ovs/socket_util.py.</title>
<updated>2013-04-18T16:59:29+00:00</updated>
<author>
<name>Alex Wang</name>
<email>alexw@nicira.com</email>
</author>
<published>2013-04-18T00:35:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=369932c66045542ff6c3d93c581cba09bc8c0977'/>
<id>369932c66045542ff6c3d93c581cba09bc8c0977</id>
<content type='text'>
The commit 89d7ffa9 (python: Workaround UNIX socket path
length limits), fixes most failed tests. But it has a
typo and the typo causes the failure of test &lt;unixctl
server errors - Python&gt; when the path length is very
long (e.g. more than 90 characters).

This patch fixes the above issue.

Signed-off-by: Alex Wang &lt;alexw@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The commit 89d7ffa9 (python: Workaround UNIX socket path
length limits), fixes most failed tests. But it has a
typo and the typo causes the failure of test &lt;unixctl
server errors - Python&gt; when the path length is very
long (e.g. more than 90 characters).

This patch fixes the above issue.

Signed-off-by: Alex Wang &lt;alexw@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python/ovs/poller.py: workaround an eventlet bug</title>
<updated>2013-04-16T16:13:50+00:00</updated>
<author>
<name>YAMAMOTO Takashi</name>
<email>yamamoto@valinux.co.jp</email>
</author>
<published>2013-04-16T06:56:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=73f82807832ef3330188a99016848e9b27aed28b'/>
<id>73f82807832ef3330188a99016848e9b27aed28b</id>
<content type='text'>
Signed-off-by: YAMAMOTO Takashi &lt;yamamoto@valinux.co.jp&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: YAMAMOTO Takashi &lt;yamamoto@valinux.co.jp&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python.ovs.db.idl: Fix Row.delete() of a row already committed to the db.</title>
<updated>2013-04-08T17:44:40+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@nicira.com</email>
</author>
<published>2013-04-08T17:44:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=8d3efc1c0ef61d395573b173fea9e5e5f4e30bc3'/>
<id>8d3efc1c0ef61d395573b173fea9e5e5f4e30bc3</id>
<content type='text'>
Row.delete() handled the case of deleting a row that was added within the
current transaction, but not yet committed, but it did not correctly handle
the case of deleting a row that belonged to the database before the
transaction started.  This fixes the problem.

Reported-by: Yeming Zhao &lt;zhaoyeming@gmail.com&gt;
Tested-by: Yeming Zhao &lt;zhaoyeming@gmail.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Row.delete() handled the case of deleting a row that was added within the
current transaction, but not yet committed, but it did not correctly handle
the case of deleting a row that belonged to the database before the
transaction started.  This fixes the problem.

Reported-by: Yeming Zhao &lt;zhaoyeming@gmail.com&gt;
Tested-by: Yeming Zhao &lt;zhaoyeming@gmail.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>vlog: extend syslog format to make OVS logs easier to filter</title>
<updated>2013-04-05T14:00:22+00:00</updated>
<author>
<name>Romain Lenglet</name>
<email>rlenglet@vmware.com</email>
</author>
<published>2013-04-04T17:42:47+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=ca03aae04af733a32b8dcfd95f38d301ecc80277'/>
<id>ca03aae04af733a32b8dcfd95f38d301ecc80277</id>
<content type='text'>
Prepend "ovs|" to syslog logs to make them easier to filter out of all
LOG_DAEMON logs.

Signed-off-by: Romain Lenglet &lt;rlenglet@vmware.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prepend "ovs|" to syslog logs to make them easier to filter out of all
LOG_DAEMON logs.

Signed-off-by: Romain Lenglet &lt;rlenglet@vmware.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ovsdb-idlc: Make no-op writes to write-only columns cheaper.</title>
<updated>2013-03-06T05:35:41+00:00</updated>
<author>
<name>Ben Pfaff</name>
<email>blp@nicira.com</email>
</author>
<published>2013-03-05T23:30:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=fe19569ac50a7d398e0e44a00fd22b323748de06'/>
<id>fe19569ac50a7d398e0e44a00fd22b323748de06</id>
<content type='text'>
For 1000 tunnels with CFM enabled, this reduces CPU use from
about 36% to about 30%.

Bug #15171.
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Ethan Jackson &lt;ethan@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For 1000 tunnels with CFM enabled, this reduces CPU use from
about 36% to about 30%.

Bug #15171.
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
Acked-by: Ethan Jackson &lt;ethan@nicira.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python: Do not include time stamp in syslog messages.</title>
<updated>2013-02-28T17:44:10+00:00</updated>
<author>
<name>Andy Zhou</name>
<email>azhou@nicira.com</email>
</author>
<published>2013-02-28T03:20:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/openvswitch.git/commit/?id=420f4b467cf8567607de6bf8ca15eb58e48114e4'/>
<id>420f4b467cf8567607de6bf8ca15eb58e48114e4</id>
<content type='text'>
vlog.py currently generates the same log messages, starts with the time stamp
information, for console, syslog and file. All messages start with current
time stamp information.

Syslogd, by default, prepends time stamp with each message already. Thus
the time stamp generated by vlog.py is redundant.

This patch removes time stamp from the message before vlog.py sends it
to syslogd.

Signed-off-by: Andy Zhou &lt;azhou@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
vlog.py currently generates the same log messages, starts with the time stamp
information, for console, syslog and file. All messages start with current
time stamp information.

Syslogd, by default, prepends time stamp with each message already. Thus
the time stamp generated by vlog.py is redundant.

This patch removes time stamp from the message before vlog.py sends it
to syslogd.

Signed-off-by: Andy Zhou &lt;azhou@nicira.com&gt;
Signed-off-by: Ben Pfaff &lt;blp@nicira.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
