[JIRA] (JENKINS-50862) Failure to provision GCE nodes with new Images which no longer contain the deprecated key "archiveSizeBytes"
Title: Message Title Matt Simons updated an issue Jenkins / JENKINS-50862 Failure to provision GCE nodes with new Images which no longer contain the deprecated key "archiveSizeBytes" Change By: Matt Simons When trying to create any new nodes, which use an image that does not contain the json key archiveSizeBytes in its metadata the following exception gets thrown and the node is not created. I believe this key has been deprecated by GCE .e.g. {{ \{}} \ { \ { "creationTimestamp": "2018-04-17T05:56:22.471-07:00",}} \ { \ { "description": "",}} \ { \ { "diskSizeGb": "100",}} \ { \ { "id": "2363603295000875034",}} \ { \ { "kind": "compute#image",}} \ { \ { "labelFingerprint": "42WmSpB8rSM=",}} \ { \ { "licenseCodes": [}} \ { \ { "1000204"}} \ { \ { ],}} \ { \ { "licenses": [}} \ { \ { "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-8-jessie"}} \ { \ { ],}} \ { \ { "name": "debian-8-jessie-v20171020-rpi-cross-compile-qt-5-9-1",}} \ { \ { "selfLink": "https://www.googleapis.com/compute/v1/projects/pt-builds/global/images/debian-8-jessie-v20171020-rpi-cross-compile-qt-5-9-1",}} \ { \ { "sourceImage": "https://www.googleapis.com/compute/v1/projects/pt-builds/global/images/debian-8-jessie-v20171020-java8-100gb-1",}} \ { \ { "sourceImageId": "7885706136937541931",}} \ { \ { "sourceType": "RAW",}} \ { \ { "status": "READY"}} \ { \ { }}} {{java.lang.NullPointerException: Null archiveSizeBytes at org.jclouds.googlecomputeengine.domain.AutoValue_Image.(AutoValue_Image.java:67) at org.jclouds.googlecomputeengine.domain.Image.create(Image.java:100) at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at shaded.com.google.common.reflect.Invokable$MethodInvokable.invokeInternal(Invokable.java:197) at shaded.com.google.common.reflect.Invokable.invoke(Invokable.java:102) at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.newInstance(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:224) at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:204) at org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.readItems(ListPageAdapterFactory.java:73) at org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.read(ListPageAdapterFactory.java:56) at org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.read(ListPageAdapterFactory.java:36) at com.google.gson.Gson.fromJson(Gson.java:861) at com.google.gson.Gson.fromJson(Gson.java:826) at org.jclouds.json.internal.GsonWrapper.fromJson(GsonWrapper.java:55) at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:82) at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:76) at
[JIRA] (JENKINS-50862) Failure to provision GCE nodes with new Images which no longer contain the deprecated key "archiveSizeBytes"
Title: Message Title Matt Simons updated an issue Jenkins / JENKINS-50862 Failure to provision GCE nodes with new Images which no longer contain the deprecated key "archiveSizeBytes" Change By: Matt Simons When trying to create any new nodes, which use an image that does not contain the json key archiveSizeBytes in its metadata the following exception gets thrown and the node is not created. I believe this key has been deprecated.e.g. {{ \{}}{{ "creationTimestamp": "2018-04-17T05:56:22.471-07:00",}}{{ "description": "",}}{{ "diskSizeGb": "100",}}{{ "id": "2363603295000875034",}}{{ "kind": "compute#image",}}{{ "labelFingerprint": "42WmSpB8rSM=",}}{{ "licenseCodes": [}}{{ "1000204"}}{{ ],}}{{ "licenses": [}}{{ "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-8-jessie"}}{{ ],}}{{ "name": "debian-8-jessie-v20171020-rpi-cross-compile-qt-5-9-1",}}{{ "selfLink": "https://www.googleapis.com/compute/v1/projects/pt-builds/global/images/debian-8-jessie-v20171020-rpi-cross-compile-qt-5-9-1",}}{{ "sourceImage": "https://www.googleapis.com/compute/v1/projects/pt-builds/global/images/debian-8-jessie-v20171020-java8-100gb-1",}}{{ "sourceImageId": "7885706136937541931",}}{{ "sourceType": "RAW",}}{{ "status": "READY"}}{{ } , }} {{ "selfLink": "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-8-jessie-v20180401",}} {{ "sourceType": "RAW",}}{{ "status": "READY"}}{{ }}} {{ }}{{ java.lang.NullPointerException: Null archiveSizeBytes at org.jclouds.googlecomputeengine.domain.AutoValue_Image.(AutoValue_Image.java:67) at org.jclouds.googlecomputeengine.domain.Image.create(Image.java:100) at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at shaded.com.google.common.reflect.Invokable$MethodInvokable.invokeInternal(Invokable.java:197) at shaded.com.google.common.reflect.Invokable.invoke(Invokable.java:102) at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.newInstance(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:224) at org.jclouds.json.internal.DeserializationConstructorAndReflectiveTypeAdapterFactory$DeserializeIntoParameterizedConstructor.read(DeserializationConstructorAndReflectiveTypeAdapterFactory.java:204) at org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.readItems(ListPageAdapterFactory.java:73) at org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.read(ListPageAdapterFactory.java:56) at org.jclouds.googlecloud.config.ListPageAdapterFactory$ListPageAdapter.read(ListPageAdapterFactory.java:36) at com.google.gson.Gson.fromJson(Gson.java:861) at com.google.gson.Gson.fromJson(Gson.java:826) at org.jclouds.json.internal.GsonWrapper.fromJson(GsonWrapper.java:55) at org.jclouds.http.functions.ParseJson.apply(ParseJson.java:82) at
[JIRA] (JENKINS-50862) Failure to provision GCE nodes with new Images which no longer contain the deprecated key "archiveSizeBytes"
Title: Message Title Matt Simons created an issue Jenkins / JENKINS-50862 Failure to provision GCE nodes with new Images which no longer contain the deprecated key "archiveSizeBytes" Issue Type: Bug Assignee: Fritz Elfert Components: jclouds-plugin Created: 2018-04-18 10:49 Environment: Jenkins version 2.117 jclouds version 2.14 Labels: jclouds Priority: Blocker Reporter: Matt Simons When trying to create any new nodes, which use an image that does not contain the json key archiveSizeBytes in its metadata the following exception gets thrown and the node is not created. I believe this key has been deprecated. e.g. {{ {}} {{ "creationTimestamp": "2018-04-17T05:56:22.471-07:00",}} {{ "description": "",}} {{ "diskSizeGb": "100",}} {{ "id": "2363603295000875034",}} {{ "kind": "compute#image",}} {{ "labelFingerprint": "42WmSpB8rSM=",}} {{ "licenseCodes": [}} {{ "1000204"}} {{ ],}} {{ "licenses": [}} {{ "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/licenses/debian-8-jessie"}} {{ ],}} {{ "name": "debian-8-jessie-v20171020-rpi-cross-compile-qt-5-9-1",}} {{ "selfLink": "https://www.googleapis.com/compute/v1/projects/pt-builds/global/images/debian-8-jessie-v20171020-rpi-cross-compile-qt-5-9-1",}} {{ "sourceImage": "https://www.googleapis.com/compute/v1/projects/pt-builds/global/images/debian-8-jessie-v20171020-java8-100gb-1",}} {{ "sourceImageId": "7885706136937541931",}} {{ "sourceType": "RAW",}} {{ "status": "READY"}} {{ },}} {{ "selfLink": "https://www.googleapis.com/compute/v1/projects/debian-cloud/global/images/debian-8-jessie-v20180401",}} {{