[
https://issues.apache.org/jira/browse/CLOUDSTACK-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695138#comment-13695138
]
ASF subversion and git services commented on CLOUDSTACK-3218:
-------------------------------------------------------------
Commit f88590f6dbbadd72f7de234da63ddd85527e11a2 in branch refs/heads/master
from [~prachidamle]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=f88590f ]
CLOUDSTACK-3218: AWSAPI - For runInstances, awsapi need not send networkId
information in case of advance zone
Changes:
awsapi will not pass networkId in case of Advance Zone and let CS identify
which network to deploy VM in. The same case applies to allocateAddress API too.
> AWSAPI - For runInstances, awsapi need not send networkId information in case
> of advance zone
> ---------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3218
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3218
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: AWSAPI
> Reporter: Prachi Damle
> Assignee: Prachi Damle
> Fix For: 4.2.0
>
>
> Set up - adv zone.
> when I tried ec2-run-instances, it failed with the following error as
> listNetworks in case of adv zone is returning null.
> [root@rhel64 bin]# ./ec2-run-instances 70311721-7919-4cf1-a486-3b42943f6753
> -n 1 --availability-zone zone1 --connection-timeout 120 --request-timeout 120
> Server.InternalError: The JsonDeserializer StringTypeAdapter failed to
> deserialize json object [] given the type class java.lang.String
> 2012-10-10 15:30:59,484 DEBUG [cloud.stack.CloudStackClient]
> (catalina-exec-int-6:null) Unable to find responseObjName:[network].
> Returning null! Exception: The JsonDeserializer StringTypeAdapter failed to
> deserialize json object [] given the type class java.lang.String
> 2012-10-10 15:30:59,585 ERROR [core.ec2.EC2Engine] (catalina-exec-int-6:null)
> EC2 RunInstances -
> com.google.gson.JsonParseException: The JsonDeserializer StringTypeAdapter
> failed to deserialize json object [] given the type class java.lang.String
> at
> com.google.gson.JsonDeserializerExceptionWrapper.deserialize(JsonDeserializerExceptionWrapper.java:64)
> at
> com.google.gson.JsonDeserializationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:92)
> at
> com.google.gson.JsonObjectDeserializationVisitor.visitFieldUsingCustomHandler(JsonObjectDeserializationVisitor.java:117)
> at
> com.google.gson.ReflectingFieldNavigator.visitFieldsReflectively(ReflectingFieldNavigator.java:63)
> at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:120)
> at
> com.google.gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationContextDefault.java:76)
> at
> com.google.gson.JsonDeserializationContextDefault.deserialize(JsonDeserializationContextDefault.java:54)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira