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

Can't configure the bootstrap script with a custom SSL verify mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.1
    • 2.0.0
    • jclouds-chef
    • None

    Description

      When setting a custom SSL verify mode in the BootstrapConfig, Chef stores its value in a data bag but is unable to deserialize it later when building teh bootstrap script.

      java.lang.IllegalArgumentException: No enum constant org.jclouds.chef.domain.BootstrapConfig.SSLVerifyMode.:verify_none
      	at java.lang.Enum.valueOf(Enum.java:238) ~[na:1.8.0_25]
      	at org.jclouds.json.internal.EnumTypeAdapterThatReturnsFromValue.deserialize(EnumTypeAdapterThatReturnsFromValue.java:41) ~[jclouds-core-1.9.1.jar:1.9.1]
      	at org.jclouds.json.internal.EnumTypeAdapterThatReturnsFromValue.deserialize(EnumTypeAdapterThatReturnsFromValue.java:32) ~[jclouds-core-1.9.1.jar:1.9.1]
      	at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[gson-2.3.jar:na]
      	at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$ParameterReader.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:272) ~[jclouds-core-1.9.1.jar:1.9.1]
      	at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:184) ~[jclouds-core-1.9.1.jar:1.9.1]
      	at com.google.gson.Gson.fromJson(Gson.java:805) ~[gson-2.3.jar:na]
      	at com.google.gson.Gson.fromJson(Gson.java:770) ~[gson-2.3.jar:na]
      	at com.google.gson.Gson.fromJson(Gson.java:719) ~[gson-2.3.jar:na]
      	at com.google.gson.Gson.fromJson(Gson.java:691) ~[gson-2.3.jar:na]
      	at org.jclouds.json.internal.GsonWrapper.fromJson(GsonWrapper.java:47) ~[jclouds-core-1.9.1.jar:1.9.1]
      	at org.jclouds.chef.functions.BootstrapConfigForGroup.apply(BootstrapConfigForGroup.java:55) ~[chef-1.9.1.jar:1.9.1]
      	at org.jclouds.chef.functions.BootstrapConfigForGroup.apply(BootstrapConfigForGroup.java:36) ~[chef-1.9.1.jar:1.9.1]
      	at com.google.common.cache.CacheLoader$FunctionToCacheLoader.load(CacheLoader.java:151) ~[guava-17.0.jar:na]
      	at org.jclouds.chef.functions.GroupToBootScript.apply(GroupToBootScript.java:78) ~[chef-1.9.1.jar:1.9.1]
      	at org.jclouds.chef.internal.BaseChefService.createBootstrapScriptForGroup(BaseChefService.java:160) ~[chef-1.9.1.jar:1.9.1]
      

      Attachments

        Activity

          People

            nacx Ignasi Barrera
            nacx Ignasi Barrera
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: