Bug 886592 - Openstack Installer: packstack should return an informative error when remote nodes are not configured with openstack repository
Summary: Openstack Installer: packstack should return an informative error when remote...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 2.0 (Folsom)
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: snapshot3
: 2.1
Assignee: Martin Magr
QA Contact: Nir Magnezi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-12 16:11 UTC by Nir Magnezi
Modified: 2022-07-09 07:08 UTC (History)
3 users (show)

Fixed In Version: openstack-packstack-2012.2.2-0.9.dev406
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-05 21:02:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-16524 0 None None None 2022-07-09 07:08:37 UTC
Red Hat Product Errata RHSA-2013:0595 0 normal SHIPPED_LIVE Moderate: openstack-packstack security and bug fix update 2013-03-06 02:00:00 UTC

Description Nir Magnezi 2012-12-12 16:11:16 UTC
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 23:44:17 UTC
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 16:03:37 UTC
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 17:12:00 UTC
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 16:42:53 UTC
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 21:02:38 UTC
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.