brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BROOKLYN-131) Vcloud director fails to provision if there's currently a catalog importing
Date Fri, 30 Jan 2015 13:22:34 GMT

     [ https://issues.apache.org/jira/browse/BROOKLYN-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aled Sage updated BROOKLYN-131:
-------------------------------
    Description: 
When trying to deploy to a vcloud-director location, the provisioning is failing. This is most likely due to there currently being a catalog that is importing

{noformat}
2015-01-30 11:43:53,934 WARN  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brookl
yn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3
H2OP] (rethrowing): com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entit
y.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
2015-01-30 11:43:53,934 ERROR b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Failed to start VM for vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@MySqlNodeImpl{id=cN9FbNIo}: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3H2OP]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
2015-01-30 11:43:53,936 WARN  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Attempt #1/3 to obtain machine threw error: java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3H2OP]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
2015-01-30 11:43:53,936 INFO  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Creating VM vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@MySqlNodeImpl{id=cN9FbNIo} in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3H2OP]
2015-01-30 11:43:53,937 WARN  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3H2OP] (rethrowing): com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
2015-01-30 11:43:53,938 WARN  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-3560]: Error loading available images to report (following original error matching template which will be rethrown): com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache.get(LocalCache.java:3934) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) ~[guava-17.0.jar:na]
        at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.getOVFForVAppTemplateAndValidate(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:71) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
        at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.apply(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:64) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
        at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.apply(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:37) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
        at org.jclouds.vcloud.director.v1_5.compute.functions.ImageForVAppTemplate.apply(ImageForVAppTemplate.java:81) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
        at org.jclouds.vcloud.director.v1_5.compute.functions.ImageForVAppTemplate.apply(ImageForVAppTemplate.java:51) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
        at com.google.common.base.Functions$FunctionComposition.apply(Functions.java:216) ~[guava-17.0.jar:na]
        at com.google.common.collect.Iterators$8.transform(Iterators.java:794) ~[guava-17.0.jar:na]
        at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) ~[guava-17.0.jar:na]
        at com.google.common.collect.Iterators$7.computeNext(Iterators.java:646) ~[guava-17.0.jar:na]
        at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-17.0.jar:na]
        at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-17.0.jar:na]
        at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:300) ~[guava-17.0.jar:na]
        at com.google.common.collect.ImmutableSet$Builder.addAll(ImmutableSet.java:522) ~[guava-17.0.jar:na]
        at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:321) ~[guava-17.0.jar:na]
        at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300) ~[guava-17.0.jar:na]
        at com.google.common.collect.FluentIterable.toSet(FluentIterable.java:358) ~[guava-17.0.jar:na]
        at org.jclouds.compute.config.ComputeServiceAdapterContextModule.transformGuardingNull(ComputeServiceAdapterContextModule.java:111) ~[jclouds-compute-1.8.1.jar:1.8.1]
        at org.jclouds.compute.config.ComputeServiceAdapterContextModule.access$000(ComputeServiceAdapterContextModule.java:52) ~[jclouds-compute-1.8.1.jar:1.8.1]
        at org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:121) ~[jclouds-compute-1.8.1.jar:1.8.1]
        at org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:118) ~[jclouds-compute-1.8.1.jar:1.8.1]
        at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:73) ~[jclouds-core-1.8.1.jar:1.8.1]
        at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:57) ~[jclouds-core-1.8.1.jar:1.8.1]
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache.get(LocalCache.java:3934) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) ~[guava-17.0.jar:na]
        at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.get(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:119) ~[jclouds-core-1.8.1.jar:1.8.1]
        at org.jclouds.compute.suppliers.ImageCacheSupplier.get(ImageCacheSupplier.java:64) ~[jclouds-compute-1.8.1.jar:1.8.1]
        at org.jclouds.compute.domain.internal.TemplateBuilderImpl.getImages(TemplateBuilderImpl.java:881) ~[jclouds-compute-1.8.1.jar:1.8.1]
        at org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:681) ~[jclouds-compute-1.8.1.jar:1.8.1]
        at brooklyn.location.jclouds.templates.PortableTemplateBuilder.newJcloudsTemplate(PortableTemplateBuilder.java:70) ~[brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.location.jclouds.templates.PortableTemplateBuilder.build(PortableTemplateBuilder.java:48) ~[brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.location.jclouds.JcloudsLocation.buildTemplate(JcloudsLocation.java:1152) [brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.location.jclouds.JcloudsLocation.obtainOnce(JcloudsLocation.java:596) [brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.location.jclouds.JcloudsLocation.obtain(JcloudsLocation.java:533) [brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.networking.portforwarding.subnet.JcloudsPortforwardingSubnetLocation.obtain(JcloudsPortforwardingSubnetLocation.java:118) [brooklyn-networking-portforwarding-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.networking.portforwarding.subnet.JcloudsPortforwardingSubnetLocation.obtain(JcloudsPortforwardingSubnetLocation.java:56) [brooklyn-networking-portforwarding-0.7.0-SNAPSHOT.jar:na]
        at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:286) [brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:1) [brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.util.task.Tasks.withBlockingDetails(Tasks.java:100) [brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:284) [brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:1) [brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.util.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:337) [brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at brooklyn.util.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:469) [brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_71]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
        at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
Caused by: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
        at org.jclouds.vcloud.director.v1_5.handlers.VCloudDirectorErrorHandler.handleError(VCloudDirectorErrorHandler.java:58) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
        at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:65) ~[jclouds-core-1.8.1.jar:1.8.1]
        at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:128) ~[jclouds-core-1.8.1.jar:1.8.1]
        at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:98) ~[jclouds-core-1.8.1.jar:1.8.1]
        at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90) ~[jclouds-core-1.8.1.jar:1.8.1]
        at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73) ~[jclouds-core-1.8.1.jar:1.8.1]
        at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44) ~[jclouds-core-1.8.1.jar:1.8.1]
        at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117) ~[jclouds-core-1.8.1.jar:1.8.1]
        at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87) ~[guava-17.0.jar:na]
        at com.sun.proxy.$Proxy142.getOvf(Unknown Source) ~[na:na]
        at org.jclouds.vcloud.director.v1_5.loaders.ResolveEnvelope.load(ResolveEnvelope.java:48) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
        at org.jclouds.vcloud.director.v1_5.loaders.ResolveEnvelope.load(ResolveEnvelope.java:31) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) ~[guava-17.0.jar:na]
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) ~[guava-17.0.jar:na]
        ... 54 common frames omitted
{noformat}

  was:
When trying to deploy to a vcloud-director location, the provisioning is failing. This is most likely due to there currently being a catalog that is importing

Failed after 1m 23s: Error invoking start at MySqlNodeImpl{id=wUMF32gW}: Failed to get VM after 3 attempts. - First cause is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor. (listed in primary trace); plus 2 more (e.g. the last is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ bc6aea06-9585-42bc-9177-85969e25214a ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.): Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.

brooklyn.util.exceptions.PropagatedRuntimeException: Error invoking start at MySqlNodeImpl{id=wUMF32gW}: Failed to get VM after 3 attempts. - First cause is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor. (listed in primary trace); plus 2 more (e.g. the last is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ bc6aea06-9585-42bc-9177-85969e25214a ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.): Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
	at brooklyn.management.internal.EffectorUtils.handleEffectorException(EffectorUtils.java:263)
	at brooklyn.entity.effector.EffectorTasks$EffectorBodyTaskFactory$2.handleException(EffectorTasks.java:90)
	at brooklyn.util.task.DynamicSequentialTask.handleException(DynamicSequentialTask.java:447)
	at brooklyn.util.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:395)
	at brooklyn.util.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:469)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: brooklyn.util.exceptions.PropagatedRuntimeException: Failed to get VM after 3 attempts. - First cause is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor. (listed in primary trace); plus 2 more (e.g. the last is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ bc6aea06-9585-42bc-9177-85969e25214a ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.): Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
	at brooklyn.util.exceptions.Exceptions.propagate(Exceptions.java:91)
	at brooklyn.util.task.BasicTask.getUnchecked(BasicTask.java:354)
	at brooklyn.util.task.DynamicSequentialTask.drain(DynamicSequentialTask.java:477)
	at brooklyn.util.task.DynamicTasks.drain(DynamicTasks.java:314)
	at brooklyn.util.task.DynamicTasks.waitForLast(DynamicTasks.java:303)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks.start(MachineLifecycleEffectorTasks.java:237)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$1.call(MachineLifecycleEffectorTasks.java:174)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$1.call(MachineLifecycleEffectorTasks.java:1)
	at brooklyn.entity.effector.EffectorTasks$EffectorBodyTaskFactory$1.call(EffectorTasks.java:82)
	at brooklyn.util.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:337)
	... 5 more
