Bug 1461498

Summary: Failed update and/or upgrade attempt should return non 0 value.
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: python-tripleoclientAssignee: Julie Pichon <jpichon>
Status: CLOSED WONTFIX QA Contact: Gurenko Alex <agurenko>
Severity: unspecified Docs Contact:
Priority: low    
Version: 9.0 (Mitaka)CC: achernet, apannu, beth.white, brad, ccollett, dbecker, hbrock, jason.dobies, jcoufal, jjoyce, jpichon, jrist, jslagle, mburns, morazi, nlevinki, opavlenk, rhel-osp-director-maint, sasha, sclewis, tvignaud, ukalifon
Target Milestone: ---Keywords: FutureFeature, Triaged, ZStream
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1353049 Environment:
Last Closed: 2018-02-09 16:25:42 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:
Bug Depends On: 1353049    
Bug Blocks:    

Description Yurii Prokulevych 2017-06-14 15:16:45 UTC
+++ This bug was initially created as a clone of Bug #1353049 +++

rhel-osp-director:  [RFE] failed update and/or upgrade attempt should return non 0 value.

Currently , once the update or upgrade fails:
IN_PROGRESS
FAILED
update finished with status FAILED


The exit value is 0, so we can't test result based on it.


Expected:
The exit value should be 0 only when the update/upgrade succeeded.

PACKAGES:
---------
openstack-tripleo-heat-templates-liberty-2.0.0-57.el7ost.noarch
python-tripleoclient-2.0.0-14.el7ost.noarch
openstack-tripleo-heat-templates-2.0.0-57.el7ost.noarch
openstack-tripleo-common-2.0.0-10.el7ost.noarch
openstack-tripleo-puppet-elements-2.0.0-6.el7ost.noarch
openstack-tripleo-image-elements-0.9.9-7.el7ost.noarch
openstack-tripleo-0.0.8-0.2.d81bd6dgit.el7ost.noarch

Steps to reproduce:
-------------------
1. Install RHOS-9
2. Setup latest repos on uc and oc
3. Update uc
4. Modify yum_update.sh to 'exit 1' immediately
5. Run minor update.
6. Revert yum_update.sh
7. Re-run minor update and check exit code

Comment 1 Beth White 2018-02-09 16:25:42 UTC
This a backport feature request and unfortunately will not be being backported to OSP9. Closing won't fix.