Fix missing libffi-devel for python-glanceclient
python-glanceclient is failing to install on rhel6 with a dependency
chain from pip as
cryptography>=0.2.1 (from pyOpenSSL>=0.11->python-glanceclient==0.12.0.56.gb8a850c)
cryptography requires libffi-devel to build. I'm not sure what
changed, but remove it from "testonly" so it is always installed.
However, RHEL6 includes this in the optional repo, so we enable this
repo in the fixup script.
Change-Id: I9da0e91b75f41578861ee9685b8c7e91dd12dae7
diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh
index 47b0cd1..048024a 100755
--- a/tools/fixup_stuff.sh
+++ b/tools/fixup_stuff.sh
@@ -98,6 +98,10 @@
sudo setenforce 0
fi
+ # make sure we have the "optional" repo enabled; it provides some
+ # packages like libffi-devel for example
+ sudo yum-config-manager --enable rhel-6-server-optional-rpms
+
# If the ``dbus`` package was installed by DevStack dependencies the
# uuid may not be generated because the service was never started (PR#598200),
# causing Nova to stop later on complaining that ``/var/lib/dbus/machine-id``