Hello community, here is the log from the commit of package python-octaviaclient for openSUSE:Factory checked in at 2019-07-04 15:42:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-octaviaclient (Old) and /work/SRC/openSUSE:Factory/.python-octaviaclient.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-octaviaclient" Thu Jul 4 15:42:27 2019 rev:3 rq:710316 version:1.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-octaviaclient/python-octaviaclient.changes 2019-05-03 22:41:37.803140851 +0200 +++ /work/SRC/openSUSE:Factory/.python-octaviaclient.new.4615/python-octaviaclient.changes 2019-07-04 15:42:27.878033570 +0200 @@ -1,0 +2,9 @@ +Mon Jun 17 10:05:44 UTC 2019 - cloud-de...@suse.de + +- update to version 1.8.1 + - OpenDev Migration Patch + - Update .gitreview for stable/stein + - Make sure we always requests JSON responses + - Update UPPER_CONSTRAINTS_FILE for stable/stein + +------------------------------------------------------------------- Old: ---- python-octaviaclient-1.8.0.tar.gz New: ---- python-octaviaclient-1.8.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-octaviaclient.spec ++++++ --- /var/tmp/diff_new_pack.gpk4JE/_old 2019-07-04 15:42:28.318034257 +0200 +++ /var/tmp/diff_new_pack.gpk4JE/_new 2019-07-04 15:42:28.318034257 +0200 @@ -17,13 +17,13 @@ Name: python-octaviaclient -Version: 1.8.0 +Version: 1.8.1 Release: 0 Summary: Octavia Plugin for the OpenStack Command-line Client License: Apache-2.0 Group: Development/Languages/Python URL: https://launchpad.net/python-octaviaclient -Source0: https://files.pythonhosted.org/packages/source/p/python-octaviaclient/python-octaviaclient-1.8.0.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/python-octaviaclient/python-octaviaclient-1.8.1.tar.gz BuildRequires: openstack-macros BuildRequires: python-devel BuildRequires: python2-mock @@ -78,13 +78,13 @@ This package contains auto-generated documentation. %prep -%autosetup -p1 -n python-octaviaclient-1.8.0 +%autosetup -p1 -n python-octaviaclient-1.8.1 %py_req_cleanup %build %{python_build} -PBR_VERSION=1.8.0 sphinx-build -b html doc/source doc/build/html +PBR_VERSION=1.8.1 sphinx-build -b html doc/source doc/build/html # remove the sphinx-build leftovers rm -rf doc/build/html/.{doctrees,buildinfo} ++++++ python-octaviaclient-1.8.0.tar.gz -> python-octaviaclient-1.8.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-octaviaclient-1.8.0/ChangeLog new/python-octaviaclient-1.8.1/ChangeLog --- old/python-octaviaclient-1.8.0/ChangeLog 2019-03-07 11:24:46.000000000 +0100 +++ new/python-octaviaclient-1.8.1/ChangeLog 2019-06-06 22:07:32.000000000 +0200 @@ -1,6 +1,14 @@ CHANGES ======= +1.8.1 +----- + +* OpenDev Migration Patch +* Make sure we always requests JSON responses +* Update UPPER\_CONSTRAINTS\_FILE for stable/stein +* Update .gitreview for stable/stein + 1.8.0 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-octaviaclient-1.8.0/PKG-INFO new/python-octaviaclient-1.8.1/PKG-INFO --- old/python-octaviaclient-1.8.0/PKG-INFO 2019-03-07 11:24:46.000000000 +0100 +++ new/python-octaviaclient-1.8.1/PKG-INFO 2019-06-06 22:07:32.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-octaviaclient -Version: 1.8.0 +Version: 1.8.1 Summary: Octavia client for OpenStack Load Balancing Home-page: https://docs.openstack.org/python-octaviaclient/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-octaviaclient-1.8.0/octaviaclient/api/v2/octavia.py new/python-octaviaclient-1.8.1/octaviaclient/api/v2/octavia.py --- old/python-octaviaclient-1.8.0/octaviaclient/api/v2/octavia.py 2019-03-07 11:22:37.000000000 +0100 +++ new/python-octaviaclient-1.8.1/octaviaclient/api/v2/octavia.py 2019-06-06 22:04:36.000000000 +0200 @@ -12,6 +12,7 @@ # """Octavia API Library""" +import functools from osc_lib.api import api @@ -50,6 +51,13 @@ self.endpoint = self.endpoint.rstrip('/') self._build_url() + # Make sure we are always requesting JSON responses + JSON_HEADER = {'Accept': 'application/json'} + self._create = functools.partial(self.create, headers=JSON_HEADER) + self._delete = functools.partial(self.delete, headers=JSON_HEADER) + self._find = functools.partial(self.find, headers=JSON_HEADER) + self._list = functools.partial(self.list, headers=JSON_HEADER) + def _build_url(self): if not self.endpoint.endswith(self._endpoint_suffix): self.endpoint += self._endpoint_suffix @@ -63,7 +71,7 @@ List of load balancers """ url = const.BASE_LOADBALANCER_URL - response = self.list(url, **params) + response = self._list(url, **params) return response @@ -75,7 +83,7 @@ :return: A dict of the specified load balancer's settings """ - response = self.find(path=const.BASE_LOADBALANCER_URL, value=lb_id) + response = self._find(path=const.BASE_LOADBALANCER_URL, value=lb_id) return response @@ -89,7 +97,7 @@ A dict of the created load balancer's settings """ url = const.BASE_LOADBALANCER_URL - response = self.create(url, **params) + response = self._create(url, **params) return response @@ -105,7 +113,7 @@ Response Code from the API """ url = const.BASE_SINGLE_LB_URL.format(uuid=lb_id) - response = self.delete(url, params=params) + response = self._delete(url, params=params) return response @@ -121,7 +129,7 @@ Response Code from API """ url = const.BASE_SINGLE_LB_URL.format(uuid=lb_id) - response = self.create(url, method='PUT', **params) + response = self._create(url, method='PUT', **params) return response @@ -134,7 +142,7 @@ A dict of the specified load balancer's statistics """ url = const.BASE_LB_STATS_URL.format(uuid=lb_id) - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -147,7 +155,7 @@ A dict of the specified load balancer's status """ url = const.BASE_LOADBALANCER_STATUS_URL.format(uuid=lb_id) - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -161,7 +169,7 @@ Response Code from the API """ url = const.BASE_LOADBALANCER_FAILOVER_URL.format(uuid=lb_id) - response = self.create(url, method='PUT') + response = self._create(url, method='PUT') return response @@ -174,7 +182,7 @@ List of listeners """ url = const.BASE_LISTENER_URL - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -186,7 +194,7 @@ :return: A dict of the specified listener's settings """ - response = self.find(path=const.BASE_LISTENER_URL, value=listener_id) + response = self._find(path=const.BASE_LISTENER_URL, value=listener_id) return response @@ -200,7 +208,7 @@ A dict of the created listener's settings """ url = const.BASE_LISTENER_URL - response = self.create(url, **kwargs) + response = self._create(url, **kwargs) return response @@ -214,7 +222,7 @@ Response Code from the API """ url = const.BASE_SINGLE_LISTENER_URL.format(uuid=listener_id) - response = self.delete(url) + response = self._delete(url) return response @@ -230,7 +238,7 @@ Response Code from the API """ url = const.BASE_SINGLE_LISTENER_URL.format(uuid=listener_id) - response = self.create(url, method='PUT', **kwargs) + response = self._create(url, method='PUT', **kwargs) return response @@ -243,7 +251,7 @@ A dict of the specified listener's statistics """ url = const.BASE_LISTENER_STATS_URL.format(uuid=listener_id) - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -256,7 +264,7 @@ List of pools """ url = const.BASE_POOL_URL - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -270,7 +278,7 @@ A dict of the created pool's settings """ url = const.BASE_POOL_URL - response = self.create(url, **kwargs) + response = self._create(url, **kwargs) return response @@ -284,7 +292,7 @@ Response Code from the API """ url = const.BASE_SINGLE_POOL_URL.format(pool_id=pool_id) - response = self.delete(url) + response = self._delete(url) return response @@ -296,7 +304,7 @@ :return: Dict of the specified pool's settings """ - response = self.find(path=const.BASE_POOL_URL, value=pool_id) + response = self._find(path=const.BASE_POOL_URL, value=pool_id) return response @@ -312,7 +320,7 @@ Response Code from the API """ url = const.BASE_SINGLE_POOL_URL.format(pool_id=pool_id) - response = self.create(url, method='PUT', **kwargs) + response = self._create(url, method='PUT', **kwargs) return response @@ -327,7 +335,7 @@ Response list members """ url = const.BASE_MEMBER_URL.format(pool_id=pool_id) - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -344,7 +352,7 @@ Response of member """ url = const.BASE_MEMBER_URL.format(pool_id=pool_id) - response = self.find(path=url, value=member_id) + response = self._find(path=url, value=member_id) return response @@ -360,7 +368,7 @@ A member details on successful creation """ url = const.BASE_MEMBER_URL.format(pool_id=pool_id) - response = self.create(url, **kwargs) + response = self._create(url, **kwargs) return response @@ -377,7 +385,7 @@ """ url = const.BASE_SINGLE_MEMBER_URL.format(pool_id=pool_id, member_id=member_id) - response = self.delete(url) + response = self._delete(url) return response @@ -396,7 +404,7 @@ """ url = const.BASE_SINGLE_MEMBER_URL.format(pool_id=pool_id, member_id=member_id) - response = self.create(url, method='PUT', **kwargs) + response = self._create(url, method='PUT', **kwargs) return response @@ -409,7 +417,7 @@ List of l7policies """ url = const.BASE_L7POLICY_URL - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -423,7 +431,7 @@ A dict of the created l7policy's settings """ url = const.BASE_L7POLICY_URL - response = self.create(url, **kwargs) + response = self._create(url, **kwargs) return response @@ -437,7 +445,7 @@ Response Code from the API """ url = const.BASE_SINGLE_L7POLICY_URL.format(policy_uuid=l7policy_id) - response = self.delete(url) + response = self._delete(url) return response @@ -449,7 +457,7 @@ :return: Dict of the specified l7policy's settings """ - response = self.find(path=const.BASE_L7POLICY_URL, value=l7policy_id) + response = self._find(path=const.BASE_L7POLICY_URL, value=l7policy_id) return response @@ -465,7 +473,7 @@ Response Code from the API """ url = const.BASE_SINGLE_L7POLICY_URL.format(policy_uuid=l7policy_id) - response = self.create(url, method='PUT', **kwargs) + response = self._create(url, method='PUT', **kwargs) return response @@ -478,7 +486,7 @@ List of l7rules """ url = const.BASE_L7RULE_URL.format(policy_uuid=l7policy_id) - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -494,7 +502,7 @@ A dict of the created l7rule's settings """ url = const.BASE_L7RULE_URL.format(policy_uuid=l7policy_id) - response = self.create(url, **kwargs) + response = self._create(url, **kwargs) return response @@ -511,7 +519,7 @@ """ url = const.BASE_SINGLE_L7RULE_URL.format(rule_uuid=l7rule_id, policy_uuid=l7policy_id) - response = self.delete(url) + response = self._delete(url) return response @@ -526,7 +534,7 @@ Dict of the specified l7rule's settings """ url = const.BASE_L7RULE_URL.format(policy_uuid=l7policy_id) - response = self.find(path=url, value=l7rule_id) + response = self._find(path=url, value=l7rule_id) return response @@ -545,7 +553,7 @@ """ url = const.BASE_SINGLE_L7RULE_URL.format(rule_uuid=l7rule_id, policy_uuid=l7policy_id) - response = self.create(url, method='PUT', **kwargs) + response = self._create(url, method='PUT', **kwargs) return response @@ -558,7 +566,7 @@ A dict containing a list of health monitors """ url = const.BASE_HEALTH_MONITOR_URL - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -572,7 +580,7 @@ A dict of the created health monitor's settings """ url = const.BASE_HEALTH_MONITOR_URL - response = self.create(url, **kwargs) + response = self._create(url, **kwargs) return response @@ -587,7 +595,7 @@ """ url = const.BASE_SINGLE_HEALTH_MONITOR_URL.format( uuid=health_monitor_id) - response = self.delete(url) + response = self._delete(url) return response @@ -600,7 +608,7 @@ Dict of the specified health monitor's settings """ url = const.BASE_HEALTH_MONITOR_URL - response = self.find(path=url, value=health_monitor_id) + response = self._find(path=url, value=health_monitor_id) return response @@ -617,7 +625,7 @@ """ url = const.BASE_SINGLE_HEALTH_MONITOR_URL.format( uuid=health_monitor_id) - response = self.create(url, method='PUT', **kwargs) + response = self._create(url, method='PUT', **kwargs) return response @@ -630,7 +638,7 @@ A ``dict`` representing a list of quotas for the project """ url = const.BASE_QUOTA_URL - response = self.list(url, **params) + response = self._list(url, **params) return response @@ -642,7 +650,7 @@ :return: A ``dict`` representing the quota for the project """ - response = self.find(path=const.BASE_QUOTA_URL, value=project_id) + response = self._find(path=const.BASE_QUOTA_URL, value=project_id) return response @@ -656,7 +664,7 @@ ``None`` """ url = const.BASE_SINGLE_QUOTA_URL.format(uuid=project_id) - response = self.delete(url) + response = self._delete(url) return response @@ -672,7 +680,7 @@ A ``dict`` representing the updated quota """ url = const.BASE_SINGLE_QUOTA_URL.format(uuid=project_id) - response = self.create(url, method='PUT', **params) + response = self._create(url, method='PUT', **params) return response @@ -683,7 +691,7 @@ A ``dict`` representing a list of quota defaults """ url = const.BASE_QUOTA_DEFAULT_URL - response = self.list(url) + response = self._list(url) return response @@ -696,7 +704,7 @@ A ``dict`` of the specified amphora's attributes """ url = const.BASE_AMPHORA_URL - response = self.find(path=url, value=amphora_id) + response = self._find(path=url, value=amphora_id) return response @@ -709,7 +717,7 @@ A ``dict`` containing a list of amphorae """ url = const.BASE_AMPHORA_URL - response = self.list(path=url, **kwargs) + response = self._list(path=url, **kwargs) return response @@ -723,7 +731,7 @@ Response Code from the API """ url = const.BASE_AMPHORA_CONFIGURE_URL.format(uuid=amphora_id) - response = self.create(url, method='PUT') + response = self._create(url, method='PUT') return response @@ -737,7 +745,7 @@ Response Code from the API """ url = const.BASE_AMPHORA_FAILOVER_URL.format(uuid=amphora_id) - response = self.create(url, method='PUT') + response = self._create(url, method='PUT') return response @@ -748,7 +756,7 @@ A ``dict`` containing a list of provider """ url = const.BASE_PROVIDER_URL - response = self.list(path=url) + response = self._list(path=url) return response @@ -762,7 +770,7 @@ """ url = const.BASE_PROVIDER_FLAVOR_CAPABILITY_URL.format( provider=provider) - response = self.list(url) + response = self._list(url) return response @@ -775,7 +783,7 @@ A ``dict`` containing a list of flavor """ url = const.BASE_FLAVOR_URL - response = self.list(path=url, **kwargs) + response = self._list(path=url, **kwargs) return response @@ -789,7 +797,7 @@ Response Code from the API """ url = const.BASE_SINGLE_FLAVOR_URL.format(uuid=flavor_id) - response = self.delete(url) + response = self._delete(url) return response @@ -803,7 +811,7 @@ A dict of the created flavor's settings """ url = const.BASE_FLAVOR_URL - response = self.create(url, **kwargs) + response = self._create(url, **kwargs) return response @@ -819,7 +827,7 @@ Response Code from the API """ url = const.BASE_SINGLE_FLAVOR_URL.format(uuid=flavor_id) - response = self.create(url, method='PUT', **kwargs) + response = self._create(url, method='PUT', **kwargs) return response @@ -831,7 +839,7 @@ :return: A dict of the specified flavor's settings """ - response = self.find(path=const.BASE_FLAVOR_URL, value=flavor_id) + response = self._find(path=const.BASE_FLAVOR_URL, value=flavor_id) return response @@ -845,7 +853,7 @@ A dict of the created flavor profile's settings """ url = const.BASE_FLAVORPROFILE_URL - response = self.create(url, **kwargs) + response = self._create(url, **kwargs) return response @@ -858,7 +866,7 @@ List of flavor profile """ url = const.BASE_FLAVORPROFILE_URL - response = self.list(url, **kwargs) + response = self._list(url, **kwargs) return response @@ -870,8 +878,8 @@ :return: A dict of the specified flavor profile's settings """ - response = self.find(path=const.BASE_FLAVORPROFILE_URL, - value=flavorprofile_id) + response = self._find(path=const.BASE_FLAVORPROFILE_URL, + value=flavorprofile_id) return response @@ -887,7 +895,7 @@ Response Code from the API """ url = const.BASE_SINGLE_FLAVORPROFILE_URL.format(uuid=flavorprofile_id) - response = self.create(url, method='PUT', **kwargs) + response = self._create(url, method='PUT', **kwargs) return response @@ -901,7 +909,7 @@ Response Code from the API """ url = const.BASE_SINGLE_FLAVORPROFILE_URL.format(uuid=flavorprofile_id) - response = self.delete(url) + response = self._delete(url) return response diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-octaviaclient-1.8.0/python_octaviaclient.egg-info/PKG-INFO new/python-octaviaclient-1.8.1/python_octaviaclient.egg-info/PKG-INFO --- old/python-octaviaclient-1.8.0/python_octaviaclient.egg-info/PKG-INFO 2019-03-07 11:24:46.000000000 +0100 +++ new/python-octaviaclient-1.8.1/python_octaviaclient.egg-info/PKG-INFO 2019-06-06 22:07:32.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-octaviaclient -Version: 1.8.0 +Version: 1.8.1 Summary: Octavia client for OpenStack Load Balancing Home-page: https://docs.openstack.org/python-octaviaclient/latest/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-octaviaclient-1.8.0/python_octaviaclient.egg-info/SOURCES.txt new/python-octaviaclient-1.8.1/python_octaviaclient.egg-info/SOURCES.txt --- old/python-octaviaclient-1.8.0/python_octaviaclient.egg-info/SOURCES.txt 2019-03-07 11:24:46.000000000 +0100 +++ new/python-octaviaclient-1.8.1/python_octaviaclient.egg-info/SOURCES.txt 2019-06-06 22:07:32.000000000 +0200 @@ -85,6 +85,7 @@ python_octaviaclient.egg-info/top_level.txt releasenotes/notes/.placeholder releasenotes/notes/Add-support-for-UDP-5476caa65b1253a6.yaml +releasenotes/notes/Client-to-request-JSON-responses-8d942dafca785c70.yaml releasenotes/notes/add-amphora-configure-command-cda75053a72c0cdf.yaml releasenotes/notes/add-amphorae-failover-suuport-9fa0b1c25026e123.yaml releasenotes/notes/add-flavor-support-75c6d5bec48b1d18.yaml diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-octaviaclient-1.8.0/python_octaviaclient.egg-info/pbr.json new/python-octaviaclient-1.8.1/python_octaviaclient.egg-info/pbr.json --- old/python-octaviaclient-1.8.0/python_octaviaclient.egg-info/pbr.json 2019-03-07 11:24:46.000000000 +0100 +++ new/python-octaviaclient-1.8.1/python_octaviaclient.egg-info/pbr.json 2019-06-06 22:07:32.000000000 +0200 @@ -1 +1 @@ -{"git_version": "9f0c348", "is_release": true} \ No newline at end of file +{"git_version": "f3bb183", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-octaviaclient-1.8.0/releasenotes/notes/Client-to-request-JSON-responses-8d942dafca785c70.yaml new/python-octaviaclient-1.8.1/releasenotes/notes/Client-to-request-JSON-responses-8d942dafca785c70.yaml --- old/python-octaviaclient-1.8.0/releasenotes/notes/Client-to-request-JSON-responses-8d942dafca785c70.yaml 1970-01-01 01:00:00.000000000 +0100 +++ new/python-octaviaclient-1.8.1/releasenotes/notes/Client-to-request-JSON-responses-8d942dafca785c70.yaml 2019-06-06 22:04:36.000000000 +0200 @@ -0,0 +1,6 @@ +--- +fixes: + - | + The client will now always ask for a JSON format response from the Octavia + API. This resolves a client side bug should certain errors be returned + by the API. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-octaviaclient-1.8.0/tox.ini new/python-octaviaclient-1.8.1/tox.ini --- old/python-octaviaclient-1.8.0/tox.ini 2019-03-07 11:22:37.000000000 +0100 +++ new/python-octaviaclient-1.8.1/tox.ini 2019-06-06 22:04:42.000000000 +0200 @@ -13,7 +13,7 @@ VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein} -r{toxinidir}/test-requirements.txt commands = find . -type f -name "*.pyc" -delete @@ -47,7 +47,7 @@ [testenv:docs] basepython = python3 deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein} -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands = @@ -57,7 +57,7 @@ [testenv:releasenotes] basepython = python3 deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein} -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands =