<service>_git_install_branch is ignored if placed in group/host_vars

Bug #2007296 reported by Dmitriy Rabotyagov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Dmitriy Rabotyagov

Bug Description

In case you want to override some service version specificaly for some group or some individual host you would try to define <service>_git_install_branch in group/host_vars

However, play vars_files have prescedence over inventory group_vars [1], so the only way for override is usage of user_variables, which does not give enough flexability for some cases.

[1] https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_variables.html#understanding-variable-precedence

Changed in openstack-ansible:
assignee: nobody → Dmitriy Rabotyagov (noonedeadpunk)
importance: Undecided → Medium
Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible/+/881824
Committed: https://opendev.org/openstack/openstack-ansible/commit/9fca8555dff47517df8f24b0512666892b1c3b48
Submitter: "Zuul (22348)"
Branch: master

commit 9fca8555dff47517df8f24b0512666892b1c3b48
Author: Dmitriy Rabotyagov <email address hidden>
Date: Fri Apr 28 15:00:57 2023 +0200

    Move repo_packages to group_vars

    At the moment it's not possible to apply different versions of
    services to the different groups due to playbook vars having
    prescedence over group_vars. However, it can be quite important
    to such use cases, for example for phased rollouts of newer versions.

    This will also reduce amount of unnecessary variables that are included
    for each host, since only required git details will be loaded.

    Closes-Bug: #2007296
    Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_rally/+/881954
    Change-Id: Icaa3a958926d9f9aa6cb649bd9f3da9449dd7490

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 27.0.0.0rc1

This issue was fixed in the openstack/openstack-ansible 27.0.0.0rc1 release candidate.

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.