From 791ca7748f92dd9bf0cbaba8584f1a119c2b72d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Albert?= Date: Fri, 29 Apr 2016 11:48:40 -0500 Subject: [PATCH] Fix uuidgen not installed in some ubuntu installs On some basic ubuntu install the uuidgen commands is not there causing gnocchi installation to fail. Add a new pre-install commands to install the package on ubuntu systems. Change-Id: I456b2421905c383c5df39deb7f1a1819ad1c990e --- devstack/plugin.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index dddbb23d8..b3ef79308 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -354,9 +354,10 @@ function init_gnocchi { } function preinstall_gnocchi { - # Needed to build psycopg2 if is_ubuntu; then - install_package libpq-dev + # libpq-dev is needed to build psycopg2 + # uuid-runtime is needed to use the uuidgen command + install_package libpq-dev uuid-runtime else install_package postgresql-devel fi