Hello community,
here is the log from the commit of package python-openstacksdk for
openSUSE:Factory checked in at 2019-05-03 22:44:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-openstacksdk (Old)
and /work/SRC/openSUSE:Factory/.python-openstacksdk.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-openstacksdk"
Fri May 3 22:44:01 2019 rev:10 rq:693626 version:0.27.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-openstacksdk/python-openstacksdk.changes
2018-09-07 15:38:25.930598730 +0200
+++
/work/SRC/openSUSE:Factory/.python-openstacksdk.new.5148/python-openstacksdk.changes
2019-05-03 22:44:04.875450486 +0200
@@ -1,0 +2,150 @@
+Fri Apr 12 04:33:52 UTC 2019 - [email protected]
+
+- added 0001-add-python-3.7-unit-test-job.patch
+- added 0001-baremetal-Add-support-for-mkisofs-and-xorrisofs-for-.patch
+
+-------------------------------------------------------------------
+Wed Apr 10 06:47:44 UTC 2019 - Dirk Mueller <[email protected]>
+
+- update to 0.27.0:
+ * Replace TaskManager with a keystoneauth concurrency
+ * Replace openstack.org git:// URLs with https://
+ * Update UPPER\_CONSTRAINTS\_FILE for stable/stein
+
+-------------------------------------------------------------------
+Mon Apr 8 13:51:24 UTC 2019 - [email protected]
+
+- update to version 0.26.0
+ - Fix query parameters of network.port_forwarding
+ - Transform server with munch before normalizing
+ - Add network segment range resource
+ - Return retries on HTTP CONFLICT to baremetal.attach_vif_to_node
+ - Fix bugs in debugging with Tox
+ - Use pagination detection by default
+ - Stop running grenade-py3
+ - Add possibility to override base_path for resource operations
+ - Remove unused Task classes
+ - Add block_storage v3 API support
+ - Fix syntax error with exception handling
+ - use overriden base_path in remaining CRUD operations
+ - Add wait functions to orchestration proxy
+ - Add support for octavia's resuorces quota
+ - Document "Role Assignment Operations"
+ - Rename compute.service.zone to availability_zone
+ - Update cirros version for functional tests
+ - Fix pagination key detection
+ - Drop self.conn from base.TestCase
+ - Test python2 with py27
+ - Make delete_unattached_floating_ips return a count
+ - Add functional tests for masakari
+ - Properly munch for resource sub-dicts
+ - Add host aggregate missing functions
+ - Skip block storage v2 functional tests for a minute
+ - Slightly refactor vendor profile loading
+ - Make timeouts in functional tests configurable
+ - Bug : identity v3 Proxy role assignments only support instances.
+ - Fix latest flake8 issues
+ - Add port property: port-resource-request
+ - Check result of server metadata operation
+ - Add agent property: resources-synced
+ - Refactor tag support
+ - Fixed incorrect exception raising in configdrive generation
+ - Filter ports in list_ports when batching is in effect
+ - Added server diagnostics
+ - Added basic CRUD functionality around Host Aggregates
+ - Make tox tips job actually run sdk tests
+ - Make sure we pick flavors with disk
+ - Unpin dogpile.cache
+ - Support dict of links in pagination detection
+ - Support remote vendor profiles
+ - Fix dogpile.cache 0.7.0 interaction
+ - Change openstack-dev to openstack-discuss
+ - Update min tox version to 2.0
+ - Add baremetal Node fields from versions 1.47 - 1.49
+ - Add missing properties for role
+ - Use retriable_status_codes in image upload
+ - [Trivial Fix] Correct spelling error of "bandwidth"
+ - Start using direct REST in normalize tests
+ - Fix the misspelling of "configuration"
+ - Compute location properly in server
+ - Fix requesting specific fields from ironic
+ - Fix for not released thread in service_description
+ - handle "paginated" argument in test_list properly
+ - object_store: exposes the prefix parameter
+ - Add support for bodyless commits
+ - Add image attributes from v2.7
+ - Add Octavia (load_balancer) flavor API
+ - fix typos
+ - Fix some spelling in documentation
+ - Stop mocking method in fwaas test
+ - Fix/Add : Identity V3 validate user role
+ - Import code for building ironic-compatible configdrives
+ - Add image.schema resource
+ - Use mock context in test_fwaas
+ - Fixes for Unicode characters in python 2 requests
+ - Deal with double-normalization of host_id
+ - baremetal: implement set_node_power_state in the proxy
+ - Change approach to detailed listings of baremetal resources
+ - implement identity v3 Proxy "unassign_project_role_from_user"
+ - Turn off unneeded devstack services
+ - baremetal: support for allocation API
+ - Shift swift segment async code out of adapter
+ - implement block-storage backup resource
+ - Fix for not released thread in get_session_client
+ - Add support to get recovery workflow details
+ - implement identity v3 Proxy group role management
+ - Adds kwargs support when creating a Neutron subnet
+ - Add a __main__ handler, version command
+ - Fix minor issues in the baremetal proxy docs
+ - Apply list filter fix to servers and floating ips too
+ - Move image methods to sdk image proxy
+ - Fix resource deletion in clustering
+ - Add networks to Limestone vendor
+ - Add propagate_uplink_status to port
+ - Add image tasks schema methods
+ - Move server munch transformation into normalize
+ - Added Octavia load balancer and listener stats
+ - Remove mocking workaround from adapter
+ - Fix indentation for new pycodestyle E117
+ - Fix the conflict of urlparse between python2 and python3
+ - Use sdk for list_servers
+ - Tweak find_image method to search in hidden images
+ - Adds prefixlen to the request body when creating subnets
+ - Advancing the protocal of the website to HTTPS in compute.rst.
+ - Document "insecure" flag
+ - Remove setup.py check from pep8 job
+ - fix typo
+ - Adds tags support for Octavia (load_balancer)
+ - Make Connection a context manager
+ - Make all resource locations process project_id
+ - Add image.task resource
+ - do not force interface=admin for identity api v3
+ - Add close method to shutdown threadpool
+ - Restrict inventory test to devstack-admin
+ - Add a non-voting job with metalsmith
+ - Add Octavia (load_balancer) flavor profile API
+ - Add Octavia (load_balancer) amphora API
+ - Add Octavia (load_balancer) load balancer failover
+ - Revert "Replace TaskManager with a keystoneauth concurrency"
+ - baremetal: support network_data when building configdrive
+ - Fix raise create_server and attach to a network given a net-name param
+ - Add glance image import support
+ - Fix neutron endpoint mangling
+ - Register proxy directly in add_service
+ - Skip v2 block-storage tests when service is not found
+ - syntax errors and undefined exceptions in service_description.py
+ - Avoid dogpile.cache 0.7.0
+ - Support non-public volume types
+ - block_storage.backup func tests to use configurable timeout
+ - Replace TaskManager with a keystoneauth concurrency
+ - Add missing seperator between words
+ - Add Octavia (load_balancer) provider API support
+ - Replace neutron-grenade job with grenade-py3
+ - Update link address for vendor support
+ - Rework orchestration to add update preview
+ - Explicit set capabilities in VolumeDetail and SnapshotDetail
+ - new auth_url for ELASTX
+ - Add missing py37 and corrected default envlist.
+ - Add CRUD methods for Neutron Port Forwarding
+
+-------------------------------------------------------------------
Old:
----
openstacksdk-0.17.2.tar.gz
New:
----
0001-add-python-3.7-unit-test-job.patch
0001-baremetal-Add-support-for-mkisofs-and-xorrisofs-for-.patch
openstacksdk-0.27.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-openstacksdk.spec ++++++
--- /var/tmp/diff_new_pack.ICDZnW/_old 2019-05-03 22:44:05.271451320 +0200
+++ /var/tmp/diff_new_pack.ICDZnW/_new 2019-05-03 22:44:05.275451328 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-openstacksdk
#
-# 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,25 +12,29 @@
# 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-openstacksdk
-Version: 0.17.2
+Version: 0.27.0
Release: 0
Summary: An SDK for building applications to work with OpenStack
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/openstacksdk
-Source0:
https://files.pythonhosted.org/packages/source/o/openstacksdk/openstacksdk-0.17.2.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/o/openstacksdk/openstacksdk-0.27.0.tar.gz
+# https://review.openstack.org/#/c/651119/
+Patch0: 0001-add-python-3.7-unit-test-job.patch
+# https://review.openstack.org/#/c/651193/
+Patch1: 0001-baremetal-Add-support-for-mkisofs-and-xorrisofs-for-.patch
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python2-PyYAML >= 3.12
BuildRequires: python2-appdirs >= 1.3.0
BuildRequires: python2-beautifulsoup4
BuildRequires: python2-decorator >= 3.4.0
-BuildRequires: python2-deprecation >= 1.0
+BuildRequires: python2-deprecation
BuildRequires: python2-dogpile.cache >= 0.6.2
BuildRequires: python2-extras
BuildRequires: python2-fixtures
@@ -39,7 +43,7 @@
BuildRequires: python2-jmespath >= 0.9.0
BuildRequires: python2-jsonpatch >= 1.16
BuildRequires: python2-jsonschema
-BuildRequires: python2-keystoneauth1 >= 3.8.0
+BuildRequires: python2-keystoneauth1 >= 3.13.0
BuildRequires: python2-mock
BuildRequires: python2-munch >= 2.1.0
BuildRequires: python2-netifaces >= 0.10.4
@@ -58,7 +62,7 @@
BuildRequires: python3-appdirs >= 1.3.0
BuildRequires: python3-beautifulsoup4
BuildRequires: python3-decorator >= 3.4.0
-BuildRequires: python3-deprecation >= 1.0
+BuildRequires: python3-deprecation
BuildRequires: python3-devel
BuildRequires: python3-dogpile.cache >= 0.6.2
BuildRequires: python3-extras
@@ -66,7 +70,7 @@
BuildRequires: python3-jmespath >= 0.9.0
BuildRequires: python3-jsonpatch >= 1.16
BuildRequires: python3-jsonschema
-BuildRequires: python3-keystoneauth1 >= 3.8.0
+BuildRequires: python3-keystoneauth1 >= 3.13.0
BuildRequires: python3-mock
BuildRequires: python3-munch >= 2.1.0
BuildRequires: python3-netifaces >= 0.10.4
@@ -83,13 +87,13 @@
BuildRequires: python3-testtools
Requires: python-PyYAML >= 3.12
Requires: python-appdirs >= 1.3.0
+Requires: python-cryptography >= 2.1
Requires: python-decorator >= 3.4.0
-Requires: python-deprecation >= 1.0
Requires: python-dogpile.cache >= 0.6.2
Requires: python-iso8601 >= 0.1.11
Requires: python-jmespath >= 0.9.0
Requires: python-jsonpatch >= 1.16
-Requires: python-keystoneauth1 >= 3.8.0
+Requires: python-keystoneauth1 >= 3.13.0
Requires: python-munch >= 2.1.0
Requires: python-netifaces >= 0.10.4
Requires: python-os-service-types >= 1.2.0
@@ -135,16 +139,14 @@
applications to work with OpenStack clouds.
%prep
-%autosetup -p1 -n openstacksdk-0.17.2
+%autosetup -p1 -n openstacksdk-0.27.0
%py_req_cleanup
sed -i -e 's,coverage.*,,' test-requirements.txt || true
sed -i -e "s,'sphinx.ext.intersphinx'\,,," doc/source/conf.py
-# build fails with warnings
-sed -i 's/^warning-is-error.*/warning-is-error=0/g' setup.cfg
%build
%python_build
-PBR_VERSION=0.17.2 sphinx-build -b html doc/source doc/build/html
+PBR_VERSION=0.27.0 sphinx-build -b html doc/source doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo}
%install
++++++ 0001-add-python-3.7-unit-test-job.patch ++++++
>From b3723bed9dd2b336c63aa9bcf5a3e1ce08e2e290 Mon Sep 17 00:00:00 2001
From: Sahid Orentino Ferdjaoui <[email protected]>
Date: Mon, 25 Mar 2019 11:01:00 +0000
Subject: [PATCH] add python 3.7 unit test job
See ML discussion here [1] for context.
[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html
Change-Id: If472ec316c5f5aaee15aab4d72964f806d3efff7
Signed-off-by: Sahid Orentino Ferdjaoui <[email protected]>
---
.zuul.yaml | 1 +
openstack/tests/unit/test_resource.py | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/.zuul.yaml b/.zuul.yaml
index 6d0dcf81..ee9dea9f 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -396,6 +396,7 @@
- openstack-lower-constraints-jobs
- openstack-python-jobs
- openstack-python36-jobs
+ - openstack-python37-jobs
- openstacksdk-functional-tips
- openstacksdk-tox-tips
- os-client-config-tox-tips
diff --git a/openstack/tests/unit/test_resource.py
b/openstack/tests/unit/test_resource.py
index ee98777f..7b44a60d 100644
--- a/openstack/tests/unit/test_resource.py
+++ b/openstack/tests/unit/test_resource.py
@@ -1901,7 +1901,10 @@ class TestResourceActions(base.TestCase):
microversion=None)
# Ensure we're done after those three items
- self.assertRaises(StopIteration, next, results)
+ # In python3.7, PEP 479 is enabled for all code, and StopIteration
+ # raised directly from code is turned into a RuntimeError.
+ # Something about how mock is implemented triggers that here.
+ self.assertRaises((StopIteration, RuntimeError), next, results)
# Ensure we only made two calls to get this done
self.assertEqual(3, len(self.session.get.call_args_list))
--
2.21.0
++++++ 0001-baremetal-Add-support-for-mkisofs-and-xorrisofs-for-.patch ++++++
>From 8fed470b09ac7db887ebdca38b369557b0b25f10 Mon Sep 17 00:00:00 2001
From: Thomas Bechtold <[email protected]>
Date: Tue, 9 Apr 2019 13:01:22 +0200
Subject: [PATCH] baremetal: Add support for mkisofs and xorrisofs for
configdrive
Currently, only "genisoimage" is supported. But "genisoimage" might
not be available on all distros (like openSUSE or Debian).
So add support for "mkisofs" and "xorrisofs" which luckily support
the same command line parameters as "genisoimage".
Change-Id: I720f25921f8e52f20a631f238a528dedf65a91c6
---
openstack/baremetal/configdrive.py | 37 ++++++++++++-------
...ve-mkisofs-xorrisofs-075db4d7d80e5a13.yaml | 8 ++++
2 files changed, 32 insertions(+), 13 deletions(-)
create mode 100644
releasenotes/notes/baremetal-configdrive-mkisofs-xorrisofs-075db4d7d80e5a13.yaml
diff --git a/openstack/baremetal/configdrive.py
b/openstack/baremetal/configdrive.py
index abbebf5a..b43d19b3 100644
--- a/openstack/baremetal/configdrive.py
+++ b/openstack/baremetal/configdrive.py
@@ -84,21 +84,32 @@ def pack(path):
:return: configdrive contents as a base64-encoded string.
"""
with tempfile.NamedTemporaryFile() as tmpfile:
- try:
- p = subprocess.Popen(['genisoimage',
- '-o', tmpfile.name,
- '-ldots', '-allow-lowercase',
- '-allow-multidot', '-l',
- '-publisher', 'metalsmith',
- '-quiet', '-J',
- '-r', '-V', 'config-2',
- path],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- except OSError as e:
+ # NOTE(toabctl): Luckily, genisoimage, mkisofs and xorrisofs understand
+ # the same parameters which are currently used.
+ cmds = ['genisoimage', 'mkisofs', 'xorrisofs']
+ for c in cmds:
+ try:
+ p = subprocess.Popen([c,
+ '-o', tmpfile.name,
+ '-ldots', '-allow-lowercase',
+ '-allow-multidot', '-l',
+ '-publisher', 'metalsmith',
+ '-quiet', '-J',
+ '-r', '-V', 'config-2',
+ path],
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE)
+ except OSError as e:
+ error = e
+ else:
+ error = None
+ break
+
+ if error:
raise RuntimeError(
'Error generating the configdrive. Make sure the '
- '"genisoimage" tool is installed. Error: %s' % e)
+ '"genisoimage", "mkisofs" or "xorrisofs" tool is installed. '
+ 'Error: %s' % error)
stdout, stderr = p.communicate()
if p.returncode != 0:
diff --git
a/releasenotes/notes/baremetal-configdrive-mkisofs-xorrisofs-075db4d7d80e5a13.yaml
b/releasenotes/notes/baremetal-configdrive-mkisofs-xorrisofs-075db4d7d80e5a13.yaml
new file mode 100644
index 00000000..008459e8
--- /dev/null
+++
b/releasenotes/notes/baremetal-configdrive-mkisofs-xorrisofs-075db4d7d80e5a13.yaml
@@ -0,0 +1,8 @@
+---
+features:
+ - |
+ When generating a config drive for baremetal, "mkisofs" and "xorrisofs"
+ are now supported beside the already available "genisoimage" binary.
+ This is useful on environment where the "genisoimage" binary is not
+ available but "mkisofs" and/or "xorrisofs" are available.
+
--
2.21.0
++++++ _service ++++++
--- /var/tmp/diff_new_pack.ICDZnW/_old 2019-05-03 22:44:05.303451387 +0200
+++ /var/tmp/diff_new_pack.ICDZnW/_new 2019-05-03 22:44:05.303451387 +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/openstacksdk/openstacksdk.spec.j2</param>
+ <param
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/stein/openstack/openstacksdk/openstacksdk.spec.j2</param>
<param name="output-name">python-openstacksdk.spec</param>
- <param
name="requirements">https://raw.githubusercontent.com/openstack/python-openstacksdk/stable/rocky/requirements.txt</param>
+ <param
name="requirements">https://raw.githubusercontent.com/openstack/python-openstacksdk/stable/stein/requirements.txt</param>
<param name="changelog-email">[email protected]</param>
<param name="changelog-provider">gh,openstack,python-openstacksdk</param>
</service>
++++++ openstacksdk-0.17.2.tar.gz -> openstacksdk-0.27.0.tar.gz ++++++
++++ 46755 lines of diff (skipped)