Bug 2091207

Summary: unable to pass ceph_ansible_verbosity to openstack overcloud external-upgrade run
Product: Red Hat OpenStack Reporter: nalmond
Component: tripleo-ansibleAssignee: John Fulton <johfulto>
Status: CLOSED ERRATA QA Contact: Alfredo <alfrgarc>
Severity: low Docs Contact:
Priority: low    
Version: 16.1 (Train)CC: fpantano, johfulto, jschluet
Target Milestone: z4Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tripleo-ansible-0.8.1-2.20221005190228.f251fee.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-07 19:23:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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