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

Azure compute provider doesn't remove data blobs for disks

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 2.0.0
    • Component/s: jclouds-labs
    • Labels:

      Description

      The Azure provider leaves data blobs for VM disks in the storage account after the Node is destroyed.

      It results in increasing storage costs for the user subscription.

      The problem is IMO in DiskApi.delete() method, which should have comp=media query parameter to remove also the blob.

      API documentation: https://msdn.microsoft.com/en-us/library/azure/jj157200.aspx

        Activity

        Hide
        nacx Ignasi Barrera added a comment -

        Could use this to track the issue that now the storage account is not cleaned up too?, It is used by the VMs and the images created from VMs usign the ImageExtension. It has to eb cleaned once the last VM or last image is deleted.

        cc: Rita Zhang

        Show
        nacx Ignasi Barrera added a comment - Could use this to track the issue that now the storage account is not cleaned up too?, It is used by the VMs and the images created from VMs usign the ImageExtension. It has to eb cleaned once the last VM or last image is deleted. cc: Rita Zhang
        Hide
        nacx Ignasi Barrera added a comment -

        Oh, apologies, I thought this was referred to the Azure ARM provider

        Show
        nacx Ignasi Barrera added a comment - Oh, apologies, I thought this was referred to the Azure ARM provider
        Show
        kwart Josef Cacek added a comment - PR sent: https://github.com/jclouds/jclouds-labs/pull/316
        Hide
        kwart Josef Cacek added a comment -

        The fix works in my usecases - verified with Azure CLI (in asm mode):

        azure storage blob list --container vhds
        
        Show
        kwart Josef Cacek added a comment - The fix works in my usecases - verified with Azure CLI (in asm mode): azure storage blob list --container vhds
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit d31a85af1fa1b7de3676946ce9eaf29ad23e3b1f in jclouds-labs's branch refs/heads/master from Josef Cacek
        [ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=d31a85a ]

        JCLOUDS-1170 The azurecompute provider should remove disk blobs

        Show
        jira-bot ASF subversion and git services added a comment - Commit d31a85af1fa1b7de3676946ce9eaf29ad23e3b1f in jclouds-labs's branch refs/heads/master from Josef Cacek [ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=d31a85a ] JCLOUDS-1170 The azurecompute provider should remove disk blobs
        Hide
        kwart Josef Cacek added a comment -

        Just to make the picture complete, I've put account storage clean-up steps (using Azure CLI) into this blog entry:

        http://javlog.cacek.cz/2016/09/clean-up-blobs-in-azure-storage-account.html

        Show
        kwart Josef Cacek added a comment - Just to make the picture complete, I've put account storage clean-up steps (using Azure CLI) into this blog entry: http://javlog.cacek.cz/2016/09/clean-up-blobs-in-azure-storage-account.html

          People

          • Assignee:
            Unassigned
            Reporter:
            kwart Josef Cacek
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development