Bug 886592
| Summary: | Openstack Installer: packstack should return an informative error when remote nodes are not configured with openstack repository | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Nir Magnezi <nmagnezi> |
| Component: | openstack-packstack | Assignee: | Martin Magr <mmagr> |
| Status: | CLOSED ERRATA | QA Contact: | Nir Magnezi <nmagnezi> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.0 (Folsom) | CC: | aortega, derekh, ykaul |
| Target Milestone: | snapshot3 | Keywords: | Triaged |
| Target Release: | 2.1 | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| 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 21:02:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Nir Magnezi
2012-12-12 16:11:16 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 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 |