brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BROOKLYN-173) WinRM executeScript failed: httplib.BadStatusLine: ''
Date Fri, 23 Oct 2015 19:49:27 GMT

     [ https://issues.apache.org/jira/browse/BROOKLYN-173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aled Sage updated BROOKLYN-173:
-------------------------------
    Description: 
When deploying a simple Windows 7zip app to a vcloud-director environment (over NAT), the install command failed: {{httplib.BadStatusLine: ''}}

After this error, I tested executing another batch command over the same WinrmMachineLocation+VanillaWindowsProcess, and that worked:

{noformat}
mgmt.getEntityManager().getEntity("wV0Kbv2T").getLocations()[0].executeScript("powershell -command \"C:\\\\install7zip.ps1\"").getStdOut()
{noformat}

The error was:

{noformat}
    Failed after 44.2s: failed to execute shell script, 10 errors including: Traceback (most recent call last):
      File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
      File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
    httplib.BadStatusLine: ''


    org.apache.brooklyn.util.exceptions.CompoundRuntimeException: failed to execute shell script, 10 errors including: Traceback (most recent call last):
      File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
      File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
    httplib.BadStatusLine: ''

      at org.apache.brooklyn.util.exceptions.Exceptions.create(Exceptions.java:301)
      at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:282)
      at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScript(WinRmMachineLocation.java:174)
      at org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessWinRmDriver.executeNativeOrPsCommand(AbstractSoftwareProcessWinRmDriver.java:239)
      at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper.executeInternal(WinRmExecuteHelper.java:145)
      at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper$1.call(WinRmExecuteHelper.java:94)
      at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper$1.call(WinRmExecuteHelper.java:92)
      at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:342)
      at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:468)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
    Caused by: Traceback (most recent call last):
      File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
      File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
    httplib.BadStatusLine: ''

      at org.python.core.PyException.doRaise(PyException.java:226)
      at org.python.core.Py.makeException(Py.java:1276)
      at org.python.core.Py.makeException(Py.java:1280)
      at org.python.core.Py.makeException(Py.java:1284)
      at httplib$py._read_status$7(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:400)
      at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:137)
      at org.python.core.PyFunction.__call__(PyFunction.java:347)
      at org.python.core.PyMethod.__call__(PyMethod.java:121)
      at httplib$py.begin$8(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:486)
      at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:137)
      at org.python.core.PyFunction.__call__(PyFunction.java:347)
      at org.python.core.PyMethod.__call__(PyMethod.java:121)
      at httplib$py.getresponse$35(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:1056)
      at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at urllib2$py.do_open$97(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:1208)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at urllib2$py.http_open$101(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:1214)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:218)
      at org.python.core.PyObject._callextra(PyObject.java:543)
      at urllib2$py._call_chain$36(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:379)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.__call__(PyMethod.java:182)
      at urllib2$py._open$38(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:426)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at urllib2$py.open$37(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:412)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at urllib2$py.retry_http_basic_auth$71(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:887)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:187)
      at org.python.core.PyFunction.__call__(PyFunction.java:380)
      at org.python.core.PyMethod.__call__(PyMethod.java:166)
      at urllib2$py.http_error_auth_reqed$70(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:875)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.__call__(PyMethod.java:182)
      at urllib2$py.http_error_401$73(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:899)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:218)
      at org.python.core.PyObject._callextra(PyObject.java:543)
      at urllib2$py._call_chain$36(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:379)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:218)
      at org.python.core.PyObject._callextra(PyObject.java:543)
      at urllib2$py.error$39(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:448)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:213)
      at urllib2$py.http_response$47(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:525)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at urllib2$py.open$37(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:412)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:187)
      at org.python.core.PyFunction.__call__(PyFunction.java:380)
      at org.python.core.PyMethod.__call__(PyMethod.java:166)
      at urllib2$py.urlopen$1(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:127)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyFunction.function___call__(PyFunction.java:406)
      at org.python.core.PyFunction.__call__(PyFunction.java:401)
      at winrm.transport$py.send_message$8(__pyclasspath__/winrm/transport.py:112)
      at winrm.transport$py.call_function(__pyclasspath__/winrm/transport.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:152)
      at org.python.core.PyFunction.__call__(PyFunction.java:357)
      at org.python.core.PyMethod.__call__(PyMethod.java:136)
      at winrm.protocol$py.send_message$7(__pyclasspath__/winrm/protocol.py:190)
      at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:152)
      at org.python.core.PyFunction.__call__(PyFunction.java:357)
      at org.python.core.PyMethod.__call__(PyMethod.java:136)
      at winrm.protocol$py._raw_get_command_output$15(__pyclasspath__/winrm/protocol.py:359)
      at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at winrm.protocol$py.get_command_output$14(__pyclasspath__/winrm/protocol.py:314)
      at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at winrm$py.run_cmd$9(__pyclasspath__/winrm/__init__.py:45)
      at winrm$py.call_function(__pyclasspath__/winrm/__init__.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:213)
      at org.python.core.PyMethod.__call__(PyMethod.java:208)
      at org.python.core.PyObject._jcallexc(PyObject.java:3555)
      at org.python.core.PyObject._jcall(PyObject.java:3587)
      at org.python.proxies.winrm$Session$8.run_cmd(Unknown Source)
      at io.cloudsoft.winrm4j.winrm.WinRmTool.executeScript(WinRmTool.java:28)
      at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScriptNoRetry(WinRmMachineLocation.java:179)
      at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScript(WinRmMachineLocation.java:161)
      ... 10 more
{noformat}

  was:
