Task conditionals are not consistently parsed when doing tasks file.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Critical
|
Emilien Macchi |
Bug Description
Hi,
When splitting the tasks by file we parse the conditional step to put the tasks in the right step file.
This process may fail:
2020-07-10 01:57:36 | 2020-07-10 01:57:36.562501 | bc764e10-
2020-07-10 01:57:36 | 2020-07-10 01:57:36.625485 | bc764e10-
2020-07-10 01:57:36 | "msg": "The conditional check '(step|int == 0 or step|int == 3) and yum_pid_
2020-07-10 01:57:36 | }
2020-07-10 01:57:36 | 2020-07-10 01:57:36.702314 | bc764e10-
2020-07-10 01:57:36 | 2020-07-10 01:57:36.704007 | bc764e10-
2020-07-10 01:57:36 | 2020-07-10 01:57:36.763445 | bc764e10-
2020-07-10 01:57:36 | "changed": false,
2020-07-10 01:57:36 | "msg": "This happened during 'Exit if existing yum process' task in file /tmp/tripleoxt_
2020-07-10 01:57:36 | }
2020-07-10 01:57:36 |
Here are the tasks that trigger the problem
- name: Check for existing yum.pid
stat: path=/run/yum.pid
register: yum_pid_file
when: step|int == 0 or step|int == 3
- name: Exit if existing yum process
fail: msg="ERROR existing yum.pid detected - can't continue! Please ensure there is no other package update process for the duration of the minor update worfklow. Exiting."
when: (step|int == 0 or step|int == 3) and yum_pid_
So in that case it seems the parser get "exit if existing yum process" in update_
My guess is that the former is in update_
summary: |
- task==0 or task==3 isn't properly parsed when doing tasks file. + Task conditionals are not consistently parsed when doing tasks file. |
tags: | added: ussuri-backport-potential |
Changed in tripleo: | |
assignee: | Sofer Athlan-Guyot (sofer-athlan-guyot) → Emilien Macchi (emilienm) |
Fix proposed to branch: master /review. opendev. org/740465
Review: https:/