You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Rajani Palavala (Jira)" <ji...@apache.org> on 2021/09/02 13:27:00 UTC

[jira] [Comment Edited] (JCLOUDS-1584) Deployment API fails when ARM Template deploys for creating Azure VM

    [ https://issues.apache.org/jira/browse/JCLOUDS-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17406676#comment-17406676 ] 

Rajani Palavala edited comment on JCLOUDS-1584 at 9/2/21, 1:26 PM:
-------------------------------------------------------------------

[~gaul]

I have created pull request  as suggested and the changes are available below 

[https://github.com/apache/jclouds/pull/121/commits/d8e8c2e1cbada67058592ee64c4046eb81f55634https://github.com/Rajani-cloud/jclouds|https://github.com/Rajani-cloud/jclouds]

let me know your comments on the same.

 

Regards,

Rajani P


was (Author: rajanip):
[~gaul]

I have created pull request and the changes are available below 

[https://github.com/Rajani-cloud/jclouds]

let me know your comments on the same.

 

Regards,

Rajani P

> Deployment API fails when ARM Template deploys for creating Azure VM
> --------------------------------------------------------------------
>
>                 Key: JCLOUDS-1584
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1584
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 2.3.0
>            Reporter: Rajani Palavala
>            Priority: Major
>              Labels: azurecompute-arm
>         Attachments: Deployment.java, Value.java
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Hello,
> we are using jclouds for azure compute operations. while using deployment API for creating virtual machine using ARM Template get success but fails to get the deployment details.
>  
> while investigating we found two issues
> *1.* java.lang.NullPointerException: Null valuejava.lang.NullPointerException: Null value at org.jclouds.azurecompute.arm.domain.AutoValue_Value.<init>(AutoValue_Value.java:20) at org.jclouds.azurecompute.arm.domain.Value.create(Value.java:39)
> The ARM template have secure information (password) which Azure is not returning the value when we do GET on the deployment, which is causing null pointer @Value.java 
> *Solution:* We added @Nullable to value() which solved our issue.
>  
> *2.* com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was BEGIN_ARRAY at line 1 column 472 path $.properties.parameters..value
> at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:193)
>  
> The ARM Template have parameters which is type Array is the reason.
>  
> *Solution:* We have modified parameter map value to JSONBALL to accept all types of values.
>  
> we would like to have patch including the solutions, please review and accept the request.
> Thanks.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)