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

Acceptance test failure on Windows due to "Device or resource busy" when removing log file

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Dumpling
    • Story Points:
      1
    • Sprint:
      PCP 2016-09-07, FF 2016-09-21
    • Release Notes:
      Not Needed

      Description

      https://jenkins.puppetlabs.com/job/platform_pxp-agent_intn-van-sys_master/43/SLAVE_LABEL=beaker,TEST_TARGET=windows2012r2-64a/testReport/junit/(root)/tests/invalid_ssl_config_rb/
      SUITE_COMMIT = 8c9730fcca97e3ef54dc1f2a0b01003ec80b5804

      Error:

      Host 'suo6v735yolrw48.delivery.puppetlabs.net' exited with 1 running:
       rm -rf /cygdrive/c/ProgramData/PuppetLabs/pxp-agent/var/log/pxp-agent.log
      Last 10 lines of output were:
      	rm: cannot remove `/cygdrive/c/ProgramData/PuppetLabs/pxp-agent/var/log/pxp-agent.log': Device or resource busy

      Standard output:

      Attempt to start pxp-agent with invalid SSL config
      localhost $ scp ../test-resources/ssl windows2012r2-64-1:C:/cygwin64/tmp/test-ssl.rWORY5 {:ignore => }
       
      * Setup - Stop pxp-agent service
       
      * Setup - Wipe pxp-agent log
       
      * Setup - Change pxp-agent config to use a cert that doesn't match private key
        localhost $ scp /tmp/beaker20160209-2132-1vbakg1 windows2012r2-64-1:/cygdrive/c/ProgramData/PuppetLabs/pxp-agent/etc/pxp-agent.conf {:ignore => }
       
      * C94730 - Attempt to run pxp-agent with mismatching SSL cert and private key
       
      * Ensure pxp-agent service is stopped, and wipe log
        Beaker::Host::CommandFailure: Host 'suo6v735yolrw48.delivery.puppetlabs.net' exited with 1 running:
         rm -rf /cygdrive/c/ProgramData/PuppetLabs/pxp-agent/var/log/pxp-agent.log
        Last 10 lines of output were:
        	rm: cannot remove `/cygdrive/c/ProgramData/PuppetLabs/pxp-agent/var/log/pxp-agent.log': Device or resource busy
        /var/lib/jenkins/workspace/platform_pxp-agent_intn-van-sys_master/SLAVE_LABEL/beaker/TEST_TARGET/windows2012r2-64a/acceptance/tests/invalid_ssl_config.rb:47
        /var/lib/jenkins/workspace/platform_pxp-agent_intn-van-sys_master/SLAVE_LABEL/beaker/TEST_TARGET/windows2012r2-64a/acceptance/tests/invalid_ssl_config.rb:45
        /var/lib/jenkins/workspace/platform_pxp-agent_intn-van-sys_master/SLAVE_LABEL/beaker/TEST_TARGET/windows2012r2-64a/acceptance/tests/invalid_ssl_config.rb:16
        /var/lib/jenkins/workspace/platform_pxp-agent_intn-van-sys_master/SLAVE_LABEL/beaker/TEST_TARGET/windows2012r2-64a/acceptance/tests/invalid_ssl_config.rb:16
        /var/lib/jenkins/workspace/platform_pxp-agent_intn-van-sys_master/SLAVE_LABEL/beaker/TEST_TARGET/windows2012r2-64a/acceptance/tests/invalid_ssl_config.rb:16
        /usr/local/rvm/gems/ruby-2.1.1/gems/beaker-2.33.0/bin/beaker:6
        /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15
        /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15
        localhost $ scp ../test-resources/ssl windows2012r2-64-1:C:/cygwin64/tmp/test-ssl.ELwcCo {:ignore => }
        localhost $ scp /tmp/beaker20160209-2132-1vjjnyq windows2012r2-64-1:/cygdrive/c/ProgramData/PuppetLabs/pxp-agent/etc/pxp-agent.conf {:ignore => }

      Standard Error:

      Warning: Setting 'pluginsync' is deprecated.
         (at C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/defaults.rb:1592:in `block in <module:Puppet>')
      Error: Cannot start pxp-agent, error was: Execution of 'C:/Windows/system32/net.exe start pxp-agent' returned 2: The requested service has already been started.
       
      More help is available by typing NET HELPMSG 2182.
      Wrapped exception:
      Execution of 'C:/Windows/system32/net.exe start pxp-agent' returned 2: The requested service has already been started.
       
      More help is available by typing NET HELPMSG 2182.
      Error: /Service[pxp-agent]/ensure: change from stopped to running failed: Cannot start pxp-agent, error was: Execution of 'C:/Windows/system32/net.exe start pxp-agent' returned 2: The requested service has already been started.
       
      More help is available by typing NET HELPMSG 2182.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support