[ 
https://issues.apache.org/jira/browse/BROOKLYN-259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292325#comment-15292325
 ] 

ASF GitHub Bot commented on BROOKLYN-259:
-----------------------------------------

Github user aledsage commented on the pull request:

    https://github.com/apache/brooklyn-server/pull/132#issuecomment-220478329
  
    Rebasing fixed the problem in my test where 
`assertEquals(machine.getUser(), "myuser");` was failing (so that is now 
uncommented). I hope that whatever fixed that issue will have fixed @johnmccabe 
's "NPE when deploying an app to a JcloudsByonLocation".
    
    For "NPE when deploying a docker infrastructure via Clocker", that has been 
fixed in a separate PR by the looks of it (certainly we guard against that 
NPE). See commit bee832d139bdaffffb859278ef6eeddd93085838.
    
    I've confirmed that it works with username using 
`JcloudsByonLocationResolverAwsLiveTest` (though I needed to fix another couple 
of things there - see second commit).
    
    @johnmccabe can you review / test again with this latest code when you get 
a chance?


> jcloudsByon location spec leaks location instances
> --------------------------------------------------
>
>                 Key: BROOKLYN-259
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-259
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Aled Sage
>             Fix For: 0.10.0
>
>
> When declaring in brooklyn.properties a location spec such as 
> {noformat}
> jcloudsByon(provider="aws-ec2",region="us-east-1",user="brooklyn",password="pa55w0rd",hosts="i-12345678")
> {noformat}
> It caused new locations to be created and persisted every few seconds, but 
> for those locations to be never deleted.
> ---
> This was caused by changes made in 0.9.0 to {{LocationResolver}} 
> implementations, so that it creates a {{LocationSpec}} rather than 
> instantiating a location directly. Unfortunately, 
> {{JcloudsByonLocationResolver}} had not been updated. The REST api would poll 
> this regularly to find out about the types of location, and on every poll it 
> would create new locations.
> This is similar to the problem encountered for localhost, fixed in time for 
> 0.9.0 in https://github.com/apache/brooklyn-server/pull/97.



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

Reply via email to