Using --limit option in external update/upgrade run playbooks has no effect on limiting nodes during ansible playbook execution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Triaged
|
Medium
|
Unassigned |
Bug Description
Description
===========
As a part of update/upgrade procedure, some update steps are triggered using `openstack overcloud external-
For instance,`openstack overcloud external-update run --tags ovn`, which allows limiting the scope of update actions to updating ovn container image on overcloud nodes[2] loops through ovn_controller group from tripleo inventory. If one would like to limit container image update action to happen only on some set of nodes from the ovn_controller group by using --limit option, it won't work and skip execution completly due to 'skipping: no hosts matched' problem.
Steps to reproduce
==================
1. Run overcloud update prepare
2. Run `external-update run`
openstack overcloud external-update run \
--stack overcloud \
--ssh-user stack \
--limit compute-0 \
--tags ovn
Expected result
===============
Execution of the steps from external-update should happen only on compute-0
Actual result
=============
None external update step is triggered and 'no hosts matched' info is returned by ansible playbook execution.
2022-09-06 04:47:40.402 697741 INFO tripleoclient.
PLAY [Check if required variables are defined] *******
skipping: no hosts matched
PLAY [Clear cached facts] *******
PLAY [Gather facts] *******
PLAY [Load global variables] *******
2022-09-06 04:47:41.260427 | fa163ea5-
2022-09-06 04:47:41.261041 | fa163ea5-
PLAY [Include extra variables from files] *******
2022-09-06 04:47:41.294549 | fa163ea5-
2022-09-06 04:47:41.317498 | fa163ea5-
2022-09-06 04:47:41.318270 | fa163ea5-
2022-09-06 04:47:41.326823 | fa163ea5-
2022-09-06 04:47:41.349584 | fa163ea5-
2022-09-06 04:47:41.350133 | fa163ea5-
PLAY [Render all_nodes data as group_vars for overcloud] *******
2022-09-06 04:47:41.407274 | fa163ea5-
2022-09-06 04:47:42.259358 | fa163ea5-
PLAY [Set all_nodes data as group_vars for overcloud] *******
2022-09-06 04:47:42.297324 | fa163ea5-
2022-09-06 04:47:42.321333 | fa163ea5-
2022-09-06 04:47:42.322031 | fa163ea5-
PLAY [External update step 0] *******
skipping: no hosts matched
PLAY [External update step 1] *******
skipping: no hosts matched
PLAY [External deploy step 1] *******
skipping: no hosts matched
PLAY [External deploy step 2] *******
skipping: no hosts matched
PLAY [External deploy step 3] *******
skipping: no hosts matched
PLAY [External deploy step 4] *******
skipping: no hosts matched
PLAY [External deploy step 5] *******
skipping: no hosts matched
PLAY RECAP *******
compute-0 : ok=5 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
2022-09-06 04:47:42.356363 | ~~~~~~~
2022-09-06 04:47:42.356641 | ~~~~~~~
2022-09-06 04:47:42.356882 | ~~~~~~~
2022-09-06 04:47:42.357136 | UUID | Info | Host | Task Name | Run Time
2022-09-06 04:47:42.357429 | fa163ea5-
2022-09-06 04:47:42.357666 | fa163ea5-
2022-09-06 04:47:42.357933 | fa163ea5-
2022-09-06 04:47:42.358215 | fa163ea5-
2022-09-06 04:47:42.358484 | fa163ea5-
2022-09-06 04:47:42.358728 | ~~~~~~~
2022-09-06 04:47:42.541 697741 INFO tripleoclient.
2022-09-06 04:47:42.541 697741 INFO tripleoclient.
2022-09-06 04:47:42.568 697741 INFO tripleoclient.
2022-09-06 04:47:42.569 697741 INFO osc_lib.shell [-] END return value: None
[Tue Sep 6 04:47:42 AM EDT 2022] Finished OVN controller update
Environment
===========
Overcloud with OVN
Mater branch used, but the same behavior observed in previous versions(
[1]https:/
https:/
[2]https:/
description: | updated |
description: | updated |
tags: |
added: upgrade removed: updates |