Description of problem: ======================= When using packstack to install openstack on multiple nodes, some of them might not be configured with openstack repository. packstack should return an informative error about this case. Version-Release number of selected component (if applicable): ============================================================= Folsom. packstack version: openstack-packstack-2012.2.2-0.1.dev205.el6ost.noarch How reproducible: ================= Always. Steps to Reproduce: =================== 1. set packstack answer file CONFIG_DEBUG=y (not a must) 2. Use packstack to install openstack on multiple nodes. make sure some of them don't have openstack puddle.repo in /etc/yum.repos.d/ Actual results: =============== 1. packstack fails to install with the following error: Exception: Error running remote script log attached to this bug. Expected results: ================= 1. packstack should fail but it should display a more informative error.
Fix now committed upstream https://github.com/fedora-openstack/packstack/commit/38a64e4c404d427490cd06c2f511947b42e9b4a6 puppet run errors are now reported to the user and packstack will stop
Reopened. Following to our IRC chat: <derekh> the checking I put in was to check if the openstack packstack couldn't be installed by puppet, I never put in a check to see if puppet couldn't be installed. packstack log: + trap t ERR + rpm -q puppet + yum install -y puppet Error: Nothing to do ++ t ++ exit 1 DEBUG:root:Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/packstack/installer/setup_sequences.py", line 60, in run function() File "/usr/lib/python2.6/site-packages/packstack/plugins/puppet_950.py", line 71, in installpuppet server.execute() File "/usr/lib/python2.6/site-packages/packstack/installer/common_utils.py", line 398, in execute raise ScriptRuntimeError("Error running remote script") ScriptRuntimeError: Error running remote script Please make that puppet error display nicer.
Fix submitted upstream https://review.openstack.org/#/c/20816/1 In the case of puppet, Error now displays * ERROR : Error running remote script: package puppet is not installed Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process No package puppet available. In the case of other openstack modules * ERROR : Error during puppet run : err: /Stage[main]/Mysql::Server/Package[mysql-server]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install mysql-server' returned 1: Error: Nothing to do
Verified NVR: openstack-packstack-2012.2.2-1.0.dev408.el6ost.noarch ran packstack using an answer file, In which one of the configured nova-compute nodes is not configured with openstack repository. Result: Installing Dependencies... Additional information: * Time synchronization installation was skipped. Please note that unsynchronized time on server instances might be problem for some OpenStack components. * To use the command line tools source the file /root/keystonerc_admin created on 10.35.160.21 * To use the console, browse to http://<IP Address>/dashboard * ERROR : Error running remote script: package puppet is not installed Loaded plugins: priorities, product-id, rhnplugin, security, subscription- : manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. * Please check log file /var/tmp/packstack/20130221-183010-0QTn48/openstack-setup.log for more information
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0595.html