service_config_settings map_merge of 'null' value and map causes the map merge not to happen

Bug #1917195 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Harald Jensås

Bug Description

In: deployment/cinder/cinder-volume-pacemaker-puppet.yaml, deployment/cinder/cinder-volume-container-puppet.yaml, deployment/cinder/cinder-scheduler-container-puppet.yaml

      service_config_settings:
        map_merge:
          - get_attr: [CinderBase, role_data, service_config_settings]
          - rsyslog:
              tripleo_logging_sources_cinder_volume:
                - {get_param: CinderVolumeLoggingSource}

:: The CinderBase does not set 'service_config_settings' so it becomes:

        map_merge:
          - null
          - rsyslog:
              tripleo_logging_sources_cinder_volume:
                - {get_param: CinderVolumeLoggingSource}

In: deployment/placement/placement-api-container-puppet.yaml

        map_merge:
          - rsyslog:
              tripleo_logging_sources_placement:
                - {get_param: PlacementLoggingSource}

:: Only one entry in the map merge.

The result is that $ROLEServiceChain includes the merged combination of the above.

service_config_settings:
  [ ... snip ... }
  map_merge:
    - null
    - rsyslog:
        tripleo_logging_sources_cinder_api:
          - file: /var/log/containers/cinder/cinder-api.log
            tag: openstack.cinder.api
    - rsyslog:
        tripleo_logging_sources_placement:
          - file: /var/log/containers/httpd/placement_wsgi_error_ssl.log
            tag: openstack.placement

This is incorrect, the 'tripleo_logging_sources_cinder_api' and 'tripleo_logging_sources_placement' should be under service_config_settings['rsyslog'] with all the other tripleo_logging_sources.

Revision history for this message
Harald Jensås (harald-jensas) wrote :
Changed in tripleo:
milestone: wallaby-3 → wallaby-rc1
Changed in tripleo:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 14.1.0

This issue was fixed in the openstack/tripleo-heat-templates 14.1.0 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.