[GitHub] brooklyn-library pull request #144: BROOKLYN-566: fix SaltEntity rebind to h...

2017-11-25 Thread aledsage
GitHub user aledsage opened a pull request:

https://github.com/apache/brooklyn-library/pull/144

BROOKLYN-566: fix SaltEntity rebind to historic state

Fixes https://issues.apache.org/jira/browse/BROOKLYN-566

This class was deleted in 
https://github.com/apache/brooklyn-library/pull/123, when converting the entity 
to be a `SoftwareProcess`.

Also see https://github.com/apache/brooklyn-server/pull/905

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aledsage/brooklyn-library 
BROOKLYN-566-saltEntity-rebind

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn-library/pull/144.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #144


commit b99987cdf2732777f7ab211b99c3447bee7668f9
Author: Aled Sage 
Date:   2017-11-25T21:22:50Z

BROOKLYN-566: fix SaltEntity rebind to historic state




---


[jira] [Commented] (BROOKLYN-566) Rebind fails for historic state of SaltEntity (from 0.11.0)

2017-11-25 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on BROOKLYN-566:
-

GitHub user aledsage opened a pull request:

https://github.com/apache/brooklyn-library/pull/144

BROOKLYN-566: fix SaltEntity rebind to historic state

Fixes https://issues.apache.org/jira/browse/BROOKLYN-566

This class was deleted in 
https://github.com/apache/brooklyn-library/pull/123, when converting the entity 
to be a `SoftwareProcess`.

Also see https://github.com/apache/brooklyn-server/pull/905

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aledsage/brooklyn-library 
BROOKLYN-566-saltEntity-rebind

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn-library/pull/144.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #144


commit b99987cdf2732777f7ab211b99c3447bee7668f9
Author: Aled Sage 
Date:   2017-11-25T21:22:50Z

BROOKLYN-566: fix SaltEntity rebind to historic state




> Rebind fails for historic state of SaltEntity (from 0.11.0) 
> 
>
> Key: BROOKLYN-566
> URL: https://issues.apache.org/jira/browse/BROOKLYN-566
> Project: Brooklyn
>  Issue Type: Bug
>Affects Versions: 0.12.0
>Reporter: Aled Sage
>
> I generated persisted state with Brooklyn 0.11.0, deploying a {{SaltEntity}}. 
> I tried to rebind to this using Brooklyn 0.12.0 - it failed with the 
> exception shown below.
> {noformat}
> 2017-11-24T16:20:15,774 WARN  123 o.a.b.c.m.r.RebindExceptionHandlerImpl 
> [tures-1-thread-1] Rebind: continuing after problem creating ENTITY 
> uf9afaunfq of type 
> org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
> java.lang.IllegalStateException: Class 
> org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
>  not found for entity uf9afaunfq 
> (org.apache.brooklyn.entity.cm.salt.SaltEntity:4.7.0): unable to load class 
> org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
>  for resovled context type org.apache.brooklyn.entity.cm.salt.SaltEntity:4.7.0
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration$BrooklynObjectInstantiator.load(RebindIteration.java:1083)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration$BrooklynObjectInstantiator.newEntity(RebindIteration.java:917)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration.instantiateLocationsAndEntities(RebindIteration.java:450)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration.doRun(RebindIteration.java:256)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.InitialFullRebindIteration.doRun(InitialFullRebindIteration.java:69)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration.run(RebindIteration.java:284)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.rebindImpl(RebindManagerImpl.java:547)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.lambda$rebind$0(RebindManagerImpl.java:503)
>  ~[?:?]
> at 
> org.apache.brooklyn.util.core.task.BasicExecutionContext$1.call(BasicExecutionContext.java:143)
>  ~[?:?]
> at 
> org.apache.brooklyn.util.core.task.BasicExecutionContext$1.call(BasicExecutionContext.java:141)
>  ~[?:?]
> at 
> org.apache.brooklyn.util.core.task.BasicExecutionContext.runInSameThread(BasicExecutionContext.java:227)
>  ~[?:?]
> at 
> org.apache.brooklyn.util.core.task.BasicExecutionContext.get(BasicExecutionContext.java:141)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.rebind(RebindManagerImpl.java:502)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.common.BasicLauncher.startPersistenceWithoutHA(BasicLauncher.java:657)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.common.BasicLauncher.startPersistence(BasicLauncher.java:620)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.common.BasicLauncher.handlePersistence(BasicLauncher.java:516)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.common.BasicLauncher.startPartTwo(BasicLauncher.java:438)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.osgi.OsgiLauncherImpl.startOsgi(OsgiLauncherImpl.java:116)
>  ~[?:?]
> at Proxy8042c345_9fc8_4dc8_ad95_a62e7fa7d51d.startOsgi(Unknown 
> Source) ~[?:?]
> at 
> org.apache.brooklyn.launcher.osgi.start.OsgiLauncherCompleter.init(OsgiLauncherCompleter.java:36)
>  ~[?:?]
> at sun.ref

