Hello community,

here is the log from the commit of package python-oslo.rootwrap for 
openSUSE:Factory checked in at 2019-05-03 22:42:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.rootwrap (Old)
 and      /work/SRC/openSUSE:Factory/.python-oslo.rootwrap.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oslo.rootwrap"

Fri May  3 22:42:38 2019 rev:9 rq:692864 version:5.15.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-oslo.rootwrap/python-oslo.rootwrap.changes    
    2018-09-07 15:39:07.214554406 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-oslo.rootwrap.new.5148/python-oslo.rootwrap.changes
      2019-05-03 22:42:38.415268459 +0200
@@ -1,0 +2,20 @@
+Mon Apr  8 11:54:38 UTC 2019 - [email protected]
+
+- update to version 5.15.2
+  - Update mailinglist from dev to discuss
+  - Add release note for file descriptor limit change
+  - fix tox python3 overrides
+  - Fix portability issue
+  - Switch to stestr
+  - Run rootwrap with lower fd ulimit by default
+  - Update reno for stable/rocky
+  - Clean up .gitignore references to personal tools
+  - Add release notes link to README
+  - Don't quote {posargs} in tox.ini
+  - Use template for lower-constraints
+  - add lib-forward-testing-python3 test job
+  - add python 3.6 unit test job
+  - add python 3.7 unit test job
+  - import zuul job settings from project-config
+
+-------------------------------------------------------------------

Old:
----
  oslo.rootwrap-5.14.1.tar.gz

New:
----
  oslo.rootwrap-5.15.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-oslo.rootwrap.spec ++++++
--- /var/tmp/diff_new_pack.7OquKj/_old  2019-05-03 22:42:38.907269495 +0200
+++ /var/tmp/diff_new_pack.7OquKj/_new  2019-05-03 22:42:38.911269503 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-oslo.rootwrap
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,18 +12,18 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           python-oslo.rootwrap
-Version:        5.14.1
+Version:        5.15.2
 Release:        0
 Summary:        Filtering shell commands to run as root from OpenStack services
 License:        Apache-2.0
 Group:          Development/Languages/Python
 URL:            https://launchpad.net/oslo.rootwrap
-Source0:        
https://files.pythonhosted.org/packages/source/o/oslo.rootwrap/oslo.rootwrap-5.14.1.tar.gz
+Source0:        
https://files.pythonhosted.org/packages/source/o/oslo.rootwrap/oslo.rootwrap-5.15.2.tar.gz
 BuildRequires:  openstack-macros
 BuildRequires:  python-devel
 BuildRequires:  python2-eventlet
@@ -31,20 +31,16 @@
 BuildRequires:  python2-mock
 BuildRequires:  python2-oslotest
 BuildRequires:  python2-pbr
-BuildRequires:  python2-python-subunit
 BuildRequires:  python2-six >= 1.10.0
-BuildRequires:  python2-testrepository
-BuildRequires:  python2-testscenarios
+BuildRequires:  python2-stestr
 BuildRequires:  python2-testtools
 BuildRequires:  python3-eventlet
 BuildRequires:  python3-fixtures
 BuildRequires:  python3-mock
 BuildRequires:  python3-oslotest
 BuildRequires:  python3-pbr
-BuildRequires:  python3-python-subunit
 BuildRequires:  python3-six >= 1.10.0
-BuildRequires:  python3-testrepository
-BuildRequires:  python3-testscenarios
+BuildRequires:  python3-stestr
 BuildRequires:  python3-testtools
 Requires:       python-six >= 1.10.0
 BuildArch:      noarch
@@ -77,15 +73,14 @@
 Documentation for the OpenStack oslo.rootwrap library.
 
 %prep
-%autosetup -p1 -n oslo.rootwrap-5.14.1
+%autosetup -p1 -n oslo.rootwrap-5.15.2
 %py_req_cleanup
-sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
 
 %build
 %{python_build}
 
 # generate html docs
-PBR_VERSION=5.14.1 sphinx-build -b html doc/source doc/build/html
+PBR_VERSION=5.15.2 sphinx-build -b html doc/source doc/build/html
 rm -rf doc/build/html/.{doctrees,buildinfo}
 
 %install
@@ -101,15 +96,6 @@
 %python_uninstall_alternative oslo-rootwrap
 %python_uninstall_alternative oslo-daemon
 
-%check
-export PYTHONPATH=.
-PYTHON=python2 %{__python2} setup.py testr
-# FIXME(ykarel) Remove the fix test once it works with python3 under root user
-%ifpython3
-rm -rf .testrepository
-PYTHON=python3 %{__python3} setup.py testr --testr-args='^(?!.*test_run_as)'
-%endif
-
 %files %{python_files}
 %license LICENSE
 %doc ChangeLog README.rst

++++++ _service ++++++
--- /var/tmp/diff_new_pack.7OquKj/_old  2019-05-03 22:42:38.951269587 +0200
+++ /var/tmp/diff_new_pack.7OquKj/_new  2019-05-03 22:42:38.951269587 +0200
@@ -1,8 +1,8 @@
 <services>
   <service mode="disabled" name="renderspec">
-    <param 
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/rocky/openstack/oslo.rootwrap/oslo.rootwrap.spec.j2</param>
+    <param 
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/stein/openstack/oslo.rootwrap/oslo.rootwrap.spec.j2</param>
     <param name="output-name">python-oslo.rootwrap.spec</param>
-    <param 
name="requirements">https://raw.githubusercontent.com/openstack/oslo.rootwrap/stable/rocky/requirements.txt</param>
+    <param 
name="requirements">https://raw.githubusercontent.com/openstack/oslo.rootwrap/stable/stein/requirements.txt</param>
     <param name="changelog-email">[email protected]</param>
     <param name="changelog-provider">gh,openstack,oslo.rootwrap</param>
   </service>

++++++ oslo.rootwrap-5.14.1.tar.gz -> oslo.rootwrap-5.15.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/.stestr.conf 
new/oslo.rootwrap-5.15.2/.stestr.conf
--- old/oslo.rootwrap-5.14.1/.stestr.conf       1970-01-01 01:00:00.000000000 
+0100
+++ new/oslo.rootwrap-5.15.2/.stestr.conf       2019-02-28 19:02:14.000000000 
+0100
@@ -0,0 +1,3 @@
+[DEFAULT]
+test_path=./oslo_rootwrap/tests
+top_path=./
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/.testr.conf 
new/oslo.rootwrap-5.15.2/.testr.conf
--- old/oslo.rootwrap-5.14.1/.testr.conf        2018-05-15 06:13:48.000000000 
+0200
+++ new/oslo.rootwrap-5.15.2/.testr.conf        1970-01-01 01:00:00.000000000 
+0100
@@ -1,4 +0,0 @@
-[DEFAULT]
-test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
-test_id_option=--load-list $IDFILE
-test_list_option=--list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/.zuul.yaml 
new/oslo.rootwrap-5.15.2/.zuul.yaml
--- old/oslo.rootwrap-5.14.1/.zuul.yaml 2018-05-15 06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/.zuul.yaml 2019-02-28 19:02:14.000000000 +0100
@@ -1,7 +1,13 @@
 - project:
-    check:
-      jobs:
-        - openstack-tox-lower-constraints
-    gate:
-      jobs:
-        - openstack-tox-lower-constraints
+    templates:
+      - check-requirements
+      - lib-forward-testing
+      - lib-forward-testing-python3
+      - openstack-lower-constraints-jobs
+      - openstack-python-jobs
+      - openstack-python35-jobs
+      - openstack-python36-jobs
+      - openstack-python37-jobs
+      - periodic-stable-jobs
+      - publish-openstack-docs-pti
+      - release-notes-jobs-python3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/AUTHORS 
new/oslo.rootwrap-5.15.2/AUTHORS
--- old/oslo.rootwrap-5.14.1/AUTHORS    2018-05-15 06:17:16.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/AUTHORS    2019-02-28 19:04:41.000000000 +0100
@@ -1,6 +1,7 @@
 Akihiro Motoki <[email protected]>
 Andreas Jaeger <[email protected]>
 Angus Lees <[email protected]>
+Ben Nemec <[email protected]>
 Bogdan Dobrelya <[email protected]>
 Brian Haley <[email protected]>
 Cedric Brandily <[email protected]>
@@ -25,6 +26,7 @@
 Julien Danjou <[email protected]>
 Kenneth Giusti <[email protected]>
 Kirill Bespalov <[email protected]>
+Lucian Petrut <[email protected]>
 Mark McClain <[email protected]>
 Mark McLoughlin <[email protected]>
 Maru Newby <[email protected]>
@@ -48,14 +50,15 @@
 Tony Breeds <[email protected]>
 Tony Xu <[email protected]>
 Victor Stinner <[email protected]>
+Vieri <[email protected]>
 Vu Cong Tuan <[email protected]>
 XianChaobo <[email protected]>
 Yatin Kumbhare <[email protected]>
 Yufang Zhang <[email protected]>
 Yuriy Taraday <[email protected]>
 Zhao Lei <[email protected]>
+ZhongShengping <[email protected]>
 Zhongyue Luo <[email protected]>
-Zuul <[email protected]>
 fumihiko kakuma <[email protected]>
 howardlee <[email protected]>
 melissaml <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/ChangeLog 
new/oslo.rootwrap-5.15.2/ChangeLog
--- old/oslo.rootwrap-5.14.1/ChangeLog  2018-05-15 06:17:16.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/ChangeLog  2019-02-28 19:04:41.000000000 +0100
@@ -1,6 +1,33 @@
 CHANGES
 =======
 
+5.15.2
+------
+
+* add python 3.7 unit test job
+* Use template for lower-constraints
+
+5.15.1
+------
+
+* Update mailinglist from dev to discuss
+* Fix portability issue
+
+5.15.0
+------
+
+* Add release note for file descriptor limit change
+* Clean up .gitignore references to personal tools
+* Don't quote {posargs} in tox.ini
+* Run rootwrap with lower fd ulimit by default
+* add lib-forward-testing-python3 test job
+* add python 3.6 unit test job
+* import zuul job settings from project-config
+* Update reno for stable/rocky
+* Switch to stestr
+* Add release notes link to README
+* fix tox python3 overrides
+
 5.14.1
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/PKG-INFO 
new/oslo.rootwrap-5.15.2/PKG-INFO
--- old/oslo.rootwrap-5.14.1/PKG-INFO   2018-05-15 06:17:17.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/PKG-INFO   2019-02-28 19:04:41.000000000 +0100
@@ -1,10 +1,10 @@
 Metadata-Version: 1.1
 Name: oslo.rootwrap
-Version: 5.14.1
+Version: 5.15.2
 Summary: Oslo Rootwrap
 Home-page: https://docs.openstack.org/oslo.rootwrap/latest/
 Author: OpenStack
-Author-email: [email protected]
+Author-email: [email protected]
 License: UNKNOWN
 Description: ========================
         Team and repository tags
@@ -34,6 +34,7 @@
         * Documentation: https://docs.openstack.org/oslo.rootwrap/latest/
         * Source: https://git.openstack.org/cgit/openstack/oslo.rootwrap
         * Bugs: https://bugs.launchpad.net/oslo.rootwrap
+        * Release notes: https://docs.openstack.org/releasenotes/oslo.rootwrap/
         
         
 Platform: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/README.rst 
new/oslo.rootwrap-5.15.2/README.rst
--- old/oslo.rootwrap-5.14.1/README.rst 2018-05-15 06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/README.rst 2019-02-28 19:02:14.000000000 +0100
@@ -26,3 +26,4 @@
 * Documentation: https://docs.openstack.org/oslo.rootwrap/latest/
 * Source: https://git.openstack.org/cgit/openstack/oslo.rootwrap
 * Bugs: https://bugs.launchpad.net/oslo.rootwrap
+* Release notes: https://docs.openstack.org/releasenotes/oslo.rootwrap/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/RELEASENOTES.rst 
new/oslo.rootwrap-5.15.2/RELEASENOTES.rst
--- old/oslo.rootwrap-5.14.1/RELEASENOTES.rst   2018-05-15 06:17:17.000000000 
+0200
+++ new/oslo.rootwrap-5.15.2/RELEASENOTES.rst   1970-01-01 01:00:00.000000000 
+0100
@@ -1,3 +0,0 @@
-=============
-oslo.rootwrap
-=============
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/doc/source/user/usage.rst 
new/oslo.rootwrap-5.15.2/doc/source/user/usage.rst
--- old/oslo.rootwrap-5.14.1/doc/source/user/usage.rst  2018-05-15 
06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/doc/source/user/usage.rst  2019-02-28 
19:02:14.000000000 +0100
@@ -113,6 +113,14 @@
     unsuccessful attempts. Example:
     ``syslog_log_level=ERROR``
 
