diff -Nru horizon-11.0.4/debian/changelog horizon-11.0.4/debian/changelog --- horizon-11.0.4/debian/changelog 2017-12-04 22:50:37.000000000 +0900 +++ horizon-11.0.4/debian/changelog 2017-12-07 13:46:12.000000000 +0900 @@ -1,3 +1,10 @@ +horizon (3:11.0.4-0ubuntu2) zesty; urgency=medium + + * Fix create consistency group form exception (LP: #1681073) + - d/p/fix_create_consistency_group_form_exception.patch + + -- Seyeong Kim Thu, 07 Dec 2017 13:42:59 +0900 + horizon (3:11.0.4-0ubuntu1) zesty; urgency=medium * New stable point release for OpenStack Ocata (LP: #1736149). diff -Nru horizon-11.0.4/debian/patches/fix_create_consistency_group_form_exception.patch horizon-11.0.4/debian/patches/fix_create_consistency_group_form_exception.patch --- horizon-11.0.4/debian/patches/fix_create_consistency_group_form_exception.patch 1970-01-01 09:00:00.000000000 +0900 +++ horizon-11.0.4/debian/patches/fix_create_consistency_group_form_exception.patch 2017-12-07 13:46:33.000000000 +0900 @@ -0,0 +1,37 @@ +From 89bb9268204a2316fc526d660f38d5517980f209 Mon Sep 17 00:00:00 2001 +From: "wei.ying" +Date: Sat, 8 Apr 2017 21:41:24 +0800 +Subject: [PATCH] Fix create consistency group form exception +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Volume type extra specs may not contain ‘volume_backend_name’, +it should be judged before getting it. + +Change-Id: I5dbc0636ba1c949df569acbbfc8a0879f7a76992 +Closes-Bug: #1681073 +--- + openstack_dashboard/dashboards/project/cgroups/workflows.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +Description: File location has changed, + there is volumes directory in project directory in xenial +Origin: upstream, https://git.openstack.org/cgit/openstack/horizon/commit/?id=89bb9268204a2316fc526d660f38d5517980f209 +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1681073 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: horizon-11.0.4/openstack_dashboard/dashboards/project/volumes/cgroups/workflows.py +=================================================================== +--- horizon-11.0.4.orig/openstack_dashboard/dashboards/project/volumes/cgroups/workflows.py ++++ horizon-11.0.4/openstack_dashboard/dashboards/project/volumes/cgroups/workflows.py +@@ -314,7 +314,8 @@ class CreateCGroupWorkflow(workflows.Wor + if not invalid_backend: + for vol_type in vol_types: + if selected_vol_type == vol_type.id: +- if hasattr(vol_type, "extra_specs"): ++ if (hasattr(vol_type, "extra_specs") and ++ 'volume_backend_name' in vol_type.extra_specs): + vol_type_backend = \ + vol_type.extra_specs['volume_backend_name'] + if vol_type_backend is None: diff -Nru horizon-11.0.4/debian/patches/series horizon-11.0.4/debian/patches/series --- horizon-11.0.4/debian/patches/series 2017-12-04 22:50:37.000000000 +0900 +++ horizon-11.0.4/debian/patches/series 2017-12-07 13:41:57.000000000 +0900 @@ -5,3 +5,4 @@ embedded-xstatic.patch add-juju-environment-download.patch fetch-cinder-availability-zones-list-for-volume-creation.patch +fix_create_consistency_group_form_exception.patch