Uploaded image for project: 'Puppet Communications Protocol'
  1. Puppet Communications Protocol
  2. PCP-513

Acceptance - restart_host_run_puppet.rb fails on Windows 10 32bit

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: pxp-agent, QA
    • Template:
    • Team:
      Dumpling
    • Story Points:
      1
    • Sprint:
      PCP 2016-08-10, PCP 2016-08-24, FF 2016-10-05

      Description

      https://jenkins.puppetlabs.com/view/puppet-agent/view/master/view/puppet-agent/job/platform_puppet-agent_intn-van-sys_suite-daily-pxp-agent-master/2/SLAVE_LABEL=beaker,TEST_TARGET=windows10ent-32a/testReport/(root)/tests/restart_host_run_puppet_rb/

      This looks like some bad Ruby, where an object handle is somehow attempted to be used as a string:

         C94777 - Ensure pxp-agent functions after agent host restart
          
          * Ensure each agent host has pxp-agent service running and enabled
            
            blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) 14:05:36$ cmd.exe /c puppet resource service pxp-agent ensure=stopped
              Notice: /Service[pxp-agent]/ensure: ensure changed 'running' to 'stopped'
              service { 'pxp-agent':
                ensure => 'stopped',
              }
            
            blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) executed in 9.67 seconds
            
            blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) 14:05:46$ cmd.exe /c puppet config print ssldir
              C:/ProgramData/PuppetLabs/puppet/etc/ssl
            
            blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) executed in 1.44 seconds
            localhost $ scp /tmp/beaker20160719-2073-tydrxj windows10ent-32-1:/cygdrive/c/ProgramData/PuppetLabs/pxp-agent/etc/pxp-agent.conf {:ignore => }
            
            blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) 14:05:47$ cmd.exe /c puppet resource service pxp-agent ensure=running enable=true
              Notice: /Service[pxp-agent]/ensure: ensure changed 'stopped' to 'running'
              service { 'pxp-agent':
                ensure => 'running',
                enable => 'true',
              }
            
            blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) executed in 9.73 seconds
          
          * restart each agent
            
            blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) 14:05:58$ shutdown /f /r /t 0 /d p:4:1 /c "Beaker::Host reboot command issued"
            
            blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) executed in 0.61 seconds
            Waiting for connection failure on windows10ent-32-1 (attempt 1, try again in 3 second(s))
            
            windows10ent-32-1 14:05:58$ echo echo
            sleep 3 second(s):       .      .      .
            Waiting for connection failure on windows10ent-32-1 (attempt 2, try again in 5 second(s))
            
            windows10ent-32-1 14:06:01$ echo echo
            sleep 5 second(s):       .      .      .      .      .
            Waiting for connection failure on windows10ent-32-1 (attempt 3, try again in 8 second(s))
            
            windows10ent-32-1 14:06:12$ echo echo
            echo
            sleep 8 second(s):       .      .      .      .      .      .      .      .
            Waiting for connection failure on windows10ent-32-1 (attempt 4, try again in 13 second(s))
            
            windows10ent-32-1 14:06:41$ echo echo
            Connection on windows10ent-32-1 failed as expected (Errno::ECONNRESET - Connection reset by peer - recvfrom(2))
            Warning: Attemped ssh.close, (caught Net::SSH::Disconnect - connection closed by remote host).
            Warning: ssh connection to windows10ent-32-1 has been terminated
            
            * wait until pxp-agent is back up and associated on blpp4owzvk8u88j.delivery.puppetlabs.net
              
              blpp4owzvk8u88j.delivery.puppetlabs.net (windows10ent-32-1) 14:07:21$ #<Beaker::Command:0x00000007d9d0d0>
                Trying command 30 times.
              .          Attempting ssh connection to blpp4owzvk8u88j.delivery.puppetlabs.net, user: Administrator, opts: {:config=>false, :paranoid=>false, :auth_methods=>["publickey"], :port=>22, :forward_agent=>true, :keys=>["~/.ssh/id_rsa-acceptance"], :user_known_hosts_file=>"/var/lib/jenkins/.ssh/known_hosts", :keepalive=>true, :user=>"Administrator"}
              .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .        .          Command `#<Beaker::Command:0x00000007d9d0d0>` failed.
              RuntimeError: Command `#<Beaker::Command:0x00000007d9d0d0>` failed.
              /var/lib/jenkins/workspace/platform_puppet-agent_intn-van-sys_suite-daily-pxp-agent-master/SLAVE_LABEL/beaker/TEST_TARGET/windows10ent-32a/pxp-agent/acceptance/tests/restart_host_run_puppet.rb:42
              /var/lib/jenkins/workspace/platform_puppet-agent_intn-van-sys_suite-daily-pxp-agent-master/SLAVE_LABEL/beaker/TEST_TARGET/windows10ent-32a/pxp-agent/acceptance/tests/restart_host_run_puppet.rb:37
              /var/lib/jenkins/workspace/platform_puppet-agent_intn-van-sys_suite-daily-pxp-agent-master/SLAVE_LABEL/beaker/TEST_TARGET/windows10ent-32a/pxp-agent/acceptance/tests/restart_host_run_puppet.rb:23
              /var/lib/jenkins/workspace/platform_puppet-agent_intn-van-sys_suite-daily-pxp-agent-master/SLAVE_LABEL/beaker/TEST_TARGET/windows10ent-32a/pxp-agent/acceptance/tests/restart_host_run_puppet.rb:23
              /var/lib/jenkins/workspace/platform_puppet-agent_intn-van-sys_suite-daily-pxp-agent-master/SLAVE_LABEL/beaker/TEST_TARGET/windows10ent-32a/pxp-agent/acceptance/tests/restart_host_run_puppet.rb:22
              /var/lib/jenkins/workspace/platform_puppet-agent_intn-van-sys_suite-daily-pxp-agent-master/SLAVE_LABEL/beaker/TEST_TARGET/windows10ent-32a/pxp-agent/acceptance/tests/restart_host_run_puppet.rb:3
              /var/lib/jenkins/workspace/platform_puppet-agent_intn-van-sys_suite-daily-pxp-agent-master/SLAVE_LABEL/beaker/TEST_TARGET/windows10ent-32a/pxp-agent/acceptance/.bundle/gems/gems/beaker-2.47.1/bin/beaker:6
              Begin teardown
              End teardown

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                james.stocks James Stocks
                Reporter:
                james.stocks James Stocks
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support