+rlimit_nofile
+    Which rlimit for number of open file descriptors should be set for rootwrap
+    and its children processes by default. This is useful in case there is a
+    excessively large ulimit configured for the calling process that shouldn't
+    inherit to oslo.rootwrap and its called processes. Will not attempt to 
raise
+    the limit. Defaults to 1024.
+
+
 .filters files
 ==============
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/etc/rootwrap.conf.sample 
new/oslo.rootwrap-5.15.2/etc/rootwrap.conf.sample
--- old/oslo.rootwrap-5.14.1/etc/rootwrap.conf.sample   2018-05-15 
06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/etc/rootwrap.conf.sample   2019-02-28 
19:02:14.000000000 +0100
@@ -28,3 +28,6 @@
 
 # Rootwrap daemon exits after this seconds of inactivity
 daemon_timeout=600
+
+# Rootwrap daemon limits itself to that many file descriptors
+rlimit_nofile=1024
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/lower-constraints.txt 
new/oslo.rootwrap-5.15.2/lower-constraints.txt
--- old/oslo.rootwrap-5.14.1/lower-constraints.txt      2018-05-15 
06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/lower-constraints.txt      2019-02-28 
19:02:14.000000000 +0100
@@ -40,8 +40,8 @@
 snowballstemmer==1.2.1
 Sphinx==1.6.2
 sphinxcontrib-websupport==1.0.1
+stestr==2.0.0
 stevedore==1.20.0
-testrepository==0.0.18
 testtools==2.2.0
 traceback2==1.4.0
 unittest2==1.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/oslo.rootwrap.egg-info/PKG-INFO 
new/oslo.rootwrap-5.15.2/oslo.rootwrap.egg-info/PKG-INFO
--- old/oslo.rootwrap-5.14.1/oslo.rootwrap.egg-info/PKG-INFO    2018-05-15 
06:17:16.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/oslo.rootwrap.egg-info/PKG-INFO    2019-02-28 
19:04:41.000000000 +0100
@@ -1,10 +1,10 @@
 Metadata-Version: 1.1
 Name: oslo.rootwrap
-Version: 5.14.1
+Version: 5.15.2
 Summary: Oslo Rootwrap
 Home-page: https://docs.openstack.org/oslo.rootwrap/latest/
 Author: OpenStack
-Author-email: [email protected]
+Author-email: [email protected]
 License: UNKNOWN
 Description: ========================
         Team and repository tags
@@ -34,6 +34,7 @@
         * Documentation: https://docs.openstack.org/oslo.rootwrap/latest/
         * Source: https://git.openstack.org/cgit/openstack/oslo.rootwrap
         * Bugs: https://bugs.launchpad.net/oslo.rootwrap
+        * Release notes: https://docs.openstack.org/releasenotes/oslo.rootwrap/
         
         
 Platform: UNKNOWN
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/oslo.rootwrap-5.14.1/oslo.rootwrap.egg-info/SOURCES.txt 
new/oslo.rootwrap-5.15.2/oslo.rootwrap.egg-info/SOURCES.txt
--- old/oslo.rootwrap-5.14.1/oslo.rootwrap.egg-info/SOURCES.txt 2018-05-15 
06:17:17.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/oslo.rootwrap.egg-info/SOURCES.txt 2019-02-28 
19:04:41.000000000 +0100
@@ -1,4 +1,4 @@
-.testr.conf
+.stestr.conf
 .zuul.yaml
 AUTHORS
 CONTRIBUTING.rst
@@ -45,11 +45,13 @@
 oslo_rootwrap/tests/test_functional_eventlet.py
 oslo_rootwrap/tests/test_rootwrap.py
 releasenotes/notes/add_reno-3b4ae0789e9c45b4.yaml
+releasenotes/notes/file-descriptor-limit-e2b2a3033b9ef21e.yaml
 releasenotes/source/conf.py
 releasenotes/source/index.rst
 releasenotes/source/ocata.rst
 releasenotes/source/pike.rst
 releasenotes/source/queens.rst
