Bug 1810985 - [RFE] Improve update speed by reducing the number of skipped tasks during ansible run.
Summary: [RFE] Improve update speed by reducing the number of skipped tasks during ans...
Keywords:
Status: ON_DEV
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: zstream
: ---
Assignee: Sofer Athlan-Guyot
QA Contact: Jason Grosso
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-06 10:53 UTC by Sofer Athlan-Guyot
Modified: 2021-10-22 14:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 796518 0 None NEW Update, avoid task skipping by directly importing step file. 2021-10-20 17:23:39 UTC
Red Hat Issue Tracker UPG-1282 0 None None None 2021-10-20 17:25:12 UTC

Description Sofer Athlan-Guyot 2020-03-06 10:53:04 UTC
Description of problem:  During update, we do this:

 - generate ansible tasks with step conditional attached
 - run all the tasks inside a step0 to step5 loop 

This means that every step 1 tasks is hit 6 times and only run once. The other 5 times it's skipped. It seems that even skipped task make a ssh connection which make the overall cost even higher.

This make the log less readable, a simple grep doesn't work as expected as you can hit the skipped tasks as well.

We need to "invert" the logic here.

We should collect all conditionals and generate one playbook by step. Like this, we don't change the interface (step conditional) but we only run each task in each step once.


Note You need to log in before you can comment on or make changes to this bug.