[GitHub] brooklyn-server pull request #905: BROOKLYN-566: fix SaltEntity rebind to hi...

2017-11-25 Thread aledsage
GitHub user aledsage opened a pull request:

https://github.com/apache/brooklyn-server/pull/905

BROOKLYN-566: fix SaltEntity rebind to historic state

These were renamed in https://github.com/apache/brooklyn-library/pull/123, 
which broke rebind if the persisted state contained a SaltEntity from 0.11.0.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aledsage/brooklyn-server 
BROOKLYN-566-saltEntity-rebind

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn-server/pull/905.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #905


commit c7c866ecd2ce64912107b6737f461b55539c8b62
Author: Aled Sage 
Date:   2017-11-25T21:22:11Z

BROOKLYN-566: fix SaltEntity rebind to historic state




---


[jira] [Commented] (BROOKLYN-566) Rebind fails for historic state of SaltEntity (from 0.11.0)

2017-11-25 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on BROOKLYN-566:
-

GitHub user aledsage opened a pull request:

https://github.com/apache/brooklyn-server/pull/905

BROOKLYN-566: fix SaltEntity rebind to historic state

These were renamed in https://github.com/apache/brooklyn-library/pull/123, 
which broke rebind if the persisted state contained a SaltEntity from 0.11.0.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/aledsage/brooklyn-server 
BROOKLYN-566-saltEntity-rebind

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/brooklyn-server/pull/905.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #905


commit c7c866ecd2ce64912107b6737f461b55539c8b62
Author: Aled Sage 
Date:   2017-11-25T21:22:11Z

BROOKLYN-566: fix SaltEntity rebind to historic state




> Rebind fails for historic state of SaltEntity (from 0.11.0) 
> 
>
> Key: BROOKLYN-566
> URL: https://issues.apache.org/jira/browse/BROOKLYN-566
> Project: Brooklyn
>  Issue Type: Bug
>Affects Versions: 0.12.0
>Reporter: Aled Sage
>
> I generated persisted state with Brooklyn 0.11.0, deploying a {{SaltEntity}}. 
> I tried to rebind to this using Brooklyn 0.12.0 - it failed with the 
> exception shown below.
> {noformat}
> 2017-11-24T16:20:15,774 WARN  123 o.a.b.c.m.r.RebindExceptionHandlerImpl 
> [tures-1-thread-1] Rebind: continuing after problem creating ENTITY 
> uf9afaunfq of type 
> org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
> java.lang.IllegalStateException: Class 
> org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
>  not found for entity uf9afaunfq 
> (org.apache.brooklyn.entity.cm.salt.SaltEntity:4.7.0): unable to load class 
> org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
>  for resovled context type org.apache.brooklyn.entity.cm.salt.SaltEntity:4.7.0
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration$BrooklynObjectInstantiator.load(RebindIteration.java:1083)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration$BrooklynObjectInstantiator.newEntity(RebindIteration.java:917)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration.instantiateLocationsAndEntities(RebindIteration.java:450)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration.doRun(RebindIteration.java:256)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.InitialFullRebindIteration.doRun(InitialFullRebindIteration.java:69)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindIteration.run(RebindIteration.java:284)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.rebindImpl(RebindManagerImpl.java:547)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.lambda$rebind$0(RebindManagerImpl.java:503)
>  ~[?:?]
> at 
> org.apache.brooklyn.util.core.task.BasicExecutionContext$1.call(BasicExecutionContext.java:143)
>  ~[?:?]
> at 
> org.apache.brooklyn.util.core.task.BasicExecutionContext$1.call(BasicExecutionContext.java:141)
>  ~[?:?]
> at 
> org.apache.brooklyn.util.core.task.BasicExecutionContext.runInSameThread(BasicExecutionContext.java:227)
>  ~[?:?]
> at 
> org.apache.brooklyn.util.core.task.BasicExecutionContext.get(BasicExecutionContext.java:141)
>  ~[?:?]
> at 
> org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.rebind(RebindManagerImpl.java:502)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.common.BasicLauncher.startPersistenceWithoutHA(BasicLauncher.java:657)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.common.BasicLauncher.startPersistence(BasicLauncher.java:620)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.common.BasicLauncher.handlePersistence(BasicLauncher.java:516)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.common.BasicLauncher.startPartTwo(BasicLauncher.java:438)
>  ~[?:?]
> at 
> org.apache.brooklyn.launcher.osgi.OsgiLauncherImpl.startOsgi(OsgiLauncherImpl.java:116)
>  ~[?:?]
> at Proxy8042c345_9fc8_4dc8_ad95_a62e7fa7d51d.startOsgi(Unknown 
> Source) ~[?:?]
> at 
> org.apache.brooklyn.launcher.osgi.start.OsgiLauncherCompleter.init(OsgiLauncherCompleter.java:36)
>  ~[?:?]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke

