{{role.name}}ExtraConfig not honored when using deprecated keys in roles_data

Bug #1758343 reported by James Slagle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Harald Jensås

Bug Description

If you have a role in roles_data.yaml that uses the deprecated keys like the default Compute role, then ComputeExtraConfig is not honored.

The NovaComptueConifg resource gets rendered to use:

          compute_extraconfig:
            map_merge:
              - {get_param: NovaComputeExtraConfig}
              - {get_param: NovaComputeExtraConfig}

This is b/c the template is:

          {{role.name.lower()}}_extraconfig:
            map_merge:
{%- if role.deprecated_param_extraconfig is defined %}
              - {get_param: {{role.deprecated_param_extraconfig}}}
{%- endif %}
              - {get_param: {{server_resource_name}}ExtraConfig}

Except server_resource_name defaults to:

{%- set server_resource_name = role.deprecated_server_resource_name|default(role.name) -%}

at line 4

So both those items in the map_merge end up as NovaComputeExtraConfig and ComputeExtraConfig is never consumed even though it is defined as a parameter in the template.

The fix here is to use:

              - {get_param: {{role.name}}ExtraConfig}

in the above map_merge

Revision history for this message
James Slagle (james-slagle) wrote :
Changed in tripleo:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → James Slagle (james-slagle)
milestone: none → rocky-1
tags: added: queens-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/555795

Changed in tripleo:
assignee: James Slagle (james-slagle) → Harald Jensås (harald-jensas)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/555795
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=fa4b3e2a3c634c8f1a18087e508d585a693aa84b
Submitter: Zuul
Branch: master

commit fa4b3e2a3c634c8f1a18087e508d585a693aa84b
Author: James Slagle <email address hidden>
Date: Fri Mar 23 09:59:47 2018 -0400

    Honor {{role.name}}ExtraConfig with deprecated params

    {{role.name}}ExtraConfig was previously ignored if the role used
    deprecated params in roles_data.yaml. This was due to the usage of
    server_resource_name in the ExtraConfig resource, where
    service_resource_name also defaulted to
    deprecated_service_resource_name. So, the new {{role.name}}ExtraConfig
    was never actually used.

    Change-Id: I83e57317e2c56260957be90c66290a41a926835a
    Closes-Bug: #1758343

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/556862

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/queens)

Reviewed: https://review.openstack.org/556862
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=f2e19a5a0a5229d1d12d4ecd3a7bb82faa4e9bf9
Submitter: Zuul
Branch: stable/queens

commit f2e19a5a0a5229d1d12d4ecd3a7bb82faa4e9bf9
Author: James Slagle <email address hidden>
Date: Fri Mar 23 09:59:47 2018 -0400

    Honor {{role.name}}ExtraConfig with deprecated params

    {{role.name}}ExtraConfig was previously ignored if the role used
    deprecated params in roles_data.yaml. This was due to the usage of
    server_resource_name in the ExtraConfig resource, where
    service_resource_name also defaulted to
    deprecated_service_resource_name. So, the new {{role.name}}ExtraConfig
    was never actually used.

    Change-Id: I83e57317e2c56260957be90c66290a41a926835a
    Closes-Bug: #1758343
    (cherry picked from commit fa4b3e2a3c634c8f1a18087e508d585a693aa84b)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 9.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/570191

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/pike)

Reviewed: https://review.openstack.org/570191
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=d29f833a5977b89a110d19c02fa6bf860709af34
Submitter: Zuul
Branch: stable/pike

commit d29f833a5977b89a110d19c02fa6bf860709af34
Author: James Slagle <email address hidden>
Date: Fri Mar 23 09:59:47 2018 -0400

    Honor {{role.name}}ExtraConfig with deprecated params

    {{role.name}}ExtraConfig was previously ignored if the role used
    deprecated params in roles_data.yaml. This was due to the usage of
    server_resource_name in the ExtraConfig resource, where
    service_resource_name also defaulted to
    deprecated_service_resource_name. So, the new {{role.name}}ExtraConfig
    was never actually used.

    Change-Id: I83e57317e2c56260957be90c66290a41a926835a
    Closes-Bug: #1758343
    (cherry picked from commit fa4b3e2a3c634c8f1a18087e508d585a693aa84b)
    (cherry picked from commit f2e19a5a0a5229d1d12d4ecd3a7bb82faa4e9bf9)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 7.0.14

This issue was fixed in the openstack/tripleo-heat-templates 7.0.14 release.

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.