forwarded 889933 https://github.com/salt-formulas/salt-formula-glance/pull/23
thanks

Hi,

the build failure is caused by missing Python 3 support. I created a
upstream pull request and backported that commit for the Debian package.
An attached patch that I applied for the Ubuntu package is attached.

On Thu, 08 Feb 2018 23:10:25 +0200 Adrian Bunk <b...@debian.org> wrote:
> Source: salt-formula-glance
> Version: 2016.12.1-1
> Severity: serious
> Tags: buster sid
> 
> https://ci.debian.net/packages/s/salt-formula-glance/unstable/amd64/
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/sal
t-formula-glance.html
> 
> ...
>    dh_auto_test
>       make -j15 test
> make[1]: Entering directory '/build/1st/salt-formula-glance-2016.12.1'
> [ ! -d tests ] || (cd tests; ./run_tests.sh)
> /usr/bin/salt-call
> [WARNING ] Failed to open log file, do you have permission to write to
/var/log/salt/minion?
> [ERROR   ] Rendering exception occurred: Jinja variable 'dict object'
has no attribute 'iteritems'
> [CRITICAL] Rendering SLS 'base:glance.server' failed: Jinja variable
'dict object' has no attribute 'iteritems'
> local:
>     - Rendering SLS 'base:glance.server' failed: Jinja variable 'dict
object' has no attribute 'iteritems'
> [ERROR] Execution of glance.cluster failed
> [ERROR] Execution failed
> Makefile:22: recipe for target 'test' failed
> make[1]: *** [test] Error 1
> 
> 
-- 
Benjamin Drung
Debian & Ubuntu Developer
diff -Nru salt-formula-glance-2016.12.1/debian/changelog salt-formula-glance-2016.12.1/debian/changelog
--- salt-formula-glance-2016.12.1/debian/changelog	2016-12-25 17:05:47.000000000 +0100
+++ salt-formula-glance-2016.12.1/debian/changelog	2018-02-15 00:30:56.000000000 +0100
@@ -1,3 +1,9 @@
+salt-formula-glance (2016.12.1-1ubuntu1) bionic; urgency=medium
+
+  * Support Python 3 (Closes: #889933)
+
+ -- Benjamin Drung <bdr...@ubuntu.com>  Thu, 15 Feb 2018 00:30:56 +0100
+
 salt-formula-glance (2016.12.1-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru salt-formula-glance-2016.12.1/debian/control salt-formula-glance-2016.12.1/debian/control
--- salt-formula-glance-2016.12.1/debian/control	2016-11-21 15:55:48.000000000 +0100
+++ salt-formula-glance-2016.12.1/debian/control	2018-02-15 00:30:56.000000000 +0100
@@ -1,5 +1,6 @@
 Source: salt-formula-glance
-Maintainer: PKG OpenStack <openstack-de...@lists.alioth.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: PKG OpenStack <openstack-de...@lists.alioth.debian.org>
 Uploaders: Filip Pytloun <fi...@pytloun.cz>,
            Ondřej Nový <on...@debian.org>,
 Section: admin
diff -Nru salt-formula-glance-2016.12.1/debian/patches/0001-Support-Python-3.patch salt-formula-glance-2016.12.1/debian/patches/0001-Support-Python-3.patch
--- salt-formula-glance-2016.12.1/debian/patches/0001-Support-Python-3.patch	1970-01-01 01:00:00.000000000 +0100
+++ salt-formula-glance-2016.12.1/debian/patches/0001-Support-Python-3.patch	2018-02-15 00:30:56.000000000 +0100
@@ -0,0 +1,34 @@
+From 35de76452ffa540decd2b158bb33a42cebf3314d Mon Sep 17 00:00:00 2001
+From: Benjamin Drung <bdr...@debian.org>
+Date: Wed, 14 Feb 2018 23:54:30 +0100
+Subject: [PATCH] Support Python 3
+
+Bug-Debian: https://bugs.debian.org/889933
+Forwarded: https://github.com/salt-formulas/salt-formula-glance/pull/23
+---
+ _states/glanceng.py                | 2 +-
+ glance/client.sls                  | 4 ++--
+ glance/files/_backends/_swift.conf | 2 +-
+ glance/server.sls                  | 4 ++--
+ 4 files changed, 6 insertions(+), 6 deletions(-)
+
+--- a/glance/server.sls
++++ b/glance/server.sls
+@@ -121,7 +121,7 @@
+ 
+ {%- endfor %}
+ 
+-{%- for image_name, image in server.get('image', {}).iteritems() %}
++{%- for image_name, image in server.get('image', {}).items() %}
+ 
+ glance_download_{{ image_name }}:
+   cmd.run:
+@@ -144,7 +144,7 @@
+ 
+ {%- if server.policy is defined %}
+ 
+-{%- for key, policy in server.policy.iteritems() %}
++{%- for key, policy in server.policy.items() %}
+ 
+ policy_{{ key }}:
+   file.replace:
diff -Nru salt-formula-glance-2016.12.1/debian/patches/series salt-formula-glance-2016.12.1/debian/patches/series
--- salt-formula-glance-2016.12.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ salt-formula-glance-2016.12.1/debian/patches/series	2018-02-15 00:30:35.000000000 +0100
@@ -0,0 +1 @@
+0001-Support-Python-3.patch

Reply via email to