Build failed in Jenkins: brooklyn-master-build-docker #370

2018-04-19 Thread Apache Jenkins Server
See 


--
[...truncated 8.07 MB...]
2018-04-19 23:12:59,544 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod() finished in 
0 ms
2018-04-19 23:12:59,544 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod org.apache.brooklyn.rest.resources.UsageResourceTest.setUp()
2018-04-19 23:12:59,544 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod org.apache.brooklyn.rest.resources.UsageResourceTest.setUp() 
finished in 0 ms
2018-04-19 23:12:59,544 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.resources.UsageResourceTest.testGetMachineUsagesForNonExistantMachine()
2018-04-19 23:12:59,552 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.resources.UsageResourceTest.testGetMachineUsagesForNonExistantMachine()
 finished in 7 ms
2018-04-19 23:12:59,552 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod()
2018-04-19 23:12:59,552 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod() finished 
in 0 ms
2018-04-19 23:12:59,552 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod()
2018-04-19 23:12:59,552 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod() finished in 
0 ms
2018-04-19 23:12:59,553 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod org.apache.brooklyn.rest.resources.UsageResourceTest.setUp()
2018-04-19 23:12:59,553 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod org.apache.brooklyn.rest.resources.UsageResourceTest.setUp() 
finished in 1 ms
2018-04-19 23:12:59,553 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.resources.UsageResourceTest.testGetMachineUsagesInitiallyEmpty()
2018-04-19 23:12:59,569 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.resources.UsageResourceTest.testGetMachineUsagesInitiallyEmpty()
 finished in 16 ms
2018-04-19 23:12:59,570 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod()
2018-04-19 23:12:59,570 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod() finished 
in 0 ms
2018-04-19 23:12:59,570 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod()
2018-04-19 23:12:59,570 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod() finished in 
0 ms
2018-04-19 23:12:59,570 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod org.apache.brooklyn.rest.resources.UsageResourceTest.setUp()
2018-04-19 23:12:59,570 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod org.apache.brooklyn.rest.resources.UsageResourceTest.setUp() 
finished in 0 ms
2018-04-19 23:12:59,570 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.resources.UsageResourceTest.testListAndGetMachineUsage()
2018-04-19 23:12:59,599 INFO  - Starting MyServiceImpl{id=tzwfg913yw} on 
machine 
SshMachineLocation[LocalhostMachine:qvl6:null@/172.17.0.3:22(id=qvl6zsnc53)]
2018-04-19 23:12:59,794 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.resources.UsageResourceTest.testListAndGetMachineUsage()
 finished in 223 ms
2018-04-19 23:12:59,794 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod()
2018-04-19 23:12:59,794 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod() finished 
in 0 ms
2018-04-19 23:12:59,795 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod()
2018-04-19 23:12:59,795 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod() finished in 
1 ms
2018-04-19 23:12:59,795 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod org.apache.brooklyn.rest.resources.UsageResourceTest.setUp()
2018-04-19 23:12:59,795 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod org.apache.brooklyn.rest.resources.UsageResourceTest.setUp() 
finished in 0 ms
2018-04-19 23:12:59,795 INFO  - TESTNG INVOKING: "Surefire test" - 

Build failed in Jenkins: brooklyn-server-master-docker #68

2018-04-19 Thread Apache Jenkins Server
See 


--
[...truncated 8.52 KB...]
ERROR: Failed to clean the workspace
java.io.IOException: Unable to delete 
' Tried 3 
times (of a maximum of 3) waiting 0.1 sec between attempts.
at hudson.Util.deleteContentsRecursive(Util.java:230)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:555)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:207)
at hudson.remoting.UserRequest.perform(UserRequest.java:53)
at hudson.remoting.Request$2.run(Request.java:358)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.nio.file.AccessDeniedException: 

