incubator-brooklyn.git
2 years agoThis closes #1181 master
Alex Heneveld [Sat, 30 Jan 2016 12:05:26 +0000 (12:05 +0000)] 
This closes #1181

2 years agoApache Brooklyn has moved to http://github.com/apache/brooklyn 1181/head
Alex Heneveld [Sat, 30 Jan 2016 11:57:59 +0000 (11:57 +0000)] 
Apache Brooklyn has moved to github.com/apache/brooklyn

This commit updates historic notices for clarity.
Almost all visitors will now want either:

* **The Active Codebase**: at [http://github.com/apache/brooklyn/](http://github.com/apache/brooklyn/)
* **The Apache Brooklyn Homepage**: at [http://brooklyn.apache.org/](http://brooklyn.apache.org/)

2 years agoThis closes #1180
Alex Heneveld [Sat, 30 Jan 2016 11:59:30 +0000 (11:59 +0000)] 
This closes #1180

2 years agofix file missing header (rat) 1180/head
Alex Heneveld [Sat, 30 Jan 2016 11:44:03 +0000 (11:44 +0000)] 
fix file missing header (rat)

2 years agoThis closes #1169
Alex Heneveld [Sat, 30 Jan 2016 03:45:34 +0000 (03:45 +0000)] 
This closes #1169

2 years agoThis closes #1166
Alex Heneveld [Sat, 30 Jan 2016 03:41:59 +0000 (03:41 +0000)] 
This closes #1166

2 years agoupdate LICENSE files throughout
Alex Heneveld [Sat, 30 Jan 2016 03:33:08 +0000 (03:33 +0000)] 
update LICENSE files throughout

2 years agoupdate license generation to put a file in each project root
Alex Heneveld [Sat, 30 Jan 2016 03:32:38 +0000 (03:32 +0000)] 
update license generation to put a file in each project root

and  correct some version mismatches

2 years agoThis closes #1144
Alex Heneveld [Sat, 30 Jan 2016 02:55:20 +0000 (02:55 +0000)] 
This closes #1144

2 years agoThis closes #1179
Alex Heneveld [Sat, 30 Jan 2016 02:48:00 +0000 (02:48 +0000)] 
This closes #1179

2 years agofix the nondet cancellation test race observed previously 1179/head
Alex Heneveld [Sat, 30 Jan 2016 02:45:09 +0000 (02:45 +0000)] 
fix the nondet cancellation test race observed previously

2 years agoThis closes #1170
Alex Heneveld [Sat, 30 Jan 2016 02:31:35 +0000 (02:31 +0000)] 
This closes #1170

2 years agoThis closes #1175
Alex Heneveld [Sat, 30 Jan 2016 02:28:34 +0000 (02:28 +0000)] 
This closes #1175

2 years agoThis closes #1178
Alex Heneveld [Sat, 30 Jan 2016 02:21:43 +0000 (02:21 +0000)] 
This closes #1178

2 years agofix failing (time sensitive) test 1178/head
Alex Heneveld [Fri, 29 Jan 2016 23:30:07 +0000 (23:30 +0000)] 
fix failing (time sensitive) test

and improve the "Asserts.eventually" routines which that used,
adding a new simpler eventuallyOnNotify(...) and having it used elsewhere.

also add convenience methods for CountdownTimer so its usage is more readable.

2 years agoChanges re code review 1169/head
Duncan Grant [Fri, 29 Jan 2016 11:00:26 +0000 (11:00 +0000)] 
Changes re code review

Reorder password so "required chars" not at beginning
More default symbols
yaml test
concatenate all characters to use as available characters once required
chars added
Minor other changes

2 years agoadd support for SNAPSHOT downloads 1170/head
John McCabe [Thu, 28 Jan 2016 16:27:44 +0000 (16:27 +0000)] 
add support for SNAPSHOT downloads
- supports release downloads via Apache closer.lua mirror
- supports snapshot download from Apache maven
- supports snapshot download from a local -dist.tar.gz archive.
*NOTE* this currently requires the user to copy the dist to the same directory
       as the Vagrantfile

2 years agoremove printStackTrace which snuck in to test
Alex Heneveld [Wed, 27 Jan 2016 10:34:28 +0000 (10:34 +0000)] 
remove printStackTrace which snuck in to test

2 years agoUpdate storm dependency 1175/head
Valentin Aitken [Tue, 26 Jan 2016 21:55:40 +0000 (23:55 +0200)] 
Update storm dependency

- exclude storm:carbonite transitive dependency

2 years agoThis closes #1173
Alex Heneveld [Tue, 26 Jan 2016 20:10:28 +0000 (20:10 +0000)] 
This closes #1173

2 years agoThis closes #1174
Alex Heneveld [Tue, 26 Jan 2016 20:05:32 +0000 (20:05 +0000)] 
This closes #1174

2 years agofix intermittent failing test on constraint validation 1174/head
Alex Heneveld [Tue, 26 Jan 2016 20:02:57 +0000 (20:02 +0000)] 
fix intermittent failing test on constraint validation

2 years agoThis closes #1165
Aled Sage [Tue, 26 Jan 2016 12:54:19 +0000 (12:54 +0000)] 
This closes #1165

2 years agoSshFeed: if same cmd, then share result 1173/head
Aled Sage [Mon, 25 Jan 2016 17:35:11 +0000 (17:35 +0000)] 
SshFeed: if same cmd, then share result

- Fix the avoidance of executing the same command repeatedly, if an
  SshFeed is configured with multiple sensors that use the output
  of the same command.

2 years agoSshFeedIntegrationTest: fix compile warnings
Aled Sage [Mon, 25 Jan 2016 17:27:51 +0000 (17:27 +0000)] 
SshFeedIntegrationTest: fix compile warnings

2 years agochange-version: improve echo msg
Aled Sage [Mon, 25 Jan 2016 17:26:15 +0000 (17:26 +0000)] 
change-version: improve echo msg

2 years agoUpdated license for Glossarizer MIT statement 1144/head
Duncan Godwin [Mon, 25 Jan 2016 13:52:47 +0000 (13:52 +0000)] 
Updated license for Glossarizer MIT statement

2 years agoFinished Managing
Duncan Godwin [Mon, 25 Jan 2016 13:26:51 +0000 (13:26 +0000)] 
Finished Managing

2 years agoThis closes #1167
Alex Heneveld [Mon, 25 Jan 2016 01:02:01 +0000 (01:02 +0000)] 
This closes #1167

2 years agoThis closes #1171
Alex Heneveld [Mon, 25 Jan 2016 01:01:38 +0000 (01:01 +0000)] 
This closes #1171

2 years agoadd README.md to rat excludes
John McCabe [Mon, 25 Jan 2016 00:57:47 +0000 (00:57 +0000)] 
add README.md to rat excludes

2 years agoadd -SNAPSHOT handling
John McCabe [Sun, 24 Jan 2016 23:41:26 +0000 (23:41 +0000)] 
add -SNAPSHOT handling
- aborts starting brooklyn VM with a warning and pointer to README
- README describes how to update the Vagrantfile to point at the desired -SNAPSHOT source

2 years agofix RAT violations
John McCabe [Sun, 24 Jan 2016 22:24:50 +0000 (22:24 +0000)] 
fix RAT violations

2 years agoThis closes #1172
Aled Sage [Fri, 22 Jan 2016 17:53:45 +0000 (17:53 +0000)] 
This closes #1172

2 years agoAdds catalog item example to externalized-configuration.md 1172/head
Aled Sage [Fri, 22 Jan 2016 15:03:41 +0000 (15:03 +0000)] 
Adds catalog item example to externalized-configuration.md

2 years agoload locations from catalog, strip unnecessary properties
John McCabe [Fri, 22 Jan 2016 15:48:14 +0000 (15:48 +0000)] 
load locations from catalog, strip unnecessary properties
- vagrant-catalog.bom loaded on startup in the systemd service unit

2 years agoConcertina in managing, glossary & refactored names
Duncan Godwin [Fri, 22 Jan 2016 14:44:45 +0000 (14:44 +0000)] 
Concertina in managing, glossary & refactored names

2 years agorevert generics change as it causes inconsistent failures in different JVM's 1166/head
Alex Heneveld [Fri, 22 Jan 2016 11:58:16 +0000 (11:58 +0000)] 
revert generics change as it causes inconsistent failures in different JVM's

2 years agoalso improve jmx port allocation in tests 1171/head
Alex Heneveld [Fri, 22 Jan 2016 11:46:50 +0000 (11:46 +0000)] 
also improve jmx port allocation in tests

to fix another observed test failure,
at https://builds.apache.org/job/incubator-brooklyn-pull-requests/org.apache.brooklyn$brooklyn-software-base/2439/testReport/junit/org.apache.brooklyn.feed.jmx/JmxFeedTest/setUp/

Port already in use: 40125; nested exception is:
 java.net.BindException: Address already in use

2 years agofix race in DSTTest.testCancel
Alex Heneveld [Fri, 22 Jan 2016 09:41:00 +0000 (09:41 +0000)] 
fix race in DSTTest.testCancel

seeing errors on jenkins server though it runs fine locally;
have patched what looks like one race, but not sure it explains the failure
at https://builds.apache.org/job/incubator-brooklyn-pull-requests/org.apache.brooklyn$brooklyn-core/2440/testReport/junit/org.apache.brooklyn.util.core.task/DynamicSequentialTaskTest/testCancelled/
where we are seeing an extra semaphore at the end of the test;
have added comments and logging in case it is seen again.
(locally all is well.)

2 years agocorrect artifact staging dir path
John McCabe [Thu, 21 Jan 2016 22:57:21 +0000 (22:57 +0000)] 
correct artifact staging dir path

2 years agoadd getting started vagrant env to release artifacts
John McCabe [Thu, 21 Jan 2016 22:50:59 +0000 (22:50 +0000)] 
add getting started vagrant env to release artifacts
- following inclusion of Vagrant as a target in #1144
- previously at https://github.com/johnmccabe/vagrant-brooklyn-getting-started

2 years agoupdate release process docs for current repo structure
John McCabe [Thu, 21 Jan 2016 22:03:41 +0000 (22:03 +0000)] 
update release process docs for current repo structure

2 years agoadd apache-brooklyn-VER-vagrant release artifact
John McCabe [Thu, 21 Jan 2016 18:49:31 +0000 (18:49 +0000)] 
add apache-brooklyn-VER-vagrant release artifact

2 years agoupdate make-release-artifacts to work with current repo structure
John McCabe [Thu, 21 Jan 2016 18:42:08 +0000 (18:42 +0000)] 
update make-release-artifacts to work with current repo structure

2 years agoCreate Password Sensor
Duncan Grant [Thu, 21 Jan 2016 16:14:25 +0000 (16:14 +0000)] 
Create Password Sensor

A simple initialiser for creating passwords in yaml as a sensor

Added a password generating function in the Identifiers class which uses
secure random

2 years agogroup software process tasks better 1167/head
Alex Heneveld [Thu, 21 Jan 2016 14:10:09 +0000 (14:10 +0000)] 
group software process tasks better

causes a much nicer tree to display, rather than lots of steps.
most are no-op and i think this structure makes it better to navigate.
unfortunately it is hard to tell if a step is no-op, as they are methods,
so we don't have a way just to not run empty steps.
it would be better to do away with most of them, finding a different mechanism
for subclasses to insert at the right point, but this helps in the short term.

2 years agostart fleshing out release notes, including reference to the new parameters example
Alex Heneveld [Thu, 21 Jan 2016 13:34:02 +0000 (13:34 +0000)] 
start fleshing out release notes, including reference to the new parameters example

2 years agoadd more examples to `netcat` illustration,
Alex Heneveld [Thu, 21 Jan 2016 13:17:08 +0000 (13:17 +0000)] 
add more examples to `netcat` illustration,
showing port inference, parameters, catalog, and more.

2 years agosupport dynamic cluster restart
Alex Heneveld [Thu, 21 Jan 2016 13:55:30 +0000 (13:55 +0000)] 
support dynamic cluster restart

2 years agoallow spec parameters to imply sensors as well as config keys;
Alex Heneveld [Thu, 21 Jan 2016 13:24:15 +0000 (13:24 +0000)] 
allow spec parameters to imply sensors as well as config keys;
mainly intended for AttributeSensorAndConfigKey -- especially ports.

this means param of type `port` given a range causes a sensor to be published with the actual value.

2 years agoensure install-label-salt-inferencing does not block
Alex Heneveld [Thu, 21 Jan 2016 13:22:21 +0000 (13:22 +0000)] 
ensure install-label-salt-inferencing does not block

otherwise setting a shell env var to include a port will cause it to block prematurely.
also clean up javadoc around `getNonBlocking` behaviour.

2 years agofix location of yaml file read in by docs
Alex Heneveld [Thu, 21 Jan 2016 09:52:14 +0000 (09:52 +0000)] 
fix location of yaml file read in by docs

docs build failed without this

2 years agoThis closes #1148
Alex Heneveld [Thu, 21 Jan 2016 09:48:00 +0000 (09:48 +0000)] 
This closes #1148

2 years agomark ConnectionFailureDetectorTest.java as Integration because it requires ports... 1165/head
Alex Heneveld [Thu, 21 Jan 2016 09:41:44 +0000 (09:41 +0000)] 
mark ConnectionFailureDetectorTest.java as Integration because it requires ports accessible

the failure log is recorded at:
https://gist.github.com/davidx/1a21649a5e637b7b2a6a

2 years agoThis closes #1164
Alex Heneveld [Thu, 21 Jan 2016 01:22:59 +0000 (01:22 +0000)] 
This closes #1164

2 years agoaddress minor shutdown cleanup code review comments 1164/head
Alex Heneveld [Thu, 21 Jan 2016 01:19:12 +0000 (01:19 +0000)] 
address minor shutdown cleanup code review comments

2 years agosuppress explicit termination in main thread;
Alex Heneveld [Wed, 20 Jan 2016 20:49:13 +0000 (20:49 +0000)] 
suppress explicit termination in main thread;
the shutdown hook is sufficient and it's a bit of work to terminate properly in-thread

2 years agobackground the dev-mode web server shutdown,
Alex Heneveld [Wed, 20 Jan 2016 18:26:56 +0000 (18:26 +0000)] 
background the dev-mode web server shutdown,
and Entities.destroyAll is more graceful on concurrent shutdown

2 years agoprevent deadlock if requests coming in during startup
Alex Heneveld [Wed, 20 Jan 2016 18:13:35 +0000 (18:13 +0000)] 
prevent deadlock if requests coming in during startup

2 years agobetter shutdown
Alex Heneveld [Wed, 20 Jan 2016 15:56:07 +0000 (15:56 +0000)] 
better shutdown

call Main.terminate() in the main thread, rather than relying on shutdown hooks

fixes rest-initiated shutdown when using BrooklynJavascriptGuiLauncher
(looks like that has been broken since #771)

2 years agoThis closes #1160
Alex Heneveld [Wed, 20 Jan 2016 21:04:20 +0000 (21:04 +0000)] 
This closes #1160

2 years agoThis closes #1162
Alex Heneveld [Wed, 20 Jan 2016 21:04:15 +0000 (21:04 +0000)] 
This closes #1162

2 years agocode review for task-cancellation mode 1160/head
Alex Heneveld [Wed, 20 Jan 2016 21:01:20 +0000 (21:01 +0000)] 
code review for task-cancellation mode

2 years agoaddress code review for #1162 1162/head
Alex Heneveld [Wed, 20 Jan 2016 20:53:04 +0000 (20:53 +0000)] 
address code review for #1162

2 years agoclearer semantics for cancel, and cancel dependent submitted tasks by default
Alex Heneveld [Tue, 19 Jan 2016 12:48:15 +0000 (12:48 +0000)] 
clearer semantics for cancel, and cancel dependent submitted tasks by default

prevents leaks where dependent tasks (eg resolveValue) are submitted in the background,
then the caller is cancelled; the interruption was not propagated.  now by default it is,
to children tasks and to submitted transients, with options for other (weaker and stronger) cancellations.
see TaskInternal.cancel(TaskCancellationOptions), and new tests for cancelling children in DynamicSequentialTaskTest.

also remove deprecated loose-typing ExecutionUtils.invoke,
more TRACE logging for activities,
and wrap batch config in a task so more resolutions are nested

2 years agoThis closes #1163
Aled Sage [Wed, 20 Jan 2016 16:09:17 +0000 (16:09 +0000)] 
This closes #1163

2 years agofor chained references, prefer outer catalog item id, and outer tags
Alex Heneveld [Wed, 20 Jan 2016 12:08:31 +0000 (12:08 +0000)] 
for chained references, prefer outer catalog item id, and outer tags

as described in changes to release-notes.md

2 years agoAdds EmptyWindowsProcess 1163/head
Aled Sage [Tue, 19 Jan 2016 14:57:47 +0000 (14:57 +0000)] 
Adds EmptyWindowsProcess

- Includes EmptyWindowsProcess.USE_WINRM_MONITORING, for disabling
  checking of WinRM connectivity.
- Adds EmptySoftwareProcess.USE_SSH_MONITORING, for disabling checking
  of ssh connectivity.

With EmptyWindowsProcess, one can provision an entity that will not
execute anything on the box. That makes it usable even if there is
no direct WinRM connectivity to the box.

2 years agoFix EmptySoftwareProcessYamlTest
Aled Sage [Tue, 19 Jan 2016 14:55:28 +0000 (14:55 +0000)] 
Fix EmptySoftwareProcessYamlTest

See https://github.com/brooklyncentral/brooklyn/issues/1377

2 years agoThis closes #1158
Aled Sage [Wed, 20 Jan 2016 10:27:02 +0000 (10:27 +0000)] 
This closes #1158

2 years agowinrm: switch to winrm4j v0.2.0, from 0.1.0 1158/head
Aled Sage [Mon, 18 Jan 2016 21:29:13 +0000 (21:29 +0000)] 
winrm: switch to winrm4j v0.2.0, from 0.1.0

- This is a pure-java WinRM client, so removes the jython depenpdency.
- Also changes WinRmTool.executeScript(...) to executeCommand(…),
  and WinRmMachineLocation.executeScript to executeCommand.
- Fixes WindowsPerformanceCounterFeedLiveTest
- Renames Winrm4jTool’s package (from pywinrm to winrm4j).
- Fixes imports that used org.python

2 years agoThis closes #1161
Alex Heneveld [Tue, 19 Jan 2016 15:50:59 +0000 (15:50 +0000)] 
This closes #1161

2 years agoThis closes #1123
Alex Heneveld [Tue, 19 Jan 2016 15:36:07 +0000 (15:36 +0000)] 
This closes #1123

2 years agoFixed stray end tag
Duncan Godwin [Tue, 19 Jan 2016 15:34:25 +0000 (15:34 +0000)] 
Fixed stray end tag

2 years agoUpdated blueprints and managing
Duncan Godwin [Tue, 19 Jan 2016 15:25:12 +0000 (15:25 +0000)] 
Updated blueprints and managing

2 years agotidy several other places start(Collection<Location>) is assuming locations are alway... 1161/head
Alex Heneveld [Tue, 19 Jan 2016 13:52:09 +0000 (13:52 +0000)] 
tidy several other places start(Collection<Location>) is assuming locations are always passed in, not inherited

2 years agoThis closes #1155
Alex Heneveld [Tue, 19 Jan 2016 14:38:48 +0000 (14:38 +0000)] 
This closes #1155

2 years agoThis closes #1132
Alex Heneveld [Tue, 19 Jan 2016 14:38:40 +0000 (14:38 +0000)] 
This closes #1132

2 years agoAdd more tests. Correct typo. 1148/head
Guglielmo Nigri [Tue, 19 Jan 2016 14:34:12 +0000 (15:34 +0100)] 
Add more tests. Correct typo.

2 years agoclean up how start(Location) works, for Dynamic{Cluster,Fabric}
Alex Heneveld [Tue, 19 Jan 2016 13:33:05 +0000 (13:33 +0000)] 
clean up how start(Location) works, for Dynamic{Cluster,Fabric}

2 years agoThis closes #1159
Alex Heneveld [Tue, 19 Jan 2016 13:08:13 +0000 (13:08 +0000)] 
This closes #1159

2 years agoFix DynamicFabric locations 1159/head
Aled Sage [Tue, 19 Jan 2016 12:20:09 +0000 (12:20 +0000)] 
Fix DynamicFabric locations

- When locations are defined at the YAML top-level, then ensure the
  DynamicFabric finds those.

3 years agoThis closes #1157
Aled Sage [Mon, 18 Jan 2016 22:14:51 +0000 (22:14 +0000)] 
This closes #1157

3 years agoThis closes #1154
Andrew Kennedy [Mon, 18 Jan 2016 17:15:23 +0000 (17:15 +0000)] 
This closes #1154

* github/pr/1154:
  Updated JClouds to 1.9.2

3 years agoSet error logging for MySqlNode 1155/head
Valentin Aitken [Mon, 18 Jan 2016 13:04:18 +0000 (15:04 +0200)] 
Set error logging for MySqlNode

3 years agoAdditional security for MySQL 1157/head
Yavor Yanchev [Mon, 18 Jan 2016 15:51:22 +0000 (17:51 +0200)] 
Additional security for MySQL

- it changes the default of sql_mode to include "NO_AUTO_CREATE_USER"
- it will prevent the GRANT statement from automatically creating new
user accounts unless authentication information is specified.

3 years agoThis closes #1131
Sam Corbett [Mon, 18 Jan 2016 12:15:50 +0000 (12:15 +0000)] 
This closes #1131

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

3 years agoThis closes #1153
Sam Corbett [Mon, 18 Jan 2016 12:12:51 +0000 (12:12 +0000)] 
This closes #1153

WinRM docs for correct preparation of windows templates

3 years agoThis closes #1141
Sam Corbett [Mon, 18 Jan 2016 12:09:04 +0000 (12:09 +0000)] 
This closes #1141

Fixed issue with exceptions in Rest Client

3 years agoUpdated JClouds to 1.9.2 1154/head
Graeme-Miller [Mon, 18 Jan 2016 10:59:59 +0000 (10:59 +0000)] 
Updated JClouds to 1.9.2

3 years agoWinRM docs for correct preparation of windows template 1153/head
Yavor Yanchev [Mon, 18 Jan 2016 10:41:43 +0000 (12:41 +0200)] 
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

3 years agoThis closes #1142
Andrew Kennedy [Mon, 18 Jan 2016 00:37:05 +0000 (00:37 +0000)] 
This closes #1142

* github/pr/1142:
  deprecate group.members.delegate and prevent delegate creation when adding to quarantine - use of delegate to denote quarantine group membership in the jsgui is no longer required due to #929

3 years agoThis closes #1152
Ciprian Ciubotariu [Mon, 18 Jan 2016 00:30:04 +0000 (02:30 +0200)] 
This closes #1152

3 years ago[BROOKLYN-183] Add karaf features 1152/head
Cristian Tarsoaga [Sat, 16 Jan 2016 01:26:52 +0000 (03:26 +0200)] 
[BROOKLYN-183] Add karaf features

Add brooklyn-software-base, brooklyn-software-winrm and brooklyn-policy features.
Ignore for now python imports in brooklyn-software-base.

3 years agoThis closes #1130
Aled Sage [Fri, 15 Jan 2016 22:37:24 +0000 (22:37 +0000)] 
This closes #1130

3 years agoThis closes #1151
Alex Heneveld [Fri, 15 Jan 2016 15:11:05 +0000 (15:11 +0000)] 
This closes #1151

3 years agoupdate licenses with latest metadata and dependencies 1151/head
Alex Heneveld [Fri, 15 Jan 2016 15:07:50 +0000 (15:07 +0000)] 
update licenses with latest metadata and dependencies

3 years agocorrect references used in license-readme-generation for new project structure
Alex Heneveld [Fri, 15 Jan 2016 15:04:11 +0000 (15:04 +0000)] 
correct references used in license-readme-generation for new project structure

3 years agoThis closes #1136
Aled Sage [Fri, 15 Jan 2016 14:54:57 +0000 (14:54 +0000)] 
This closes #1136