Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 886592 - Openstack Installer: packstack should return an informative error when remote nodes are not configured with openstack repository
Openstack Installer: packstack should return an informative error when remote...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack (Show other bugs)
2.0 (Folsom)
Unspecified Linux
medium Severity medium
: snapshot3
: 2.1
Assigned To: Martin Magr
Nir Magnezi
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-12 11:11 EST by Nir Magnezi
Modified: 2016-04-26 20:32 EDT (History)
3 users (show)

See Also:
Fixed In Version: openstack-packstack-2012.2.2-0.9.dev406
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-03-05 16:02:38 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0595 normal SHIPPED_LIVE Moderate: openstack-packstack security and bug fix update 2013-03-05 21:00:00 EST

  None (edit)
Description Nir Magnezi 2012-12-12 11:11:16 EST
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.
Comment 2 Derek Higgins 2012-12-19 18:44:17 EST
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
Comment 4 Nir Magnezi 2013-01-16 11:03:37 EST
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.
Comment 5 Derek Higgins 2013-01-30 12:12:00 EST
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
Comment 9 Nir Magnezi 2013-02-21 11:42:53 EST
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
Comment 11 errata-xmlrpc 2013-03-05 16:02:38 EST
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

Note You need to log in before you can comment on or make changes to this bug.