When deploying a simple Windows 7zip app to a vcloud-director environment (over NAT), the install command failed: httplib.BadStatusLine: ''

After this error, I tested executing another batch command over the same WinrmMachineLocation+VanillaWindowsProcess, and that worked:

    mgmt.getEntityManager().getEntity("wV0Kbv2T").getLocations()[0].executeScript("powershell -command \"C:\\\\install7zip.ps1\"").getStdOut()

The error was:

    Failed after 44.2s: failed to execute shell script, 10 errors including: Traceback (most recent call last):
      File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
      File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
    httplib.BadStatusLine: ''


    org.apache.brooklyn.util.exceptions.CompoundRuntimeException: failed to execute shell script, 10 errors including: Traceback (most recent call last):
      File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
      File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
    httplib.BadStatusLine: ''

      at org.apache.brooklyn.util.exceptions.Exceptions.create(Exceptions.java:301)
      at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:282)
      at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScript(WinRmMachineLocation.java:174)
      at org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessWinRmDriver.executeNativeOrPsCommand(AbstractSoftwareProcessWinRmDriver.java:239)
      at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper.executeInternal(WinRmExecuteHelper.java:145)
      at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper$1.call(WinRmExecuteHelper.java:94)
      at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper$1.call(WinRmExecuteHelper.java:92)
      at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:342)
      at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:468)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
    Caused by: Traceback (most recent call last):
      File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
      File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
      File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "__pyclasspath__/winrm/transport.py", line 82, in send_message
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
      File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
    httplib.BadStatusLine: ''

      at org.python.core.PyException.doRaise(PyException.java:226)
      at org.python.core.Py.makeException(Py.java:1276)
      at org.python.core.Py.makeException(Py.java:1280)
      at org.python.core.Py.makeException(Py.java:1284)
      at httplib$py._read_status$7(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:400)
      at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:137)
      at org.python.core.PyFunction.__call__(PyFunction.java:347)
      at org.python.core.PyMethod.__call__(PyMethod.java:121)
      at httplib$py.begin$8(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:486)
      at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:137)
      at org.python.core.PyFunction.__call__(PyFunction.java:347)
      at org.python.core.PyMethod.__call__(PyMethod.java:121)
      at httplib$py.getresponse$35(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:1056)
      at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at urllib2$py.do_open$97(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:1208)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at urllib2$py.http_open$101(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:1214)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:218)
      at org.python.core.PyObject._callextra(PyObject.java:543)
      at urllib2$py._call_chain$36(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:379)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.__call__(PyMethod.java:182)
      at urllib2$py._open$38(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:426)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at urllib2$py.open$37(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:412)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at urllib2$py.retry_http_basic_auth$71(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:887)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:187)
      at org.python.core.PyFunction.__call__(PyFunction.java:380)
      at org.python.core.PyMethod.__call__(PyMethod.java:166)
      at urllib2$py.http_error_auth_reqed$70(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:875)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.__call__(PyMethod.java:182)
      at urllib2$py.http_error_401$73(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:899)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:218)
      at org.python.core.PyObject._callextra(PyObject.java:543)
      at urllib2$py._call_chain$36(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:379)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:218)
      at org.python.core.PyObject._callextra(PyObject.java:543)
      at urllib2$py.error$39(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:448)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:213)
      at urllib2$py.http_response$47(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:525)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at urllib2$py.open$37(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:412)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:187)
      at org.python.core.PyFunction.__call__(PyFunction.java:380)
      at org.python.core.PyMethod.__call__(PyMethod.java:166)
      at urllib2$py.urlopen$1(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:127)
      at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyFunction.function___call__(PyFunction.java:406)
      at org.python.core.PyFunction.__call__(PyFunction.java:401)
      at winrm.transport$py.send_message$8(__pyclasspath__/winrm/transport.py:112)
      at winrm.transport$py.call_function(__pyclasspath__/winrm/transport.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:152)
      at org.python.core.PyFunction.__call__(PyFunction.java:357)
      at org.python.core.PyMethod.__call__(PyMethod.java:136)
      at winrm.protocol$py.send_message$7(__pyclasspath__/winrm/protocol.py:190)
      at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:152)
      at org.python.core.PyFunction.__call__(PyFunction.java:357)
      at org.python.core.PyMethod.__call__(PyMethod.java:136)
      at winrm.protocol$py._raw_get_command_output$15(__pyclasspath__/winrm/protocol.py:359)
      at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at winrm.protocol$py.get_command_output$14(__pyclasspath__/winrm/protocol.py:314)
      at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
      at org.python.core.PyFunction.__call__(PyFunction.java:368)
      at org.python.core.PyMethod.__call__(PyMethod.java:151)
      at winrm$py.run_cmd$9(__pyclasspath__/winrm/__init__.py:45)
      at winrm$py.call_function(__pyclasspath__/winrm/__init__.py)
      at org.python.core.PyTableCode.call(PyTableCode.java:166)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
      at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
      at org.python.core.PyFunction.__call__(PyFunction.java:417)
      at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
      at org.python.core.PyMethod.__call__(PyMethod.java:223)
      at org.python.core.PyMethod.__call__(PyMethod.java:213)
      at org.python.core.PyMethod.__call__(PyMethod.java:208)
      at org.python.core.PyObject._jcallexc(PyObject.java:3555)
      at org.python.core.PyObject._jcall(PyObject.java:3587)
      at org.python.proxies.winrm$Session$8.run_cmd(Unknown Source)
      at io.cloudsoft.winrm4j.winrm.WinRmTool.executeScript(WinRmTool.java:28)
      at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScriptNoRetry(WinRmMachineLocation.java:179)
      at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScript(WinRmMachineLocation.java:161)
      ... 10 more



> WinRM executeScript failed: httplib.BadStatusLine: ''
> -----------------------------------------------------
>
>                 Key: BROOKLYN-173
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-173
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Aled Sage
>
> When deploying a simple Windows 7zip app to a vcloud-director environment (over NAT), the install command failed: {{httplib.BadStatusLine: ''}}
> After this error, I tested executing another batch command over the same WinrmMachineLocation+VanillaWindowsProcess, and that worked:
> {noformat}
> mgmt.getEntityManager().getEntity("wV0Kbv2T").getLocations()[0].executeScript("powershell -command \"C:\\\\install7zip.ps1\"").getStdOut()
> {noformat}
> The error was:
> {noformat}
>     Failed after 44.2s: failed to execute shell script, 10 errors including: Traceback (most recent call last):
>       File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
>       File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
>       File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
>       File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
>       File "__pyclasspath__/winrm/transport.py", line 82, in send_message
>       File "__pyclasspath__/winrm/transport.py", line 82, in send_message
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
>     httplib.BadStatusLine: ''
>     org.apache.brooklyn.util.exceptions.CompoundRuntimeException: failed to execute shell script, 10 errors including: Traceback (most recent call last):
>       File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
>       File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
>       File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
>       File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
>       File "__pyclasspath__/winrm/transport.py", line 82, in send_message
>       File "__pyclasspath__/winrm/transport.py", line 82, in send_message
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
>     httplib.BadStatusLine: ''
>       at org.apache.brooklyn.util.exceptions.Exceptions.create(Exceptions.java:301)
>       at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:282)
>       at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScript(WinRmMachineLocation.java:174)
>       at org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessWinRmDriver.executeNativeOrPsCommand(AbstractSoftwareProcessWinRmDriver.java:239)
>       at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper.executeInternal(WinRmExecuteHelper.java:145)
>       at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper$1.call(WinRmExecuteHelper.java:94)
>       at org.apache.brooklyn.entity.software.base.lifecycle.WinRmExecuteHelper$1.call(WinRmExecuteHelper.java:92)
>       at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:342)
>       at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:468)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>       at java.lang.Thread.run(Thread.java:745)
>     Caused by: Traceback (most recent call last):
>       File "__pyclasspath__/winrm/__init__.py", line 42, in run_cmd
>       File "__pyclasspath__/winrm/protocol.py", line 310, in get_command_output
>       File "__pyclasspath__/winrm/protocol.py", line 328, in _raw_get_command_output
>       File "__pyclasspath__/winrm/protocol.py", line 190, in send_message
>       File "__pyclasspath__/winrm/transport.py", line 82, in send_message
>       File "__pyclasspath__/winrm/transport.py", line 82, in send_message
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 127, in urlopen
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 410, in open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 522, in http_response
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 442, in error
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 896, in http_error_401
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 872, in http_error_auth_reqed
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 885, in retry_http_basic_auth
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 404, in open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 421, in _open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 382, in _call_chain
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1214, in http_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py", line 1187, in do_open
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 1045, in getresponse
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 409, in begin
>       File "/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py", line 373, in _read_status
>     httplib.BadStatusLine: ''
>       at org.python.core.PyException.doRaise(PyException.java:226)
>       at org.python.core.Py.makeException(Py.java:1276)
>       at org.python.core.Py.makeException(Py.java:1280)
>       at org.python.core.Py.makeException(Py.java:1284)
>       at httplib$py._read_status$7(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:400)
>       at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:137)
>       at org.python.core.PyFunction.__call__(PyFunction.java:347)
>       at org.python.core.PyMethod.__call__(PyMethod.java:121)
>       at httplib$py.begin$8(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:486)
>       at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:137)
>       at org.python.core.PyFunction.__call__(PyFunction.java:347)
>       at org.python.core.PyMethod.__call__(PyMethod.java:121)
>       at httplib$py.getresponse$35(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py:1056)
>       at httplib$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/httplib.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
>       at org.python.core.PyMethod.__call__(PyMethod.java:223)
>       at urllib2$py.do_open$97(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:1208)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
>       at org.python.core.PyFunction.__call__(PyFunction.java:368)
>       at org.python.core.PyMethod.__call__(PyMethod.java:151)
>       at urllib2$py.http_open$101(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:1214)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
>       at org.python.core.PyMethod.__call__(PyMethod.java:223)
>       at org.python.core.PyMethod.__call__(PyMethod.java:218)
>       at org.python.core.PyObject._callextra(PyObject.java:543)
>       at urllib2$py._call_chain$36(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:379)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.__call__(PyMethod.java:182)
>       at urllib2$py._open$38(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:426)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
>       at org.python.core.PyFunction.__call__(PyFunction.java:368)
>       at org.python.core.PyMethod.__call__(PyMethod.java:151)
>       at urllib2$py.open$37(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:412)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
>       at org.python.core.PyMethod.__call__(PyMethod.java:223)
>       at urllib2$py.retry_http_basic_auth$71(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:887)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:187)
>       at org.python.core.PyFunction.__call__(PyFunction.java:380)
>       at org.python.core.PyMethod.__call__(PyMethod.java:166)
>       at urllib2$py.http_error_auth_reqed$70(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:875)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.__call__(PyMethod.java:182)
>       at urllib2$py.http_error_401$73(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:899)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
>       at org.python.core.PyMethod.__call__(PyMethod.java:223)
>       at org.python.core.PyMethod.__call__(PyMethod.java:218)
>       at org.python.core.PyObject._callextra(PyObject.java:543)
>       at urllib2$py._call_chain$36(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:379)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
>       at org.python.core.PyMethod.__call__(PyMethod.java:223)
>       at org.python.core.PyMethod.__call__(PyMethod.java:218)
>       at org.python.core.PyObject._callextra(PyObject.java:543)
>       at urllib2$py.error$39(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:448)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
>       at org.python.core.PyMethod.__call__(PyMethod.java:223)
>       at org.python.core.PyMethod.__call__(PyMethod.java:213)
>       at urllib2$py.http_response$47(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:525)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
>       at org.python.core.PyFunction.__call__(PyFunction.java:368)
>       at org.python.core.PyMethod.__call__(PyMethod.java:151)
>       at urllib2$py.open$37(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:412)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:187)
>       at org.python.core.PyFunction.__call__(PyFunction.java:380)
>       at org.python.core.PyMethod.__call__(PyMethod.java:166)
>       at urllib2$py.urlopen$1(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py:127)
>       at urllib2$py.call_function(/home/amp/cloudsoft-amp-3.0.0-rc2/lib/amp/jython-standalone-2.7-b3.jar/Lib/urllib2.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyFunction.function___call__(PyFunction.java:406)
>       at org.python.core.PyFunction.__call__(PyFunction.java:401)
>       at winrm.transport$py.send_message$8(__pyclasspath__/winrm/transport.py:112)
>       at winrm.transport$py.call_function(__pyclasspath__/winrm/transport.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:152)
>       at org.python.core.PyFunction.__call__(PyFunction.java:357)
>       at org.python.core.PyMethod.__call__(PyMethod.java:136)
>       at winrm.protocol$py.send_message$7(__pyclasspath__/winrm/protocol.py:190)
>       at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:152)
>       at org.python.core.PyFunction.__call__(PyFunction.java:357)
>       at org.python.core.PyMethod.__call__(PyMethod.java:136)
>       at winrm.protocol$py._raw_get_command_output$15(__pyclasspath__/winrm/protocol.py:359)
>       at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
>       at org.python.core.PyFunction.__call__(PyFunction.java:368)
>       at org.python.core.PyMethod.__call__(PyMethod.java:151)
>       at winrm.protocol$py.get_command_output$14(__pyclasspath__/winrm/protocol.py:314)
>       at winrm.protocol$py.call_function(__pyclasspath__/winrm/protocol.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:169)
>       at org.python.core.PyFunction.__call__(PyFunction.java:368)
>       at org.python.core.PyMethod.__call__(PyMethod.java:151)
>       at winrm$py.run_cmd$9(__pyclasspath__/winrm/__init__.py:45)
>       at winrm$py.call_function(__pyclasspath__/winrm/__init__.py)
>       at org.python.core.PyTableCode.call(PyTableCode.java:166)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:304)
>       at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
>       at org.python.core.PyFunction.__call__(PyFunction.java:417)
>       at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:232)
>       at org.python.core.PyMethod.__call__(PyMethod.java:223)
>       at org.python.core.PyMethod.__call__(PyMethod.java:213)
>       at org.python.core.PyMethod.__call__(PyMethod.java:208)
>       at org.python.core.PyObject._jcallexc(PyObject.java:3555)
>       at org.python.core.PyObject._jcall(PyObject.java:3587)
>       at org.python.proxies.winrm$Session$8.run_cmd(Unknown Source)
>       at io.cloudsoft.winrm4j.winrm.WinRmTool.executeScript(WinRmTool.java:28)
>       at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScriptNoRetry(WinRmMachineLocation.java:179)
>       at org.apache.brooklyn.location.winrm.WinRmMachineLocation.executeScript(WinRmMachineLocation.java:161)
>       ... 10 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message