Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7195

on huawei: puppet lookup / hiera fails with key that contains utf-8 characters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      Puppet Developer Experience
    • QA Risk Assessment:
      Needs Assessment

      Description

      This failure was exposed by PUP-7190.
      Hiera is properly configured to lookup this key: 'array_key_with_utf8_€‰ㄘ万竹ÜÖ',
      but lookup fails using the 'puppet lookup' command, and by the hiera() function call.

      root@huawei-ce6850-2-debian-vm-eth0:/tmp# LANG=en_US.UTF-8
      root@huawei-ce6850-2-debian-vm-eth0:/tmp# env | grep LANG
      LANG=en_US.UTF-8
      root@huawei-ce6850-2-debian-vm-eth0:/tmp# puppet apply -e 'notice(hiera("array_key_with_utf8_€‰ㄘ万竹ÜÖ"))'
      2017-02-08 17:02:52.253005 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C
      Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://docs.puppet.com/puppet/4.9.1/reference/deprecated_language.html
         (file & line not available)
      Warning: /tmp/lookup_test_dir.L4MyaU/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
         (in /tmp/lookup_test_dir.L4MyaU/hiera.yaml)
      Error: Function lookup() did not find a value for the name 'array_key_with_utf8_€‰ㄘ万竹ÜÖ'
      root@huawei-ce6850-2-debian-vm-eth0:/tmp# puppet lookup array_key_with_utf8_€‰ㄘ万竹ÜÖ
      2017-02-08 18:35:58.568593 WARN  puppetlabs.facter - locale environment variables were bad; continuing with LANG=C LC_ALL=C
      Warning: /tmp/lookup_test_dir.L4MyaU/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5
         (in /tmp/lookup_test_dir.L4MyaU/hiera.yaml)
      root@huawei-ce6850-2-debian-vm-eth0:/tmp# echo $?
      1
      root@huawei-ce6850-2-debian-vm-eth0:/tmp#
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sean Sean Griffin
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support