Bug 1253449

Summary: rhel-osp-director: failing to update the stack with "openstack overcloud update stack --templates -e <yaml file> -i overcloud"
Product: Red Hat OpenStack Reporter: Alexander Chuzhoy <sasha>
Component: rhosp-directorAssignee: chris alfonso <calfonso>
Status: CLOSED DUPLICATE QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: hbrock, mburns, rhel-osp-director-maint, sasha, srevivo, zbitter
Target Milestone: z1Keywords: ZStream
Target Release: Director   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-14 14:08:07 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 Alexander Chuzhoy 2015-08-13 17:22:47 UTC
rhel-osp-director: failing to update the stack with  "openstack overcloud update stack   --templates -e <yaml file>   -i overcloud"


Environment:
instack-undercloud-2.1.2-23.el7ost.noarch


Steps to reproduce:
1. Deploy overcloud.
2. Subscribe all hosts in the overcloud with subscription manager and add them to some pool. Verify that yum repos are available and that running "yum update" actually works (don't actually update).
3. Run  "openstack overcloud update stack  --templates -e <yaml file>  -i overcloud"

Result:    
starting package update on stack overcloud 
IN_PROGRESS                                                                     
IN_PROGRESS                                                                     
IN_PROGRESS                                                                     IN_PROGRESS                                                                     
WAITING                                                                         
not_started: [u'overcloud-compute-0', u'overcloud-controller-0']
on_breakpoint: [u'overcloud-cephstorage-0']
Breakpoint reached, continue? Regexp or Enter=proceed, no=cancel update, C-c=quit interactive mode:                                  
removing breakpoint on overcloud-cephstorage-0                   
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
IN_PROGRESS                                          
WAITING                                              
completed: [u'overcloud-cephstorage-0']
on_breakpoint: [u'overcloud-compute-0', u'overcloud-controller-0']
Breakpoint reached, continue? Regexp or Enter=proceed, no=cancel update, C-c=quit interactive mode: 

removing breakpoint on overcloud-controller-0 IN_PROGRESS                                                                     IN_PROGRESS                                                                     IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
^[[CIN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
WAITING
completed: [u'overcloud-controller-0', u'overcloud-cephstorage-0']
on_breakpoint: [u'overcloud-compute-0']
Breakpoint reached, continue? Regexp or Enter=proceed, no=cancel update, C-c=quit interactive mode:
ERROR: openstack unexpected end of regular expression


Expected result:
The update should complete successfully.

Comment 3 Alexander Chuzhoy 2015-08-13 17:25:33 UTC
The bug didn't reproduce when I tried to run it on 2 different setups:
1)   1 Controller, 1 Ceph, 1 compute

2)   3 controller, 3 Ceph nodes, 1 compute.



Once reproduces, need to upload the output from "heat deployment-show
<depl_id>" where depl_id can be found by running "heat resource-list overcloud
-n 5|grep FAILED|grep UpdateDepl"

Comment 4 Zane Bitter 2015-08-14 08:29:31 UTC
Sasha, is that the output you intended to paste? It looks like you copied the one from bug 1252509 by accident. From your previous email I think the one you intended to paste went like this:


[stack@rhos-compute-node-13 ~]$ openstack overcloud update stack --templates   -i overcloud
starting package update on stack overcloud
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
FAILED
update finished with status FAILED

[stack@rhos-compute-node-13 ~]$ openstack overcloud update stack --templates  -e /usr/share/openstack-tripleo-heat-templates/environments/storage-environment.yaml -e /home/stack/network-environment.yaml -i overcloud
starting package update on stack overcloud
IN_PROGRESS
IN_PROGRESS
IN_PROGRESS
FAILED
update finished with status FAILED

Looking closely at that, the first command omits the storage-environment and network-environment environment files that are included in the second one. Assuming that the stack was initially deployed with those environments (was it?) then it's expected that the stack will fail and be stuck in a failed state. That would explain why you can't reproduce it, if you're now passing the correct environment files.

If you confirm that the overcloud was initially deployed with the extra environment files then we can close this bug.

Comment 5 Alexander Chuzhoy 2015-08-14 13:12:23 UTC
This bug is a duplicate of #1252509.

The second failure in comment #4 is because I selected not to continue with the update.

On of the bugs can be closed as duplicate.

Comment 6 Zane Bitter 2015-08-14 14:08:07 UTC

*** This bug has been marked as a duplicate of bug 1252509 ***