Bug 2091207 - unable to pass ceph_ansible_verbosity to openstack overcloud external-upgrade run
Summary: unable to pass ceph_ansible_verbosity to openstack overcloud external-upgrade...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z4
: 16.2 (Train on RHEL 8.4)
Assignee: John Fulton
QA Contact: Alfredo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-27 20:01 UTC by nalmond
Modified: 2022-12-07 19:23 UTC (History)
3 users (show)

Fixed In Version: tripleo-ansible-0.8.1-2.20221005190228.f251fee.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 19:23:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1976122 0 None None None 2022-05-27 20:06:16 UTC
OpenStack gerrit 843683 0 None stable/wallaby: MERGED tripleo-ansible: Ensure ceph_ansible_playbook_verbosity is an integer (I4554fc54c096be32b85d66030d8b2fc892e595bb) 2022-10-31 15:37:41 UTC
OpenStack gerrit 845677 0 None stable/train: MERGED tripleo-ansible: Ensure ceph_ansible_playbook_verbosity is an integer (I4554fc54c096be32b85d66030d8b2fc892e595bb) 2022-10-31 15:37:47 UTC
Red Hat Issue Tracker OSP-15426 0 None None None 2022-05-27 20:03:14 UTC
Red Hat Product Errata RHBA-2022:8794 0 None None None 2022-12-07 19:23:47 UTC

Description nalmond 2022-05-27 20:01:44 UTC
Description of problem:
Increasing ceph-ansible verbsisty in the 'openstack overcloud external-upgrade run' command by adding '-e ceph_ansible_playbook_verbosity=3' is failing.

Adding |int after ceph_ansible_playbook_verbosity to this line https://github.com/openstack/tripleo-ansible/blob/stable/train/tripleo_ansible/roles/tripleo-ceph-run-ansible/tasks/main.yml#L55 seems to allow this to be passed through properly.

Version-Release number of selected component (if applicable):

How reproducible:
Consistently

Steps to Reproduce:
1. Run 'openstack overcloud external-upgrade run --stack overcloud --tags ceph -e ceph_ansible_playbook_verbosity=3'
2.
3.

Actual results:
The command fails with:

2022-05-27 14:37:34,126 p=436893 u=mistral n=ansible | fatal: [undercloud]: FAILED! => {"msg": "Unexpected templating type error occurred on (-{%- for number in range(0, ceph_ansible_playbook_verbosity) -%}v{% endfor %}): 'str' object cannot be interpreted as an integer"}

Expected results:
The playbook runs and the ceph-ansible verbosity is increased.

Additional info:
https://bugs.launchpad.net/tripleo/+bug/1976122
https://review.opendev.org/c/openstack/tripleo-ansible/+/843683/1/tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/main.yml

Comment 1 John Fulton 2022-06-15 12:39:18 UTC
https://review.opendev.org/c/openstack/tripleo-ansible/+/845677 merged upstream and will be imported into the downstream product for a future update.

Comment 9 errata-xmlrpc 2022-12-07 19:23:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 16.2.4), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8794


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