[ovs-dev] [python vlog 0/6] Fix Python log rotation
Ben Pfaff
blp at nicira.com
Tue May 1 21:28:35 UTC 2012
The point of this series is to make the OVS Python daemons re-open
their log files after log rotation, so that logs don't get lost
after the second rotation. Along the way, it implements most of the
features of the C version of vlog in the Python version.
Ben Pfaff (6):
tests: Fix Emacs syntax highlighting in vlog.at.
python: Break unixctl implementation into registry, client, and
server.
python: Implement "vlog/reopen" unixctl command in Python vlog.
python: Implement "vlog/set", "vlog/list" unixctl commands in Python
vlog.
vlog: Take advantage of relaxed "-v" syntax through the tree.
Properly reopen python daemon log files after rotation.
debian/openvswitch-switch.logrotate | 9 +-
debian/ovs-monitor-ipsec | 3 +-
lib/vlog.man | 7 +-
python/automake.mk | 4 +-
python/ovs/unixctl/__init__.py | 83 +++++++++++++
python/ovs/unixctl/client.py | 70 +++++++++++
python/ovs/{unixctl.py => unixctl/server.py} | 85 ++------------
python/ovs/vlog.py | 111 ++++++++++++++----
rhel/etc_logrotate.d_openvswitch | 11 +-
tests/appctl.py | 3 +-
tests/interface-reconfigure.at | 4 +-
tests/ofproto.at | 12 +-
tests/ovs-monitor-ipsec.at | 2 +-
tests/ovs-vsctl.at | 14 +-
tests/ovs-xapi-sync.at | 2 +-
tests/test-unixctl.py | 9 ++-
tests/unixctl-py.at | 4 +
tests/vlog.at | 128 +++++++++++++++++++-
utilities/ovs-appctl.8.in | 10 +-
utilities/ovs-ctl.in | 8 +-
vswitchd/ovs-brcompatd.c | 2 +-
xenserver/etc_logrotate.d_openvswitch | 11 +-
.../etc_xapi.d_plugins_openvswitch-cfg-update | 6 +-
xenserver/openvswitch-xen.spec.in | 4 +-
...ensource_libexec_InterfaceReconfigureVswitch.py | 4 +-
..._lib_xsconsole_plugins-base_XSFeatureVSwitch.py | 4 +-
.../usr_share_openvswitch_scripts_ovs-xapi-sync | 3 +-
27 files changed, 452 insertions(+), 161 deletions(-)
create mode 100644 python/ovs/unixctl/__init__.py
create mode 100644 python/ovs/unixctl/client.py
rename python/ovs/{unixctl.py => unixctl/server.py} (75%)
--
1.7.2.5
More information about the dev
mailing list