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

facter_task: facter_task task fails on Windows 2012 r2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: facter_task 0.2.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 2012 r1

    • Template:
      MODULES Bug Template
    • Team:
      Bolt
    • Sprint:
      Bolt Kanban
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 0.1.3
      Puppet Version: 2017.3.0
      OS Name/Version: Windows 2012 R2

      Describe your issue in as much detail as possible...

      Desired Behavior:

      When I run the task with the fact `memoryfree`, I expect the fact value to be returned.

      Actual Behavior:

      The task succeeds on CentOS 7 but fails on Windows 2012 R2:

      [root@master production]# puppet task run facter_task fact=memoryfree --nodes centos7a.pdx.puppet.vm,server2012r2a.pdx.puppet.vm  --verbose --format json
      {
        "job_name": "27",
        "command": "task",
        "options": {"noop":false,"task":"facter_task","scope":{"nodes":["centos7a.pdx.puppet.vm","server2012r2a.pdx.puppet.vm"]},"params":{"fact":"memoryfree"},"transport":"pxp","description":"","environment":"production"},
        "owner": "admin",
        "start_timestamp": "2017-10-16T06:24:46Z",
        "items": [
          {"name": "server2012r2a.pdx.puppet.vm", "state": "failed", "results": {"error":"","_error":{"msg":"Task finished with exit-code 1","kind":"puppetlabs.tasks/task-error","details":{"exit_code":1}},"status":"failure"}}
          ,
          {"name": "centos7a.pdx.puppet.vm", "state": "finished", "results": {"status":"235.92 MiB"}}
        ],  "state": "failed",
        "finish_timestamp": "2017-10-16T06:24:48Z"
      }
      

      Repeat with a different fact:

      [root@master facter_task]# puppet task run facter_task fact=osfamily --nodes centos7a.pdx.puppet.vm,server2012r2a.pdx.puppet.vm  --verbose --format json
      {
        "job_name": "29",
        "command": "task",
        "options": {"noop":false,"task":"facter_task","scope":{"nodes":["centos7a.pdx.puppet.vm","server2012r2a.pdx.puppet.vm"]},"params":{"fact":"osfamily"},"transport":"pxp","description":"","environment":"production"},
        "owner": "admin",
        "start_timestamp": "2017-10-16T06:38:28Z",
        "items": [
          {"name": "server2012r2a.pdx.puppet.vm", "state": "failed", "results": {"error":"","_error":{"msg":"Task finished with exit-code 1","kind":"puppetlabs.tasks/task-error","details":{"exit_code":1}},"status":"failure"}}
          ,
          {"name": "centos7a.pdx.puppet.vm", "state": "finished", "results": {"status":"RedHat"}}
        ],  "state": "failed",
        "finish_timestamp": "2017-10-16T06:38:31Z"
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eric.putnam Eric Putnam
              Reporter:
              dimitri.tischenko Dimitri Tischenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support