commit python-novaclient for openSUSE:Factory
Hello community, here is the log from the commit of package python-novaclient for openSUSE:Factory checked in at 2019-07-04 15:42:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-novaclient (Old) and /work/SRC/openSUSE:Factory/.python-novaclient.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-novaclient" Thu Jul 4 15:42:25 2019 rev:32 rq:710315 version:13.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-novaclient/python-novaclient.changes 2019-05-03 22:41:33.815132455 +0200 +++ /work/SRC/openSUSE:Factory/.python-novaclient.new.4615/python-novaclient.changes 2019-07-04 15:42:26.866032208 +0200 @@ -1,0 +2,12 @@ +Mon Jun 17 10:05:20 UTC 2019 - cloud-devel@suse.de + +- update to version 13.0.1 + - Update .gitreview for stable/stein + - Add test for console-log and docs for bug 1746534 + - Revert "Fix crashing console-log" + - Set the lower limit of api_version for volume_type + - Replace openstack.org git:// URLs with https:// + - OpenDev Migration Patch + - Update UPPER_CONSTRAINTS_FILE for stable/stein + +------------------------------------------------------------------- Old: ---- python-novaclient-13.0.0.tar.gz New: ---- python-novaclient-13.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-novaclient.spec ++++++ --- /var/tmp/diff_new_pack.7NKW1Z/_old 2019-07-04 15:42:27.414032865 +0200 +++ /var/tmp/diff_new_pack.7NKW1Z/_new 2019-07-04 15:42:27.414032865 +0200 @@ -17,12 +17,12 @@ Name: python-novaclient -Version: 13.0.0 +Version: 13.0.1 Release: 0 Summary: Python API and CLI for OpenStack Nova License: Apache-2.0 Group: Development/Languages/Python -Source0: https://files.pythonhosted.org/packages/source/p/python-novaclient/python-no... +Source0: https://files.pythonhosted.org/packages/source/p/python-novaclient/python-no... BuildRequires: openssl BuildRequires: openstack-macros BuildRequires: python2-cinderclient @@ -102,7 +102,7 @@ %build %{python_build} -PBR_VERSION=13.0.0 sphinx-build -b html -d doc/build/doctrees doc/source doc/build/html +PBR_VERSION=13.0.1 sphinx-build -b html -d doc/build/doctrees doc/source doc/build/html # Fix hidden-file-or-dir warnings rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo ++++++ python-novaclient-13.0.0.tar.gz -> python-novaclient-13.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/.zuul.yaml new/python-novaclient-13.0.1/.zuul.yaml --- old/python-novaclient-13.0.0/.zuul.yaml 2019-03-08 01:25:11.000000000 +0100 +++ new/python-novaclient-13.0.1/.zuul.yaml 2019-06-13 12:32:07.000000000 +0200 @@ -5,7 +5,7 @@ post-run: playbooks/legacy/novaclient-dsvm-functional/post.yaml timeout: 7200 required-projects: - - openstack-infra/devstack-gate + - openstack/devstack-gate - openstack/nova - openstack/python-novaclient diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/ChangeLog new/python-novaclient-13.0.1/ChangeLog --- old/python-novaclient-13.0.0/ChangeLog 2019-03-08 01:26:15.000000000 +0100 +++ new/python-novaclient-13.0.1/ChangeLog 2019-06-13 12:33:16.000000000 +0200 @@ -1,6 +1,17 @@ CHANGES ======= +13.0.1 +------ + +* Set the lower limit of api\_version for volume\_type +* OpenDev Migration Patch +* Add test for console-log and docs for bug 1746534 +* Revert "Fix crashing console-log" +* Replace openstack.org git:// URLs with https:// +* Update UPPER\_CONSTRAINTS\_FILE for stable/stein +* Update .gitreview for stable/stein + 13.0.0 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/PKG-INFO new/python-novaclient-13.0.1/PKG-INFO --- old/python-novaclient-13.0.0/PKG-INFO 2019-03-08 01:26:16.000000000 +0100 +++ new/python-novaclient-13.0.1/PKG-INFO 2019-06-13 12:33:16.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-novaclient -Version: 13.0.0 +Version: 13.0.1 Summary: Client library for OpenStack Compute API Home-page: https://docs.openstack.org/python-novaclient/latest Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/doc/source/cli/nova.rst new/python-novaclient-13.0.1/doc/source/cli/nova.rst --- old/python-novaclient-13.0.0/doc/source/cli/nova.rst 2019-03-08 01:25:15.000000000 +0100 +++ new/python-novaclient-13.0.1/doc/source/cli/nova.rst 2019-06-13 12:32:07.000000000 +0200 @@ -1177,6 +1177,33 @@ Get console log output of a server. +**Locale encoding issues** + +If you encounter an error such as: + +.. code-block:: console + + UnicodeEncodeError: 'ascii' codec can't encode characters in position + +The solution to these problems is different depending on which locale your +computer is running in. + +For instance, if you have a German Linux machine, you can fix the problem by +exporting the locale to de_DE.utf-8: + +.. code-block:: console + + export LC_ALL=de_DE.utf-8 + export LANG=de_DE.utf-8 + +If you are on a US machine, en_US.utf-8 is the encoding of choice. On some +newer Linux systems, you could also try C.UTF-8 as the locale: + +.. code-block:: console + + export LC_ALL=C.UTF-8 + export LANG=C.UTF-8 + **Positional arguments:** ``<server>`` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/novaclient/tests/unit/v2/test_shell.py new/python-novaclient-13.0.1/novaclient/tests/unit/v2/test_shell.py --- old/python-novaclient-13.0.0/novaclient/tests/unit/v2/test_shell.py 2019-03-08 01:25:15.000000000 +0100 +++ new/python-novaclient-13.0.1/novaclient/tests/unit/v2/test_shell.py 2019-06-13 12:32:07.000000000 +0200 @@ -624,6 +624,34 @@ 'size=1,format=ext4,type=disk,shutdown=foobar ' 'some-server' % FAKE_UUID_1)) + def test_boot_from_volume_with_volume_type_latest_microversion(self): + self.run_command( + 'boot --flavor 1 --block-device id=%s,source=image,dest=volume,' + 'size=1,bootindex=0,shutdown=remove,tag=foo,volume_type=lvm ' + 'bfv-server' % FAKE_UUID_1, api_version='2.latest') + self.assert_called_anytime( + 'POST', '/servers', + {'server': { + 'flavorRef': '1', + 'name': 'bfv-server', + 'block_device_mapping_v2': [ + { + 'uuid': FAKE_UUID_1, + 'source_type': 'image', + 'destination_type': 'volume', + 'volume_size': '1', + 'delete_on_termination': True, + 'tag': 'foo', + 'boot_index': '0', + 'volume_type': 'lvm' + }, + ], + 'networks': 'auto', + 'imageRef': '', + 'min_count': 1, + 'max_count': 1, + }}) + def test_boot_from_volume_with_volume_type_old_microversion(self): ex = self.assertRaises( exceptions.CommandError, self.run_command, @@ -3553,6 +3581,12 @@ self.run_command('availability-zone-list') self.assert_called('GET', '/os-availability-zone/detail') + def test_console_log(self): + out = self.run_command('console-log --length 20 1234')[0] + self.assert_called('POST', '/servers/1234/action', + body={'os-getConsoleOutput': {'length': '20'}}) + self.assertIn('foo', out) + def test_server_security_group_add(self): self.run_command('add-secgroup sample-server testgroup') self.assert_called('POST', '/servers/1234/action', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/novaclient/v2/shell.py new/python-novaclient-13.0.1/novaclient/v2/shell.py --- old/python-novaclient-13.0.0/novaclient/v2/shell.py 2019-03-08 01:25:11.000000000 +0100 +++ new/python-novaclient-13.0.1/novaclient/v2/shell.py 2019-06-13 12:32:07.000000000 +0200 @@ -19,7 +19,6 @@ from __future__ import print_function import argparse -import codecs import collections import datetime import getpass @@ -146,7 +145,7 @@ 'delete_on_termination': False} bdm.append(bdm_dict) - supports_volume_type = cs.api_version == api_versions.APIVersion('2.67') + supports_volume_type = cs.api_version >= api_versions.APIVersion('2.67') for device_spec in args.block_device: spec_dict = _parse_device_spec(device_spec) @@ -2759,10 +2758,7 @@ """Get console log output of a server.""" server = _find_server(cs, args.server) data = server.get_console_output(length=args.length) - - if data and data[-1] != '\n': - data += '\n' - codecs.getwriter('utf-8')(sys.stdout).write(data) + print(data) @utils.arg('server', metavar='<server>', help=_('Name or ID of server.')) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/playbooks/legacy/novaclient-dsvm-functional/run.yaml new/python-novaclient-13.0.1/playbooks/legacy/novaclient-dsvm-functional/run.yaml --- old/python-novaclient-13.0.0/playbooks/legacy/novaclient-dsvm-functional/run.yaml 2019-03-08 01:25:11.000000000 +0100 +++ new/python-novaclient-13.0.1/playbooks/legacy/novaclient-dsvm-functional/run.yaml 2019-06-13 12:32:03.000000000 +0200 @@ -13,12 +13,12 @@ set -x cat > clonemap.yaml << EOF clonemap: - - name: openstack-infra/devstack-gate + - name: openstack/devstack-gate dest: devstack-gate EOF /usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \ - git://git.openstack.org \ - openstack-infra/devstack-gate + https://opendev.org \ + openstack/devstack-gate executable: /bin/bash chdir: '{{ ansible_user_dir }}/workspace' environment: '{{ zuul | zuul_legacy_vars }}' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/python_novaclient.egg-info/PKG-INFO new/python-novaclient-13.0.1/python_novaclient.egg-info/PKG-INFO --- old/python-novaclient-13.0.0/python_novaclient.egg-info/PKG-INFO 2019-03-08 01:26:15.000000000 +0100 +++ new/python-novaclient-13.0.1/python_novaclient.egg-info/PKG-INFO 2019-06-13 12:33:16.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-novaclient -Version: 13.0.0 +Version: 13.0.1 Summary: Client library for OpenStack Compute API Home-page: https://docs.openstack.org/python-novaclient/latest Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/python_novaclient.egg-info/pbr.json new/python-novaclient-13.0.1/python_novaclient.egg-info/pbr.json --- old/python-novaclient-13.0.0/python_novaclient.egg-info/pbr.json 2019-03-08 01:26:15.000000000 +0100 +++ new/python-novaclient-13.0.1/python_novaclient.egg-info/pbr.json 2019-06-13 12:33:16.000000000 +0200 @@ -1 +1 @@ -{"git_version": "62bf880", "is_release": true} \ No newline at end of file +{"git_version": "ef842ca0", "is_release": true} \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-novaclient-13.0.0/tox.ini new/python-novaclient-13.0.1/tox.ini --- old/python-novaclient-13.0.0/tox.ini 2019-03-08 01:25:11.000000000 +0100 +++ new/python-novaclient-13.0.1/tox.ini 2019-06-13 12:32:07.000000000 +0200 @@ -14,7 +14,7 @@ REQUIREMENTS_PIP_LOCATION install_command = pip install {opts} {packages} 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 -r{toxinidir}/requirements.txt commands = @@ -32,7 +32,7 @@ [testenv:venv] 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}/test-requirements.txt -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt @@ -41,7 +41,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 = @@ -53,7 +53,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 =
participants (1)
-
root