Skip to content

Incorrectly tagged storage pool selected while importing VM leading to failure #9670

@vishesh92

Description

@vishesh92
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Import VM
CLOUDSTACK VERSION
4.19.1.1
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

While importing VM from VMWare to KVM, if the specified disk offering has storage tags, import can fail due to mismatch of tags. This is due to the fact that while fetching the storage pool for importing the VM, we don't filter by tags of the disk offering.

STEPS TO REPRODUCE
1. Create 2 primary storage with different storage tags - t1,t2
2. Create a disk offering with tag t2
3. Import a VM from VMWare. Specify the disk offering for the disk.
EXPECTED RESULTS
VM import is successful with disk on the matching primary storage.
ACTUAL RESULTS
Import fails with error:
Disk offering: 68d5c1ae-e2da-4d52-a0c5-1361bf20cac1 is not compatible with storage pool: a5a10522-bc0e-3b8d-80d3-ab8ef4cb7fd9 of unmanaged disk: 19-3001

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions