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

Windows Group and User fail during deletion even though it is successful

    Details

    • Template:
    • Story Points:
      1
    • Sprint:
      Windows 2015-04-08
    • Release Notes:
      Bug Fix

      Description

      This is due to commit being called in the flush method when it should not be.

      Steps to reproduce:

      1. Create a user `puppet apply -e "user

      {'FakeTestUser': ensure => present, password => 'nobodyknowssupersecret', }

      "
      2. Delete a user - `puppet apply -e "user

      {'FakeTestUser': ensure => absent, }

      "

      Notice: /User[FakeTestUser]/ensure: removed
      Error: /User[FakeTestUser]: Could not evaluate: User update failed: ADSI connection error: failed to parse display name of moniker `WinNT://./FakeTestUser,user'
          HRESULT error code:0x800708ad
            The user name could not be found.
      C:/code/puppetlabs/puppet/lib/puppet/util/adsi.rb:101:in `rescue in commit'
      C:/code/puppetlabs/puppet/lib/puppet/util/adsi.rb:98:in `commit'
      C:/code/puppetlabs/puppet/lib/puppet/provider/user/windows_adsi.rb:54:in `flush'
       
      C:/code/puppetlabs/puppet/lib/puppet/type.rb:963:in `flush'
      C:/code/puppetlabs/puppet/lib/puppet/transaction/resource_harness.rb:144:in `evaluate'
      C:/code/puppetlabs/puppet/lib/puppet/transaction.rb:161:in `apply'
      C:/code/puppetlabs/puppet/lib/puppet/transaction.rb:174:in `eval_resource'
      C:/code/puppetlabs/puppet/lib/puppet/transaction.rb:104:in `call'
      C:/code/puppetlabs/puppet/lib/puppet/transaction.rb:104:in `block (2 levels) in evaluate'
      C:/code/puppetlabs/puppet/lib/puppet/util.rb:354:in `block in thinmark'
      C:/ruby193/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      C:/code/puppetlabs/puppet/lib/puppet/util.rb:353:in `thinmark'
      C:/code/puppetlabs/puppet/lib/puppet/transaction.rb:104:in `block in evaluate'
      C:/code/puppetlabs/puppet/lib/puppet/graph/relationship_graph.rb:118:in `traverse'
      C:/code/puppetlabs/puppet/lib/puppet/transaction.rb:95:in `evaluate'
      C:/code/puppetlabs/puppet/lib/puppet/resource/catalog.rb:164:in `block in apply'
       
      C:/code/puppetlabs/puppet/lib/puppet/util/log.rb:147:in `with_destination'
      C:/code/puppetlabs/puppet/lib/puppet/transaction/report.rb:108:in `as_logging_destination'
      C:/code/puppetlabs/puppet/lib/puppet/resource/catalog.rb:163:in `apply'
      C:/code/puppetlabs/puppet/lib/puppet/configurer.rb:125:in `block in apply_catalog'
      C:/code/puppetlabs/puppet/lib/puppet/util.rb:182:in `block in benchmark'
      C:/ruby193/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      C:/code/puppetlabs/puppet/lib/puppet/util.rb:181:in `benchmark'
      C:/code/puppetlabs/puppet/lib/puppet/configurer.rb:124:in `apply_catalog'
      C:/code/puppetlabs/puppet/lib/puppet/configurer.rb:190:in `run'
      C:/code/puppetlabs/puppet/lib/puppet/application/apply.rb:273:in `apply_catalog'
       
      C:/code/puppetlabs/puppet/lib/puppet/application/apply.rb:223:in `main'
      C:/code/puppetlabs/puppet/lib/puppet/application/apply.rb:151:in `run_command'
      C:/code/puppetlabs/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
      C:/code/puppetlabs/puppet/lib/puppet/application.rb:457:in `plugin_hook'
      C:/code/puppetlabs/puppet/lib/puppet/application.rb:364:in `block in run'
      C:/code/puppetlabs/puppet/lib/puppet/util.rb:511:in `exit_on_fail'
      C:/code/puppetlabs/puppet/lib/puppet/application.rb:364:in `run'
      C:/code/puppetlabs/puppet/lib/puppet/util/command_line.rb:132:in `run'
      C:/code/puppetlabs/puppet/lib/puppet/util/command_line.rb:86:in `execute'
      C:/code/puppetlabs/puppet/bin/puppet:4:in `<top (required)>'
      C:/ruby193/lib/ruby/gems/1.9.1/bin/puppet:23:in `load'
      C:/ruby193/lib/ruby/gems/1.9.1/bin/puppet:23:in `<main>'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ethan Ethan Brown
                Reporter:
                redmine.exporter redmine.exporter
                QA Contact:
                Erick Banks
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support