You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by sj...@apache.org on 2016/01/18 13:16:39 UTC

[1/6] incubator-brooklyn git commit: WinRm documentation - In Powershell use Start-Process ... -Wait

Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master 209c0ad8c -> 981f7c774


WinRm documentation - In Powershell use Start-Process ... -Wait


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/867b55e2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/867b55e2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/867b55e2

Branch: refs/heads/master
Commit: 867b55e25c6f0e374b6f6d65651061e8f8e65b6d
Parents: dff3014
Author: Valentin Aitken <va...@cloudsoftcorp.com>
Authored: Thu Jan 7 16:47:05 2016 +0200
Committer: Valentin Aitken <va...@cloudsoftcorp.com>
Committed: Thu Jan 7 16:48:38 2016 +0200

----------------------------------------------------------------------
 brooklyn-docs/guide/yaml/winrm/index.md | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/867b55e2/brooklyn-docs/guide/yaml/winrm/index.md
----------------------------------------------------------------------
diff --git a/brooklyn-docs/guide/yaml/winrm/index.md b/brooklyn-docs/guide/yaml/winrm/index.md
index 959f88c..327baa6 100644
--- a/brooklyn-docs/guide/yaml/winrm/index.md
+++ b/brooklyn-docs/guide/yaml/winrm/index.md
@@ -250,6 +250,16 @@ other entities using the standard `attributeWhenReady` mechanism. For example:
 
     install.command: $brooklyn:formatString("c:\\myscript.bat %s", component("db").attributeWhenReady("datastore.url"))
 
+### Powershell - Using Start-Process
+
+When you are invoking a command from a powershell script with `Start-Process` cmdlet,
+please use the `-Wait` and the `-PassThru` arguments.
+Example `Start-Process C:\mycommand -Wait -PassThru`
+
+Using `-Wait` guarantees that the script process and its children and thus the winrm session won't be terminated until it is finished.
+`-PassThru` Returns a process object for each process that the cmdlet started. By default, this cmdlet does not generate any output.
+See https://technet.microsoft.com/en-us/library/hh849848.aspx
+
 ### Rebooting
 
 Where a reboot is required as part of the entity setup, this can be configured using


[5/6] incubator-brooklyn git commit: This closes #1153

Posted by sj...@apache.org.
This closes #1153

WinRM docs for correct preparation of windows templates


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/22faee79
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/22faee79
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/22faee79

Branch: refs/heads/master
Commit: 22faee796cf609078a53885d67bd0661291cf120
Parents: a858981 93dd48d
Author: Sam Corbett <sa...@cloudsoftcorp.com>
Authored: Mon Jan 18 12:12:51 2016 +0000
Committer: Sam Corbett <sa...@cloudsoftcorp.com>
Committed: Mon Jan 18 12:12:51 2016 +0000

----------------------------------------------------------------------
 brooklyn-docs/guide/yaml/winrm/index.md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------



[2/6] incubator-brooklyn git commit: Fixed an issue, where calling getEntity on BuiltResponsePreservingError would throw a previously caught error. We now throw an IllegalStateException to make it clear where the exception is coming from

Posted by sj...@apache.org.
Fixed an issue, where calling getEntity on BuiltResponsePreservingError would throw a previously caught error. We now throw an IllegalStateException to make it clear where the exception is coming from


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/71cfdc66
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/71cfdc66
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/71cfdc66

Branch: refs/heads/master
Commit: 71cfdc66f5d4b75fdd68bb455c0f31e0a15dd9e5
Parents: 2864486
Author: Graeme-Miller <gr...@cloudsoftcorp.com>
Authored: Wed Jan 13 15:35:17 2016 +0000
Committer: Graeme-Miller <gr...@cloudsoftcorp.com>
Committed: Wed Jan 13 15:35:17 2016 +0000

----------------------------------------------------------------------
 .../rest/client/util/http/BuiltResponsePreservingError.java      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/71cfdc66/brooklyn-server/rest/rest-client/src/main/java/org/apache/brooklyn/rest/client/util/http/BuiltResponsePreservingError.java
