You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jclouds.apache.org by Lahiru Sandaruwan <la...@wso2.com> on 2014/03/21 19:30:10 UTC
Does jclouds supports "AssociatePublicIpAddress" with VPC ?
Hi,
I am trying to allocate a public ip when we spin up instances in AWS VPC.
So $subject..
[1] is the AWS api. I see that jclouds Classes at [2], but not public ip
support.
Thanks.
[1]
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-RunInstances.html
[2] https://github.com/jclouds/jclouds/search?q=SubnetId&type=Code
--
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: Does jclouds supports "AssociatePublicIpAddress" with VPC ?
Posted by Andrew Phillips <ap...@qrmedia.com>.
> I was able to fix all the test failures. Attached the patch to
> "JCLOUDS-509". Please review.
Do you have a GitHub account, Lahiru? I can't find one that looks
"obviously" like you ;-)
ap
Re: Does jclouds supports "AssociatePublicIpAddress" with VPC ?
Posted by Lahiru Sandaruwan <la...@wso2.com>.
Hi guys,
I was able to fix all the test failures. Attached the patch to
"JCLOUDS-509". Please review.
Thanks.
On Wed, Mar 26, 2014 at 11:38 AM, Lahiru Sandaruwan <la...@wso2.com>wrote:
> I was able to fix first 4 tests by removing the line i added with
> "associatePublicIp" for "SpotInstanceRequestToAWSRunningInstance" class.
>
> Looking into other four.
>
> Thanks.
>
>
> On Wed, Mar 26, 2014 at 10:49 AM, Lahiru Sandaruwan <la...@wso2.com>wrote:
>
>> [moving into dev]
>>
>> Hi devs,
>>
>> It seems jclouds does not support AWS api version "2013-10-15", which has
>> "AssociatePublicIpAddress" feature.
>>
>> I patched(attached diff) jclouds and got this feature working. I had to
>> upgrade AWS API version for that.
>> This is raw code i wrote to get the feature working. With this, there are
>> 8 test failures[1] that i didn't had a look yet. I'm going to work on them.
>>
>> Sending this just in a case of someone from devs got a time to have
>> glance.
>>
>> Thanks.
>>
>>
>> [1]
>>
>> Test suite progress: tests succeeded: 292, failed: 8, skipped: 0.
>> Tests run: 300, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 7.512
>> sec <<< FAILURE!
>> testConvert(org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest)
>> Time elapsed: 0.003 sec <<< FAILURE!
>> java.lang.NullPointerException
>> at
>> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
>> at
>> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest.testConvert(SpotInstanceRequestToAWSRunningInstanceTest.java:62)
>>
>> testLaunchVPCSpotInstanceSubnetId(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>> Time elapsed: 0.591 sec <<< FAILURE!
>> java.lang.NullPointerException
>> at
>> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
>> at
>> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
>> 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.ImmutableSet.copyOf(ImmutableSet.java:317)
>> at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
>> at
>> org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
>> at
>> org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
>> at
>> org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
>> at $Proxy67.createNodesInGroup(Unknown Source)
>> at
>> org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchVPCSpotInstanceSubnetId(AWSEC2ComputeServiceExpectTest.java:101)
>>
>> testLaunchSpotInstanceIAMInstanceProfileName(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>> Time elapsed: 0.092 sec <<< FAILURE!
>> java.lang.NullPointerException
>> at
>> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
>> at
>> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
>> 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.ImmutableSet.copyOf(ImmutableSet.java:317)
>> at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
>> at
>> org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
>> at
>> org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
>> at
>> org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
>> at $Proxy67.createNodesInGroup(Unknown Source)
>> at
>> org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchSpotInstanceIAMInstanceProfileName(AWSEC2ComputeServiceExpectTest.java:177)
>>
>> testLaunchSpotInstanceIAMInstanceProfileArn(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>> Time elapsed: 0.093 sec <<< FAILURE!
>> java.lang.NullPointerException
>> at
>> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
>> at
>> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
>> 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.ImmutableSet.copyOf(ImmutableSet.java:317)
>> at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
>> at
>> org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
>> at
>> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
>> at
>> org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
>> at
>> org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
>> at $Proxy67.createNodesInGroup(Unknown Source)
>> at
>> org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchSpotInstanceIAMInstanceProfileArn(AWSEC2ComputeServiceExpectTest.java:140)
>>
>> testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest)
>> Time elapsed: 0.125 sec <<< FAILURE!
>> org.jclouds.http.HttpResponseException: command: POST
>> https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
>> HTTP/1.1 500 no response configured for request; content: [
>> the following request is not configured:
>> ----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 263
>> Action=DescribePlacementGroups&Filter.1.Name
>> =strategy&Filter.1.Value.1=cluster&Signature=MtRYJyIL3HAXycDlHImfq/PrG6shRTElKn1//BzBbJo%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
>> configured requests:
>> ----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 207
>>
>> Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 263
>> Action=DescribePlacementGroups&Filter.1.Name
>> =strategy&Filter.1.Value.1=cluster&Signature=SaA7Un1BE3m9jIEKyjXNdQPzFh/QAJSCebvKXiwUEK0%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
>> at
>> org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
>> at
>> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
>> at
>> org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
>> at
>> org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
>> at
>> org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
>> at
>> com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
>> at $Proxy84.describePlacementGroupsInRegionWithFilter(Unknown Source)
>> at
>> org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest.testFilterWhenResponseIs2xx(PlacementGroupApiExpectTest.java:57)
>>
>> testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest)
>> Time elapsed: 0.126 sec <<< FAILURE!
>> org.jclouds.http.HttpResponseException: command: POST
>> https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
>> HTTP/1.1 500 no response configured for request; content: [
>> the following request is not configured:
>> ----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 263
>> Action=DescribePlacementGroups&Filter.1.Name
>> =strategy&Filter.1.Value.1=cluster&Signature=MtRYJyIL3HAXycDlHImfq/PrG6shRTElKn1//BzBbJo%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
>> configured requests:
>> ----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 207
>>
>> Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 263
>> Action=DescribePlacementGroups&Filter.1.Name
>> =strategy&Filter.1.Value.1=cluster&Signature=SaA7Un1BE3m9jIEKyjXNdQPzFh/QAJSCebvKXiwUEK0%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
>> at
>> org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
>> at
>> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
>> at
>> org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
>> at
>> org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
>> at
>> org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
>> at
>> com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
>> at $Proxy84.describePlacementGroupsInRegionWithFilter(Unknown Source)
>> at
>> org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest.testFilterWhenResponseIs404(PlacementGroupApiExpectTest.java:71)
>>
>> testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest)
>> Time elapsed: 0.086 sec <<< FAILURE!
>> org.jclouds.http.HttpResponseException: command: POST
>> https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
>> HTTP/1.1 500 no response configured for request; content: [
>> the following request is not configured:
>> ----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 276
>> Action=DescribeSpotInstanceRequests&Filter.1.Name
>> =instance-id&Filter.1.Value.1=i-ef308e8e&Signature=cBxJ3/T7rSKI9BZWAAI1PQNmEsGOqhcddPGNr%2BIGN6o%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
>> configured requests:
>> ----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 207
>>
>> Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 274
>> Action=DescribeSpotInstanceRequests&Filter.1.Name
>> =instance-id&Filter.1.Value.1=i-ef308e8e&Signature=wQtGpumMCDEzvlldKepCKeEjD9iE7eAyiRBlQztcJMA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
>> at
>> org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
>> at
>> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
>> at
>> org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
>> at
>> org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
>> at
>> org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
>> at
>> com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
>> at $Proxy24.describeSpotInstanceRequestsInRegionWithFilter(Unknown Source)
>> at
>> org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest.testFilterWhenResponseIs404(SpotInstanceApiExpectTest.java:71)
>>
>> testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest)
>> Time elapsed: 0.089 sec <<< FAILURE!
>> org.jclouds.http.HttpResponseException: command: POST
>> https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
>> HTTP/1.1 500 no response configured for request; content: [
>> the following request is not configured:
>> ----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 276
>> Action=DescribeSpotInstanceRequests&Filter.1.Name
>> =instance-id&Filter.1.Value.1=i-ef308e8e&Signature=cBxJ3/T7rSKI9BZWAAI1PQNmEsGOqhcddPGNr%2BIGN6o%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
>> configured requests:
>> ----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 207
>>
>> Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
>> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
>> Host: ec2.us-east-1.amazonaws.com
>> Content-Type: application/x-www-form-urlencoded
>> Content-Length: 274
>> Action=DescribeSpotInstanceRequests&Filter.1.Name
>> =instance-id&Filter.1.Value.1=i-ef308e8e&Signature=wQtGpumMCDEzvlldKepCKeEjD9iE7eAyiRBlQztcJMA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
>> at
>> org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
>> at
>> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
>> at
>> org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
>> at
>> org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
>> at
>> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
>> at
>> org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
>> at
>> com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
>> at $Proxy24.describeSpotInstanceRequestsInRegionWithFilter(Unknown Source)
>> at
>> org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest.testFilterWhenResponseIs2xx(SpotInstanceApiExpectTest.java:57)
>>
>>
>> Results :
>>
>> Failed tests:
>> testConvert(org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest)
>>
>> testLaunchVPCSpotInstanceSubnetId(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>>
>> testLaunchSpotInstanceIAMInstanceProfileName(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>>
>> testLaunchSpotInstanceIAMInstanceProfileArn(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>>
>> testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest):
>> command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
>> response: HTTP/1.1 500 no response configured for request; content: [(..)
>>
>> testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest):
>> command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
>> response: HTTP/1.1 500 no response configured for request; content: [(..)
>>
>> testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest):
>> command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
>> response: HTTP/1.1 500 no response configured for request; content: [(..)
>>
>> testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest):
>> command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
>> response: HTTP/1.1 500 no response configured for request; content: [(..)
>>
>> Tests run: 300, Failures: 8, Errors: 0, Skipped: 0
>>
>>
>>
>> On Fri, Mar 21, 2014 at 3:31 PM, Andrew Phillips <an...@apache.org>wrote:
>>
>>> Yes. :) I have built the 1.7.1 code and looking into it. So i can send my
>>>> questions regarding to development to dev@ list.
>>>>
>>>> That is correct list, right?
>>>>
>>>
>>> Sure! I just redirected to user because questions about things like with
>>> AWS EC2 features are/are not supported are likely to be of interested to
>>> other jclouds users too.
>>>
>>> When we get into development/pull request territory, the dev@ list is
>>> indeed the better place to continue the discussion ;-)
>>>
>>> ap
>>>
>>
>>
>>
>> --
>> --
>> Lahiru Sandaruwan
>> Software Engineer,
>> Platform Technologies,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
--
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: Does jclouds supports "AssociatePublicIpAddress" with VPC ?
Posted by Lahiru Sandaruwan <la...@wso2.com>.
I was able to fix first 4 tests by removing the line i added with
"associatePublicIp" for "SpotInstanceRequestToAWSRunningInstance" class.
Looking into other four.
Thanks.
On Wed, Mar 26, 2014 at 10:49 AM, Lahiru Sandaruwan <la...@wso2.com>wrote:
> [moving into dev]
>
> Hi devs,
>
> It seems jclouds does not support AWS api version "2013-10-15", which has
> "AssociatePublicIpAddress" feature.
>
> I patched(attached diff) jclouds and got this feature working. I had to
> upgrade AWS API version for that.
> This is raw code i wrote to get the feature working. With this, there are
> 8 test failures[1] that i didn't had a look yet. I'm going to work on them.
>
> Sending this just in a case of someone from devs got a time to have glance.
>
> Thanks.
>
>
> [1]
>
> Test suite progress: tests succeeded: 292, failed: 8, skipped: 0.
> Tests run: 300, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 7.512
> sec <<< FAILURE!
> testConvert(org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest)
> Time elapsed: 0.003 sec <<< FAILURE!
> java.lang.NullPointerException
> at
> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
> at
> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest.testConvert(SpotInstanceRequestToAWSRunningInstanceTest.java:62)
>
> testLaunchVPCSpotInstanceSubnetId(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
> Time elapsed: 0.591 sec <<< FAILURE!
> java.lang.NullPointerException
> at
> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
> at
> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
> 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.ImmutableSet.copyOf(ImmutableSet.java:317)
> at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
> at
> org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
> at
> org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
> at
> org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
> at $Proxy67.createNodesInGroup(Unknown Source)
> at
> org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchVPCSpotInstanceSubnetId(AWSEC2ComputeServiceExpectTest.java:101)
>
> testLaunchSpotInstanceIAMInstanceProfileName(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
> Time elapsed: 0.092 sec <<< FAILURE!
> java.lang.NullPointerException
> at
> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
> at
> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
> 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.ImmutableSet.copyOf(ImmutableSet.java:317)
> at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
> at
> org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
> at
> org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
> at
> org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
> at $Proxy67.createNodesInGroup(Unknown Source)
> at
> org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchSpotInstanceIAMInstanceProfileName(AWSEC2ComputeServiceExpectTest.java:177)
>
> testLaunchSpotInstanceIAMInstanceProfileArn(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
> Time elapsed: 0.093 sec <<< FAILURE!
> java.lang.NullPointerException
> at
> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
> at
> org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
> 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.ImmutableSet.copyOf(ImmutableSet.java:317)
> at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
> at
> org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
> at
> org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
> at
> org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
> at
> org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
> at $Proxy67.createNodesInGroup(Unknown Source)
> at
> org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchSpotInstanceIAMInstanceProfileArn(AWSEC2ComputeServiceExpectTest.java:140)
>
> testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest)
> Time elapsed: 0.125 sec <<< FAILURE!
> org.jclouds.http.HttpResponseException: command: POST
> https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
> HTTP/1.1 500 no response configured for request; content: [
> the following request is not configured:
> ----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 263
> Action=DescribePlacementGroups&Filter.1.Name
> =strategy&Filter.1.Value.1=cluster&Signature=MtRYJyIL3HAXycDlHImfq/PrG6shRTElKn1//BzBbJo%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
> configured requests:
> ----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 207
>
> Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 263
> Action=DescribePlacementGroups&Filter.1.Name
> =strategy&Filter.1.Value.1=cluster&Signature=SaA7Un1BE3m9jIEKyjXNdQPzFh/QAJSCebvKXiwUEK0%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
> at
> org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
> at
> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
> at
> org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
> at
> com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
> at $Proxy84.describePlacementGroupsInRegionWithFilter(Unknown Source)
> at
> org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest.testFilterWhenResponseIs2xx(PlacementGroupApiExpectTest.java:57)
>
> testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest)
> Time elapsed: 0.126 sec <<< FAILURE!
> org.jclouds.http.HttpResponseException: command: POST
> https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
> HTTP/1.1 500 no response configured for request; content: [
> the following request is not configured:
> ----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 263
> Action=DescribePlacementGroups&Filter.1.Name
> =strategy&Filter.1.Value.1=cluster&Signature=MtRYJyIL3HAXycDlHImfq/PrG6shRTElKn1//BzBbJo%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
> configured requests:
> ----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 207
>
> Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 263
> Action=DescribePlacementGroups&Filter.1.Name
> =strategy&Filter.1.Value.1=cluster&Signature=SaA7Un1BE3m9jIEKyjXNdQPzFh/QAJSCebvKXiwUEK0%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
> at
> org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
> at
> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
> at
> org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
> at
> com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
> at $Proxy84.describePlacementGroupsInRegionWithFilter(Unknown Source)
> at
> org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest.testFilterWhenResponseIs404(PlacementGroupApiExpectTest.java:71)
>
> testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest)
> Time elapsed: 0.086 sec <<< FAILURE!
> org.jclouds.http.HttpResponseException: command: POST
> https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
> HTTP/1.1 500 no response configured for request; content: [
> the following request is not configured:
> ----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 276
> Action=DescribeSpotInstanceRequests&Filter.1.Name
> =instance-id&Filter.1.Value.1=i-ef308e8e&Signature=cBxJ3/T7rSKI9BZWAAI1PQNmEsGOqhcddPGNr%2BIGN6o%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
> configured requests:
> ----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 207
>
> Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 274
> Action=DescribeSpotInstanceRequests&Filter.1.Name
> =instance-id&Filter.1.Value.1=i-ef308e8e&Signature=wQtGpumMCDEzvlldKepCKeEjD9iE7eAyiRBlQztcJMA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
> at
> org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
> at
> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
> at
> org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
> at
> com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
> at $Proxy24.describeSpotInstanceRequestsInRegionWithFilter(Unknown Source)
> at
> org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest.testFilterWhenResponseIs404(SpotInstanceApiExpectTest.java:71)
>
> testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest)
> Time elapsed: 0.089 sec <<< FAILURE!
> org.jclouds.http.HttpResponseException: command: POST
> https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
> HTTP/1.1 500 no response configured for request; content: [
> the following request is not configured:
> ----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 276
> Action=DescribeSpotInstanceRequests&Filter.1.Name
> =instance-id&Filter.1.Value.1=i-ef308e8e&Signature=cBxJ3/T7rSKI9BZWAAI1PQNmEsGOqhcddPGNr%2BIGN6o%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
> configured requests:
> ----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 207
>
> Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
> POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
> Host: ec2.us-east-1.amazonaws.com
> Content-Type: application/x-www-form-urlencoded
> Content-Length: 274
> Action=DescribeSpotInstanceRequests&Filter.1.Name
> =instance-id&Filter.1.Value.1=i-ef308e8e&Signature=wQtGpumMCDEzvlldKepCKeEjD9iE7eAyiRBlQztcJMA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
> at
> org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
> at
> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
> at
> org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
> at
> org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
> at
> org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
> at
> com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
> at $Proxy24.describeSpotInstanceRequestsInRegionWithFilter(Unknown Source)
> at
> org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest.testFilterWhenResponseIs2xx(SpotInstanceApiExpectTest.java:57)
>
>
> Results :
>
> Failed tests:
> testConvert(org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest)
>
> testLaunchVPCSpotInstanceSubnetId(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>
> testLaunchSpotInstanceIAMInstanceProfileName(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>
> testLaunchSpotInstanceIAMInstanceProfileArn(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
>
> testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest):
> command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
> response: HTTP/1.1 500 no response configured for request; content: [(..)
>
> testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest):
> command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
> response: HTTP/1.1 500 no response configured for request; content: [(..)
>
> testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest):
> command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
> response: HTTP/1.1 500 no response configured for request; content: [(..)
>
> testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest):
> command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
> response: HTTP/1.1 500 no response configured for request; content: [(..)
>
> Tests run: 300, Failures: 8, Errors: 0, Skipped: 0
>
>
>
> On Fri, Mar 21, 2014 at 3:31 PM, Andrew Phillips <an...@apache.org>wrote:
>
>> Yes. :) I have built the 1.7.1 code and looking into it. So i can send my
>>> questions regarding to development to dev@ list.
>>>
>>> That is correct list, right?
>>>
>>
>> Sure! I just redirected to user because questions about things like with
>> AWS EC2 features are/are not supported are likely to be of interested to
>> other jclouds users too.
>>
>> When we get into development/pull request territory, the dev@ list is
>> indeed the better place to continue the discussion ;-)
>>
>> ap
>>
>
>
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
--
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: Does jclouds supports "AssociatePublicIpAddress" with VPC ?
Posted by Lahiru Sandaruwan <la...@wso2.com>.
[moving into dev]
Hi devs,
It seems jclouds does not support AWS api version "2013-10-15", which has
"AssociatePublicIpAddress" feature.
I patched(attached diff) jclouds and got this feature working. I had to
upgrade AWS API version for that.
This is raw code i wrote to get the feature working. With this, there are 8
test failures[1] that i didn't had a look yet. I'm going to work on them.
Sending this just in a case of someone from devs got a time to have glance.
Thanks.
[1]
Test suite progress: tests succeeded: 292, failed: 8, skipped: 0.
Tests run: 300, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 7.512 sec
<<< FAILURE!
testConvert(org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest)
Time elapsed: 0.003 sec <<< FAILURE!
java.lang.NullPointerException
at
org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
at
org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest.testConvert(SpotInstanceRequestToAWSRunningInstanceTest.java:62)
testLaunchVPCSpotInstanceSubnetId(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
Time elapsed: 0.591 sec <<< FAILURE!
java.lang.NullPointerException
at
org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
at
org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
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.ImmutableSet.copyOf(ImmutableSet.java:317)
at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
at
org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
at
org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
at
org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
at $Proxy67.createNodesInGroup(Unknown Source)
at
org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchVPCSpotInstanceSubnetId(AWSEC2ComputeServiceExpectTest.java:101)
testLaunchSpotInstanceIAMInstanceProfileName(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
Time elapsed: 0.092 sec <<< FAILURE!
java.lang.NullPointerException
at
org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
at
org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
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.ImmutableSet.copyOf(ImmutableSet.java:317)
at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
at
org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
at
org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
at
org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
at $Proxy67.createNodesInGroup(Unknown Source)
at
org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchSpotInstanceIAMInstanceProfileName(AWSEC2ComputeServiceExpectTest.java:177)
testLaunchSpotInstanceIAMInstanceProfileArn(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
Time elapsed: 0.093 sec <<< FAILURE!
java.lang.NullPointerException
at
org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:58)
at
org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstance.apply(SpotInstanceRequestToAWSRunningInstance.java:31)
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.ImmutableSet.copyOf(ImmutableSet.java:317)
at com.google.common.collect.ImmutableSet.copyOf(ImmutableSet.java:300)
at
org.jclouds.aws.ec2.compute.strategy.AWSEC2CreateNodesInGroupThenAddToSet.createNodesInRegionAndZone(AWSEC2CreateNodesInGroupThenAddToSet.java:106)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:218)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:154)
at
org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:135)
at
org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:215)
at
org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:37)
at $Proxy67.createNodesInGroup(Unknown Source)
at
org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest.testLaunchSpotInstanceIAMInstanceProfileArn(AWSEC2ComputeServiceExpectTest.java:140)
testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest)
Time elapsed: 0.125 sec <<< FAILURE!
org.jclouds.http.HttpResponseException: command: POST
https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
HTTP/1.1 500 no response configured for request; content: [
the following request is not configured:
----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 263
Action=DescribePlacementGroups&Filter.1.Name
=strategy&Filter.1.Value.1=cluster&Signature=MtRYJyIL3HAXycDlHImfq/PrG6shRTElKn1//BzBbJo%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
configured requests:
----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 207
Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 263
Action=DescribePlacementGroups&Filter.1.Name
=strategy&Filter.1.Value.1=cluster&Signature=SaA7Un1BE3m9jIEKyjXNdQPzFh/QAJSCebvKXiwUEK0%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
at
org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
at
org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
at
org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
at
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
at
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
at
org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
at
com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
at $Proxy84.describePlacementGroupsInRegionWithFilter(Unknown Source)
at
org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest.testFilterWhenResponseIs2xx(PlacementGroupApiExpectTest.java:57)
testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest)
Time elapsed: 0.126 sec <<< FAILURE!
org.jclouds.http.HttpResponseException: command: POST
https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
HTTP/1.1 500 no response configured for request; content: [
the following request is not configured:
----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 263
Action=DescribePlacementGroups&Filter.1.Name
=strategy&Filter.1.Value.1=cluster&Signature=MtRYJyIL3HAXycDlHImfq/PrG6shRTElKn1//BzBbJo%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
configured requests:
----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 207
Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 263
Action=DescribePlacementGroups&Filter.1.Name
=strategy&Filter.1.Value.1=cluster&Signature=SaA7Un1BE3m9jIEKyjXNdQPzFh/QAJSCebvKXiwUEK0%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
at
org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
at
org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
at
org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
at
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
at
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
at
org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
at
com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
at $Proxy84.describePlacementGroupsInRegionWithFilter(Unknown Source)
at
org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest.testFilterWhenResponseIs404(PlacementGroupApiExpectTest.java:71)
testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest)
Time elapsed: 0.086 sec <<< FAILURE!
org.jclouds.http.HttpResponseException: command: POST
https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
HTTP/1.1 500 no response configured for request; content: [
the following request is not configured:
----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 276
Action=DescribeSpotInstanceRequests&Filter.1.Name
=instance-id&Filter.1.Value.1=i-ef308e8e&Signature=cBxJ3/T7rSKI9BZWAAI1PQNmEsGOqhcddPGNr%2BIGN6o%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
configured requests:
----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 207
Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 274
Action=DescribeSpotInstanceRequests&Filter.1.Name
=instance-id&Filter.1.Value.1=i-ef308e8e&Signature=wQtGpumMCDEzvlldKepCKeEjD9iE7eAyiRBlQztcJMA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
at
org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
at
org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
at
org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
at
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
at
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
at
org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
at
com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
at $Proxy24.describeSpotInstanceRequestsInRegionWithFilter(Unknown Source)
at
org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest.testFilterWhenResponseIs404(SpotInstanceApiExpectTest.java:71)
testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest)
Time elapsed: 0.089 sec <<< FAILURE!
org.jclouds.http.HttpResponseException: command: POST
https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with response:
HTTP/1.1 500 no response configured for request; content: [
the following request is not configured:
----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 276
Action=DescribeSpotInstanceRequests&Filter.1.Name
=instance-id&Filter.1.Value.1=i-ef308e8e&Signature=cBxJ3/T7rSKI9BZWAAI1PQNmEsGOqhcddPGNr%2BIGN6o%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
configured requests:
----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 207
Action=DescribeRegions&Signature=edOtRCo/Z1Mcfd/jQEQvInUnwn7OfpEvgSvZShFxlIA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity----------------------------------------
POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
Host: ec2.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 274
Action=DescribeSpotInstanceRequests&Filter.1.Name
=instance-id&Filter.1.Value.1=i-ef308e8e&Signature=wQtGpumMCDEzvlldKepCKeEjD9iE7eAyiRBlQztcJMA%3D&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2012-04-16T15%3A54%3A08.897Z&Version=2013-10-15&AWSAccessKeyId=identity]
at
org.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:79)
at
org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:69)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.shouldContinue(BaseHttpCommandExecutorService.java:180)
at
org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:150)
at
org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93)
at
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76)
at
org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47)
at
org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
at
com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79)
at $Proxy24.describeSpotInstanceRequestsInRegionWithFilter(Unknown Source)
at
org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest.testFilterWhenResponseIs2xx(SpotInstanceApiExpectTest.java:57)
Results :
Failed tests:
testConvert(org.jclouds.aws.ec2.functions.SpotInstanceRequestToAWSRunningInstanceTest)
testLaunchVPCSpotInstanceSubnetId(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
testLaunchSpotInstanceIAMInstanceProfileName(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
testLaunchSpotInstanceIAMInstanceProfileArn(org.jclouds.aws.ec2.compute.AWSEC2ComputeServiceExpectTest)
testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest):
command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
response: HTTP/1.1 500 no response configured for request; content: [(..)
testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.PlacementGroupApiExpectTest):
command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
response: HTTP/1.1 500 no response configured for request; content: [(..)
testFilterWhenResponseIs404(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest):
command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
response: HTTP/1.1 500 no response configured for request; content: [(..)
testFilterWhenResponseIs2xx(org.jclouds.aws.ec2.features.SpotInstanceApiExpectTest):
command: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 failed with
response: HTTP/1.1 500 no response configured for request; content: [(..)
Tests run: 300, Failures: 8, Errors: 0, Skipped: 0
On Fri, Mar 21, 2014 at 3:31 PM, Andrew Phillips <an...@apache.org> wrote:
> Yes. :) I have built the 1.7.1 code and looking into it. So i can send my
>> questions regarding to development to dev@ list.
>>
>> That is correct list, right?
>>
>
> Sure! I just redirected to user because questions about things like with
> AWS EC2 features are/are not supported are likely to be of interested to
> other jclouds users too.
>
> When we get into development/pull request territory, the dev@ list is
> indeed the better place to continue the discussion ;-)
>
> ap
>
--
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: Does jclouds supports "AssociatePublicIpAddress" with VPC ?
Posted by Andrew Phillips <an...@apache.org>.
> Yes. :) I have built the 1.7.1 code and looking into it. So i can send my
> questions regarding to development to dev@ list.
>
> That is correct list, right?
Sure! I just redirected to user because questions about things like
with AWS EC2 features are/are not supported are likely to be of
interested to other jclouds users too.
When we get into development/pull request territory, the dev@ list is
indeed the better place to continue the discussion ;-)
ap
Re: Does jclouds supports "AssociatePublicIpAddress" with VPC ?
Posted by Lahiru Sandaruwan <la...@wso2.com>.
Thanks Andrew. After sending the mail only i found the user list, sorry.
On Fri, Mar 21, 2014 at 12:51 PM, Andrew Phillips <an...@apache.org>wrote:
> Redirecting to user@...
>
> If you are referring to the "NetworkInterface.n.AssociatePublicIpAddress"
> option in the RunInstances API, I can't find any indication that it is
> supported, no, I'm afraid.
>
> Hopefully one of the EC2 experts can prove me wrong - otherwise, you might
> want to create an issue for this? If you'd be interested in creating a pull
> request, that would obviously be even better ;-)
>
Yes. :) I have built the 1.7.1 code and looking into it. So i can send my
questions regarding to development to dev@ list.
That is correct list, right?
Thanks.
>
> Regards
>
> ap
>
>
> Quoting Lahiru Sandaruwan <la...@wso2.com>:
>
> Hi,
>>
>> I am trying to allocate a public ip when we spin up instances in AWS VPC.
>> So $subject..
>> [1] is the AWS api. I see that jclouds Classes at [2], but not public ip
>> support.
>>
>> Thanks.
>>
>> [1]
>> http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-
>> RunInstances.html
>> [2] https://github.com/jclouds/jclouds/search?q=SubnetId&type=Code
>> --
>> --
>> Lahiru Sandaruwan
>> Software Engineer,
>> Platform Technologies,
>> WSO2 Inc., http://wso2.com
>> lean.enterprise.middleware
>>
>> email: lahirus@wso2.com cell: (+94) 773 325 954
>> blog: http://lahiruwrites.blogspot.com/
>> twitter: http://twitter.com/lahirus
>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>>
>>
>
>
> --
> Andrew Phillips
> Apache jclouds
>
--
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware
email: lahirus@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
Re: Does jclouds supports "AssociatePublicIpAddress" with VPC ?
Posted by Andrew Phillips <an...@apache.org>.
Redirecting to user@...
If you are referring to the
"NetworkInterface.n.AssociatePublicIpAddress" option in the
RunInstances API, I can't find any indication that it is supported,
no, I'm afraid.
Hopefully one of the EC2 experts can prove me wrong - otherwise, you
might want to create an issue for this? If you'd be interested in
creating a pull request, that would obviously be even better ;-)
Regards
ap
Quoting Lahiru Sandaruwan <la...@wso2.com>:
> Hi,
>
> I am trying to allocate a public ip when we spin up instances in AWS VPC.
> So $subject..
> [1] is the AWS api. I see that jclouds Classes at [2], but not public ip
> support.
>
> Thanks.
>
> [1]
> http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-RunInstances.html
> [2] https://github.com/jclouds/jclouds/search?q=SubnetId&type=Code
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahirus@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
--
Andrew Phillips
Apache jclouds