Caused by: java.util.concurrent.ExecutionException: brooklyn.util.exceptions.CompoundRuntimeException: Failed to get VM after 3 attempts. - First cause is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor. (listed in primary trace); plus 2 more (e.g. the last is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ bc6aea06-9585-42bc-9177-85969e25214a ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.)
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:188)
	at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
	at brooklyn.util.task.BasicTask.get(BasicTask.java:343)
	at brooklyn.util.task.BasicTask.getUnchecked(BasicTask.java:352)
	... 13 more
Caused by: brooklyn.util.exceptions.CompoundRuntimeException: Failed to get VM after 3 attempts. - First cause is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor. (listed in primary trace); plus 2 more (e.g. the last is java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ bc6aea06-9585-42bc-9177-85969e25214a ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.)
	at brooklyn.location.jclouds.JcloudsLocation.obtain(JcloudsLocation.java:543)
	at brooklyn.networking.portforwarding.subnet.JcloudsPortforwardingSubnetLocation.obtain(JcloudsPortforwardingSubnetLocation.java:118)
	at brooklyn.networking.portforwarding.subnet.JcloudsPortforwardingSubnetLocation.obtain(JcloudsPortforwardingSubnetLocation.java:56)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:286)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:1)
	at brooklyn.util.task.Tasks.withBlockingDetails(Tasks.java:100)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:284)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:1)
	... 6 more
Caused by: java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[<<LocationName>> <<login-email-address>>@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@HzzC4WWD]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
	at brooklyn.location.jclouds.JcloudsLocation.buildTemplate(JcloudsLocation.java:1173)
	at brooklyn.location.jclouds.JcloudsLocation.obtainOnce(JcloudsLocation.java:596)
	at brooklyn.location.jclouds.JcloudsLocation.obtain(JcloudsLocation.java:533)
	... 13 more
Caused by: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
	at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.getOVFForVAppTemplateAndValidate(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:71)
	at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.apply(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:64)
	at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.apply(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:37)
	at org.jclouds.vcloud.director.v1_5.compute.functions.ImageForVAppTemplate.apply(ImageForVAppTemplate.java:81)
	at org.jclouds.vcloud.director.v1_5.compute.functions.ImageForVAppTemplate.apply(ImageForVAppTemplate.java:51)
	at com.google.common.base.Functions$FunctionComposition.apply(Functions.java:216)
	at com.google.common.collect.Iterators$8.transform(Iterators.java:794)
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
	at com.google.common.collect.Iterators$7.computeNext(Iterators.java:646)
	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
	at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:300)
	at com.google.common.collect.ImmutableSet$Builder.addAll(ImmutableSet.java:522)
	at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:321)
	at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
	at com.google.common.collect.FluentIterable.toSet(FluentIterable.java:358)
	at org.jclouds.compute.config.ComputeServiceAdapterContextModule.transformGuardingNull(ComputeServiceAdapterContextModule.java:111)
	at org.jclouds.compute.config.ComputeServiceAdapterContextModule.access$000(ComputeServiceAdapterContextModule.java:52)
	at org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:121)
	at org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:118)
	at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:73)
	at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:57)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
	at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.get(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:119)
	at org.jclouds.compute.suppliers.ImageCacheSupplier.get(ImageCacheSupplier.java:64)
	at org.jclouds.compute.domain.internal.TemplateBuilderImpl.getImages(TemplateBuilderImpl.java:881)
	at org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:681)
	at brooklyn.location.jclouds.templates.PortableTemplateBuilder.newJcloudsTemplate(PortableTemplateBuilder.java:70)
	at brooklyn.location.jclouds.templates.PortableTemplateBuilder.build(PortableTemplateBuilder.java:48)
	at brooklyn.location.jclouds.JcloudsLocation.buildTemplate(JcloudsLocation.java:1152)
	... 15 more
