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

Group Created when "members" Parameter Contains Invalid User

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.8.0
    • Fix Version/s: None
    • Component/s: Windows
    • Labels:
    • Environment:

      Agent: Windows 2003 R2 x64

    • Template:
    • Team:
      Agent
    • Story Points:
      2

      Description

      Description

      If a user attempts to create a Windows group with a member that does not exist the group will be created, but no members will be present.

      Attachments

      • Screen Shot

      Repro Steps

      1. Install Puppet agent on Windows node.
      2. Attempt to create a group with invalid member specified:

        puppet apply -e "group { 'Peeps': ensure => 'present', members => ['W2K8R2-1\Guest','W2K8R2-1\Meows'], }"

      Expect

      The Puppet run will fail and no group will be created.

      Actual

      The Puppet run fails, but the group is created with no members:

      C:\>puppet apply -e "group { 'Peeps': ensure => 'present', members => ['xg1ongd9
      bpi1rsf\Guest','xg1ongd9bpi1rsf\Meows'], }"
      Notice: Compiled catalog for xg1ongd9bpi1rsf.delivery.puppetlabs.net in environm
      ent production in 0.23 seconds
      Error: Could not resolve username: xg1ongd9bpi1rsf\Meows
      Error: /Stage[main]/Main/Group[Peeps]/ensure: change from absent to present fail
      ed: Could not resolve username: xg1ongd9bpi1rsf\Meows
      Notice: Finished catalog run in 0.06 seconds

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              ryan.gard Ryan Gard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support