external tasks for update (and maybe for everything) are not working anymore.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Incomplete
|
High
|
Sergii Golovatiuk |
Bug Description
In rocky, we updated the image for the overcloud running:
openstack overcloud external-update run --debug --tags container_
In stein that command has no impact:
PLAY [External update steps] *******
PLAY [External deploy steps] *******
PLAY RECAP *******
compute-0 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
compute-1 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
controller-0 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
controller-1 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
controller-2 : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
undercloud : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Thursday 08 August 2019 10:24:21 -0400 (0:00:00.551) 0:00:05.981 *******
=======
external_
But it's not run.
doing:
sudo podman exec -it mistral_executor bash
and adding external to the list of tags to the run command, giving that:
ansible-playbook-3 -vvv /var/lib/
in /var/lib/
does trigger a run of the container_
Problem is with that change I8b3bf3ba3d7c2c
When we switched from include to include_tasks we change the tags behavior.
Here's an example:
(undercloud) [stack@undercloud-0 ~]$ cat test.yaml
---
- hosts: all
gather_facts: no
tasks:
- name: "Include tasks file"
include: tasks.yml
- name: "Include_tasks tasks file"
include_tasks: tasks1.yml
(undercloud) [stack@undercloud-0 ~]$ cat tasks.yml
- name: "Debug tag1"
debug:
msg: "init"
tags:
- tag1
(undercloud) [stack@undercloud-0 ~]$ cat tasks1.yml
- name: "Debug tag1"
debug:
msg: "init1"
tags:
- tag1
now running:
(undercloud) [stack@undercloud-0 ~]$ ansible-playbook -i my-inventory.yml ./test.yaml -t tag1
PLAY [all] *******
TASK [Debug tag1] *******
ok: [undercloud] => {
"msg": "init"
}
ok: [controller-0] => {
"msg": "init"
}
ok: [controller-1] => {
"msg": "init"
}
ok: [controller-2] => {
"msg": "init"
}
ok: [compute-0] => {
"msg": "init"
}
ok: [compute-1] => {
"msg": "init"
}
PLAY RECAP *******
compute-0 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
compute-1 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
controller-0 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
controller-1 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
controller-2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
undercloud : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
we can see that only the "include" tasks are really included. The include_tasks has a different behavior, it doesn't look into the tasks for the tags there.
See there[1] for more.
[1] https:/
Adding high, maybe critical, as it should still be broken on master for *all* external commands, but maybe I missed a patch?
Changed in tripleo: | |
assignee: | Sofer Athlan-Guyot (sofer-athlan-guyot) → Jose Luis Franco (jfrancoa) |
Changed in tripleo: | |
assignee: | Jose Luis Franco (jfrancoa) → Sergii Golovatiuk (sgolovatiuk) |
Changed in tripleo: | |
status: | Fix Released → Confirmed |
Changed in tripleo: | |
milestone: | train-3 → ussuri-1 |
Changed in tripleo: | |
milestone: | ussuri-1 → ussuri-2 |
Changed in tripleo: | |
milestone: | ussuri-2 → ussuri-3 |
Changed in tripleo: | |
milestone: | ussuri-3 → ussuri-rc3 |
Changed in tripleo: | |
milestone: | ussuri-rc3 → victoria-1 |
Changed in tripleo: | |
milestone: | victoria-1 → victoria-3 |
Changed in tripleo: | |
status: | Confirmed → Incomplete |
Fix proposed to branch: master /review. opendev. org/675415
Review: https:/