+releasenotes/source/rocky.rst
 releasenotes/source/unreleased.rst
 releasenotes/source/_static/.placeholder
 releasenotes/source/_templates/.placeholder
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/oslo.rootwrap.egg-info/pbr.json 
new/oslo.rootwrap-5.15.2/oslo.rootwrap.egg-info/pbr.json
--- old/oslo.rootwrap-5.14.1/oslo.rootwrap.egg-info/pbr.json    2018-05-15 
06:17:16.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/oslo.rootwrap.egg-info/pbr.json    2019-02-28 
19:04:41.000000000 +0100
@@ -1 +1 @@
-{"git_version": "9b632e2", "is_release": true}
\ No newline at end of file
+{"git_version": "0b6824d", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/oslo_rootwrap/cmd.py 
new/oslo.rootwrap-5.15.2/oslo_rootwrap/cmd.py
--- old/oslo.rootwrap-5.14.1/oslo_rootwrap/cmd.py       2018-05-15 
06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/oslo_rootwrap/cmd.py       2019-02-28 
19:02:14.000000000 +0100
@@ -35,9 +35,16 @@
 import logging
 import sys
 
+from oslo_rootwrap import subprocess
+from oslo_rootwrap import wrapper
+
 from six import moves
 
-from oslo_rootwrap import wrapper
+try:
+    # This isn't available on all platforms (e.g. Windows).
+    import resource
+except ImportError:
+    resource = None
 
 RC_UNAUTHORIZED = 99
 RC_NOCOMMAND = 98
@@ -83,6 +90,24 @@
         _exit_error(execname, "Incorrect configuration file: %s" % configfile,
                     RC_BADCONFIG, log=False)
 
+    if resource:
+        # When use close_fds=True on Python 2.x, we spend significant time
+        # in closing fds up to current soft ulimit, which could be large.
+        # Lower our ulimit to a reasonable value to regain performance.
+        fd_limits = resource.getrlimit(resource.RLIMIT_NOFILE)
+        sensible_fd_limit = min(config.rlimit_nofile, fd_limits[0])
+        if (fd_limits[0] > sensible_fd_limit):
+            # Unfortunately this inherits to our children, so allow them to
+            # re-raise by passing through the hard limit unmodified
+            resource.setrlimit(
+                resource.RLIMIT_NOFILE, (sensible_fd_limit, fd_limits[1]))
+            # This is set on import to the hard ulimit. if its defined we
+            # already have imported it, so we need to update it to the new
+            # limit.
+            if (hasattr(subprocess, 'MAXFD') and
+                    subprocess.MAXFD > sensible_fd_limit):
+                subprocess.MAXFD = sensible_fd_limit
+
     if config.use_syslog:
         wrapper.setup_syslog(execname,
                              config.syslog_log_facility,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/oslo_rootwrap/wrapper.py 
new/oslo.rootwrap-5.15.2/oslo_rootwrap/wrapper.py
--- old/oslo.rootwrap-5.14.1/oslo_rootwrap/wrapper.py   2018-05-15 
06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/oslo_rootwrap/wrapper.py   2019-02-28 
19:02:14.000000000 +0100
@@ -97,6 +97,12 @@
         else:
             self.daemon_timeout = 600
 
+        # fd ulimit
+        if config.has_option("DEFAULT", "rlimit_nofile"):
+            self.rlimit_nofile = int(config.get("DEFAULT", "rlimit_nofile"))
+        else:
+            self.rlimit_nofile = 1024
+
 
 def setup_syslog(execname, facility, level):
     try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/oslo.rootwrap-5.14.1/releasenotes/notes/file-descriptor-limit-e2b2a3033b9ef21e.yaml
 
new/oslo.rootwrap-5.15.2/releasenotes/notes/file-descriptor-limit-e2b2a3033b9ef21e.yaml
--- 
old/oslo.rootwrap-5.14.1/releasenotes/notes/file-descriptor-limit-e2b2a3033b9ef21e.yaml
     1970-01-01 01:00:00.000000000 +0100
+++ 
new/oslo.rootwrap-5.15.2/releasenotes/notes/file-descriptor-limit-e2b2a3033b9ef21e.yaml
     2019-02-28 19:02:14.000000000 +0100
@@ -0,0 +1,14 @@
+---
+features:
+  - |
+    A configurable limit on the number of file descriptors that can be opened
+    by a rootwrap-started process has been added. It defaults to 1024, but
+    can be adjusted by setting the ``rlimit_nofile`` option in rootwrap.conf
+    to a larger or smaller value.
+upgrade:
+  - |
+    Because a file descriptor limit was added in this release (see the features
+    section for details), rootwrap processes that were previously relying on
+    inheriting their parent process's descriptor limits may exhaust their
+    available file descriptors. Use the ``rlimit_nofile`` option to restore
+    the previous limits if this is the case.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/releasenotes/notes/reno.cache 
new/oslo.rootwrap-5.15.2/releasenotes/notes/reno.cache
--- old/oslo.rootwrap-5.14.1/releasenotes/notes/reno.cache      2018-05-15 
06:17:17.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/releasenotes/notes/reno.cache      1970-01-01 
01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
----
-file-contents: {}
-notes: []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/releasenotes/source/index.rst 
new/oslo.rootwrap-5.15.2/releasenotes/source/index.rst
--- old/oslo.rootwrap-5.14.1/releasenotes/source/index.rst      2018-05-15 
06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/releasenotes/source/index.rst      2019-02-28 
19:02:14.000000000 +0100
@@ -6,6 +6,7 @@
     :maxdepth: 1
 
     unreleased
+    rocky
     queens
     pike
     ocata
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/releasenotes/source/rocky.rst 
new/oslo.rootwrap-5.15.2/releasenotes/source/rocky.rst
--- old/oslo.rootwrap-5.14.1/releasenotes/source/rocky.rst      1970-01-01 
01:00:00.000000000 +0100
+++ new/oslo.rootwrap-5.15.2/releasenotes/source/rocky.rst      2019-02-28 
19:02:14.000000000 +0100
@@ -0,0 +1,6 @@
+===================================
+ Rocky Series Release Notes
+===================================
+
+.. release-notes::
+   :branch: stable/rocky
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/setup.cfg 
new/oslo.rootwrap-5.15.2/setup.cfg
--- old/oslo.rootwrap-5.14.1/setup.cfg  2018-05-15 06:17:17.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/setup.cfg  2019-02-28 19:04:41.000000000 +0100
@@ -1,7 +1,7 @@
 [metadata]
 name = oslo.rootwrap
 author = OpenStack
-author-email = [email protected]
+author-email = [email protected]
 summary = Oslo Rootwrap
 description-file = 
        README.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/test-requirements.txt 
new/oslo.rootwrap-5.15.2/test-requirements.txt
--- old/oslo.rootwrap-5.14.1/test-requirements.txt      2018-05-15 
06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/test-requirements.txt      2019-02-28 
19:02:14.000000000 +0100
@@ -5,8 +5,8 @@
 hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
 
 fixtures>=3.0.0 # Apache-2.0/BSD
-testrepository>=0.0.18 # Apache-2.0/BSD
 testtools>=2.2.0 # MIT
+stestr>=2.0.0 # Apache-2.0
 
 # this is required for the docs build jobs
 sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.rootwrap-5.14.1/tox.ini 
new/oslo.rootwrap-5.15.2/tox.ini
--- old/oslo.rootwrap-5.14.1/tox.ini    2018-05-15 06:13:48.000000000 +0200
+++ new/oslo.rootwrap-5.15.2/tox.ini    2019-02-28 19:02:14.000000000 +0100
@@ -3,7 +3,6 @@
 envlist = py35,py27,pep8
 
 [testenv]
-basepython = python3
 install_command = pip install {opts} {packages}
 deps =
   
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
@@ -13,13 +12,14 @@
 # run in a separate process
 whitelist_externals = env
 commands =
-  python setup.py testr --slowest 
--testr-args='(?!tests.test_functional_eventlet)tests {posargs}'
-  env TEST_EVENTLET=1 python setup.py testr --slowest 
--testr-args='tests.test_functional_eventlet'
+  stestr run --slowest (?!tests.test_functional_eventlet)tests {posargs}
+  env TEST_EVENTLET=1 stestr run --slowest tests.test_functional_eventlet
 
 [testenv:py27]
 basepython = python2.7
 
 [testenv:pep8]
+basepython = python3
 deps =
   -r{toxinidir}/test-requirements.txt
 commands =
@@ -28,16 +28,23 @@
   bandit -r oslo_rootwrap tests -n5 --skip B404
 
 [testenv:cover]
+basepython = python3
 deps = {[testenv]deps}
     coverage
+setenv =
+    PYTHON=coverage run --source $project --parallel-mode
 commands =
-  python setup.py testr --coverage
-
+    stestr run {posargs}
+    coverage combine
+    coverage html -d cover
+    coverage xml -o cover/coverage.xml
 
 [testenv:venv]
+basepython = python3
 commands = {posargs}
 
 [testenv:docs]
+basepython = python3
 deps = -r{toxinidir}/doc/requirements.txt
 commands = sphinx-build -W -b html doc/source doc/build/html
 
@@ -50,13 +57,16 @@
 commands = python benchmark/benchmark.py
 
 [testenv:benchmark3]
+basepython = python3
 commands = python3 benchmark/benchmark.py
 
 [testenv:releasenotes]
+basepython = python3
 deps = -r{toxinidir}/doc/requirements.txt
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html 
releasenotes/source releasenotes/build/html
 
 [testenv:lower-constraints]
+basepython = python3
 deps =
   -c{toxinidir}/lower-constraints.txt
   -r{toxinidir}/test-requirements.txt


Reply via email to