----------------------------------------------------------------------
diff --git a/brooklyn-server/rest/rest-client/src/main/java/org/apache/brooklyn/rest/client/util/http/BuiltResponsePreservingError.java b/brooklyn-server/rest/rest-client/src/main/java/org/apache/brooklyn/rest/client/util/http/BuiltResponsePreservingError.java
index fb43c4c..d011172 100644
--- a/brooklyn-server/rest/rest-client/src/main/java/org/apache/brooklyn/rest/client/util/http/BuiltResponsePreservingError.java
+++ b/brooklyn-server/rest/rest-client/src/main/java/org/apache/brooklyn/rest/client/util/http/BuiltResponsePreservingError.java
@@ -70,7 +70,9 @@ public class BuiltResponsePreservingError extends BuiltResponse {
     
     @Override
     public Object getEntity() {
-        if (error!=null) Exceptions.propagate(error);
+        if (error!=null) {
+            throw new IllegalStateException("getEntity called on BuiltResponsePreservingError, where an Error had been preserved", error);
+        }
         return super.getEntity();
     }
 


[3/6] incubator-brooklyn git commit: WinRM docs for correct preparation of windows template

Posted by sj...@apache.org.
WinRM docs for correct preparation of windows template

- Short troubleshooting section that incorrect windows template can
  cause timeouts or fail some deployments
- Settings to Use for an Unattended Installation in known limitations
  section

Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/93dd48db
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/93dd48db
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/93dd48db

Branch: refs/heads/master
Commit: 93dd48dbb5590942486115db7a55aa3ac1e84ef3
Parents: d058158
Author: Yavor Yanchev <ya...@yanchev.com>
Authored: Mon Jan 18 12:41:43 2016 +0200
Committer: Yavor Yanchev <ya...@yanchev.com>
Committed: Mon Jan 18 12:44:29 2016 +0200

----------------------------------------------------------------------
 brooklyn-docs/guide/yaml/winrm/index.md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/93dd48db/brooklyn-docs/guide/yaml/winrm/index.md
----------------------------------------------------------------------
diff --git a/brooklyn-docs/guide/yaml/winrm/index.md b/brooklyn-docs/guide/yaml/winrm/index.md
index 959f88c..54d52d5 100644
--- a/brooklyn-docs/guide/yaml/winrm/index.md
+++ b/brooklyn-docs/guide/yaml/winrm/index.md
@@ -378,6 +378,12 @@ several times) before the VM is usable.
 This could cause the WinRM connection attempts to timeout. The location configuration option 
 `waitForWinRmAvailable` defaults to `30m` (i.e. 30 minutes). This can be increased if required.
 
+Incorrectly prepared Windows template can cause the deployment to time-out expecting an interaction by the user.
+You can verify if this is the case by RDP to the deployment which is taking to much time to complete. 
+It is recommended to manually deploy a single VM for every newly created Windows template to verify that it can be
+used for unattended installations and it doesn't wait and/or require an input by the user.
+See [Windows template settings for an Unattended Installation](#windows-template-settings-for-an-unattended-installation) under Known Limitations below. 
+
 ### Windows log files
 
 Details of the commands executed, and their results, can be found in the Brooklyn log and in the Brooklyn 
@@ -499,3 +505,12 @@ entities are installed.
 
 Blueprint authors are strongly encourages to explicitly specific directories for file
 uploads and in their Powershell scripts.
+
+### Windows template settings for an Unattended Installation
+
+Windows template needs certain configuration to be applied to prevent windows setup UI from being displayed.
+The default behavior is to display it if there are incorrect or empty settings. Showing Setup UI will prevent the proper
+deployment, because it will expect interaction by the user such as agreeing on the license agreement or some of the setup dialogs.
+
+Detailed instruction how to prepare an Unattended installation are provided at [https://technet.microsoft.com/en-us/library/cc722411%28v=ws.10%29.aspx](https://technet.microsoft.com/en-us/library/cc722411%28v=ws.10%29.aspx).
+


[4/6] incubator-brooklyn git commit: This closes #1141

Posted by sj...@apache.org.
This closes #1141

Fixed issue with exceptions in Rest Client


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/a8589818
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/a8589818
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/a8589818

Branch: refs/heads/master
Commit: a85898188453f6eacd5d1d786cd5bcc1e155c920
Parents: 209c0ad 71cfdc6
Author: Sam Corbett <sa...@cloudsoftcorp.com>
Authored: Mon Jan 18 12:09:04 2016 +0000
Committer: Sam Corbett <sa...@cloudsoftcorp.com>
Committed: Mon Jan 18 12:09:04 2016 +0000

----------------------------------------------------------------------
 .../rest/client/util/http/BuiltResponsePreservingError.java      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[6/6] incubator-brooklyn git commit: This closes #1131

Posted by sj...@apache.org.
This closes #1131

WinRm documentation - In Powershell use Start-Process ... -Wait


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/981f7c77
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/981f7c77
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/981f7c77

Branch: refs/heads/master
Commit: 981f7c774d308ec821365235f7e7ca6cffb8caa4
Parents: 22faee7 867b55e
Author: Sam Corbett <sa...@cloudsoftcorp.com>
Authored: Mon Jan 18 12:15:50 2016 +0000
Committer: Sam Corbett <sa...@cloudsoftcorp.com>
Committed: Mon Jan 18 12:15:50 2016 +0000

----------------------------------------------------------------------
 brooklyn-docs/guide/yaml/winrm/index.md | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/981f7c77/brooklyn-docs/guide/yaml/winrm/index.md
----------------------------------------------------------------------