Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1301

[Azure ARM] OsProfile.windowsConfiguration.winRM.listeners must be a list

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: jclouds-compute

      Description

      The property OsProfile.windowsConfiguration.winRM.listeners should be a list of maps.

      An example template: https://github.com/Azure/azure-quickstart-templates/blob/master/201-vm-winrm-keyvault-windows/azuredeploy.json#L196

      Marking as Critical because this fails any attempt to provision as long as there's an existing Windows machine configured with winrm listeners (not created through jclouds).

      Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 34 column 29 path $.value[0].properties.osProfile.windowsConfiguration.winRM.listeners
              at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:388)
              at org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:316)
              at org.jclouds.json.internal.NullFilteringTypeAdapterFactories$MapTypeAdapter.read(NullFilteringTypeAdapterFactories.java:286)
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:272)[101:jclouds-core:2
      .1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java
      :184)[101:jclouds-core:2.1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:272)[101:jclouds-core:2
      .1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java
      :184)[101:jclouds-core:2.1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:272)[101:jclouds-core:2
      .1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java
      :184)[101:jclouds-core:2.1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:272)[101:jclouds-core:2
      .1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java
      :184)[101:jclouds-core:2.1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:272)[101:jclouds-core:2
      .1.0.SNAPSHOT]
              at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java
      :184)[101:jclouds-core:2.1.0.SNAPSHOT]
              at org.jclouds.json.internal.NullFilteringTypeAdapterFactories$IterableTypeAdapter.readAndBuild(NullFilteringTypeAdapterFactories.java:95)
              at org.jclouds.json.internal.NullFilteringTypeAdapterFactories$IterableTypeAdapter.read(NullFilteringTypeAdapterFactories.java:83)
              at org.jclouds.json.internal.NullFilteringTypeAdapterFactories$IterableTypeAdapter.read(NullFilteringTypeAdapterFactories.java:62)
              at com.google.gson.Gson.fromJson(Gson.java:861)
              at org.jclouds.http.functions.ParseFirstJsonValueNamed.apply(ParseFirstJsonValueNamed.java:80)
              at org.jclouds.http.functions.ParseFirstJsonValueNamed.apply(ParseFirstJsonValueNamed.java:44)
              at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90)
              at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73)
              at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
              at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
              at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
              at com.sun.proxy.$Proxy163.list(Unknown Source)
              at org.jclouds.azurecompute.arm.compute.AzureComputeServiceAdapter.listNodes(AzureComputeServiceAdapter.java:355)
              at org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.listDetailsOnNodesMatching(AdaptingComputeServiceStrategies.java:122)
              at org.jclouds.compute.strategy.impl.AdaptingComputeServiceStrategies.listNodes(AdaptingComputeServiceStrategies.java:112)
              at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.getNextNames(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:194)
              at org.jclouds.compute.strategy.impl.CreateNodesWithGroupEncodedIntoNameThenAddToSet.execute(CreateNodesWithGroupEncodedIntoNameThenAddToSet.java:123)
              at org.jclouds.azurecompute.arm.compute.strategy.CreateResourcesThenCreateNodes.execute(CreateResourcesThenCreateNodes.java:130)
              at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:217)
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              svet Svetoslav Neykov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: