Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-591

Undefined variable causes hang

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: SERVER 2.0.0
    • Fix Version/s: SERVER 1.y, SERVER 2.y
    • Component/s: None
    • Labels:
      None
    • Template:
    • Sub-team:
    • Story Points:
      3
    • Sprint:
      Server Jade 2015-05-27, Server Jade 2015-06-10

      Description

      I'm not sure what additional information to provide on this, but having a template with an undefined variable causes puppetserver to hang. The agent eventually times out. Additional puppet agent runs error with 'Connection refused, unable to connect to 8140'.

      Passing

        puppet::fileserver:
          data:
            path: /etc/puppet/fileserver/data
            allow: "*"
      

      to

      <% @fileserver.keys.sort.each do |path| -%>
      <% params = fileserver[path] -%>
      [<%= path %>]
        <% params.keys.sort.each do |k,v| -%>
        <%= k %> <%= params[k] %>
        <% end -%>
      <% end -%>
      

      Not the missing @ on line 2 above for fileserver[path]

      This is running puppet-server 2.0.0 and puppet agent 1.0.1 on CentOS 7, fully updated. Data provided by hiera.

      This commit is the code that I discovered it in: https://github.com/evenup/evenup-puppet/commit/f45347f81ac172ed35cd717d51243d498f5b4b6c

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlambert Justin Lambert
              Reporter:
              jlambert Justin Lambert
              QA Contact:
              Erik Dasher
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support