Bug 1434437
Summary: | [UPDATES] Reconnect to interrupted udpates | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Yurii Prokulevych <yprokule> |
Component: | python-tripleoclient | Assignee: | Adriano Petrich <apetrich> |
Status: | CLOSED WONTFIX | QA Contact: | Arik Chernetsky <achernet> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 11.0 (Ocata) | CC: | beth.white, brad, hbrock, jcoufal, jjoyce, jpichon, jschluet, jslagle, lbezdick, mburns, rbrady, rhel-osp-director-maint, sathlang, slinaber, tvignaud |
Target Milestone: | --- | Keywords: | Triaged, ZStream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-07-29 15:37: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
Yurii Prokulevych
2017-03-21 14:01:05 UTC
One option is to abort the update: openstack overcloud update abort overcloud This does not block. You will need to monitor stack status until it returns to 'ROLLBACK_COMPLETE'. I am still investigating continuing the update instead of aborting. Steps to continue an update: 1. openstack stack resource list -n 5 -f yaml --filter name=UpdateDeployment overcloud This command will give you the resource that the hook is on. You will get output similar to this: - physical_resource_id: 50da754b-2e09-45ff-8836-6a8b097337b6 resource_name: UpdateDeployment resource_status: UPDATE_COMPLETE resource_type: OS::Heat::SoftwareDeployment stack_name: overcloud-Controller-cnu5246du7ej-0-qcu5iunuiqmm updated_time: '2017-03-22T12:53:27Z' - physical_resource_id: 24718cee-63fb-4620-955a-20fca5678316 resource_name: UpdateDeployment resource_status: UPDATE_COMPLETE resource_type: OS::Heat::SoftwareDeployment stack_name: overcloud-Compute-mwb5lla6twbn-0-tuysaeiyisoi updated_time: '2017-03-22T12:58:04Z' 2. openstack stack event list --resource UpdateDeployment overcloud-Controller-cnu5246du7ej-0-qcu5iunuiqmm openstack stack event list --resource UpdateDeployment overcloud-Compute-mwb5lla6twbn-0-tuysaeiyisoi The last few lines of the output from these commands (you will run this for every UpdateDeployment resource) will look similar to this: 2017-03-22 12:32:31Z [UpdateDeployment]: UPDATE_COMPLETE UPDATE paused until Hook pre-update is cleared If you see that, then you know the breakpoint has been reached, and needs to be cleared. 3. openstack stack hook clear overcloud-Controller-cnu5246du7ej-0-qcu5iunuiqmm UpdateDeployment This, as you can guess, will clear the breakpoint and allow the update to continue. If you run the event list again, you will see: 2017-03-22 12:53:27Z [UpdateDeployment]: UPDATE_COMPLETE Hook pre-update is cleared 2017-03-22 12:53:27Z [UpdateDeployment]: UPDATE_IN_PROGRESS state changed 2017-03-22 12:54:21Z [UpdateDeployment]: SIGNAL_IN_PROGRESS Signal: deployment 50da754b-2e09-45ff-8836-6a8b097337b6 succeeded 2017-03-22 12:54:22Z [UpdateDeployment]: UPDATE_COMPLETE state changed 4. openstack stack list Monitor the stack for completion. Based on comments by zaneb, abort should not be used. In fact, he advocates for complete removal of that command, and I agree. Assigning back after confirming with Brad, I hadn't noticed all your debugging work around this - thank you! This bugzilla has been removed from the release since it has not been Triaged, and needs to be reviewed for targeting another release. |