Hello community, here is the log from the commit of package openstack-nova for openSUSE:Factory checked in at 2013-11-20 11:06:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/openstack-nova (Old) and /work/SRC/openSUSE:Factory/.openstack-nova.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openstack-nova" Changes: -------- --- /work/SRC/openSUSE:Factory/openstack-nova/openstack-nova.changes 2013-10-18 19:23:26.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.openstack-nova.new/openstack-nova.changes 2013-11-20 11:06:16.000000000 +0100 @@ -1,0 +2,84 @@ +Mon Nov 18 10:37:25 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 2013.2.1.dev42.gf7cfc1c+git.1384771045.f7cfc1c: + + Fixes Invalid tag name error when using k:v tagname + + Cells: Fix instance deletes + + hyperv: Initialize target_iqn in attach_volume + +------------------------------------------------------------------- +Thu Nov 7 01:30:54 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 2013.2.1.dev36.g85c8f12+git.1383787854.85c8f12: + + Fail quickly if file injection for boot volume + + Fixes Hyper-V snapshot spawning issue + +------------------------------------------------------------------- +Mon Nov 4 00:40:45 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 2013.2.1.dev32.g818aac9+git.1383525645.818aac9: + + Remove unnecessary "LOG.error()" statement + + Make unshelve use new style BDM + + Sanitize passwords when logging payload in wsgi + + Add notification on deleting instance without host + + VMware: fix bug for reporting instance UUID's + + Fix setting backdoor port in service start + +------------------------------------------------------------------- +Sun Nov 3 01:16:30 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 2013.2.1.dev20.ga44c4d2+git.1383441390.a44c4d2: + + Pull system_metadata for notifications on instance.save() + + Fix all scripts to honor the enabled_ssl_apis flag + +------------------------------------------------------------------- +Fri Nov 1 00:38:32 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 2013.2.1.dev17.g3cdfe89+git.1383266312.3cdfe89: + + VMware: fix bug with booting from volumes + + ensure we don't boot oversized images + +------------------------------------------------------------------- +Thu Oct 31 12:58:53 GMT 2013 - aspi...@suse.com + +- Backport some patches from Cloud:OpenStack:Master + - add suse-cleanup-api-paste.diff + - add 0001-Claim-IPv6-is-unsupported-if-no-interface-with-IPv6-.patch + - add 0001-Robustify-determination-of-root-directory.patch + +------------------------------------------------------------------- +Thu Oct 31 01:18:53 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 2013.2.1.dev14.gd8e6477+git.1383182333.d8e6477: + + catch exception in start and stop server api + + Fix getting nwinfo for Instance obj + +------------------------------------------------------------------- +Tue Oct 29 00:27:58 GMT 2013 - aspi...@suse.com + +- Fix incomplete patch for lp#1202199 + - The hunk adjusting the corresponding test_model_xen test + was missing. + - The hw_vif_model meta-data property was allowed to override + the PV (netfront) driver choice, but that would have broken + things. + +------------------------------------------------------------------- +Mon Oct 28 01:43:13 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 2013.2.1.a11.g66e5a8d+git.1382924593.66e5a8d: + + VMware: fix regression attaching iscsi cinder volumes + + Fixes inconsistency in flavors list with marker + + Fixes unicode issue in the Hyper-V driver + +------------------------------------------------------------------- +Thu Oct 24 09:49:26 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 2013.2.1.a6.g6bf7e78+git.1382608166.6bf7e78: + + Update six dependency + + Fix NovaObject versioning attribute usage + + Open stable/havana + + Fixes datastore selection bug +- remove nova-rbd-use-local-devices.patch: not needed, not upstream +- unlock-six.diff: remove, upstream + +------------------------------------------------------------------- Old: ---- 0001-Alwas-set-model-netfront-for-xen-over-libvirt.patch nova-2013.2.tar.gz nova-rbd-use-local-devices.patch unlock-six.diff New: ---- 0001-Always-set-model-netfront-for-xen-over-libvirt.patch 0001-Claim-IPv6-is-unsupported-if-no-interface-with-IPv6-.patch 0001-Robustify-determination-of-root-directory.patch nova-stable-havana.tar.gz suse-cleanup-api-paste.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ openstack-nova-doc.spec ++++++ --- /var/tmp/diff_new_pack.H2cGTJ/_old 2013-11-20 11:06:17.000000000 +0100 +++ /var/tmp/diff_new_pack.H2cGTJ/_new 2013-11-20 11:06:17.000000000 +0100 @@ -20,13 +20,13 @@ %define majorversion 2012.2.3 Name: openstack-%{component}-doc -Version: 2013.2.rc2+git.1381578518.3c373ac +Version: 2013.2.1.dev42.gf7cfc1c+git.1384771045.f7cfc1c Release: 0 Summary: OpenStack Compute (Nova) - Documentation License: Apache-2.0 Group: Documentation/HTML Url: http://openstack.org/projects/compute/ -Source: nova-2013.2.tar.gz +Source: nova-stable-havana.tar.gz BuildRequires: graphviz BuildRequires: openstack-suse-macros BuildRequires: python-PasteDeploy @@ -60,7 +60,7 @@ This package contains documentation files for openstack-nova. %prep -%setup -q -n nova-2013.2 +%setup -q -n nova-2013.2.1.dev42.gf7cfc1c %openstack_cleanup_prep %build ++++++ openstack-nova.spec ++++++ --- /var/tmp/diff_new_pack.H2cGTJ/_old 2013-11-20 11:06:17.000000000 +0100 +++ /var/tmp/diff_new_pack.H2cGTJ/_new 2013-11-20 11:06:17.000000000 +0100 @@ -22,13 +22,13 @@ %define username openstack-%{component} Name: openstack-%{component} -Version: 2013.2.rc2+git.1381578518.3c373ac +Version: 2013.2.1.dev42.gf7cfc1c+git.1384771045.f7cfc1c Release: 0 Summary: OpenStack Compute (Nova) License: Apache-2.0 Group: System/Management Url: https://launchpad.net/nova -Source: nova-2013.2.tar.gz +Source: nova-stable-havana.tar.gz Source1: %{name}.init Source2: %{name}.logrotate Source4: openstack-nova-manage.sh @@ -43,15 +43,13 @@ Patch1: nova-conf-defaults.patch # PATCH-FIX-SLES TODO -- Patch2: nova-network-filter-bnc777488.patch -# PATCH-FIX-SLES rha...@suse.com -- -# This adds support for using /dev/rdb? devices for ceph volumes. It's need -# because our qemu and libvirt don't have librados support yet. (Not sure yet if -# this is worth upstreaming, we would at least have to make in configurable) -Patch3: nova-rbd-use-local-devices.patch # https://bugs.launchpad.net/nova/+bug/1202199 # https://review.openstack.org/#/c/37477/ -Patch7: 0001-Alwas-set-model-netfront-for-xen-over-libvirt.patch -Patch8: unlock-six.diff +Patch7: 0001-Always-set-model-netfront-for-xen-over-libvirt.patch +# PATCH-FIX-SUSE dmuel...@suse.com -- remove deprecated settings from api-paste +Patch8: suse-cleanup-api-paste.diff +Patch9: 0001-Robustify-determination-of-root-directory.patch +Patch10: 0001-Claim-IPv6-is-unsupported-if-no-interface-with-IPv6-.patch BuildRequires: crudini BuildRequires: fdupes BuildRequires: openstack-suse-macros @@ -75,7 +73,7 @@ Requires: openstack-suse-sudo Requires: python >= 2.6.8 Requires: python-nova = %{version} -Requires: python-oslo.config >= 1.2.0a3 +Requires: python-oslo.config >= 1.2.0 #Requires: vblade-persist Requires(post): sysconfig %if 0%{?suse_version} > 1110 @@ -252,6 +250,14 @@ %description vncproxy This package contains the vnc-proxy service for OpenStack. +%package -n openstack-xen-plugins +Summary: OpenStack Compute (Nova) - XenAPI support +Group: System/Management +Requires: %{name} = %{version} + +%description -n openstack-xen-plugins +This package contains the XenAPI support for OpenStack. + %package test Summary: OpenStack Compute (Nova) - Testsuite Group: System/Management @@ -279,14 +285,13 @@ OpenStack Nova and its components. %prep -%setup -q -n nova-2013.2 +%setup -q -n nova-2013.2.1.dev42.gf7cfc1c %patch1 -p1 %patch2 -p1 %patch7 -p1 %patch8 -# nova-volume code has been removed upstream in git commit 7e2b93acc59dea81d52684f7f659fcff32507e14 -# TODO -#patch3 -p1 +%patch9 -p1 +%patch10 -p1 %openstack_cleanup_prep %build @@ -347,8 +352,14 @@ # needed by api_samples test mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}-test/doc cp -r --preserve=timestamps doc/api_samples doc/v3 %{buildroot}%{_localstatedir}/lib/%{name}-test/doc/ +cp -r --preserve=timestamps plugins %{buildroot}%{_localstatedir}/lib/%{name}-test/ +mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}-test/plugins/xenserver/xenapi/etc/ +ln -sf /etc/xapi.d %{buildroot}%{_localstatedir}/lib/%{name}-test/plugins/xenserver/xenapi/etc/xapi.d %fdupes %{buildroot}%{_localstatedir}/lib/%{name}-test +### Build Xen-plugins +cp -r --preserve=timestamps plugins/xenserver/xenapi/etc/ %{buildroot} + ### misc %fdupes %{buildroot}%{python_sitelib}/%{component} @@ -684,6 +695,13 @@ %{_bindir}/nova-xvpvncproxy %{_mandir}/man1/nova-xvpvncproxy.1%{?ext_man} +%files -n openstack-xen-plugins +%defattr(-,root,root,-) +%doc LICENSE +%dir %{_sysconfdir}/xapi.d +%dir %{_sysconfdir}/xapi.d/plugins/ +%{_sysconfdir}/xapi.d/plugins/* + %files test %defattr(-,root,root) %{python_sitelib}/%{component}/tests/ ++++++ 0001-Always-set-model-netfront-for-xen-over-libvirt.patch ++++++ >From ce1c9b774e05ec10beab50c78edf374a6fd9b075 Mon Sep 17 00:00:00 2001 From: Tomasz Paszkowski <tpaszkow...@suse.com> Date: Wed, 17 Jul 2013 15:47:46 +0200 Subject: [PATCH] Always set model = 'netfront' for xen over libvirt. This will prevent emulated network driver to be attached to virtual machine. Emulated network driver is not working for xen over libvirt as tap interface name is suffixed by xen with '-emu' which makes this interface name too long. Additionaly security groups will also not work for this interface as openstack is setting up filters on interface without -emu suffix. Change-Id: I0907ce148e473edf6b81ea782fac2fa6a1b71a2d Fixes: bug #1202199 --- nova/tests/virt/libvirt/test_libvirt_vif.py | 2 +- nova/virt/libvirt/vif.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nova/tests/virt/libvirt/test_libvirt_vif.py b/nova/tests/virt/libvirt/test_libvirt_vif.py index a1df6c7..f6e48d9 100644 --- a/nova/tests/virt/libvirt/test_libvirt_vif.py +++ b/nova/tests/virt/libvirt/test_libvirt_vif.py @@ -360,7 +360,7 @@ def test_model_xen(self): d = vif.LibvirtGenericVIFDriver(self._get_conn("xen:///system")) xml = self._get_instance_xml(d, self.vif_bridge) - self._assertModel(xml) + self._assertModel(xml, "netfront") def test_generic_driver_none(self): d = vif.LibvirtGenericVIFDriver(self._get_conn()) diff --git a/nova/virt/libvirt/vif.py b/nova/virt/libvirt/vif.py index 047d1ac..8f34f61 100644 --- a/nova/virt/libvirt/vif.py +++ b/nova/virt/libvirt/vif.py @@ -105,9 +105,15 @@ def get_config(self, instance, vif, image_meta, inst_type): model = None driver = None + # For xen over libvirt we need to always use PV network + # drives as emulated ones will not work (xen suffixes them + # with -emu which makes interface name too long). Additionaly + # security groups will also not work for -emu suffixed interfaces. + if CONF.libvirt_type == "xen": + model = "netfront" # If the user has specified a 'vif_model' against the # image then honour that model - if image_meta: + elif image_meta: vif_model = image_meta.get('properties', {}).get('hw_vif_model') if vif_model is not None: -- 1.8.4.474.g128a96c ++++++ 0001-Claim-IPv6-is-unsupported-if-no-interface-with-IPv6-.patch ++++++ >From eb438a32371c6a042af604da7e186c119a9ea945 Mon Sep 17 00:00:00 2001 From: Dirk Mueller <d...@dmllr.de> Date: Sun, 21 Jul 2013 16:07:57 +0200 Subject: [PATCH] Claim IPv6 is unsupported if no interface with IPv6 configured When IPv6 is supported by glibc but no interface is configured to use ipv6 (because the ipv6 module is not loaded), skip ipv6 related checks. Change-Id: I15aaf3d01f0f51bdc0bd29f30728ca2ab8b5c30a --- nova/tests/test_test_utils.py | 30 ++++++++++++++++++++++++++++++ nova/tests/utils.py | 13 ++++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/nova/tests/test_test_utils.py b/nova/tests/test_test_utils.py index ef3a6fb..2184d39 100644 --- a/nova/tests/test_test_utils.py +++ b/nova/tests/test_test_utils.py @@ -14,6 +14,11 @@ # License for the specific language governing permissions and limitations # under the License. +import errno +import socket + +import fixtures + from nova import db from nova import test from nova.tests import utils as test_utils @@ -39,3 +44,28 @@ class TestUtilsTestCase(test.TestCase): # The challenge here is to define what exactly such a structure # must look like. pass + + def test_ipv6_supported(self): + self.assertIn(test_utils.is_ipv6_supported(), (False, True)) + + def fake_open(path): + raise IOError + + def fake_socket_fail(x, y): + e = socket.error() + e.errno = errno.EAFNOSUPPORT + raise e + + def fake_socket_ok(x, y): + return + + with fixtures.MonkeyPatch('socket.socket', fake_socket_fail): + self.assertFalse(test_utils.is_ipv6_supported()) + + with fixtures.MonkeyPatch('socket.socket', fake_socket_ok): + with fixtures.MonkeyPatch('sys.platform', 'windows'): + self.assertTrue(test_utils.is_ipv6_supported()) + + with fixtures.MonkeyPatch('sys.platform', 'linux2'): + with fixtures.MonkeyPatch('__builtin__.open', fake_open): + self.assertFalse(test_utils.is_ipv6_supported()) diff --git a/nova/tests/utils.py b/nova/tests/utils.py index 748a850..20a924c 100644 --- a/nova/tests/utils.py +++ b/nova/tests/utils.py @@ -17,6 +17,7 @@ import errno import platform import socket +import sys from oslo.config import cfg @@ -177,7 +178,7 @@ def killer_xml_body(): def is_ipv6_supported(): - has_ipv6_support = True + has_ipv6_support = socket.has_ipv6 try: s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) except socket.error as e: @@ -185,4 +186,14 @@ def is_ipv6_supported(): has_ipv6_support = False else: raise + + # check if there is at least one interface with ipv6 + if has_ipv6_support and sys.platform.startswith('linux'): + try: + with open('/proc/net/if_inet6') as f: + if not f.read(): + has_ipv6_support = False + except IOError: + has_ipv6_support = False + return has_ipv6_support -- 1.8.4.1 ++++++ 0001-Robustify-determination-of-root-directory.patch ++++++ >From 9827045f7fe843330e384b76d325c00092cba902 Mon Sep 17 00:00:00 2001 From: Dirk Mueller <d...@dmllr.de> Date: Mon, 28 Oct 2013 17:16:03 +0100 Subject: [PATCH] Robustify determination of root directory When tests are packaged into a different directory tree than the nova module itself, traversing backwards to the root directory does not work anymore with realpath/abspath. Use normpath instead. Change-Id: Ifbc3947a03029dcd4c02b6498a8d48f7849b8f1a Fixes-Bug: 1245553 --- nova/tests/virt/xenapi/test_xenapi.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/nova/tests/virt/xenapi/test_xenapi.py b/nova/tests/virt/xenapi/test_xenapi.py index a121aa2..4eb3cee 100644 --- a/nova/tests/virt/xenapi/test_xenapi.py +++ b/nova/tests/virt/xenapi/test_xenapi.py @@ -3975,16 +3975,17 @@ class XenAPISessionTestCase(test.NoDBTestCase): def test_verify_current_version_matches(self): session = self._get_mock_xapisession({}) + # Determine ROOTDIR relative to tests + TESTDIR = os.path.dirname(os.path.abspath(__file__)) + ROOTDIR = os.path.normpath(os.path.join( + TESTDIR, '..', '..', '..', '..')) # Import the plugin to extract its version - path = os.path.dirname(__file__) - rel_path_elem = "../../../../plugins/xenserver/xenapi/etc/xapi.d/" \ - "plugins/nova_plugin_version" - for elem in rel_path_elem.split('/'): - path = os.path.join(path, elem) - path = os.path.realpath(path) + XENPLUGIN = os.path.join( + ROOTDIR, *'plugins/xenserver/xenapi/etc/xapi.d/' + 'plugins/nova_plugin_version'.split('/')) plugin_version = None - with open(path) as plugin_file: + with open(XENPLUGIN) as plugin_file: for line in plugin_file: if "PLUGIN_VERSION = " in line: print line -- 1.8.4.1 ++++++ _service ++++++ --- /var/tmp/diff_new_pack.H2cGTJ/_old 2013-11-20 11:06:17.000000000 +0100 +++ /var/tmp/diff_new_pack.H2cGTJ/_new 2013-11-20 11:06:17.000000000 +0100 @@ -1,6 +1,6 @@ <services> <service name="git_tarballs" mode="disabled"> - <param name="url">http://tarballs.openstack.org/nova/nova-2013.2.tar.gz</param> + <param name="url">http://tarballs.openstack.org/nova/nova-stable-havana.tar.gz</param> <param name="email">opensuse-cl...@opensuse.org</param> </service> </services> ++++++ suse-cleanup-api-paste.diff ++++++ We set the authentication information in nova.conf, so remove the (deprecated) stuff from api-paste. --- etc/nova/api-paste.ini +++ etc/nova/api-paste.ini @@ -114,15 +114,5 @@ [filter:authtoken] paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory -auth_host = 127.0.0.1 -auth_port = 35357 -auth_protocol = http -admin_tenant_name = %SERVICE_TENANT_NAME% -admin_user = %SERVICE_USER% -admin_password = %SERVICE_PASSWORD% -# signing_dir is configurable, but the default behavior of the authtoken -# middleware should be sufficient. It will create a temporary directory -# in the home directory for the user the nova process is running as. -#signing_dir = /var/lib/nova/keystone-signing # Workaround for https://bugs.launchpad.net/nova/+bug/1154809 auth_version = v2.0 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org