brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aled Sage <aled.s...@gmail.com>
Subject Re: OpenStack connection not working
Date Thu, 09 Jul 2015 07:50:45 GMT
Thanks Daniel.

You could try with Brooklyn 0.7.0-SNAPSHOT [1]. This now depends on 
jclouds 1.9.0. That will be easier/safer than modifying 0.7.0-M2 to 
depend on a different jclouds version. We'll hopefully release a 
Brooklyn 0.7.0 GA in the next couple of weeks.

Aled

[1] 
https://brooklyn.incubator.apache.org/v/0.7.0-SNAPSHOT/misc/download.html


On 09/07/2015 09:36, Daniel Seybold wrote:
> Hi Jesus,
>
> I assume you are using Brooklyn 0.7.0-M2
>
> I've struggled with the exactly same problem quite a long time when I 
> tried to get Brookyln running in our Openstack environment.
>
> The issue is connected with Openstack itself, Jclouds and the way 
> Brooklyn uses Jclouds.
>
> The simple solution is: Your tenant mustn't have any Images created 
> from Snapshots visible. Then it will work.
>
> A more detailed explanation:
>
> - If you are creating Images from Snapshots in Openstack the metadata 
> of this image will contain not only key-value paris but also more 
> complex objects [1]
> - Jclouds will parse this metadata fields but Jclouds is using GSON 
> and assumes there are only key-value pairs like stated in the 
> Openstack Spec [2]
> - Jclouds is aware of this issue and it is fixed in Version 1.8.2 
> however Brooklyn uses 1.8.0 in 0.7.0-M2 [3]
> - Regarding Jclouds the error will only occurs if you are using the 
> *listInDetail 
> <https://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/glance/v1_0/features/ImageApi.html#listInDetail%28%29>*()

> function brooklyn does, for the *list 
> <https://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/glance/v1_0/features/ImageApi.html#listInDetail%28%29>*()

> function it should work fine [3]
>
> So either you have to upgrade manually the JClouds Version or remove 
> all Images created from Snapshots.
>
> Unfortunately for me upgrading of Jclouds didn't work because the 
> maven build crashed because of wrong dependcies. But I didn't spend 
> much time in trying to fix the dependencies.
>
> [1] https://bugs.launchpad.net/nova/+bug/1354587
> [2] http://developer.openstack.org/api-ref-compute-v2.html#compute_images
> [3] https://issues.apache.org/jira/browse/JCLOUDS-655
> [4] 
> https://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/glance/v1_0/features/ImageApi.html
>
> Cheers,
> Daniel
>
>
> Am 09.07.2015 um 00:58 schrieb Jesus arteche:
>> hey guys,
>>
>> I'm trying to connect with Brooklyn to my OpenStack deployment. Brooklyn
>> (last version available on the web) is deployed over an Ubuntu VM on my
>> OpenStack deployment, so it can hit the API URL.
>>
>> This is my properties file, the section for OpenStack:
>>
>> ## OpenStack Nova access information can be downloaded from the 
>> openstack
>> web interface; for example, as openrc.sh file
>> #brooklyn.location.named.ICOS=jclouds:openstack-nova:
>> https://192.168.101.10:5000/v2.0
>> brooklyn.location.named.ICOS.identity=CustEnablement:chechu
>> brooklyn.location.named.ICOS.credential=my_password
>> brooklyn.location.named.ICOS.endpoint=https://192.168.101.10:5000/v2.0
>> brooklyn.location.named.ICOS.location=RegionOne
>>
>> ## The ID of the image must be configured according to the local 
>> OpenStack
>> settings
>> ## Use the command nova image-list to list all the available images
>> ## Use the command nova show <image-name> to get more details
>> brooklyn.location.named.ICOS.imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5

