Skip to content

Delete of uploaded volume fails #5121

@DaanHoogland

Description

@DaanHoogland

cleaning up remnance of component test runs, some resources can't be cleaned. Inthis case uploaded volumes.

As it was a full component test run, I don't know which tests left these behind but it were 6 Volumes in total.

only workaround AFAICS, is to edit in the DB.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

CLOUDSTACK VERSION
4.16/main
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
STEPS TO REPRODUCE
(localcloud) SBCM5> > list volumes listall=true id=d49c18c2-bdc1-4592-bfd1-d7cc0477bd17 
{
  "count": 1,
  "volume": [
    {
      "account": "test-a-TestPrimaryResourceLimitsVolume-test_attach_volume_exceeding_primary_limits-KL4DYO",
      "created": "2021-06-04T15:22:22+0000",
      "destroyed": false,
      "diskofferingdisplaytext": "Custom Disk",
      "diskofferingid": "68470172-5e0c-4f39-9cdd-793e51c9c1b3",
      "diskofferingname": "Custom",
      "displayvolume": true,
      "domain": "domain-W2XAX7",
      "domainid": "56038ea7-bd45-4da7-8a54-bdce352255a0",
      "hypervisor": "Hyperv",
      "id": "d49c18c2-bdc1-4592-bfd1-d7cc0477bd17",
      "isextractable": true,
      "name": "UploadVol",
      "provisioningtype": "thin",
      "quiescevm": false,
      "size": 5368709120,
      "state": "Uploaded",
      "storagetype": "shared",
      "supportsstoragesnapshot": false,
      "tags": [],
      "type": "DATADISK",
      "zoneid": "67198992-a643-41bd-aeaf-26286c23bd4c",
      "zonename": "ref-trl-1030-k-M7-daan-hoogland"
    }
  ]
}
(localcloud) SBCM5> > delete volume id=d49c18c2-bdc1-4592-bfd1-d7cc0477bd17 
{
  "success": true
}
EXPECTED RESULTS
(localcloud) SBCM5> > list volumes listall=true id=d49c18c2-bdc1-4592-bfd1-d7cc0477bd17 filter=id

no output

ACTUAL RESULTS
(localcloud) SBCM5> > list volumes listall=true id=d49c18c2-bdc1-4592-bfd1-d7cc0477bd17 filter=id
{
  "count": 1,
  "volume": [
    {
      "id": "d49c18c2-bdc1-4592-bfd1-d7cc0477bd17"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions