From 1ee499729b29362b5ab422839943654f9f0ec698 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Thu, 20 Jun 2013 11:02:18 +0100 Subject: [PATCH] Fix pyOpenSSL on Fedora. On fedora 18 the package pyOpenSSL is conflicting with one of the packages needed to build the bootstack image. The problem gets sorted if you install pyOpenSSL at the beginning of the image building process and this is what this patch is doing. Change-Id: I681683b81ad638dfeb690fde1bc7d08a2116aaed --- elements/fedora/bin/map-packages | 1 + elements/fedora/install.d/00-fedora-fixup-pyopenssl | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100755 elements/fedora/install.d/00-fedora-fixup-pyopenssl diff --git a/elements/fedora/bin/map-packages b/elements/fedora/bin/map-packages index 2b200086f..d21e28fed 100755 --- a/elements/fedora/bin/map-packages +++ b/elements/fedora/bin/map-packages @@ -42,6 +42,7 @@ package_map = { 'libssl-dev': 'openssl-devel', 'libz-dev': 'zlib-devel', 'qemu-utils': 'qemu-img', + 'python-pyopenssl': 'pyOpenSSL', } for arg in sys.argv[1:]: diff --git a/elements/fedora/install.d/00-fedora-fixup-pyopenssl b/elements/fedora/install.d/00-fedora-fixup-pyopenssl new file mode 100755 index 000000000..270487fa2 --- /dev/null +++ b/elements/fedora/install.d/00-fedora-fixup-pyopenssl @@ -0,0 +1,11 @@ +#!/bin/bash + +# FIXME: To avoid conflict between the pyOpenSSL installed via python-pip +# and pyOpenSSL installed via yum, we are going to sort it out installing +# it earlier at the beginning of the image building process. Pyhton-pip +# is installing pyOpenSSL as part of satisfying the requirements.txt +# in python-glanceclient and afterwards yum tries to install it as a +# dependency of the python-paste package needed for the heat element, +# this seems to be conflicting and causing the image building process to +# fail. The problem is hapenning on a Fedora 18 system. +install-packages python-pyopenssl