Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-10821

puppetlabs/registry : Unable to set a registry value using "registry_value" resource, because the current value is too big to be logged into Windows EventViewer.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: registry, windows
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 3.0.0
      Puppet Version: v2019.2.0
      OS Name/Version: Windows 2012 R2

      I have a Puppet class that manages a specific registry key. On some servers I get the below error when I run Puppet:
       

      Could not evaluate: ReportEventW failed to report event to Windows eventlog: A device attached to the system is not functioning.

      After digging more into the error I found that the actual value that exists inside this registry key is a very long string value. And with some research I found that the actual cause of this error is that when Puppet tries to send this value to Windows EventViewer, then this error happens because Windows EventViewer is unable to receive such long string value in one chunk.

      I believe this error is similar to these ones:

      https://tickets.puppetlabs.com/browse/PUP-7153

      https://tickets.puppetlabs.com/browse/MODULES-8247

      Desired Behavior:

      Registry module should be able to set the registry key value (using registry_value resource) regardless of the size of the current value inside this registry key.

      Actual Behavior:

      Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            atirawi Ashraf Tirawi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support