TLS-E horizon_endpoint erros out with Evaluation Error: Operator '[]' is not applicable to an Undef Value. (cs9)

Bug #1948754 reported by Michele Baldessari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Unassigned

Bug Description

Reason is that before https://review.opendev.org/c/openstack/tripleo-heat-templates/+/812286 was merged we got the following in hiera and everything was fine:

"tripleo::profile::base::haproxy::certificates_specs": {
        "haproxy-ctlplane": {
            "service_pem": "/etc/pki/tls/certs/haproxy/overcloud-haproxy-ctlplane.pem"
        },
        "haproxy-external": {
            "service_pem": "/etc/pki/tls/private/overcloud_endpoint.pem"
        },
        "haproxy-internal_api": {
            "service_pem": "/etc/pki/tls/certs/haproxy/overcloud-haproxy-internal_api.pem"
        },
        "haproxy-storage": {
            "service_pem": "/etc/pki/tls/certs/haproxy/overcloud-haproxy-storage.pem"
        },
        "haproxy-storage_mgmt": {
            "service_pem": "/etc/pki/tls/certs/haproxy/overcloud-haproxy-storage_mgmt.pem"
        }
},

After the merge of https://review.opendev.org/c/openstack/tripleo-heat-templates/+/812286 we get this in hiera:
"tripleo::profile::base::haproxy::certificates_specs": {
    "haproxy-ctlplane": {
        "service_pem": "/etc/pki/tls/certs/haproxy/overcloud-haproxy-ctlplane.pem"
    },
    "haproxy-external": {
        "service_pem": "/etc/pki/tls/private/overcloud_endpoint.pem"
    }
},

And the deployment fails with:
^[[1;35m+ /usr/bin/puppet apply --summarize --detailed-exitcodes --color=false --modulepath=/etc/puppet/modules:/usr/share/openstack-puppet/modules --tags '"file,file_line,concat,augeas,cron,haproxy_config"' /etc/config.pp^[[0m^M
^[[1;35m<13>Oct 25 20:02:08 puppet-user: Warning: /etc/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5^[[0m^M
^[[1;35m<13>Oct 25 20:02:12 puppet-user: (file: /etc/puppet/hiera.yaml)^[[0m^M
^[[1;35m<13>Oct 25 20:02:12 puppet-user: Warning: Undefined variable '::deploy_config_name'; ^[[0m^M
^[[1;35m<13>Oct 25 20:02:12 puppet-user: (file & line not available)^[[0m^M
^[[1;35m<13>Oct 25 20:02:12 puppet-user: Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/7.10/deprecated_language.html^[[0m^M
^[[1;35m<13>Oct 25 20:02:12 puppet-user: (file & line not available)^[[0m^M
^[[1;35m<13>Oct 25 20:02:12 puppet-user: Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /etc/puppet/modules/tripleo/manifests/haproxy/horizon_endpoint.pp, line: 109, column: 29) on node controller-1.home.arpa^[[0m^M

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/815369
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/82a0781b4df70a89d9984eae61dfc0d0d3f5549a
Submitter: "Zuul (22348)"
Branch: master

commit 82a0781b4df70a89d9984eae61dfc0d0d3f5549a
Author: Harald Jensås <email address hidden>
Date: Tue Oct 26 07:04:05 2021 +0000

    Revert "Fix TLS-e with custom network names"

    This reverts commit 6bae260bcfa369365d9cfb3112c686f468fcef55.

    Reason for revert: https://bugs.launchpad.net/tripleo/+bug/1948754
    Closes-Bug: #1948754

    Change-Id: I266f6a89be76a4e43add038e38236ca2dee664cd

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

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