Bug 1102138
Summary: | test_gears_complete never prints "Waiting for gear upgrades to be completed." and can appear hung. | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Timothy Williams <tiwillia> |
Component: | Cluster Version Operator | Assignee: | Luke Meyer <lmeyer> |
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 2.1.0 | CC: | adellape, bleanhar, jialiu, jokerman, libra-onpremise-devel, lmeyer, mmccomas, nicholas_schuetz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | openshift-enterprise-upgrade-2.1.7-1.el6op | Doc Type: | Enhancement |
Doc Text: |
The ose-upgrade tool coordinates running a number of scripts to perform an OpenShift Enterprise version upgrade. When running the scripts, the tool previously displayed script output only after completion, even though several steps of the upgrade can take a long time, for example while updating RPMs or waiting on another host to complete its steps. This meant that administrators had no method for verifying what the tool was doing or whether something had gone wrong while the scripts were running. This enhancement updates the tool to display ongoing output from the scripts while they are running, and administrators are now able to better check the status of the scripts being run.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-10-02 13:59:23 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: |
Comment 1
nicholas_schuetz
2014-05-28 14:54:53 UTC
In general it would be a good idea to display the output from scripts as it is generated, not after the script completes. Look at oo-install enterprise launcher.rb for an example of doing this in ruby. For steps that fail, we may want to re-display the step output with the failure color coding. Need a puddle to verify this bug, so pls help build a puddle. Test this bug with openshift-enterprise-release-2.2.0-1.git.39.c9de878.el6op.noarch against ose-2.2 upgrade, it is working well now. On node, when broker is upgrading gears, the following message is printed out until gear upgrade is finished. <--snip--> INFO: running /usr/lib/ruby/site_ruby/1.8/ose-upgrade/node/upgrades/4/test_gears_complete/10-node-test-gear-migration-completed: INFO: --BEGIN OUTPUT-- Waiting for gear upgrades to be completed. Waiting for gear upgrades to be completed. Waiting for gear upgrades to be completed. Waiting for gear upgrades to be completed. Waiting for gear upgrades to be completed. <--snip--> @Luke, do you plan change message mentioned in comment 1? BTW, this bug will not be moved to "verified", just as what was said in comment7, QE will wait a ose-2.1.z puddle build to finish the whole verification. (In reply to Johnny Liu from comment #8) > @Luke, do you plan change message mentioned in comment 1? Thanks, I missed that. Yes, I think it's a good idea to change that. Verified this bug with openshift-enterprise-release-2.1.6-1.git.5.5eab834.el6op.noarch and openshift-enterprise-upgrade-node-2.1.6-1.git.5.5eab834.el6op.noarch, PASS. On node, when broker is upgrading gears, the following message is printed out until gear upgrade is finished. <--snip--> INFO: Next step is 'test_gears_complete' INFO: Setting node step 'test_gears_complete' status to UPGRADING INFO: Running upgrade scripts in /usr/lib/ruby/site_ruby/1.8/ose-upgrade/node/upgrades/3/test_gears_complete INFO: running /usr/lib/ruby/site_ruby/1.8/ose-upgrade/node/upgrades/3/test_gears_complete/10-node-test-gear-migration-completed: INFO: --BEGIN OUTPUT-- Waiting for 'ose-upgrade gears' step on the broker to be completed. Waiting for 'ose-upgrade gears' step on the broker to be completed. Waiting for 'ose-upgrade gears' step on the broker to be completed. Waiting for 'ose-upgrade gears' step on the broker to be completed. <--snip--> 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/RHBA-2014-1353.html |