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

Plugin should not recreate storage accounts if "Use Existing" is selected

    Details

    • Similar Issues:

      Description

      Even if "use existing" is selected for storage accounts, the plugin will still attempt to create the storage account for each deployment.  In large installations, this can lead to failed deployments.

        Attachments

          Activity

          Hide
          tlopespt Tiago Lopes added a comment - - edited

          In our case this is resulting in VM provisioning fail within 10 secs, with:

          com.microsoft.azure.vmagent.exceptions.AzureCloudException: Failed to create storage account with account name imagesstorage, location northeurope, resourceGroupName jenkins-auto-agents: The property 'kind' was specified in the input, but it cannot be updated.

          Azure imagesstorage activity logs states:

          • Error code
            AccountPropertyCannotBeUpdated
             

          Meanwhile, to be able to test the plugin, I've recompiled the sources with the following added condition:

          if (template.getStorageAccountNameReferenceType().equalsIgnoreCase("new")) {
                createStorageAccount(azureClient, storageAccountType, storageAccountName, locationName, resourceGroupName);

          }

           

          Show
          tlopespt Tiago Lopes added a comment - - edited In our case this is resulting in VM provisioning fail within 10 secs, with: com.microsoft.azure.vmagent.exceptions.AzureCloudException: Failed to create storage account with account name imagesstorage, location northeurope, resourceGroupName jenkins-auto-agents: The property 'kind' was specified in the input, but it cannot be updated. Azure imagesstorage activity logs states: Error code AccountPropertyCannotBeUpdated   Meanwhile, to be able to test the plugin, I've recompiled the sources with the following added condition: if (template.getStorageAccountNameReferenceType().equalsIgnoreCase( "new" )) {       createStorageAccount(azureClient , storageAccountType , storageAccountName , locationName , resourceGroupName); }  
          Hide
          azure_devops Azure DevOps added a comment -

          Fixed in 0.7.0

          Show
          azure_devops Azure DevOps added a comment - Fixed in 0.7.0

            People

            • Assignee:
              zackliu Chenyang Liu
              Reporter:
              mmitche Matthew Mitchell
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: