Bug 1353049
| Summary: | [RFE] failed update and/or upgrade attempt should return non 0 value. | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Alexander Chuzhoy <sasha> | |
| Component: | python-tripleoclient | Assignee: | Brad P. Crochet <brad> | |
| Status: | CLOSED ERRATA | QA Contact: | Ola Pavlenko <opavlenk> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | high | |||
| Version: | 9.0 (Mitaka) | CC: | achernet, apannu, brad, ccollett, dbecker, hbrock, jason.dobies, jcoufal, jpichon, jrist, jslagle, mburns, morazi, nlevinki, opavlenk, rhel-osp-director-maint, sasha, sclewis, tvignaud, ukalifon | |
| Target Milestone: | Upstream M3 | Keywords: | FutureFeature, Triaged | |
| Target Release: | 11.0 (Ocata) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | python-tripleoclient-6.0.1-0.20170127055753.8ea289c.el7ost | Doc Type: | Bug Fix | |
| Doc Text: |
Previously, a failed update or upgrade would return an exit value of 0, so it was not possible to test for success based upon this value. With this update, a failed update or upgrade will throw an exception to signify to OpenStackClient that there is an error condition. As a result, OpenStackClient will only return an exit value of 0 on success, and a non-zero value after an error.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1461498 (view as bug list) | Environment: | ||
| Last Closed: | 2017-05-17 19:31:40 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: | ||||
| Bug Blocks: | 1461498 | |||
|
Description
Alexander Chuzhoy
2016-07-05 22:21:34 UTC
Brad - Can you see if this is a reasonably quick fix to include in 9? What command(s) is this referring to? openstack overcloud deploy? openstack overcloud update? openstack overcloud update stack overcloud -i with arguments. Upstream bug: https://bugs.launchpad.net/tripleo/+bug/1599872 Can you please update the BZ, please? Seems that upstream bug was merged back. Sasha, did you notice if this is included in OSP10 while testing upgrades? [stack@instack ~]$ openstack overcloud update stack overcloud -i --templates -e /usr/share/openstack-tripleo-heat-templates/overcloud-resource-registry-puppet.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/puppet-pacemaker.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml -e network-environment.yaml starting package update on stack overcloud <urlopen error [Errno 2] No such file or directory: '/usr/share/openstack-tripleo-heat-templates/overcloud-without-mergepy.yaml'> [stack@instack ~]$ echo $? 1 Thank you, Sasha. Adding as an RFE for 11. Brad, this still seems not working, could you have a look, please? fix was merged upstream in stable/newton on Sep 20. Moving to Modified See comment#11 Updating NVR and component. Target release is set to 11 so, even though the fix was backported I'm setting "Fixed in version" according to the 11 puddle. Verified for puddle 2017-04-06. 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. https://access.redhat.com/errata/RHEA-2017:1245 |