at 
sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at 
sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at 
sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at hudson.Util.tryOnceDeleteFile(Util.java:290)
at hudson.Util.tryOnceDeleteRecursive(Util.java:370)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.tryOnceDeleteRecursive(Util.java:369)
at hudson.Util.tryOnceDeleteContentsRecursive(Util.java:389)
at hudson.Util.deleteContentsRecursive(Util.java:225)
... 11 more
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Failed to delete workspace
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:558)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:153)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:146)
at hudson.remoting.UserRequest.perform(UserRequest.java:207)
at hudson.remoting.UserRequest.perform(UserRequest.java:53)
at hudson.remoting.Request$2.run(Request.java:358)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
ubuntu-4
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
at hudson.remoting.Channel.call(Channel.java:908)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)
at sun.reflect.GeneratedMethodAccessor1247.invoke(Unknown 
Source)
at 

Build failed in Jenkins: brooklyn-server-master-docker #69

2018-04-19 Thread Apache Jenkins Server
See 


Changes:

[github] Defers reading of config in SshCommandSensor

[github] Adds test for SshcommandSensor DSL resolution

--
[...truncated 7.58 MB...]
2018-04-19 13:07:34,461 WARN  - Empty contextPath
2018-04-19 13:07:34,461 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeClass org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpClass() 
finished in 48 ms
2018-04-19 13:07:34,462 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod()
2018-04-19 13:07:34,462 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod() finished in 
0 ms
2018-04-19 13:07:34,462 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.resources.LocationResourceTest.testAddLegacyLocationDefinition()
2018-04-19 13:07:34,482 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,562 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,572 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,587 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,604 INFO  - added legacy, at: 
http://localhost:9998/locations/my-jungle-legacy
2018-04-19 13:07:34,616 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,632 INFO  -  contents: 
LocationSummary{id='my-jungle-legacy:0.0.0-SNAPSHOT', type='null', 
catalog='CatalogLocationSummary{config=[]}', 
links={self=/locations/my-jungle-legacy:0.0.0-SNAPSHOT}}
2018-04-19 13:07:34,635 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,666 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.resources.LocationResourceTest.testAddLegacyLocationDefinition()
 finished in 204 ms
2018-04-19 13:07:34,666 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod()
2018-04-19 13:07:34,666 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod() finished 
in 0 ms
2018-04-19 13:07:34,667 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod()
2018-04-19 13:07:34,667 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@BeforeMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.setUpMethod() finished in 
0 ms
2018-04-19 13:07:34,667 INFO  - TESTNG INVOKING: "Surefire test" - 
org.apache.brooklyn.rest.resources.LocationResourceTest.testAddNewLocationDefinition()
2018-04-19 13:07:34,678 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,685 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,691 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,696 INFO  - REST created catalog items: 
[BasicRegisteredType[my-jungle:0.1.2]]
2018-04-19 13:07:34,698 INFO  - added, at: null
2018-04-19 13:07:34,703 INFO  -  item: CatalogLocationSummary{config=[]}
2018-04-19 13:07:34,710 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,717 INFO  -  summary: LocationSummary{id='my-jungle:0.1.2', 
type='null', catalog='CatalogLocationSummary{config=[]}', 
links={self=/locations/my-jungle:0.1.2}}
2018-04-19 13:07:34,719 WARN  - Request for bundle 'aws-ec2' was ignored as no 
framework available; and failed to find 'us-east-1' in plain old classpath
2018-04-19 13:07:34,725 INFO  - TESTNG PASSED: "Surefire test" - 
org.apache.brooklyn.rest.resources.LocationResourceTest.testAddNewLocationDefinition()
 finished in 58 ms
2018-04-19 13:07:34,726 INFO  - TESTNG INVOKING CONFIGURATION: "Surefire test" 
- @AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod()
2018-04-19 13:07:34,726 INFO  - TESTNG PASSED CONFIGURATION: "Surefire test" - 
@AfterMethod 
org.apache.brooklyn.rest.testing.BrooklynRestApiTest.tearDownMethod() finished 
in 0 ms
2018-04-19 

Re: [DISCUSSION] Kubernetes Helm

2018-04-19 Thread Richard Downer
Firstly I'd like to make it clear that I *do* appreciate the work that
Andrea has done here! I never want to turn down a good contribution, and
this is a good contribution, so I'm very reluctant but have to agree with
Thomas that the Helm PRs should be reverted (as I'm sure that Thomas was
very reluctant to revert them). Please don't be put off!

As the Apacheites say frequently, "patches welcome" :-)

