Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54899

templates using existing storage account stop working

    Details

    • Similar Issues:

      Description

      Starting Nov 27,2018,

       

      All of our VM templates on mulitple Jenkins servers stop working.

      We use custom images, so we always use existing storage account. Now when I tried to verify those templates, I got error :

       

      The following errors occurred while validating the template.
      1: The storage account name already exists. Use a different name.

       

      But we need to use existing storage account because our customized vhd files are there.

       

      Found some logs :

      Nov 28, 2018 1:01:56 AM com.microsoft.azure.vmagent.AzureVMAgentTemplate$DescriptorImpl doFillExistingStorageAccountNameItems
      INFO: Cannot list storage account: {0}
      com.microsoft.azure.CloudException: Status code 400, {"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2016-01-01' is invalid. The supported versions are '2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'."}}: The api-version '2016-01-01' is invalid. The supported versions are '2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at com.microsoft.rest.ServiceResponseBuilder.build(ServiceResponseBuilder.java:122)
              at com.microsoft.azure.AzureResponseBuilder.build(AzureResponseBuilder.java:56)
              at com.microsoft.azure.management.storage.implementation.StorageAccountsInner.listByResourceGroupDelegate(StorageAccountsInner.java:787)
              at com.microsoft.azure.management.storage.implementation.StorageAccountsInner.access$600(StorageAccountsInner.java:46)
              at com.microsoft.azure.management.storage.implementation.StorageAccountsInner$26.call(StorageAccountsInner.java:773)
              at com.microsoft.azure.management.storage.implementation.StorageAccountsInner$26.call(StorageAccountsInner.java:769)
              at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:69)
              at retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$RequestArbiter.request(RxJavaCallAdapterFactory.java:173)
              at rx.Subscriber.setProducer(Subscriber.java:211)
              at rx.internal.operators.OnSubscribeMap$MapSubscriber.setProducer(OnSubscribeMap.java:102)
              at retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$CallOnSubscribe.call(RxJavaCallAdapterFactory.java:152)
              at retrofit2.adapter.rxjava.RxJavaCallAdapterFactory$CallOnSubscribe.call(RxJavaCallAdapterFactory.java:138)
              at rx.Observable.unsafeSubscribe(Observable.java:10142)
              at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:48)
              at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:33)
              at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
              at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
              at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48)
              at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
              at rx.Observable.subscribe(Observable.java:10238)
              at rx.Observable.subscribe(Observable.java:10205)
              at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:444)
              at rx.observables.BlockingObservable.single(BlockingObservable.java:341)
              at com.microsoft.azure.management.storage.implementation.StorageAccountsInner.listByResourceGroup(StorageAccountsInner.java:714)
              at com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.TopLevelModifiableResourcesImpl.listByResourceGroup(TopLevelModifiableResourcesImpl.java:123)
              at com.microsoft.azure.vmagent.AzureVMAgentTemplate$DescriptorImpl.doFillExistingStorageAccountNameItems(AzureVMAgentTemplate.java:1021)
              at  

       

       

      Looks like the plugin is using apiVersion 2016-01-01 and it's not supported by Azure anymore?

       

       

       

       

       

        Attachments

          Issue Links

            Activity

            Hide
            jackchentoronto Jack Chen added a comment -

            I reproduced this problem on a fresh installed Jenkins 2.138.3 with plugin version 0.7.4.

            Show
            jackchentoronto Jack Chen added a comment - I reproduced this problem on a fresh installed Jenkins 2.138.3 with plugin version 0.7.4.
            Hide
            jieshe Jie Shen added a comment -

            Duplicate with JENKINS-54885 .

            Show
            jieshe Jie Shen added a comment - Duplicate with JENKINS-54885  .

              People

              • Assignee:
                jieshe Jie Shen
                Reporter:
                jackchentoronto Jack Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: