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

Address puppet acceptance test failures on windows server 2016

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.7.1, PUP 4.8.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      Issue is fixed - tests pass on Windows Server 2016.

      Show
      Issue is fixed - tests pass on Windows Server 2016.
    • Team:
      Agent
    • Story Points:
      3
    • Sprint:
      AP 2016-11-02
    • Release Notes:
      Not Needed

      Description

      When running the puppet aio test suite there were two failures during the run.

      The first is during tests/ticket_13948_lib_dir_hook_should_be_called_on_initialization.rb. It appears there was a connection failure during the test:

      * verify that the application shows up in help
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) 10:07:00$ cmd.exe /c puppet help --vardir="C:/cygwin64/tmp/ticket_13948_lib_dir_hook_should_be_called_on_initialization.SB3COc/agent_var"
          Warning: ssh channel on windows2016-64-1 received exception post command execution Errno::ETIMEDOUT - Operation timed out - recvfrom(2)
          Warning: Attemped ssh.close, (caught Net::SSH::Disconnect - connection closed by remote host).
          ssh connection to windows2016-64-1 has been terminated
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) executed in 318.63 seconds
        Beaker::Host::CommandFailure: Host 'pyjb322f9rtg4lp.delivery.puppetlabs.net' connection failure running:
         cmd.exe /c puppet help --vardir="C:/cygwin64/tmp/ticket_13948_lib_dir_hook_should_be_called_on_initialization.SB3COc/agent_var"
        Last 10 lines of output were:
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/host.rb:348
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/helpers/host_helpers.rb:83
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/shared/host_manager.rb:127
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/patterns.rb:37
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/helpers/host_helpers.rb:63
        /Users/aileen/puppet/acceptance/tests/ticket_13948_lib_dir_hook_should_be_called_on_initialization.rb:137
        /Users/aileen/puppet/acceptance/tests/ticket_13948_lib_dir_hook_should_be_called_on_initialization.rb:136
        /Users/aileen/puppet/acceptance/tests/ticket_13948_lib_dir_hook_should_be_called_on_initialization.rb:136
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/structure.rb:43
        /Users/aileen/puppet/acceptance/tests/ticket_13948_lib_dir_hook_should_be_called_on_initialization.rb:135
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_case.rb:133
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_case.rb:133
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/2.3.0/benchmark.rb:308
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_case.rb:130
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_suite.rb:325
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_suite.rb:322
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_suite.rb:322
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_suite.rb:371
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/cli.rb:174
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/cli.rb:100
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/bin/beaker:6
        /Users/aileen/.rbenv/versions/2.3.0/bin/beaker:23
        /Users/aileen/.rbenv/versions/2.3.0/bin/beaker:23
        Begin teardown
        End teardown
        Warning: tests/ticket_13948_lib_dir_hook_should_be_called_on_initialization.rb errored in 371.72 seconds
      

      The second is tests/ticket_6857_password-disclosure-when-changing-a-users-password.rb. On initial review it appears the test is failing because the setup of a user that is tested against fails, causing a later test step to fail.

        Begin tests/ticket_6857_password-disclosure-when-changing-a-users-password.rb
        
        #6857: redact password hashes when applying in noop mode
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) 10:18:41$ cygpath -m $(mktemp -t apply_manifest.pp.XXXXXX)
          C:/cygwin64/tmp/apply_manifest.pp.sWZPmc
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) executed in 0.11 seconds
        localhost $ scp /var/folders/3r/k7hzxdmn0ps9bdqd623lpcmh0000gq/T/beaker20161014-60474-y0k87n windows2016-64-1:C:/cygwin64/tmp/apply_manifest.pp.sWZPmc {:ignore => }
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) 10:18:42$ cmd.exe /c puppet apply --verbose C:/cygwin64/tmp/apply_manifest.pp.sWZPmc
          Notice: Compiled catalog for pyjb322f9rtg4lp.delivery.puppetlabs.net in environment production in 0.12 seconds
          Info: Applying configuration version '1476465524'
          Error: User update failed: (in OLE method `SetInfo': )
              OLE error code:800708C5 in Active Directory
                The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.
          
              HRESULT error code:0x80020009
                Exception occurred.
          Wrapped exception:
          (in OLE method `SetInfo': )
              OLE error code:800708C5 in Active Directory
                The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.
          
              HRESULT error code:0x80020009
                Exception occurred.
          Error: /Stage[main]/Main/User[pl49160]/ensure: change from absent to present failed: User update failed: (in OLE method `SetInfo': )
              OLE error code:800708C5 in Active Directory
                The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.
          
              HRESULT error code:0x80020009
                Exception occurred.
          Notice: Applied catalog in 0.10 seconds
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) executed in 10.27 seconds
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) 10:18:52$ cygpath -m $(mktemp -t apply_manifest.pp.XXXXXX)
          C:/cygwin64/tmp/apply_manifest.pp.QJxNOj
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) executed in 0.11 seconds
        localhost $ scp /var/folders/3r/k7hzxdmn0ps9bdqd623lpcmh0000gq/T/beaker20161014-60474-1oaqlmv windows2016-64-1:C:/cygwin64/tmp/apply_manifest.pp.QJxNOj {:ignore => }
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) 10:18:52$ cmd.exe /c puppet apply --verbose C:/cygwin64/tmp/apply_manifest.pp.QJxNOj
          Notice: Compiled catalog for pyjb322f9rtg4lp.delivery.puppetlabs.net in environment production in 0.11 seconds
          Info: Applying configuration version '1476465535'
          Notice: /Stage[main]/Main/User[pl49160]/ensure: current_value absent, should be present (noop)
          Notice: Class[Main]: Would have triggered 'refresh' from 1 events
          Notice: Stage[main]: Would have triggered 'refresh' from 1 events
          Notice: Applied catalog in 0.07 seconds
        
        pyjb322f9rtg4lp.delivery.puppetlabs.net (windows2016-64-1) executed in 10.69 seconds
        Minitest::Assertion: Expected /current_value \[old password hash redacted\], should be \[new password hash redacted\]/ to match "windows2016-64-1: \e[mNotice: Compiled catalog for pyjb322f9rtg4lp.delivery.puppetlabs.net in environment production in 0.11 seconds\e[0m\n\e[0;32mInfo: Applying configuration version '1476465535'\e[0m\n\e[mNotice: /Stage[main]/Main/User[pl49160]/ensure: current_value absent, should be present (noop)\e[0m\n\e[mNotice: Class[Main]: Would have triggered 'refresh' from 1 events\e[0m\n\e[mNotice: Stage[main]: Would have triggered 'refresh' from 1 events\e[0m\n\e[mNotice: Applied catalog in 0.07 seconds\e[0m\n".
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/minitest-5.9.1/lib/minitest/assertions.rb:139
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/minitest-5.9.1/lib/minitest/assertions.rb:238
        /Users/aileen/puppet/acceptance/tests/ticket_6857_password-disclosure-when-changing-a-users-password.rb:45
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/helpers/host_helpers.rb:93
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/shared/host_manager.rb:127
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/patterns.rb:37
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/helpers/host_helpers.rb:63
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/helpers/puppet_helpers.rb:481
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/shared/host_manager.rb:127
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/shared/host_manager.rb:115
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/shared/host_manager.rb:114
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/shared/host_manager.rb:114
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/patterns.rb:37
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/dsl/helpers/puppet_helpers.rb:410
        /Users/aileen/puppet/acceptance/tests/ticket_6857_password-disclosure-when-changing-a-users-password.rb:44
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_case.rb:133
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_case.rb:133
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/2.3.0/benchmark.rb:308
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_case.rb:130
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_suite.rb:325
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_suite.rb:322
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_suite.rb:322
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/test_suite.rb:371
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/cli.rb:174
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/lib/beaker/cli.rb:100
        /Users/aileen/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/beaker-3.1.0/bin/beaker:6
        /Users/aileen/.rbenv/versions/2.3.0/bin/beaker:23
        /Users/aileen/.rbenv/versions/2.3.0/bin/beaker:23
        Begin teardown
        
        * Teardown: Ensure test user is removed
      

      h2: In scope for Agent team

      • Reproduce issue
      • Solve the problem

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sean.mcdonald Sean McDonald
              Reporter:
              sean.mcdonald Sean McDonald
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support