As we know, the existing Helm contribution has some issues which prevents
in being in master and in any releases. But if the contribution can have
these issues resolved, then it can be merged. I would say that if it works
in our Karaf build (since the classic build is now obsolete) without
requiring platform-specific downloads, then it can be merged without much
issue.

If it's *not* possible to avoid the platform-specific downloads - then it's
still not the end of the road, but the contribution needs to address this
problem and make it workable for the whole project. Personally I'd be
reluctant to accept any proposal which removed our platform-independent
binary releases, unless a significant number of *users* came and told us
that it's what they want. Perhaps the main Apache Brooklyn build excludes
Helm, but there's a small, optional, drop-in pack of platform-specific code
that is an official Brooklyn release artifact. However, the effort around
process, documentation and website updates needed to support multi-platform
releases is not small, and I'd much rather that effort was directed into
creating a pure-Java solution.

But, I know nothing about Kubernetes Helm, and not very much about this
specific problem, so ignore me if I am barking up the wrong tree :-)

Remember we do already have a platform-specific component in Brooklyn - the
`br` CLI. It's optional, simple to package the different platforms, and
simple to install separately, so adding it was a relatively low-friction
change to our processes. If Helm can be supported in the same way then I'd
be quite happy.

It's up to the contributor, Andrea - and anyone else here who is interested
in the work and wants to work with Andrea - to decide where to go from
here. In it's present form, we can't merge it. It is up to contributors to
decide if they want to change the contribution to make it suitable, or to
maintain it out-of-tree for a while. Or drop it, but I really hope that
doesn't happen (see first paragraph).

Richard.


On 18 April 2018 at 19:56, Geoff Macartney 
wrote:

> hi all,
>
> just to check what is the resolution on this, is the k8s-helm location
> going to be left out of Brooklyn, and done in a community repo?
>
> regards
> Geoff
>
>
>
> On Tue, 17 Apr 2018 at 14:03 Andrea Turli  wrote:
>
> > Thomas,
> >
> > thanks for taking care of this.
> >
> > Geomacy,
> >
> > I've built brooklyn-{server,dist} on OSX and ran it from CentOS 7 and it
> > works fine as I think `os-maven-plugin` is doing the right incantation
> >
> > Richard,
> >
> > I think helm is a well appreciated tool for kubernetes ecoystem.
> >
> > I think I can donate my work as community-supported addon although it is
> > designed as a Brooklyn location not a simple application blueprint, but
> > worth noticing that it was not part of the core but was committed in
> > `brooklyn-server/locations/container` module, which seems a perfect
> match
> > to me,
> > I undestand the helm location works with the classic launcher, but there
> is
> > an extra complexity to OSGify grpc (a transitive dependency of
> > microbean-helm) to make it work with brooklyn-karaf.
> >
> > I may resubmit the contribution without bringing in the microbean-helm
> java
> > client but writing a simpler restful client for Helm/Tiller, but not sure
> > how hard it would be to refactor the location yet.
> >
> > Best,
> > Andrea
> >
> >
> >
> > On Tue, 17 Apr 2018 at 11:50 Richard Downer  wrote:
> >
> > > All,
> > >
> > > I'm sorry but I'm not really aware of the Kubernetes ecosystem in much
> > > detail. Do we have an indication of how much demand there is for Helm
> > > support in Brooklyn?
> > >
> > > This sounds like a significant change - both to our build process, but
> > also
> > > our release process and website (supporting multiple platform
> downloads).
> > > I'd be opposed to doing it unless there's a significant demand for
> Helm.
> > > I'd prefer to see this as a community-supported addon (like most of our
> > > blueprints are) instead of being core Brooklyn, until there's evidence
> of
> > > demand for this to be in core.
> > >
> > > Richard.
> > >
> > >
> > >
> > > On 17 April 2018 at 09:07, Geoff Macartney <
> geoff.macart...@cloudsoft.io
> > >
> > > wrote:
> > >
> > > > hi Thomas
> > > >
> > > > It certainly doesn't sound right to have to have separate builds of
> > > > Brooklyn for different platforms, and especially not just for this
> > > > feature.  Can we build the dependency package into a bundle for each
> > > >