>>
>>
>> ## Virtual Machine flavors must match the ones created upfront 
>> according to
>> the local OpenStack settings
>> ## Use the command nova flavor-list to list all the available options
>> ## Use the command nova flavor-show <flavor-name> to get more details
>> brooklyn.location.named.ICOS.hardwareId=RegionOne/12
>>
>> ## (Optional) Configurations
>>
>> # brooklyn.location.named.My\ 
>> OpenStack.user=user-name-inside-the-instance
>>
>> ## The keyPair must by created upfront. Both the following two 
>> options are
>> required at the same time.
>> brooklyn.location.named.ICOS.keyPair=chechu
>> brooklyn.location.named.ICOS.loginUser.privateKeyFile=/home/ibmcloud/chechu.key 
>>
>>
>>
>> An this is the error when I try to deploy the yaml example (changing teh
>> location) from the website (
>> https://brooklyn.incubator.apache.org/v/latest/start/blueprints.html#launching-from-a-blueprint)

>>
>> :
>>
>> 2015-07-08 22:56:59,358 INFO  Launched from YAML:
>> io.brooklyn.camp.spi.AssemblyTemplate@5c0d2ce2[id=fGm9fzhN;
>> type=AssemblyTemplate] -> BasicApplicationImpl{id=Vw9IzYmS}
>> (Task[start:XHUmoFSe])
>> 2015-07-08 22:56:59,514 INFO  Starting MySqlNodeImpl{id=NTTOCdTC},
>> obtaining a new location instance in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> with ports [22, 3306]
>> 2015-07-08 22:56:59,624 INFO  Starting NginxControllerImpl{id=GBuUTYMh},
>> obtaining a new location instance in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> with ports [22, 8000]
>> 2015-07-08 22:56:59,666 INFO  Resize 
>> DynamicWebAppClusterImpl{id=etkYQH8o}
>> from 0 to 1
>> 2015-07-08 22:56:59,804 INFO  Starting JBoss7ServerImpl{id=xBJP1cIK},
>> obtaining a new location instance in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> with ports [22, 9443, 10999, 8443, 8080, 9990]
>> 2015-07-08 22:57:01,147 INFO  Creating VM openstack-nova:
>> https://192.168.101.10:5000/v2.0@MySqlNodeImpl{id=NTTOCdTC} in
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0

>>
>> ]
>> 2015-07-08 22:57:01,532 INFO  Creating VM openstack-nova:
>> https://192.168.101.10:5000/v2.0@JBoss7ServerImpl{id=xBJP1cIK} in
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0

>>
>> ]
>> 2015-07-08 22:57:01,945 INFO  Creating VM openstack-nova:
>> https://192.168.101.10:5000/v2.0@NginxControllerImpl{id=GBuUTYMh} in
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0

>>
>> ]
>> 2015-07-08 22:57:02,867 ERROR Error parsing input
>> com.google.gson.JsonIOException: java.net.URISyntaxException: Malformed
>> escape pair at index 29:
>> https://172.20.72.10:8774/v2/%(tenant_id)s/v2/d64bee94af1b44d98dc7c8084b26d9ac/images/7c6195e4-3c20-4069-9803-f74f58e160e7

>>
>>      at
>> com.google.gson.internal.bind.TypeAdapters$19.read(TypeAdapters.java:460) 
>>
>> ~[gson-2.2.2.jar:na]
>> Caused by: java.net.URISyntaxException: Malformed escape pair at 
>> index 29:
>> https://172.20.72.10:8774/v2/%(tenant_id)s/v2/d64bee94af1b44d98dc7c8084b26d9ac/images/7c6195e4-3c20-4069-9803-f74f58e160e7

>>
>>      at java.net.URI$Parser.fail(URI.java:2829) ~[na:1.7.0_79]
>> 2015-07-08 22:57:02,874 WARN  Unable to match required VM template
>> constraints PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> (rethrowing): org.jclouds.http.HttpResponseException: Error parsing 
>> input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,875 INFO  Loading available images at
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> for reference...
>> 2015-07-08 22:57:02,879 WARN  Unable to match required VM template
>> constraints PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> (rethrowing): org.jclouds.http.HttpResponseException: Error parsing 
>> input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,880 ERROR Failed to start VM for openstack-nova:
>> https://192.168.101.10:5000/v2.0@NginxControllerImpl{id=GBuUTYMh}: 
>> Unable
>> to match required VM template constraints
>> PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0];

>>
>> see list of images in log. Root cause:
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,881 WARN  Error loading available images to report
>> (following original error matching template which will be rethrown):
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>>      at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:67)
>> ~[jclouds-core-1.8.0.jar:1.8.0]
>> Caused by: com.google.gson.JsonIOException: java.net.URISyntaxException:
>> Malformed escape pair at index 29:
>> https://172.20.72.10:8774/v2/%(tenant_id)s/v2/d64bee94af1b44d98dc7c8084b26d9ac/images/7c6195e4-3c20-4069-9803-f74f58e160e7

>>
>>      at
>> com.google.gson.internal.bind.TypeAdapters$19.read(TypeAdapters.java:460) 
>>
>> ~[gson-2.2.2.jar:na]
>> Caused by: java.net.URISyntaxException: Malformed escape pair at 
>> index 29:
>> https://172.20.72.10:8774/v2/%(tenant_id)s/v2/d64bee94af1b44d98dc7c8084b26d9ac/images/7c6195e4-3c20-4069-9803-f74f58e160e7

>>
>>      at java.net.URI$Parser.fail(URI.java:2829) ~[na:1.7.0_79]
>> 2015-07-08 22:57:02,883 ERROR Failed to start VM for openstack-nova:
>> https://192.168.101.10:5000/v2.0@JBoss7ServerImpl{id=xBJP1cIK}: 
>> Unable to
>> access cloud JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,883 WARN  Attempt #1/1 to obtain machine threw 
>> error:
>> java.lang.IllegalStateException: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,882 WARN  Attempt #1/1 to obtain machine threw 
>> error:
>> java.lang.IllegalStateException: Unable to match required VM template
>> constraints PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0];

>>
>> see list of images in log. Root cause:
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,898 WARN  Unable to match required VM template
>> constraints PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> (rethrowing): org.jclouds.http.HttpResponseException: Error parsing 
>> input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,898 ERROR Failed to start VM for openstack-nova:
>> https://192.168.101.10:5000/v2.0@MySqlNodeImpl{id=NTTOCdTC}: Unable to
>> match required VM template constraints 
>> PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0];

>>
>> see list of images in log. Root cause:
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,899 WARN  Attempt #1/1 to obtain machine threw 
>> error:
>> java.lang.IllegalStateException: Unable to match required VM template
>> constraints PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0];

>>
>> see list of images in log. Root cause:
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,907 WARN  Error invoking start at
>> JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,910 WARN  Error invoking start at
>> NginxControllerImpl{id=GBuUTYMh}: Unable to match required VM template
>> constraints PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0];

>>
>> see list of images in log. Root cause:
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:02,951 ERROR Cluster 
>> DynamicWebAppClusterImpl{id=etkYQH8o}
>> failed to start entity JBoss7ServerImpl{id=xBJP1cIK} (removing):
>> java.lang.IllegalStateException: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> java.lang.IllegalStateException: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>>      at
>> brooklyn.location.jclouds.JcloudsLocation.buildTemplate(JcloudsLocation.java:1070)

>>
>> ~[brooklyn-locations-jclouds-0.7.0-M2-incubating.jar:0.7.0-M2-incubating] 
>>
>> Caused by: org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>>      at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:67)
>> ~[jclouds-core-1.8.0.jar:1.8.0]
>> Caused by: com.google.gson.JsonIOException: java.net.URISyntaxException:
>> Malformed escape pair at index 29:
>> https://172.20.72.10:8774/v2/%(tenant_id)s/v2/d64bee94af1b44d98dc7c8084b26d9ac/images/7c6195e4-3c20-4069-9803-f74f58e160e7

>>
>>      at
>> com.google.gson.internal.bind.TypeAdapters$19.read(TypeAdapters.java:460) 
>>
>> ~[gson-2.2.2.jar:na]
>> Caused by: java.net.URISyntaxException: Malformed escape pair at 
>> index 29:
>> https://172.20.72.10:8774/v2/%(tenant_id)s/v2/d64bee94af1b44d98dc7c8084b26d9ac/images/7c6195e4-3c20-4069-9803-f74f58e160e7

>>
>>      at java.net.URI$Parser.fail(URI.java:2829) ~[na:1.7.0_79]
>> 2015-07-08 22:57:02,952 WARN  Error invoking start at
>> MySqlNodeImpl{id=NTTOCdTC}: Unable to match required VM template
>> constraints PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a] 
>>
>> when trying to provision VM in JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0];

>>
>> see list of images in log. Root cause:
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:03,007 WARN  Setting QuarantineGroupImpl{id=Rhy8qGEE}
>> on-fire due to problems when expected null / up=null:
>> {service-lifecycle-indicators-from-children-and-members=Required 
>> entity not
>> healthy: JBoss7ServerImpl{id=xBJP1cIK}}
>> 2015-07-08 22:57:03,283 WARN  Service is not up when setting running on
>> DynamicWebAppClusterImpl{id=etkYQH8o}; delayed 209ms but Sensor:
>> service.isUp (java.lang.Boolean) did not recover from false;
>> not-up-indicators={service-not-up-indicators-from-children-and-members=No 
>>
>> entities present}
>> 2015-07-08 22:57:03,284 WARN  Setting 
>> DynamicWebAppClusterImpl{id=etkYQH8o}
>> on-fire due to problems when expected running, up=false, problems:
>> {start=start failed with error: java.lang.IllegalStateException: Node in
>> cluster DynamicWebAppClusterImpl{id=etkYQH8o} failed: Error invoking 
>> start
>> at JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}}
>> 2015-07-08 22:57:03,284 WARN  Setting 
>> DynamicWebAppClusterImpl{id=etkYQH8o}
>> on-fire due to problems when expected running, up=false, problems:
>> {start=start failed with error: java.lang.IllegalStateException: Node in
>> cluster DynamicWebAppClusterImpl{id=etkYQH8o} failed: Error invoking 
>> start
>> at JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}}
>> 2015-07-08 22:57:03,287 WARN  Error invoking start at
>> DynamicWebAppClusterImpl{id=etkYQH8o}: Node in cluster
>> DynamicWebAppClusterImpl{id=etkYQH8o} failed: Error invoking start at
>> JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:03,292 WARN  Error invoking start at
>> DynamicWebAppClusterImpl{id=etkYQH8o}: Error invoking start at
>> DynamicWebAppClusterImpl{id=etkYQH8o}: Node in cluster
>> DynamicWebAppClusterImpl{id=etkYQH8o} failed: Error invoking start at
>> JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:03,347 WARN  Error invoking start at
>> ControlledDynamicWebAppClusterImpl{id=T41dKEGf}: 2 of 2 parallel child
>> tasks failed, 2 errors including: Error invoking start at
>> DynamicWebAppClusterImpl{id=etkYQH8o}: Node in cluster
>> DynamicWebAppClusterImpl{id=etkYQH8o} failed: Error invoking start at
>> JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:03,370 WARN  Error invoking start at
>> ControlledDynamicWebAppClusterImpl{id=T41dKEGf}: Error invoking start at
>> ControlledDynamicWebAppClusterImpl{id=T41dKEGf}: 2 of 2 parallel child
>> tasks failed, 2 errors including: Error invoking start at
>> DynamicWebAppClusterImpl{id=etkYQH8o}: Node in cluster
>> DynamicWebAppClusterImpl{id=etkYQH8o} failed: Error invoking start at
>> JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:03,651 WARN  Service is not up when setting running on
>> BasicApplicationImpl{id=Vw9IzYmS}; delayed 204ms but Sensor: 
>> service.isUp
>> (java.lang.Boolean) did not recover from false;
>> not-up-indicators={service-lifecycle-indicators-from-children-and-members=None 
>>
>> of the entities are up}
>> 2015-07-08 22:57:03,652 WARN  Setting BasicApplicationImpl{id=Vw9IzYmS}
>> on-fire due to problems when expected running, up=false, problems:
>> {service-lifecycle-indicators-from-children-and-members=Required 
>> entities
>> not healthy: ControlledDynamicWebAppClusterImpl{id=T41dKEGf},
>> MySqlNodeImpl{id=NTTOCdTC}}
>> 2015-07-08 22:57:03,652 WARN  Setting BasicApplicationImpl{id=Vw9IzYmS}
>> on-fire due to problems when expected running, up=false, problems:
>> {service-lifecycle-indicators-from-children-and-members=Required 
>> entities
>> not healthy: ControlledDynamicWebAppClusterImpl{id=T41dKEGf},
>> MySqlNodeImpl{id=NTTOCdTC}}
>> 2015-07-08 22:57:03,783 WARN  Error invoking start at
>> BasicApplicationImpl{id=Vw9IzYmS}: 2 of 2 parallel child tasks failed, 2
>> errors including: Error invoking start at
>> ControlledDynamicWebAppClusterImpl{id=T41dKEGf}: 2 of 2 parallel child
>> tasks failed, 2 errors including: Error invoking start at
>> DynamicWebAppClusterImpl{id=etkYQH8o}: Node in cluster
>> DynamicWebAppClusterImpl{id=etkYQH8o} failed: Error invoking start at
>> JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>> 2015-07-08 22:57:03,961 WARN  Error invoking start at
>> BasicApplicationImpl{id=Vw9IzYmS}: Error invoking start at
>> BasicApplicationImpl{id=Vw9IzYmS}: 2 of 2 parallel child tasks failed, 2
>> errors including: Error invoking start at
>> ControlledDynamicWebAppClusterImpl{id=T41dKEGf}: 2 of 2 parallel child
>> tasks failed, 2 errors including: Error invoking start at
>> DynamicWebAppClusterImpl{id=etkYQH8o}: Node in cluster
>> DynamicWebAppClusterImpl{id=etkYQH8o} failed: Error invoking start at
>> JBoss7ServerImpl{id=xBJP1cIK}: Unable to access cloud
>> JcloudsLocation[openstack-nova:
>> https://192.168.101.10:5000/v2.0:CustEnablement:chechu/openstack-nova:https://192.168.101.10:5000/v2.0]

>>
>> to resolve PortableTemplateBuilder[ports=[22],
>> imageId=RegionOne/ef28f96b-c9be-409f-b577-c503f50d2da5,
>> hardwareId=RegionOne/12,
>> imageChooserFunction=brooklyn.location.jclouds.BrooklynImageChooser$3@14b1bf7a]:

>>
>> org.jclouds.http.HttpResponseException: Error parsing input
>> {statusCode=200, message=OK, headers={Date=[Wed, 08 Jul 2015 22:57:02 
>> GMT],
>> Connection=[keep-alive],
>> X-Compute-Request-Id=[req-a6b50a3a-4a96-4815-a5df-743534966f48]},
>> payload=[content=true, contentMetadata=[contentDisposition=null,
>> contentEncoding=null, contentLanguage=null, contentLength=22891,
>> contentMD5=null, contentType=application/json, expires=null],
>> written=false]}
>>
>>
>> could you help me to make it work?
>>
>> Thanks
>>
>
>


Mime
View raw message