Aled Sage created BROOKLYN-613: ---------------------------------- Summary: Rebind issue with DSL value for AutoScalerPolicy.resizeUpStabilizationDelay Key: BROOKLYN-613 URL: https://issues.apache.org/jira/browse/BROOKLYN-613 Project: Brooklyn Issue Type: Bug Affects Versions: 1.0.0-M1 Reporter: Aled Sage
In the clocker downstream project, a change was made to an \{{AutoScalerPolicy}}'s config: it set the \{{resizeUpStabilizationDelay}} policy's config value to be a DSL reference to an entity's config (thus allowing the value to be more easily injected): {noformat} brooklyn.config: autoscaler.resizeUpStabilizationDelay: $brooklyn:entity("kubernetes-cluster").config("kubernetes.resizeUpStabilizationDelay") {noformat} This pattern had worked for other \{{AutoScalerPolicy}} config values, such as \{{minPoolSize}}. However, this change causes the policy's rebind to fail. With rebind configured to fail appropriately, you get the exception shown below: {noformat} 2019-03-21T14:33:08,933 - ERROR 145 o.a.b.l.c.BasicLauncher [tures-3-thread-1] Subsystem for persistence had startup error (continuing with startup): org.apache.brooklyn.util.exceptions.CompoundRuntimeException: Failure rebinding; 2 errors including: problem rebinding policy mrckuqmmm6 (AutoScalerPolicy(Auto-scaler)): Error resolving Resolving config autoscaler.resizeUpStabilizationDelay, $brooklyn:entity("kubernetes-cluster").config("kubernetes.resizeUpStabilizationDelay"), in org.apache.brooklyn.util.core.task.BasicExecutionContext@4401bce6([LocalManagementContext[JLIbBni5-uMiQyIdy], BROOKLYN-SERVER]): Context entity not available when trying to evaluate Brooklyn DSL org.apache.brooklyn.util.exceptions.CompoundRuntimeException: Failure rebinding; 2 errors including: problem rebinding policy mrckuqmmm6 (AutoScalerPolicy(Auto-scaler)): Error resolving Resolving config autoscaler.resizeUpStabilizationDelay, $brooklyn:entity("kubernetes-cluster").config("kubernetes.resizeUpStabilizationDelay"), in org.apache.brooklyn.util.core.task.BasicExecutionContext@4401bce6([LocalManagementContext[JLIbBni5-uMiQyIdy], BROOKLYN-SERVER]): Context entity not available when trying to evaluate Brooklyn DSL at org.apache.brooklyn.util.exceptions.Exceptions.create(Exceptions.java:481) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindExceptionHandlerImpl.onDoneImpl(RebindExceptionHandlerImpl.java:514) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindExceptionHandlerImpl.onDone(RebindExceptionHandlerImpl.java:430) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.run(RebindIteration.java:289) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.rebindImpl(RebindManagerImpl.java:559) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.lambda$rebind$0(RebindManagerImpl.java:515) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionContext$1.call(BasicExecutionContext.java:150) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionContext$1.call(BasicExecutionContext.java:148) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionContext.runInSameThread(BasicExecutionContext.java:243) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionContext.get(BasicExecutionContext.java:148) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindManagerImpl.rebind(RebindManagerImpl.java:514) ~[?:?] at org.apache.brooklyn.core.mgmt.ha.HighAvailabilityManagerImpl.promoteToMaster(HighAvailabilityManagerImpl.java:870) ~[?:?] at org.apache.brooklyn.core.mgmt.ha.HighAvailabilityManagerImpl.checkMaster(HighAvailabilityManagerImpl.java:843) ~[?:?] at org.apache.brooklyn.core.mgmt.ha.HighAvailabilityManagerImpl.publishAndCheck(HighAvailabilityManagerImpl.java:624) ~[?:?] at org.apache.brooklyn.core.mgmt.ha.HighAvailabilityManagerImpl.changeMode(HighAvailabilityManagerImpl.java:332) ~[?:?] at org.apache.brooklyn.core.mgmt.ha.HighAvailabilityManagerImpl.start(HighAvailabilityManagerImpl.java:270) ~[?:?] at org.apache.brooklyn.launcher.common.BasicLauncher.startPersistence(BasicLauncher.java:644) ~[?:?] 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 Proxyabe9e141_67d2_408e_97f5_ae35ce60f918.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:337) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:835) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:591) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:703) ~[?:?] at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666) ~[?:?] at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?] at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) ~[?:?] at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360) ~[?:?] at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190) ~[?:?] at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:717) ~[?:?] at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:413) ~[?:?] at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278) ~[?:?] at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299) ~[?:?] at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268) ~[?:?] at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264) ~[?:?] at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254) ~[?:?] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) ~[?:?] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) ~[?:?] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) ~[?:?] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) ~[?:?] at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) ~[?:?] at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) ~[?:?] at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) ~[?:?] at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) ~[?:?] at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) ~[?:?] at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) ~[?:?] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?] at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.startBundle(BundleInstallSupportImpl.java:161) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1116) ~[?:?] at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:997) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?] at java.lang.Thread.run(Thread.java:748) [?:?] Caused by: java.lang.IllegalStateException: problem rebinding policy mrckuqmmm6 (AutoScalerPolicy(Auto-scaler)) at org.apache.brooklyn.core.mgmt.rebind.RebindExceptionHandlerImpl.onRebindFailed(RebindExceptionHandlerImpl.java:309) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.reconstructEverything(RebindIteration.java:576) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.doRun(RebindIteration.java:264) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.InitialFullRebindIteration.doRun(InitialFullRebindIteration.java:69) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.run(RebindIteration.java:287) ~[?:?] ... 60 more Caused by: java.lang.IllegalArgumentException: Error resolving Resolving config autoscaler.resizeUpStabilizationDelay, $brooklyn:entity("kubernetes-cluster").config("kubernetes.resizeUpStabilizationDelay"), in org.apache.brooklyn.util.core.task.BasicExecutionContext@4401bce6([LocalManagementContext[JLIbBni5-uMiQyIdy], BROOKLYN-SERVER]): Context entity not available when trying to evaluate Brooklyn DSL at org.apache.brooklyn.util.core.task.ValueResolver.getMaybeInternal(ValueResolver.java:622) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver.getMaybe(ValueResolver.java:342) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver.get(ValueResolver.java:335) ~[?:?] at org.apache.brooklyn.util.core.task.Tasks.resolveValue(Tasks.java:167) ~[?:?] at org.apache.brooklyn.core.config.BasicConfigKey.resolveValue(BasicConfigKey.java:447) ~[?:?] at org.apache.brooklyn.core.config.BasicConfigKey.extractValue(BasicConfigKey.java:432) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.resolveRawValueFromContainerIgnoringDeprecatedNames(AbstractConfigMapImpl.java:353) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.resolveRawValueFromContainer(AbstractConfigMapImpl.java:325) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl$3.apply(AbstractConfigMapImpl.java:434) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl$3.apply(AbstractConfigMapImpl.java:430) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.getConfigImpl(AbstractConfigMapImpl.java:447) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.getConfig(AbstractConfigMapImpl.java:114) ~[?:?] at org.apache.brooklyn.core.objs.AbstractConfigurationSupportInternal.get(AbstractConfigurationSupportInternal.java:161) ~[?:?] at org.apache.brooklyn.core.objs.AbstractEntityAdjunct.getConfig(AbstractEntityAdjunct.java:360) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.getResizeUpStabilizationDelay(AutoScalerPolicy.java:628) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.doInit(AutoScalerPolicy.java:540) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.rebind(AutoScalerPolicy.java:533) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.AbstractBrooklynObjectRebindSupport.instanceRebind(AbstractBrooklynObjectRebindSupport.java:104) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.AbstractBrooklynObjectRebindSupport.reconstruct(AbstractBrooklynObjectRebindSupport.java:69) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.reconstructEverything(RebindIteration.java:574) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.doRun(RebindIteration.java:264) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.InitialFullRebindIteration.doRun(InitialFullRebindIteration.java:69) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.run(RebindIteration.java:287) ~[?:?] ... 60 more Caused by: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129) ~[?:?] at org.apache.brooklyn.util.time.Durations.get(Durations.java:63) ~[?:?] at org.apache.brooklyn.util.time.Durations.get(Durations.java:68) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver.getMaybeInternal(ValueResolver.java:518) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver.getMaybe(ValueResolver.java:342) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver.get(ValueResolver.java:335) ~[?:?] at org.apache.brooklyn.util.core.task.Tasks.resolveValue(Tasks.java:167) ~[?:?] at org.apache.brooklyn.core.config.BasicConfigKey.resolveValue(BasicConfigKey.java:447) ~[?:?] at org.apache.brooklyn.core.config.BasicConfigKey.extractValue(BasicConfigKey.java:432) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.resolveRawValueFromContainerIgnoringDeprecatedNames(AbstractConfigMapImpl.java:353) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.resolveRawValueFromContainer(AbstractConfigMapImpl.java:325) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl$3.apply(AbstractConfigMapImpl.java:434) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl$3.apply(AbstractConfigMapImpl.java:430) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.getConfigImpl(AbstractConfigMapImpl.java:447) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.getConfig(AbstractConfigMapImpl.java:114) ~[?:?] at org.apache.brooklyn.core.objs.AbstractConfigurationSupportInternal.get(AbstractConfigurationSupportInternal.java:161) ~[?:?] at org.apache.brooklyn.core.objs.AbstractEntityAdjunct.getConfig(AbstractEntityAdjunct.java:360) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.getResizeUpStabilizationDelay(AutoScalerPolicy.java:628) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.doInit(AutoScalerPolicy.java:540) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.rebind(AutoScalerPolicy.java:533) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.AbstractBrooklynObjectRebindSupport.instanceRebind(AbstractBrooklynObjectRebindSupport.java:104) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.AbstractBrooklynObjectRebindSupport.reconstruct(AbstractBrooklynObjectRebindSupport.java:69) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.reconstructEverything(RebindIteration.java:574) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.doRun(RebindIteration.java:264) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.InitialFullRebindIteration.doRun(InitialFullRebindIteration.java:69) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.run(RebindIteration.java:287) ~[?:?] ... 60 more Caused by: java.util.concurrent.ExecutionException: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Context entity not available when trying to evaluate Brooklyn DSL at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:?] at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63) ~[?:?] at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:384) ~[?:?] at org.apache.brooklyn.util.time.Durations.get(Durations.java:43) ~[?:?] at org.apache.brooklyn.util.time.Durations.get(Durations.java:68) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver.getMaybeInternal(ValueResolver.java:518) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver.getMaybe(ValueResolver.java:342) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver.get(ValueResolver.java:335) ~[?:?] at org.apache.brooklyn.util.core.task.Tasks.resolveValue(Tasks.java:167) ~[?:?] at org.apache.brooklyn.core.config.BasicConfigKey.resolveValue(BasicConfigKey.java:447) ~[?:?] at org.apache.brooklyn.core.config.BasicConfigKey.extractValue(BasicConfigKey.java:432) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.resolveRawValueFromContainerIgnoringDeprecatedNames(AbstractConfigMapImpl.java:353) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.resolveRawValueFromContainer(AbstractConfigMapImpl.java:325) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl$3.apply(AbstractConfigMapImpl.java:434) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl$3.apply(AbstractConfigMapImpl.java:430) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.getConfigImpl(AbstractConfigMapImpl.java:447) ~[?:?] at org.apache.brooklyn.core.config.internal.AbstractConfigMapImpl.getConfig(AbstractConfigMapImpl.java:114) ~[?:?] at org.apache.brooklyn.core.objs.AbstractConfigurationSupportInternal.get(AbstractConfigurationSupportInternal.java:161) ~[?:?] at org.apache.brooklyn.core.objs.AbstractEntityAdjunct.getConfig(AbstractEntityAdjunct.java:360) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.getResizeUpStabilizationDelay(AutoScalerPolicy.java:628) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.doInit(AutoScalerPolicy.java:540) ~[?:?] at org.apache.brooklyn.policy.autoscaling.AutoScalerPolicy.rebind(AutoScalerPolicy.java:533) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.AbstractBrooklynObjectRebindSupport.instanceRebind(AbstractBrooklynObjectRebindSupport.java:104) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.AbstractBrooklynObjectRebindSupport.reconstruct(AbstractBrooklynObjectRebindSupport.java:69) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.reconstructEverything(RebindIteration.java:574) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.doRun(RebindIteration.java:264) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.InitialFullRebindIteration.doRun(InitialFullRebindIteration.java:69) ~[?:?] at org.apache.brooklyn.core.mgmt.rebind.RebindIteration.run(RebindIteration.java:287) ~[?:?] ... 60 more Caused by: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.BrooklynDslDeferredSupplier.get(BrooklynDslDeferredSupplier.java:118) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver$2.call(ValueResolver.java:504) ~[?:?] at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:364) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565) ~[?:?] ... 4 more Caused by: java.util.concurrent.ExecutionException: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: Context entity not available when trying to evaluate Brooklyn DSL at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:?] at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63) ~[?:?] at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:384) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.BrooklynDslDeferredSupplier.get(BrooklynDslDeferredSupplier.java:112) ~[?:?] at org.apache.brooklyn.util.core.task.ValueResolver$2.call(ValueResolver.java:504) ~[?:?] at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:364) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565) ~[?:?] ... 4 more Caused by: org.apache.brooklyn.util.exceptions.PropagatedRuntimeException: at org.apache.brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:129) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.BrooklynDslDeferredSupplier.get(BrooklynDslDeferredSupplier.java:118) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$DslConfigSupplier$1.call(DslComponent.java:584) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565) ~[?:?] ... 4 more Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Context entity not available when trying to evaluate Brooklyn DSL at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:?] at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63) ~[?:?] at org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:384) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.BrooklynDslDeferredSupplier.get(BrooklynDslDeferredSupplier.java:112) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$DslConfigSupplier$1.call(DslComponent.java:584) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565) ~[?:?] ... 4 more Caused by: java.lang.IllegalStateException: Context entity not available when trying to evaluate Brooklyn DSL at org.apache.brooklyn.util.guava.IllegalStateExceptionSupplier.get(IllegalStateExceptionSupplier.java:40) ~[?:?] at org.apache.brooklyn.util.guava.IllegalStateExceptionSupplier.get(IllegalStateExceptionSupplier.java:26) ~[?:?] at org.apache.brooklyn.util.guava.Maybe$Absent.getException(Maybe.java:352) ~[?:?] at org.apache.brooklyn.util.guava.Maybe$Absent.get(Maybe.java:345) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$EntityInScopeFinder.callImpl(DslComponent.java:248) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$EntityInScopeFinder.call(DslComponent.java:228) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$EntityInScopeFinder.call(DslComponent.java:195) ~[?:?] at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:364) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565) ~[?:?] ... 4 more Caused by: java.lang.IllegalStateException: Context entity not available when trying to evaluate Brooklyn DSL at org.apache.brooklyn.util.guava.Maybe.absent(Maybe.java:60) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$EntityInScopeFinder.getEntity(DslComponent.java:239) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$EntityInScopeFinder.callImpl(DslComponent.java:244) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$EntityInScopeFinder.call(DslComponent.java:228) ~[?:?] at org.apache.brooklyn.camp.brooklyn.spi.dsl.methods.DslComponent$EntityInScopeFinder.call(DslComponent.java:195) ~[?:?] at org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:364) ~[?:?] at org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565) ~[?:?] ... 4 more {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)