Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1031786

Summary: Error messages do not include enough information
Product: Red Hat OpenStack Reporter: Ben Nemec <bnemec>
Component: openstack-packstackAssignee: Ivan Chavero <ichavero>
Status: CLOSED ERRATA QA Contact: Nir Magnezi <nmagnezi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.0CC: aortega, breeler, derekh, hateya, ichavero, mmagr, yeylon
Target Milestone: rcKeywords: OtherQA
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2013.2.1-0.19.dev935.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:37:08 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 Ben Nemec 2013-11-18 18:33:06 UTC
Description of problem: Error reporting from remote scripts leaves something to be desired.


Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. Attempt to use packstack on a system where ssh password authentication is disabled and root ssh keys are not configured.

Actual results: A failed install with no useful information about what is wrong.  For example:

ERROR : Failed to run remote script:

Note that by default there is also nothing in the log file to indicate what is wrong.


Expected results: An error message that includes the relevant failure, in the case above that would be:

ERROR : Failed to run remote script:
Warning: Permanently added '192.168.0.14' (RSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).


Additional info: The problem seems to be that when a command fails, only stdout is included in the error message.  Because this is a failure state, we should expect the useful information to be in stderr (though I think including stdout as well is probably a good idea).

I'm planning to propose a change that will address this shortly.

Comment 2 Ben Nemec 2013-11-18 19:17:43 UTC
Proposed fix: https://review.openstack.org/#/c/57010/

Comment 3 Ivan Chavero 2013-11-25 16:21:49 UTC
Proposed fix accepted.

Comment 8 errata-xmlrpc 2013-12-20 00:37:08 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/RHEA-2013-1859.html