Hello community, here is the log from the commit of package python-oslo.rootwrap for openSUSE:Factory checked in at 2014-05-02 14:02:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-oslo.rootwrap (Old) and /work/SRC/openSUSE:Factory/.python-oslo.rootwrap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-oslo.rootwrap" Changes: -------- --- /work/SRC/openSUSE:Factory/python-oslo.rootwrap/python-oslo.rootwrap.changes 2014-03-30 12:25:42.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-oslo.rootwrap.new/python-oslo.rootwrap.changes 2014-05-02 14:02:59.000000000 +0200 @@ -2 +2 @@ -Mon Mar 24 16:41:43 UTC 2014 - dmueller@suse.com +Wed Apr 9 11:04:12 UTC 2014 - dmueller@suse.com @@ -4 +4,11 @@ -- reduce requires +- update to 1.2.0: + * Avoid matching ip -s netns exec in IpFilter + * Don't use system pip things in tox + * Add Python 3 trove classifiers + * To honor RFC5424 add use_syslog_rfc_format config option + * Trivial changes from oslo-incubator + +------------------------------------------------------------------- +Mon Mar 24 16:56:23 UTC 2014 - dmueller@suse.com + +- reduce test requires Old: ---- oslo.rootwrap-1.1.0.tar.gz New: ---- oslo.rootwrap-1.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-oslo.rootwrap.spec ++++++ --- /var/tmp/diff_new_pack.pFGaPL/_old 2014-05-02 14:02:59.000000000 +0200 +++ /var/tmp/diff_new_pack.pFGaPL/_new 2014-05-02 14:02:59.000000000 +0200 @@ -18,7 +18,7 @@ %define component oslo Name: python-oslo.rootwrap -Version: 1.1.0 +Version: 1.2.0 Release: 0 Url: https://launchpad.net/oslo/ Summary: OpenStack RootWrap ++++++ oslo.rootwrap-1.1.0.tar.gz -> oslo.rootwrap-1.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/AUTHORS new/oslo.rootwrap-1.2.0/AUTHORS --- old/oslo.rootwrap-1.1.0/AUTHORS 2014-01-28 22:01:06.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/AUTHORS 2014-03-24 17:09:38.000000000 +0100 @@ -1,15 +1 @@ -Davanum Srinivas <dims@linux.vnet.ibm.com> -Dina Belova <dbelova@mirantis.com> -Dirk Mueller <dirk@dmllr.de> -Julien Danjou <julien@danjou.info> -Mark McClain <mark.mcclain@dreamhost.com> -Mark McLoughlin <markmc@redhat.com> -Maru Newby <marun@redhat.com> -Monty Taylor <mordred@inaugust.com> -Roman Podolyaka <rpodolyaka@mirantis.com> -Sergey Kraynev <skraynev@mirantis.com> -Sergey Lukjanov <slukjanov@mirantis.com> -Stanislav Kudriashev <skudriashev@griddynamics.com> -Thierry Carrez <thierry@openstack.org> -Yufang Zhang <zhangyufang@360.cn> -Zhongyue Luo <zhongyue.nah@intel.com> + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/ChangeLog new/oslo.rootwrap-1.2.0/ChangeLog --- old/oslo.rootwrap-1.1.0/ChangeLog 2014-01-28 22:01:06.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/ChangeLog 2014-03-24 17:09:38.000000000 +0100 @@ -1,503 +1,58 @@ -commit 42255ccae8f96a906547a20a62eeea6eb4ddb855 -Author: Thierry Carrez <thierry@openstack.org> -Date: Fri Jan 24 15:07:22 2014 -0700 +CHANGES +======= - Discontinue usage of oslo-rootwrap - - Rootwrap should be used from specific console_scripts calling into - oslo.rootwrap.cmd:main, rather than using the specific oslo-rootwrap - wrapper. This matches how nova and cinder now consume oslo.rootwrap, - and ensures a smooth upgrade path. - - This change aligns the documentation and shipped files to match how - oslo.rootwrap should be used now. - - Change-Id: If01b8840c971d1c6d5c88c7698f5d6a2bf8fd5f0 +1.2.0 +----- -commit 6c8c432e1f5388998b608080741e537fe615d0c9 -Merge: 4c499d3 79b4316 -Author: Jenkins <jenkins@review.openstack.org> -Date: Mon Jan 27 20:16:13 2014 +0000 - - Merge "Fix spelling errors in comments" - -commit 4c499d366429f68ff29c7a2f93553b06f3697405 -Author: Thierry Carrez <thierry@openstack.org> -Date: Fri Jan 10 15:38:07 2014 +0100 - - Add missing oslo/__init__.py - - Add the missing oslo/__init__.py, since its absence seems to prevent - devstack's setup.py-develop-from-git install of oslo.rootwrap from - operating correctly. - - Change-Id: I861ae7024554a8ba9b046c1048eccf1bcea69100 - -commit 79b4316942eeb98b7beb2f3d85e7c2f1a363ff27 -Author: Stanislav Kudriashev <skudriashev@griddynamics.com> -Date: Fri Dec 27 13:40:35 2013 +0200 - - Fix spelling errors in comments - - Change-Id: Icc8f26d8df00e52ef10781c91071356daa799afa - -commit d9edf600e7a4cd91237d2ae8cb584f1b1f1e767d -Author: Thierry Carrez <thierry@openstack.org> -Date: Tue Dec 3 15:51:57 2013 +0100 - - Use oslo-rootwrap in config directory names - - Use oslo-rootwrap rather than oslo.rootwrap in directory names - (/etc/oslo-rootwrap and /usr/share/oslo-rootwrap), as suggested by - Chuck. Since this package is actually consumed through its binary - (oslo-rootwrap) rather than its library (oslo.rootwrap), this is - probably more appropriate. - - Change-Id: I0e249d70937307b5fe116750923c20d487506c97 - -commit b94ef1a017c0925ed3c33682d33617729b3f6bce -Author: Thierry Carrez <thierry@openstack.org> -Date: Mon Dec 2 16:01:16 2013 +0100 - - Ship with etc/oslo.rootwrap instead of etc/oslo - - Ship default configuration file in etc/oslo.rootwrap to encourage best - packaging practices (packagers should deploy rootwrap.conf in - /etc/oslo.rootwrap rather than /etc/oslo/rootwrap or /etc/oslo). - - Also change default filters_path directory from - /etc/oslo.rootwrap/rootwrap.d to /etc/oslo.rootwrap/filters.d - as it avoids redundancy and is more self-explanatory. - - Change-Id: Iadf623571283cba1886bb27a5f55c59ba66c522f - -commit 25cc501f21828620a10dd01ad658febac8dbea7f -Merge: 9238c61 7effec0 -Author: Jenkins <jenkins@review.openstack.org> -Date: Mon Dec 2 13:35:41 2013 +0000 - - Merge "Add a complete README.rst" - -commit 7effec053445f52a520002ed9445980bf39d6bcd -Author: Thierry Carrez <thierry@openstack.org> -Date: Wed Nov 27 15:17:52 2013 +0100 - - Add a complete README.rst - - Document the use of oslo-rootwrap in README.rst, before cutting - a first release. - - This obsoletes https://wiki.openstack.org/wiki/Rootwrap - - Change-Id: Ia7046e5a3c4b5ebdbc1a2d978cb6c6a9e4c69514 - -commit 9238c618fe4483e3aae634d99fcce2e958530eae -Author: Thierry Carrez <thierry@openstack.org> -Date: Wed Nov 27 15:22:57 2013 +0100 - - Add .gitreview for oslo.rootwrap - - Add missing .gitreview for newly-created oslo.rootwrap repo. - - Change-Id: If41bcfe7fd28f0fc1fff4659afb58de4d3ec54ba - -commit fe258e097fbd1f6a1a06fb6ac31d4b338c6d6eca -Author: Thierry Carrez <thierry@openstack.org> -Date: Thu Nov 21 15:18:25 2013 +0100 - - Add standalone project packaging support files - - Add Python packaging support files so that rootwrap can stand on its - own. - -commit d7f323271d7b14f1f912ca6c8736fd6786c4f189 -Author: Thierry Carrez <thierry@openstack.org> -Date: Thu Nov 21 15:09:34 2013 +0100 - - Make Rootwrap python3-compatible - - cmd.py was still using ConfigParser, changed this to use - six.moves.configparser instead (like in wrapper.py). - -commit d2e833795da1e6b8e1ea9fae800d7236227944a4 -Author: Thierry Carrez <thierry@openstack.org> -Date: Thu Nov 21 14:58:19 2013 +0100 - - Make tests not depend on openstack.common stuff - - Tests used to be run within oslo-incubator and therefore reused most of - the facilities there. Now that rootwrap is standalone, it's better if - its tests could run standalone as well. They didn't really need the - extra features anyway. - -commit 1cf9be7c5937d0323399a03ee7cede327841c274 -Author: Thierry Carrez <thierry@openstack.org> -Date: Mon Nov 18 17:33:58 2013 +0100 - - Move files to new locations for oslo-config - -commit 59584649708b16f6b35ad19ea892105e8f59fb4b -Author: Dirk Mueller <dirk@dmllr.de> -Date: Thu Sep 19 21:56:24 2013 +0200 - - Skip hidden files while traversion rootwrap filters - - Hidden files are usually leftovers (like .e.g. .filter.conf~), - don't handle them. - - Change-Id: I194341dfd33632fb8a2e8db89cf74fb79d6aa318 - -commit 202a8cec01c3d00244554eb42707ef965f3a21b6 -Author: Davanum Srinivas <dims@linux.vnet.ibm.com> -Date: Thu Sep 5 23:12:46 2013 -0400 - - Fix os.getlogin() problem with no tty - - Catch OSError(s) from os.getlogin() and fall back to looking at - environment variables to figure out the user's name. The OSError - is thrown where there is no tty for the python process when - os.getlogin() is called. - - Fixes LP: 1221491 - - Change-Id: Id6634921cdf0deb77cf32a5b9101ec475946aa81 - -commit 5389e69bb0079b695863450f7f9f3928b1f3cb9a -Author: Maru Newby <marun@redhat.com> -Date: Sun Sep 1 19:13:53 2013 +0000 - - Send rootwrap exit error message to stderr - - Closes-Bug: #1219530 - Change-Id: Icc2216ddb4611d8a50fc351f9117090c68c6a89e - -commit b5d75e61a000a028bc13618b3cb8776c8609766d -Author: Julien Danjou <julien@danjou.info> -Date: Mon Jul 29 17:05:49 2013 +0200 - - rootwrap: improve Python 3 compatibility - - Change-Id: I83a7aa7e7ebecb287b0f25e5bf510c10779c4ddf - -commit 837849a2db5d10df2b298e3a3cbf43f29fcfd0c4 -Author: Sergey Kraynev <skraynev@mirantis.com> -Date: Mon Aug 19 02:31:59 2013 -0400 - - Replace using tests.utils part2 - - It is the second step to replace using tests.utils with - stack.common.test. - In this patch second part of tests is changed for using - openstack.common.test and added needed fixtures in test classes. - - Change-Id: I81e3ff41827f7153b650255e219ce25cb282507b - bp: common-unit-tests - -commit f9857d912bf8f564c909e0b2e2d7186d393bd8d4 -Author: Zhongyue Luo <zhongyue.nah@intel.com> -Date: Tue Aug 13 20:13:39 2013 +0800 - - Fixes files with wrong bitmode - - Some modules have bitmode 755. Changed to 644 - - Change-Id: I2084779186fcbd5ee2010451531355a0c67897f5 - -commit c1b1e30ba3da6931f993c27c3c1a84b8c146650b -Author: Dirk Mueller <dirk@dmllr.de> -Date: Tue Jul 2 09:28:27 2013 +0200 - - Remove DnsmasqFilter and DeprecatedDnsmasqFilter - - EnvFilter supersedes both, so remove them as all - usages have been converted to EnvFilter. - - Change-Id: I5acb0c924815caae1f96ed2fa6ee8b1f7ed93cf4 - -commit fc41c56f2f6f65f155e3a0ef0335975cb75d8b11 -Author: Dirk Mueller <dirk@dmllr.de> -Date: Tue Jun 11 18:25:20 2013 +0200 - - Handle empty arglists in Filters - - The various filters either asserted or incorrectly - assumed that an empty arglist matched the filter. - Add testcases to avoid regressions. - - Change-Id: If90fbad3d54749ecc645071675402ea2613870a2 - -commit 422081c74e2228a7c3e759b9844c10251f55b0af -Author: Dirk Mueller <dirk@dmllr.de> -Date: Tue Jun 18 19:37:34 2013 +0200 - - Handle empty PATH environment variable - - In locked down environments, PATH might be unavailable - when running rootwrap. - - Change-Id: Ia55514a7d69ab26c2bcf5d1839da1d36aaf46ebc - -commit f60944e404155eb13a28c7c33b70366be452674b -Author: Dirk Mueller <dirk@dmllr.de> -Date: Wed Jun 19 00:08:57 2013 +0200 - - Add IpFilter, IPNetnsExecFilter and EnvFilter - - These filters have been implemented in Quantum before: - - - IpFilter provides support for filtering ip commands - - IpNetnsExecFilter is a chaining command filter that - verifies that the command to be executed by ip netns exec - is covered by other established filters. - - IpNetnsExecFilter has been restricted to ensure that the - filter chains have all matching filters run as the same - user. - - EnvFilter is a new filter derived from CommandFilter - that allows a Command to be optionally prefixed by "env" - and a specific list of environment variables. - - This is intended to replace the specific DnsmasqFilter - and DnsmasqNetnsFilter in the future when all consumers - have been updated. - - Implements bp rootwrap-quantum-features - - Change-Id: I0cf39967126e99a8dc53d21bee824a0fe2f63aa0 - -commit 7cbcbb6c9a41529a0eee7e0c8935d2f7945126a1 -Author: Dirk Mueller <dirk@dmllr.de> -Date: Sat May 18 12:17:59 2013 +0200 - - Handle relative path arguments in Killfilter - - KillFilter currently expects an absolute path - to be specified for the process name to kill. This - is inconvenient when the exact location of the running - binary is not known or differs accross installs. - - Extend KillFilter to accept also commands in $PATH - to be killed if the given argument is not absolute. - - Change-Id: I6b90206b587ff3f949af2c256a78ca21af31867a - -commit 271796b2666d7e336a12f5ee3d132ec9e5c00e4e -Author: Dina Belova <dbelova@mirantis.com> -Date: Mon Jun 3 17:44:55 2013 +0400 - - Enable hacking H404 test. - - H404 - multi line docstring should start with a summary. - - Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd - -commit d24fd1a62159655cd1104be90fcff8a57e77952e -Author: Sergey Lukjanov <slukjanov@mirantis.com> -Date: Sun Jun 2 20:41:20 2013 +0400 - - Enable hacking H402 test - - H402 one line docstring needs punctuation - - Change-Id: Ie848453cace318d8310cdf0234c512f4c1121119 - -commit 04a7cd0a4f3d7fdb7c9ee4d457bb63d1b7adb81c -Author: Yufang Zhang <zhangyufang@360.cn> -Date: Tue May 14 14:58:19 2013 +0800 - - Update KillFilter to stop at '\0' for readlink() function. - - Python's readlink() implementation doesn't stop at '\0' when reading - file path. Thus after dnsmasq upgrade, it may return something like - '/usr/sbin/dnsmasq\03453 (deleted)', while C's or Shell's readlink() - return '/usr/sbin/dnsmasq'. This patch fixes this problem by cutting - the readlink() results with '\0', so that KillFilter could get correct - path. - - Bug 1179793 - - Change-Id: I7354941e0508e019c8c9b63b87ad39f52ccb51ca - -commit 93b19d03c4aa244ab5b759dc0a5d4280b5288bc4 -Author: Thierry Carrez <thierry@openstack.org> -Date: Thu May 9 15:10:56 2013 +0200 - - Stylistic improvements from quantum-rootwrap - - As part of the convergence effort between oslo-rootwrap and - quantum-rootwrap, import stylistic improvements introduced - in quantum-rootwrap, like: - - - HACKING-compliant docstrings - - More elegant return construct from match_filter in filters.py - - Remove overridden use of filters in wrapper.py - - Change-Id: I49a97271b1c385feb25adf4f62add5c71962b5dd - -commit 402e6d594671c8aee72c4e2dc572e0bf90a66786 -Author: Mark McLoughlin <markmc@redhat.com> -Date: Mon Apr 22 14:55:51 2013 +0100 - - Use print_function __future__ import - - Rather than continuing to use the old print statement, use the actual - print function introduced in python 2.6. See: - - http://docs.python.org/2/whatsnew/2.6.html#pep-3105-print-as-a-function - - Change-Id: I059d982d60e13f13e1caf49509c0fe0b18eda723 - -commit 22285ff58af96a4c986156da7304b8655c48c0c6 -Author: Thierry Carrez <thierry@openstack.org> -Date: Mon Apr 22 15:35:19 2013 +0200 - - Revert common logging use in rootwrap - - Revert recent plug of common logging into rootwrap, as it breaks - rootwrap logging. Rootwrap does not make use of oslo logging and oslo - config in order to reduce the surface of code run as root. - - See https://review.openstack.org/#/c/26468/ for discussion. - - Change-Id: I276ade164a902d091f9aafab79bbd4cc189588eb - -commit 8395d37f73cb43f795f4493c1d800f334386fc3c -Author: Dirk Mueller <dirk@dmllr.de> -Date: Mon Apr 22 03:42:48 2013 +0200 - - Improve Python 3.x compatibility - - Mechanical translation of deprecated constructs - to 3.x compatible variants. - - Change-Id: I4988d0ac656903e0d0320aaa8361d4eeb774a0f9 - -commit 97e0c9effb734b0d0b43712c64f50bc9c970bb8d -Author: Zhongyue Luo <zhongyue.nah@intel.com> -Date: Tue Apr 9 13:40:26 2013 +0800 - - Replaces standard logging with common logging - - Common modules can now safely import other common modules - since update.py will automatically install dependencies. - - Change-Id: I0ad12d7e6e623657c40659aca4148439cd03d3fa - -commit 4b7825d576669b9f4adc4438f50e3dd45f4f6c41 -Author: Monty Taylor <mordred@inaugust.com> -Date: Wed Apr 3 11:20:33 2013 -0400 - - Move bin/ scripts to entrypoints. - - Instead of propogating more bin scripts, migrate these to be things - that can be consumed as entrypoints. - - Change-Id: Ic01e0f16fe9e7634708fbb51499ccea3f4f40d63 - -commit deb51b0412c340cdd149a9d6f5db5b5835af683f -Author: Roman Podolyaka <rpodolyaka@mirantis.com> -Date: Fri Mar 29 23:05:52 2013 +0200 - - Add PathFilter to rootwrap. - - PathFilter is a type of filter that allows to check - if path arguments of a command resolve to file system - paths within given directories. - - Fixes bug 1098568. - - Change-Id: Ie2686ad2ff114075c6d8d804031b6e3fa60a43ca - -commit 69d562f8095bd555df391d674ab436137d1c8c52 -Author: Mark McClain <mark.mcclain@dreamhost.com> -Date: Wed Mar 13 14:52:43 2013 -0400 - - update OpenStack, LLC to OpenStack Foundation - - fixes bug 1154745 - - The previous update (https://review.openstack.org/#/c/24103/) missed - header files that contained "OpenStack, LLC". This change corrects the - missed files to reflect the OpenStack Foundation. - - Change-Id: I9c6de265267485ef2c82ea7e6d8643e82134d102 - -commit a97cc5817b1a0b82424b36e492415b3f88ae8b02 -Author: Davanum Srinivas <dims@linux.vnet.ibm.com> -Date: Mon Mar 11 14:49:31 2013 -0400 - - Fix Copyright Headers - Rename LLC to Foundation - - One code change, rest are in headers - - Change-Id: I73f59681358629e1ad74e49d3d3ca13fcb5c2eb1 - -commit f14b0c999d70c85441b6d5f7484de6e1d0c115ea -Author: Monty Taylor <mordred@inaugust.com> -Date: Wed Jan 23 02:48:21 2013 -0500 - - Replaced direct usage of stubout with BaseTestCase. - - BaseTestCase properly hooks stubout into fixtures. Just use that. - - Part of blueprint grizzly-testtools. - - Change-Id: I4bf6b92b9b16d051d8c6ecaf52cf70925848ed8c - -commit b2a29c0a5056fbfbaa7094e9ad6bf8ace1841af6 -Author: Monty Taylor <mordred@inaugust.com> -Date: Tue Jan 22 19:54:57 2013 -0500 - - Use testtools as test base class. - - On the path to testr migration, we need to replace the unittest base classes - with testtools. - Replace tearDown with addCleanup, addCleanup is more resilient than tearDown. - The fixtures library has excellent support for managing and cleaning - tempfiles. Use it. - Replace skip_ with testtools.skipTest - - Part of blueprint grizzly-testtools. - - Change-Id: I45e11bbb1ff9b31f3278d3b016737dcb7850cd98 - -commit 0bfccbbc02c325a46ac45ca9b560fb202da48d25 -Author: Mark McLoughlin <markmc@redhat.com> -Date: Mon Jan 21 13:10:53 2013 +0000 - - Remove unused etc/openstack-common.conf.test - - This is unused since commit e0f57e92 removed the extensions module. - - Change-Id: Ia24d01c42fc9fb2e12eea697d217b30d7d6b2a51 - -commit cecd6480876238c0a985d86840e15b64beec1554 -Author: Monty Taylor <mordred@inaugust.com> -Date: Fri Jan 11 12:01:42 2013 +0100 - - Fix pep8 E125 errors. - - Caesar's wife must be above reproach. - - Change-Id: Iac85a57e71d403360f1567c07c8699057f0772fb - -commit 9bb74cba083aabf6e32f037a007db11ab1658eb3 -Author: Thierry Carrez <thierry@openstack.org> -Date: Wed Dec 19 14:06:12 2012 +0100 - - Move rootwrap code to openstack.common - - Copies current nova-rootwrap code to openstack.common, so that it - can be reused by Cinder and Quantum. - - Implements blueprint common-rootwrap. - - Before it can be used in projects, update.py needs to grow the - capability to deploy files in bin/ and etc/, as well as replacing - a placeholder text by the destination project name in source files - and binary names. - - In this proposed version, the placeholder text is "oslo". - - Change-Id: I8655d5b3cccacd1cc2225aa539339fb478615422 \ No newline at end of file +* Avoid matching ip -s netns exec in IpFilter +* Don't use system pip things in tox +* Add Python 3 trove classifiers +* To honor RFC5424 add use_syslog_rfc_format config option +* Trivial changes from oslo-incubator + +1.1.0 +----- + +* Discontinue usage of oslo-rootwrap +* Add missing oslo/__init__.py +* Fix spelling errors in comments + +1.0.0 +----- + +* Use oslo-rootwrap in config directory names +* Ship with etc/oslo.rootwrap instead of etc/oslo +* Add a complete README.rst +* Add .gitreview for oslo.rootwrap +* Add standalone project packaging support files +* Make Rootwrap python3-compatible +* Make tests not depend on openstack.common stuff +* Move files to new locations for oslo-config +* Skip hidden files while traversion rootwrap filters +* Fix os.getlogin() problem with no tty +* Send rootwrap exit error message to stderr +* rootwrap: improve Python 3 compatibility +* Replace using tests.utils part2 +* Fixes files with wrong bitmode +* Remove DnsmasqFilter and DeprecatedDnsmasqFilter +* Handle empty arglists in Filters +* Handle empty PATH environment variable +* Add IpFilter, IPNetnsExecFilter and EnvFilter +* Handle relative path arguments in Killfilter +* Enable hacking H404 test +* Enable hacking H402 test +* Update KillFilter to stop at '\0' for readlink() function +* Stylistic improvements from quantum-rootwrap +* Use print_function __future__ import +* Revert common logging use in rootwrap +* Improve Python 3.x compatibility +* Replaces standard logging with common logging +* Move bin/ scripts to entrypoints +* Add PathFilter to rootwrap +* update OpenStack, LLC to OpenStack Foundation +* Fix Copyright Headers - Rename LLC to Foundation +* Replaced direct usage of stubout with BaseTestCase +* Use testtools as test base class +* Remove unused etc/openstack-common.conf.test +* Fix pep8 E125 errors +* Move rootwrap code to openstack.common diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/PKG-INFO new/oslo.rootwrap-1.2.0/PKG-INFO --- old/oslo.rootwrap-1.1.0/PKG-INFO 2014-01-28 22:01:06.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/PKG-INFO 2014-03-24 17:09:38.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslo.rootwrap -Version: 1.1.0 +Version: 1.2.0 Summary: Oslo Rootwrap Home-page: https://launchpad.net/oslo Author: OpenStack @@ -111,6 +111,11 @@ Enable logging to syslog. Default value is False. Example: ``use_syslog=True`` + use_syslog_rfc_format + Enable RFC5424 compliant format for syslog (add APP-NAME before MSG part). + Default value is False. Example: + ``use_syslog_rfc_format=True`` + syslog_log_facility Which syslog facility to use for syslog logging. Valid values include `auth`, `authpriv`, `syslog`, `user0`, `user1`... @@ -298,3 +303,5 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/README.rst new/oslo.rootwrap-1.2.0/README.rst --- old/oslo.rootwrap-1.1.0/README.rst 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/README.rst 2014-03-24 17:09:14.000000000 +0100 @@ -103,6 +103,11 @@ Enable logging to syslog. Default value is False. Example: ``use_syslog=True`` +use_syslog_rfc_format + Enable RFC5424 compliant format for syslog (add APP-NAME before MSG part). + Default value is False. Example: + ``use_syslog_rfc_format=True`` + syslog_log_facility Which syslog facility to use for syslog logging. Valid values include `auth`, `authpriv`, `syslog`, `user0`, `user1`... diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/etc/rootwrap.conf.sample new/oslo.rootwrap-1.2.0/etc/rootwrap.conf.sample --- old/oslo.rootwrap-1.1.0/etc/rootwrap.conf.sample 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/etc/rootwrap.conf.sample 2014-03-24 17:09:14.000000000 +0100 @@ -16,6 +16,11 @@ # Default value is False use_syslog=False +# Enable RFC5424 compliant format for syslog (add APP-NAME before MSG part) +# Default value is False - no format changes +# TODO(bogdando) remove or use True after existing syslog format deprecation in J +use_syslog_rfc_format=False + # Which syslog facility to use. # Valid values include auth, authpriv, syslog, user0, user1... # Default value is 'syslog' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/oslo/rootwrap/__init__.py new/oslo.rootwrap-1.2.0/oslo/rootwrap/__init__.py --- old/oslo.rootwrap-1.1.0/oslo/rootwrap/__init__.py 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/oslo/rootwrap/__init__.py 2014-03-24 17:09:14.000000000 +0100 @@ -1,16 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright (c) 2011 OpenStack Foundation. -# All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/oslo/rootwrap/cmd.py new/oslo.rootwrap-1.2.0/oslo/rootwrap/cmd.py --- old/oslo.rootwrap-1.1.0/oslo/rootwrap/cmd.py 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/oslo/rootwrap/cmd.py 2014-03-24 17:09:14.000000000 +0100 @@ -1,5 +1,3 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - # Copyright (c) 2011 OpenStack Foundation. # All Rights Reserved. # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/oslo/rootwrap/filters.py new/oslo.rootwrap-1.2.0/oslo/rootwrap/filters.py --- old/oslo.rootwrap-1.1.0/oslo/rootwrap/filters.py 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/oslo/rootwrap/filters.py 2014-03-24 17:09:14.000000000 +0100 @@ -1,5 +1,3 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - # Copyright (c) 2011 OpenStack Foundation. # All Rights Reserved. # @@ -210,8 +208,10 @@ def match(self, userargs): if userargs[0] == 'ip': - if userargs[1] == 'netns': - return (userargs[2] in ('list', 'add', 'delete')) + # Avoid the 'netns exec' command here + for a, b in zip(userargs[1:], userargs[2:]): + if a == 'netns': + return (b != 'exec') else: return True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/oslo/rootwrap/wrapper.py new/oslo.rootwrap-1.2.0/oslo/rootwrap/wrapper.py --- old/oslo.rootwrap-1.1.0/oslo/rootwrap/wrapper.py 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/oslo/rootwrap/wrapper.py 2014-03-24 17:09:14.000000000 +0100 @@ -1,5 +1,3 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - # Copyright (c) 2011 OpenStack Foundation. # All Rights Reserved. # @@ -15,7 +13,6 @@ # License for the specific language governing permissions and limitations # under the License. - import logging import logging.handlers import os @@ -81,6 +78,13 @@ else: self.use_syslog = False + # use_syslog_rfc_format + if config.has_option("DEFAULT", "use_syslog_rfc_format"): + self.use_syslog_rfc_format = config.getboolean( + "DEFAULT", "use_syslog_rfc_format") + else: + self.use_syslog_rfc_format = False + def setup_syslog(execname, facility, level): rootwrap_logger = logging.getLogger() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/oslo.rootwrap.egg-info/PKG-INFO new/oslo.rootwrap-1.2.0/oslo.rootwrap.egg-info/PKG-INFO --- old/oslo.rootwrap-1.1.0/oslo.rootwrap.egg-info/PKG-INFO 2014-01-28 22:01:06.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/oslo.rootwrap.egg-info/PKG-INFO 2014-03-24 17:09:38.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: oslo.rootwrap -Version: 1.1.0 +Version: 1.2.0 Summary: Oslo Rootwrap Home-page: https://launchpad.net/oslo Author: OpenStack @@ -111,6 +111,11 @@ Enable logging to syslog. Default value is False. Example: ``use_syslog=True`` + use_syslog_rfc_format + Enable RFC5424 compliant format for syslog (add APP-NAME before MSG part). + Default value is False. Example: + ``use_syslog_rfc_format=True`` + syslog_log_facility Which syslog facility to use for syslog logging. Valid values include `auth`, `authpriv`, `syslog`, `user0`, `user1`... @@ -298,3 +303,5 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2.6 Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/setup.cfg new/oslo.rootwrap-1.2.0/setup.cfg --- old/oslo.rootwrap-1.1.0/setup.cfg 2014-01-28 22:01:06.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/setup.cfg 2014-03-24 17:09:38.000000000 +0100 @@ -16,6 +16,8 @@ Programming Language :: Python Programming Language :: Python :: 2.6 Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.3 [files] packages = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/tests/__init__.py new/oslo.rootwrap-1.2.0/tests/__init__.py --- old/oslo.rootwrap-1.1.0/tests/__init__.py 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/tests/__init__.py 2014-03-24 17:09:14.000000000 +0100 @@ -1,15 +0,0 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - -# Copyright 2013 OpenStack Foundation -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/tests/test_rootwrap.py new/oslo.rootwrap-1.2.0/tests/test_rootwrap.py --- old/oslo.rootwrap-1.1.0/tests/test_rootwrap.py 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/tests/test_rootwrap.py 2014-03-24 17:09:14.000000000 +0100 @@ -1,5 +1,3 @@ -# vim: tabstop=4 shiftwidth=4 softtabstop=4 - # Copyright 2011 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may @@ -250,6 +248,17 @@ def test_IpFilter_non_netns(self): f = filters.IpFilter('/sbin/ip', 'root') self.assertTrue(f.match(['ip', 'link', 'list'])) + self.assertTrue(f.match(['ip', '-s', 'link', 'list'])) + self.assertTrue(f.match(['ip', '-s', '-v', 'netns', 'add'])) + self.assertTrue(f.match(['ip', 'link', 'set', 'interface', + 'netns', 'somens'])) + + def test_IpFilter_netns(self): + f = filters.IpFilter('/sbin/ip', 'root') + self.assertFalse(f.match(['ip', 'netns', 'exec', 'foo'])) + self.assertFalse(f.match(['ip', 'netns', 'exec'])) + self.assertFalse(f.match(['ip', '-s', 'netns', 'exec'])) + self.assertFalse(f.match(['ip', '-l', '42', 'netns', 'exec'])) def _test_IpFilter_netns_helper(self, action): f = filters.IpFilter('/sbin/ip', 'root') @@ -346,6 +355,7 @@ self.assertEqual(c.exec_dirs, []) self.assertFalse(config.use_syslog) + self.assertFalse(config.use_syslog_rfc_format) self.assertEqual(config.syslog_log_facility, logging.handlers.SysLogHandler.LOG_SYSLOG) self.assertEqual(config.syslog_log_level, logging.ERROR) @@ -361,6 +371,12 @@ config = wrapper.RootwrapConfig(raw) self.assertTrue(config.use_syslog) + raw.set('DEFAULT', 'use_syslog_rfc_format', 'oui') + self.assertRaises(ValueError, wrapper.RootwrapConfig, raw) + raw.set('DEFAULT', 'use_syslog_rfc_format', 'true') + config = wrapper.RootwrapConfig(raw) + self.assertTrue(config.use_syslog_rfc_format) + raw.set('DEFAULT', 'syslog_log_facility', 'moo') self.assertRaises(ValueError, wrapper.RootwrapConfig, raw) raw.set('DEFAULT', 'syslog_log_facility', 'local0') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/oslo.rootwrap-1.1.0/tox.ini new/oslo.rootwrap-1.2.0/tox.ini --- old/oslo.rootwrap-1.1.0/tox.ini 2014-01-28 22:00:44.000000000 +0100 +++ new/oslo.rootwrap-1.2.0/tox.ini 2014-03-24 17:09:14.000000000 +0100 @@ -1,8 +1,11 @@ [tox] -distribute = False +minversion = 1.6 envlist = py26,py27,py33,pep8 +skipsdist = True [testenv] +usedevelop = True +install_command = pip install -U {opts} {packages} setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org