Hello community,

here is the log from the commit of package python-pifpaf for openSUSE:Factory 
checked in at 2018-10-09 15:54:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pifpaf (Old)
 and      /work/SRC/openSUSE:Factory/.python-pifpaf.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pifpaf"

Tue Oct  9 15:54:10 2018 rev:6 rq:640747 version:2.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pifpaf/python-pifpaf.changes      
2018-02-26 23:24:36.631502439 +0100
+++ /work/SRC/openSUSE:Factory/.python-pifpaf.new/python-pifpaf.changes 
2018-10-09 15:54:13.162279048 +0200
@@ -1,0 +2,7 @@
+Tue Sep  4 08:04:52 UTC 2018 - [email protected]
+
+- update to 2.1.1
+  * ceph: allow to run luminuous
+  * various small bugfixes
+
+-------------------------------------------------------------------

Old:
----
  pifpaf-2.0.5.tar.gz

New:
----
  pifpaf-2.1.1.tar.gz

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

Other differences:
------------------
++++++ python-pifpaf.spec ++++++
--- /var/tmp/diff_new_pack.hDFzd7/_old  2018-10-09 15:54:13.798278295 +0200
+++ /var/tmp/diff_new_pack.hDFzd7/_new  2018-10-09 15:54:13.802278290 +0200
@@ -12,13 +12,13 @@
 # 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/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pifpaf
-Version:        2.0.5
+Version:        2.1.1
 Release:        0
 Summary:        Suite of tools and fixtures to manage daemons for testing
 License:        Apache-2.0
