Bug 1461498 - Failed update and/or upgrade attempt should return non 0 value.
Failed update and/or upgrade attempt should return non 0 value.
Status: NEW
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient (Show other bugs)
9.0 (Mitaka)
Unspecified Unspecified
low Severity unspecified
: ---
: 9.0 (Mitaka)
Assigned To: Julie Pichon
Gurenko Alex
: FutureFeature, Triaged, ZStream
Depends On: 1353049
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-14 11:16 EDT by Yurii Prokulevych
Modified: 2017-06-15 08:10 EDT (History)
21 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1353049
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 339048 None None None 2017-06-14 11:16 EDT
OpenStack gerrit 370742 None None None 2017-06-14 11:16 EDT

  None (edit)
Description Yurii Prokulevych 2017-06-14 11:16:45 EDT
+++ 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

Note You need to log in before you can comment on or make changes to this bug.