Bug 1243062

Summary: On deployment failure, no reason is returned
Product: Red Hat OpenStack Reporter: Steven Hardy <shardy>
Component: python-rdomanager-oscpluginAssignee: Dougal Matthews <dmatthew>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: unspecified Docs Contact:
Priority: medium    
Version: unspecifiedCC: brad, calfonso, jslagle, mburns, mcornea, ohochman, rhel-osp-director-maint
Target Milestone: y1Keywords: Triaged, ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-rdomanager-oscplugin-0.0.9-2.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-08 12:14: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:

Description Steven Hardy 2015-07-14 17:13:45 UTC
Description of problem:

When doing openstack overcloud deploy, if something goes wrong, all you get is e.g "openstack Heat Stack update failed"

This is inconvenient as you then immediately have to do e.g a heat stack-show to see the reason.

In overcloud_deploy.py we've got code to get the stack (_get_stack), so we should use that and output the stack_status_reason on failure.

Comment 5 Marius Cornea 2015-09-14 17:03:27 UTC
[stack@instack ~]$ openstack overcloud deploy --ceph-storage-scale 3 --control-scale 3 --compute-scale 2 --ntp-server 10.16.255.1 --templates ~/templates/my-overcloud 
WARNING: rdomanager_oscplugin.v1.overcloud_deploy.DeployOvercloud There are 13 ironic nodes with no profile that will not be used: 9b40be41-7bc8-470e-9669-27c9eaa6bdbd, e2191af4-df23-42d3-a9d9-e16e616d2f65, db5d8e47-75bb-49e6-9fb3-e2bf28bdd2a6, d3c5af79-bd14-4aef-8f4b-14702b7eb194, 31a570e2-6795-40bf-8c01-e9e2f2d7dc5a, 0954fb53-18fd-493c-99c5-8748192f1db6, 29fb3628-ca2f-444a-b2fe-43dca5a6adea, 5cd0245c-44b6-4e31-868b-e7d6085076fa, a37530dd-8d80-4efe-b18f-ebc5a1a8a2f9, d282c4ef-1f2f-4320-b666-f191b85fec4b, 68088dee-fe2d-4a98-9488-835d17d5619f, bda2e59f-1051-4a0c-9701-e001523fa8be, 092cfaf6-e732-4938-adbd-858910f8e199
ERROR: rdomanager_oscplugin.v1.overcloud_deploy.DeployOvercloud Configuration has 1 warnings, fix them before proceeding. 

Deploying templates in the directory /home/stack/templates/my-overcloud

Stack failed with status: resources.Networks: resources.StorageMgmtNetwork: Conflict: resources.StorageMgmtSubnet: Unable to complete operation on subnet 503a45a6-40b7-4479-9ecc-4c4524f57dac. One or more ports have an IP allocation from this subnet.
ERROR: openstack Heat Stack update failed.

Comment 7 errata-xmlrpc 2015-10-08 12:14:40 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.

https://access.redhat.com/errata/RHSA-2015:1862