Refactor _standalone_deploy

Bug #1886971 reported by Kevin Carter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Triaged
High
Unassigned

Bug Description

The _standalone_deploy method within tripleoclient [0] should be refactored. This method is core to our testing and development solutions and is overly complex making it fragile and difficult to maintain. We should look to remove the finishing block, separating it out into multiple private methods, which allow for them to be individually tested and vetted. Additionally we should look to remove the failed_on_rc flag from our ansible playbook execution strategy. While this process mostly works, it has resulted in several difficult to debug situations, and increases the overall complexity of the _standalone_deploy method.

1. breakup the _standalone_deploy method
2. remove failed_on_rc
2.1. always raise a suitable exception when a playbook fails.
3. squash most of the finally block into only what is required, likely captured in its own stand alone method.

[0] https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/v1/tripleo_deploy.py#L1176-L1404

Tags: tech-debt
tags: added: tech-debt
Changed in tripleo:
milestone: none → victoria-1
importance: Undecided → Medium
status: New → Triaged
Changed in tripleo:
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to python-tripleoclient (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/740332

Revision history for this message
Emilien Macchi (emilienm) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-tripleoclient (master)

Change abandoned by Emilien Macchi (<email address hidden>) on branch: master
Review: https://review.opendev.org/740332

Changed in tripleo:
milestone: victoria-1 → victoria-3
Changed in tripleo:
milestone: victoria-3 → wallaby-1
Changed in tripleo:
milestone: wallaby-1 → wallaby-2
Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Changed in tripleo:
milestone: wallaby-rc1 → xena-1
Changed in tripleo:
milestone: xena-1 → xena-2
Changed in tripleo:
milestone: xena-2 → xena-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.