[jira] [Created] (BROOKLYN-566) Rebind fails for historic state of SaltEntity (from 0.11.0)

2017-11-25 Thread Aled Sage (JIRA)
Aled Sage created BROOKLYN-566:
--

 Summary: Rebind fails for historic state of SaltEntity (from 
0.11.0) 
 Key: BROOKLYN-566
 URL: https://issues.apache.org/jira/browse/BROOKLYN-566
 Project: Brooklyn
  Issue Type: Bug
Affects Versions: 0.12.0
Reporter: Aled Sage


I generated persisted state with Brooklyn 0.11.0, deploying a {{SaltEntity}}. I 
tried to rebind to this using Brooklyn 0.12.0 - it failed with the exception 
shown below.

{noformat}
2017-11-24T16:20:15,774 WARN  123 o.a.b.c.m.r.RebindExceptionHandlerImpl 
[tures-1-thread-1] Rebind: continuing after problem creating ENTITY uf9afaunfq 
of type 
org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
java.lang.IllegalStateException: Class 
org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
 not found for entity uf9afaunfq 
(org.apache.brooklyn.entity.cm.salt.SaltEntity:4.7.0): unable to load class 
org.apache.brooklyn.software-cm-salt:org.apache.brooklyn.entity.cm.salt.impl.SaltEntityImpl
 for resovled context type org.apache.brooklyn.entity.cm.salt.SaltEntity:4.7.0
at 
org.apache.brooklyn.core.mgmt.rebind.RebindIteration$BrooklynObjectInstantiator.load(RebindIteration.java:1083)
 ~[?:?]
at 
org.apache.brooklyn.core.mgmt.rebind.RebindIteration$BrooklynObjectInstantiator.newEntity(RebindIteration.java:917)
 ~[?:?]
at 
org.apache.brooklyn.core.mgmt.rebind.RebindIteration.instantiateLocationsAndEntities(RebindIteration.java:450)
 ~[?:?]
at 
org.apache.brooklyn.core.mgmt.rebind.RebindIteration.doRun(RebindIteration.java:256)
 ~[?:?]
at 
org.apache.brooklyn.core.mgmt.rebind.InitialFullRebindIteration.doRun(InitialFullRebindIteration.java:69)
 ~[?:?]
at 
org.apache.brooklyn.core.mgmt.rebind.RebindIteration.run(RebindIteration.java:284)
 ~[?:?]
at 
org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.rebindImpl(RebindManagerImpl.java:547)
 ~[?:?]
at 
org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.lambda$rebind$0(RebindManagerImpl.java:503)
 ~[?:?]
at 
org.apache.brooklyn.util.core.task.BasicExecutionContext$1.call(BasicExecutionContext.java:143)
 ~[?:?]
at 
org.apache.brooklyn.util.core.task.BasicExecutionContext$1.call(BasicExecutionContext.java:141)
 ~[?:?]
at 
org.apache.brooklyn.util.core.task.BasicExecutionContext.runInSameThread(BasicExecutionContext.java:227)
 ~[?:?]
at 
org.apache.brooklyn.util.core.task.BasicExecutionContext.get(BasicExecutionContext.java:141)
 ~[?:?]
at 
org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.rebind(RebindManagerImpl.java:502)
 ~[?:?]
at 
org.apache.brooklyn.launcher.common.BasicLauncher.startPersistenceWithoutHA(BasicLauncher.java:657)
 ~[?:?]
at 
org.apache.brooklyn.launcher.common.BasicLauncher.startPersistence(BasicLauncher.java:620)
 ~[?:?]
at 
org.apache.brooklyn.launcher.common.BasicLauncher.handlePersistence(BasicLauncher.java:516)
 ~[?:?]
at 
org.apache.brooklyn.launcher.common.BasicLauncher.startPartTwo(BasicLauncher.java:438)
 ~[?:?]
at 
org.apache.brooklyn.launcher.osgi.OsgiLauncherImpl.startOsgi(OsgiLauncherImpl.java:116)
 ~[?:?]
at Proxy8042c345_9fc8_4dc8_ad95_a62e7fa7d51d.startOsgi(Unknown Source) 
~[?:?]
at 
org.apache.brooklyn.launcher.osgi.start.OsgiLauncherCompleter.init(OsgiLauncherCompleter.java:36)
 ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:?]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at 
org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:299)
 ~[?:?]
at 
org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:980) 
~[?:?]
at 
org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:736)
 ~[?:?]
at 
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:848)
 ~[?:?]
at 
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
 ~[?:?]
at 
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79) 
~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
at 
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88) 
~[?:?]
at 
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:255)
 ~[?:?]
at 
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:186)
 ~[?:?]
at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerC

Jenkins build is back to normal : brooklyn-master-build-docker #32

2017-11-25 Thread Apache Jenkins Server
See