From 72a57df5370b92ed6f513eff2aee84136797744b Mon Sep 17 00:00:00 2001 From: Simon Dodsley Date: Fri, 11 Mar 2016 09:12:04 -0500 Subject: [PATCH] Interim fix for Mirantis bug (https://bugs.launchpad.net/fuel/+bug/1547048) Run 3 sepeerate commands in an exec() call instead of the usual pip provider call to make pip respond correctly and not crash Change-Id: Ic9449395d1aa0fcf02442adcd495e058383197fc --- .../manifests/controller.pp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/deployment_scripts/puppet/modules/plugin_purestorage_cinder/manifests/controller.pp b/deployment_scripts/puppet/modules/plugin_purestorage_cinder/manifests/controller.pp index c1bded8..659e67b 100755 --- a/deployment_scripts/puppet/modules/plugin_purestorage_cinder/manifests/controller.pp +++ b/deployment_scripts/puppet/modules/plugin_purestorage_cinder/manifests/controller.pp @@ -23,10 +23,19 @@ class plugin_purestorage_cinder::controller ( include ::cinder::client include ::keystone::client - package {"purestorage": - ensure => "installed", - provider => pip - } +# +# Interim fix for Mirantis bug (https://bugs.launchpad.net/fuel/+bug/1547048) +# Run 3 sepeerate commands to make pip respond correctly and not crash +# +# package {"purestorage": +# ensure => "installed", +# provider => pip +# } + + exec {"pip configuration": + command => 'pip install -U pip; pip install --upgrade distribute; pip install purestorage', + path => ['/usr/bin'] + } $plugin_settings = hiera('fuel-plugin-purestorage-cinder')