Caused by: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ dd8766a6-3a58-4566-8e7f-09a40795fbbc ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
	at org.jclouds.vcloud.director.v1_5.handlers.VCloudDirectorErrorHandler.handleError(VCloudDirectorErrorHandler.java:58)
	at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:65)
	at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:128)
	at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:98)
	at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90)
	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73)
	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
	at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
	at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
	at com.sun.proxy.$Proxy142.getOvf(Unknown Source)
	at org.jclouds.vcloud.director.v1_5.loaders.ResolveEnvelope.load(ResolveEnvelope.java:48)
	at org.jclouds.vcloud.director.v1_5.loaders.ResolveEnvelope.load(ResolveEnvelope.java:31)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
	... 54 more



> Vcloud director fails to provision if there's currently a catalog importing
> ---------------------------------------------------------------------------
>
>                 Key: BROOKLYN-131
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-131
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Martin Harris
>
> When trying to deploy to a vcloud-director location, the provisioning is failing. This is most likely due to there currently being a catalog that is importing
> {noformat}
> 2015-01-30 11:43:53,934 WARN  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brookl
> yn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3
> H2OP] (rethrowing): com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entit
> y.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
> 2015-01-30 11:43:53,934 ERROR b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Failed to start VM for vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@MySqlNodeImpl{id=cN9FbNIo}: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3H2OP]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
> 2015-01-30 11:43:53,936 WARN  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Attempt #1/3 to obtain machine threw error: java.lang.IllegalStateException: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3H2OP]; see list of images in log. Root cause: com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
> 2015-01-30 11:43:53,936 INFO  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Creating VM vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@MySqlNodeImpl{id=cN9FbNIo} in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3H2OP]
> 2015-01-30 11:43:53,937 WARN  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-2809]: Unable to match required VM template constraints PortableTemplateBuilder[ports=[22], imageNameRegex=cloudsoft-template, imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@23da95ad] when trying to provision VM in JcloudsPortforwardingSubnetLocation[Canopy vCHS:duncan.johnstonwatt@cloudsoftcorp.com@M523007043-2739/vcloud-director:https://p5v1-vcd.vchs.vmware.com/api@vEv3H2OP] (rethrowing): com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
> 2015-01-30 11:43:53,938 WARN  b.l.jclouds.JcloudsLocation [brooklyn-execmanager-QXlsN5YQ-3560]: Error loading available images to report (following original error matching template which will be rethrown): com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
> com.google.common.util.concurrent.UncheckedExecutionException: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
>         at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache.get(LocalCache.java:3934) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) ~[guava-17.0.jar:na]
>         at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.getOVFForVAppTemplateAndValidate(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:71) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
>         at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.apply(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:64) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
>         at org.jclouds.vcloud.director.v1_5.compute.functions.ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.apply(ValidateVAppTemplateAndReturnEnvelopeOrThrowIllegalArgumentException.java:37) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
>         at org.jclouds.vcloud.director.v1_5.compute.functions.ImageForVAppTemplate.apply(ImageForVAppTemplate.java:81) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
>         at org.jclouds.vcloud.director.v1_5.compute.functions.ImageForVAppTemplate.apply(ImageForVAppTemplate.java:51) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
>         at com.google.common.base.Functions$FunctionComposition.apply(Functions.java:216) ~[guava-17.0.jar:na]
>         at com.google.common.collect.Iterators$8.transform(Iterators.java:794) ~[guava-17.0.jar:na]
>         at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) ~[guava-17.0.jar:na]
>         at com.google.common.collect.Iterators$7.computeNext(Iterators.java:646) ~[guava-17.0.jar:na]
>         at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-17.0.jar:na]
>         at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-17.0.jar:na]
>         at com.google.common.collect.ImmutableCollection$Builder.addAll(ImmutableCollection.java:300) ~[guava-17.0.jar:na]
>         at com.google.common.collect.ImmutableSet$Builder.addAll(ImmutableSet.java:522) ~[guava-17.0.jar:na]
>         at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:321) ~[guava-17.0.jar:na]
>         at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300) ~[guava-17.0.jar:na]
>         at com.google.common.collect.FluentIterable.toSet(FluentIterable.java:358) ~[guava-17.0.jar:na]
>         at org.jclouds.compute.config.ComputeServiceAdapterContextModule.transformGuardingNull(ComputeServiceAdapterContextModule.java:111) ~[jclouds-compute-1.8.1.jar:1.8.1]
>         at org.jclouds.compute.config.ComputeServiceAdapterContextModule.access$000(ComputeServiceAdapterContextModule.java:52) ~[jclouds-compute-1.8.1.jar:1.8.1]
>         at org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:121) ~[jclouds-compute-1.8.1.jar:1.8.1]
>         at org.jclouds.compute.config.ComputeServiceAdapterContextModule$2.get(ComputeServiceAdapterContextModule.java:118) ~[jclouds-compute-1.8.1.jar:1.8.1]
>         at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:73) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier$SetAndThrowAuthorizationExceptionSupplierBackedLoader.load(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:57) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache.get(LocalCache.java:3934) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) ~[guava-17.0.jar:na]
>         at org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.get(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:119) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at org.jclouds.compute.suppliers.ImageCacheSupplier.get(ImageCacheSupplier.java:64) ~[jclouds-compute-1.8.1.jar:1.8.1]
>         at org.jclouds.compute.domain.internal.TemplateBuilderImpl.getImages(TemplateBuilderImpl.java:881) ~[jclouds-compute-1.8.1.jar:1.8.1]
>         at org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:681) ~[jclouds-compute-1.8.1.jar:1.8.1]
>         at brooklyn.location.jclouds.templates.PortableTemplateBuilder.newJcloudsTemplate(PortableTemplateBuilder.java:70) ~[brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.location.jclouds.templates.PortableTemplateBuilder.build(PortableTemplateBuilder.java:48) ~[brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.location.jclouds.JcloudsLocation.buildTemplate(JcloudsLocation.java:1152) [brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.location.jclouds.JcloudsLocation.obtainOnce(JcloudsLocation.java:596) [brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.location.jclouds.JcloudsLocation.obtain(JcloudsLocation.java:533) [brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.networking.portforwarding.subnet.JcloudsPortforwardingSubnetLocation.obtain(JcloudsPortforwardingSubnetLocation.java:118) [brooklyn-networking-portforwarding-0.7.0-SNAPSHOT.jar:na]
>         at brooklyn.networking.portforwarding.subnet.JcloudsPortforwardingSubnetLocation.obtain(JcloudsPortforwardingSubnetLocation.java:56) [brooklyn-networking-portforwarding-0.7.0-SNAPSHOT.jar:na]
>         at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:286) [brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:1) [brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.util.task.Tasks.withBlockingDetails(Tasks.java:100) [brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:284) [brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:1) [brooklyn-software-base-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.util.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:337) [brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at brooklyn.util.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:469) [brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_71]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
>         at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
> Caused by: org.jclouds.vcloud.director.v1_5.VCloudDirectorException: Invalid State (409) Error: [ ed435d7d-2ab8-4895-98f2-a92db3fb2b6c ] The entity com.vmware.vcloud.entity.vapptemplate:f3379f4f-2f4c-481d-97da-eecb0bce9ac1 is in an invalid state for operation generateOvfDescriptor.
>         at org.jclouds.vcloud.director.v1_5.handlers.VCloudDirectorErrorHandler.handleError(VCloudDirectorErrorHandler.java:58) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
>         at org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:65) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:128) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:98) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117) ~[jclouds-core-1.8.1.jar:1.8.1]
>         at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87) ~[guava-17.0.jar:na]
>         at com.sun.proxy.$Proxy142.getOvf(Unknown Source) ~[na:na]
>         at org.jclouds.vcloud.director.v1_5.loaders.ResolveEnvelope.load(ResolveEnvelope.java:48) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
>         at org.jclouds.vcloud.director.v1_5.loaders.ResolveEnvelope.load(ResolveEnvelope.java:31) ~[vcloud-director-1.8.2-alpha-cloudsoft.8.jar:1.8.2-alpha-cloudsoft.8]
>         at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) ~[guava-17.0.jar:na]
>         at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) ~[guava-17.0.jar:na]
>         ... 54 common frames omitted
> {noformat}



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

Mime
View raw message