kolla-ansible openstack fails to deploy

Bug #1966606 reported by Franck Alomassor
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Unassigned

Bug Description

TASK [common : Ensuring config directories exist] *****************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'service | service_enabled_and_mapped_to_host' failed. The error was: No filter named 'service_enabled_and_mapped_to_host' found.\n\nThe error appears to be in '/home/stack/kolla-ansible/share/kolla-ansible/an
sible/roles/common/tasks/config.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Ensuring config directories exist\n ^ here\n"}

PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

summary: - kolla-ansible fails to deploy
+ kolla-ansible openstack fails to deploy
Revision history for this message
Victor Morales (electrocucaracha) wrote :

This error is caused by the jinja2 v3.1.0[1] release, which apparently affects the way to use filters. A workaround could be to downgrade it to v3.0.3

[1] https://github.com/pallets/jinja/blob/main/CHANGES.rst#version-310

Revision history for this message
Robel Herarso (rovictor) wrote :

Thankyou @Victor, downgrading the jinja2 from 3.1.1 to 3.0.3 worked for me.

Revision history for this message
Franck Alomassor (falomassor) wrote :

Thanks Victor, it worked for me as well

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Can you update and check did it solved problem?

We did jinja stuff in March:

commit fc2292b230fb2be03acb2273f097c566f59ba8fc
Author: Mark Goddard <email address hidden>
Date: Thu Mar 24 16:25:12 2022 +0000

    Use jinja2.pass_context instead of contextfilter

    The contextfilter decorator was deprecated in jinja2 3.0.0, and has been
    dropped in 3.1.0. This results in the following warning, and failed
    attempts to use filters:

        [WARNING]: Skipping plugin (filters.py) as it seems to be invalid:
        module 'jinja2' has no attribute 'contextfilter'

    This change switches to use the pass_context decorator. The minimum
    version of Jinja2 is raised to 3 to ensure pass_context is present.

    Change-Id: I649dd6211d3ae72b9539bc44652ef8cf5d579777

Revision history for this message
Sven Kieske (s-kieske) wrote :
Changed in kolla-ansible:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.