@@ -71,8 +71,8 @@
 %python_uninstall_alternative pifpaf
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc AUTHORS ChangeLog LICENSE README.rst
+%license LICENSE
+%doc ChangeLog README.rst
 %{python_sitelib}/*
 %python_alternative %{_bindir}/pifpaf
 

++++++ pifpaf-2.0.5.tar.gz -> pifpaf-2.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/.travis.yml new/pifpaf-2.1.1/.travis.yml
--- old/pifpaf-2.0.5/.travis.yml        2018-02-09 20:55:01.000000000 +0100
+++ new/pifpaf-2.1.1/.travis.yml        2018-03-16 09:00:28.000000000 +0100
@@ -11,7 +11,7 @@
   # Always redownload tarball
   - find ~/.cache/pip -name '*.dev*' -delete
   - wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key 
add -
-  - echo deb https://download.ceph.com/debian-jewel/ trusty main | sudo tee 
/etc/apt/sources.list.d/ceph.list
+  - echo deb https://download.ceph.com/debian-luminous/ trusty main | sudo tee 
/etc/apt/sources.list.d/ceph.list
   - sudo apt-get -qq update
   - sudo apt-get purge -y mysql-server-5.6 mysql-server-core-5.6 
mysql-client-core-5.6 mysql-client-5.6 postgresql* libpq*
   - sudo rm -rf /var/lib/mysql
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/ChangeLog new/pifpaf-2.1.1/ChangeLog
--- old/pifpaf-2.0.5/ChangeLog  2018-02-09 21:05:38.000000000 +0100
+++ new/pifpaf-2.1.1/ChangeLog  2018-03-16 09:10:51.000000000 +0100
@@ -1,6 +1,27 @@
 CHANGES
 =======
 
+2.1.1
+-----
+
+* Remove print statement
+
+2.1.0
+-----
+
+* ceph: allow to run luminuous
+
+2.0.7
+-----
+
+* Fix pep8 in test\_cli
+* Fix command not found error in Python 3
+
+2.0.6
+-----
+
+* make gnocchi use given port
+
 2.0.5
 -----
 
@@ -165,17 +186,3 @@
 1.5.0
 -----
 
-* Wait 10 seconds processes to end, them kill them
-
-1.4.11
-------
-
-* Revert "gnocchi: use --reuse-port"
-
-1.4.10
-------
-
-* gnocchi: use --reuse-port
-* Do not use concurrency to run tests
-* Fix conflicting port in Gnocchi test
-* Use another port for test\_gnocchi\_with\_redis\_coordinator
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/PKG-INFO new/pifpaf-2.1.1/PKG-INFO
--- old/pifpaf-2.0.5/PKG-INFO   2018-02-09 21:05:38.000000000 +0100
+++ new/pifpaf-2.1.1/PKG-INFO   2018-03-16 09:10:52.000000000 +0100
@@ -1,12 +1,11 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: pifpaf
-Version: 2.0.5
+Version: 2.1.1
 Summary: Suite of tools and fixtures to manage daemons for testing
 Home-page: https://github.com/jd/pifpaf
 Author: Julien Danjou
 Author-email: [email protected]
 License: UNKNOWN
-Description-Content-Type: UNKNOWN
 Description: ==========
          Pifpaf
         ==========
@@ -181,3 +180,6 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Topic :: Software Development :: Testing
+Provides-Extra: 
+Provides-Extra: gnocchi
+Provides-Extra: test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/pifpaf/drivers/__init__.py 
new/pifpaf-2.1.1/pifpaf/drivers/__init__.py
--- old/pifpaf-2.0.5/pifpaf/drivers/__init__.py 2018-02-09 20:55:01.000000000 
+0100
+++ new/pifpaf-2.1.1/pifpaf/drivers/__init__.py 2018-03-16 09:00:28.000000000 
+0100
@@ -237,7 +237,7 @@
             )
         except OSError as e:
             raise RuntimeError(
-                "Unable to run command `%s': %s" % (b" ".join(command), e))
+                "Unable to run command `%s': %s" % (" ".join(command), e))
 
         self.addCleanup(self._kill, c)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/pifpaf/drivers/ceph.py 
new/pifpaf-2.1.1/pifpaf/drivers/ceph.py
--- old/pifpaf-2.0.5/pifpaf/drivers/ceph.py     2018-02-09 20:55:01.000000000 
+0100
+++ new/pifpaf-2.1.1/pifpaf/drivers/ceph.py     2018-03-16 09:00:28.000000000 
+0100
@@ -49,6 +49,20 @@
         os.makedirs(mondir)
         os.makedirs(osddir)
 
+        _, version = self._exec(["ceph", "--version"], stdout=True)
+        version = version.decode("ascii").split()[2]
+        version = pkg_resources.parse_version(version)
+
+        if version < pkg_resources.parse_version("12.0.0"):
+            ratio = """
+mon_osd_nearfull_ratio = 1
+mon_osd_full_ratio = 1
+osd_failsafe_nearfull_ratio = 1
+osd_failsafe_full_ratio = 1
+"""
+        else:
+            ratio = ""
+
         # FIXME(sileht): check availible space on /dev/shm
         # if os.path.exists("/dev/shm") and os.access('/dev/shm', os.W_OK):
         #     journal_path = "/dev/shm/$cluster-$id-journal"
@@ -89,11 +103,7 @@
 filestore max sync interval = 10001
 filestore min sync interval = 10000
 
-# Don't fail until it's really full
-mon_osd_nearfull_ratio = 1
-mon_osd_full_ratio = 1
-osd_failsafe_nearfull_ratio = 1
-osd_failsafe_full_ratio = 1
+%(ratio)s
 
 journal_aio = false
 journal_dio = false
@@ -106,17 +116,14 @@
 [mon.a]
 host = localhost
 mon addr = 127.0.0.1:%(port)d
-""" % dict(fsid=fsid, tempdir=self.tempdir, port=self.port, 
journal_path=journal_path))  # noqa
+""" % dict(fsid=fsid, tempdir=self.tempdir, port=self.port,
+           journal_path=journal_path, ratio=ratio))  # noqa
 
         ceph_opts = ["ceph", "-c", conffile]
         mon_opts = ["ceph-mon", "-c", conffile, "--id", "a", "-d"]
         osd_opts = ["ceph-osd", "-c", conffile, "--id", "0", "-d",
                     "-m", "127.0.0.1:%d" % self.port]
 
-        _, version = self._exec(ceph_opts + ["--version"], stdout=True)
-        version = version.decode("ascii").split()[2]
-        version = pkg_resources.parse_version(version)
-
         # Create and start monitor
         self._exec(mon_opts + ["--mkfs"])
         self._touch(os.path.join(mondir, "done"))
@@ -135,6 +142,11 @@
             wait_for_line = "done with init"
         osd, _ = self._exec(osd_opts, wait_for_line=wait_for_line)
 
+        if version >= pkg_resources.parse_version("12.0.0"):
+            self._exec(ceph_opts + ["osd", "set-full-ratio", "0.95"])
+            self._exec(ceph_opts + ["osd", "set-backfillfull-ratio", "0.95"])
+            self._exec(ceph_opts + ["osd", "set-nearfull-ratio", "0.95"])
+
         # Wait it's ready
         out = b""
         while b"HEALTH_OK" not in out:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/pifpaf/drivers/gnocchi.py 
new/pifpaf-2.1.1/pifpaf/drivers/gnocchi.py
--- old/pifpaf-2.0.5/pifpaf/drivers/gnocchi.py  2018-02-09 20:55:01.000000000 
+0100
+++ new/pifpaf-2.1.1/pifpaf/drivers/gnocchi.py  2018-03-16 09:00:28.000000000 
+0100
@@ -163,6 +163,9 @@
             f.write("""[DEFAULT]
 debug = %s
 verbose = True
+[api]
+host = localhost
+port = %s
 [storage]
 driver = %s
 %s
@@ -176,6 +179,7 @@
 project_id = admin
 [indexer]
 url = %s""" % (self.debug,
+               self.port,
                storage_driver,
                storage_config_string,
                statsd_resource_id,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/pifpaf/tests/test_cli.py 
new/pifpaf-2.1.1/pifpaf/tests/test_cli.py
--- old/pifpaf-2.0.5/pifpaf/tests/test_cli.py   2018-02-09 20:55:01.000000000 
+0100
+++ new/pifpaf-2.1.1/pifpaf/tests/test_cli.py   2018-03-16 09:00:28.000000000 
+0100
@@ -16,6 +16,8 @@
 import subprocess
 from distutils import spawn
 
+import fixtures
+
 import testtools
 
 
@@ -144,3 +146,18 @@
         self.assertEqual(
             b"\"memcached://localhost:11217;memcached://localhost:11218\";",
             env[b"export PIFPAF_URLS"])
+
+    def test_non_existing_command(self):
+        # Keep PATH to just the one set by tox to run pifpaf
+        self.useFixture(fixtures.EnvironmentVariable(
+            "PATH", os.getenv("PATH").split(":")[0]))
+        c = subprocess.Popen(["pifpaf", "run", "memcached"],
+                             bufsize=0,
+                             stderr=subprocess.PIPE,
+                             stdout=subprocess.PIPE)
+        (stdout, stderr) = c.communicate()
+        self.assertEqual(1, c.wait())
+        self.assertIn(
+            b"ERROR [pifpaf] Unable to run command "
+            b"`memcached -p 11212': [Errno 2] No such file or directory",
+            stderr)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/pifpaf.egg-info/PKG-INFO 
new/pifpaf-2.1.1/pifpaf.egg-info/PKG-INFO
--- old/pifpaf-2.0.5/pifpaf.egg-info/PKG-INFO   2018-02-09 21:05:38.000000000 
+0100
+++ new/pifpaf-2.1.1/pifpaf.egg-info/PKG-INFO   2018-03-16 09:10:52.000000000 
+0100
@@ -1,12 +1,11 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
 Name: pifpaf
-Version: 2.0.5
+Version: 2.1.1
 Summary: Suite of tools and fixtures to manage daemons for testing
 Home-page: https://github.com/jd/pifpaf
 Author: Julien Danjou
 Author-email: [email protected]
 License: UNKNOWN
-Description-Content-Type: UNKNOWN
 Description: ==========
          Pifpaf
         ==========
@@ -181,3 +180,6 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Topic :: Software Development :: Testing
+Provides-Extra: 
+Provides-Extra: gnocchi
+Provides-Extra: test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pifpaf-2.0.5/pifpaf.egg-info/pbr.json 
new/pifpaf-2.1.1/pifpaf.egg-info/pbr.json
--- old/pifpaf-2.0.5/pifpaf.egg-info/pbr.json   2018-02-09 21:05:38.000000000 
+0100
+++ new/pifpaf-2.1.1/pifpaf.egg-info/pbr.json   2018-03-16 09:10:52.000000000 
+0100
@@ -1 +1 @@
-{"git_version": "d094170", "is_release": true}
\ No newline at end of file
+{"git_version": "687bab6", "is_release": true}
\ No newline at end of file


Reply via email to