sureshanaparti opened a new issue, #10981: URL: https://github.com/apache/cloudstack/issues/10981
### problem Failed to create instance on PowerFlex storage (with small template). Logs: ``` 2025-06-06 08:42:33,934 DEBUG [o.a.c.s.d.d.ScaleIOPrimaryDataStoreDriver] (Work-Job-Executor-15:[ctx-63de2f90, job-74/job-75, ctx-be8ecd3c]) (logid:9262f7e6) createAsync - creating volume 2025-06-06 08:42:33,934 DEBUG [o.a.c.s.d.d.ScaleIOPrimaryDataStoreDriver] (Work-Job-Executor-15:[ctx-63de2f90, job-74/job-75, ctx-be8ecd3c]) (logid:9262f7e6) Creating PowerFlex volume 2025-06-06 08:42:33,935 WARN [o.a.c.s.d.d.ScaleIOPrimaryDataStoreDriver] (Work-Job-Executor-15:[ctx-63de2f90, job-74/job-75, ctx-be8ecd3c]) (logid:9262f7e6) Unable to create PowerFlex Volume due to Size(GB) must be greater than 0 2025-06-06 08:42:33,935 ERROR [o.a.c.s.d.d.ScaleIOPrimaryDataStoreDriver] (Work-Job-Executor-15:[ctx-63de2f90, job-74/job-75, ctx-be8ecd3c]) (logid:9262f7e6) Unable to create PowerFlex Volume due to Size(GB) must be greater than 0 2025-06-06 08:42:33,941 DEBUG [o.a.c.s.v.VolumeServiceImpl] (Work-Job-Executor-15:[ctx-63de2f90, job-74/job-75, ctx-be8ecd3c]) (logid:9262f7e6) Failed to copy managed template on primary storage com.cloud.utils.exception.CloudRuntimeException: Creation of a volume failed: Unable to create PowerFlex Volume due to Size(GB) must be greater than 0 at org.apache.cloudstack.storage.volume.VolumeServiceImpl.createManagedVolumeCopyManagedTemplateAsync(VolumeServiceImpl.java:1178) at org.apache.cloudstack.storage.volume.VolumeServiceImpl.createManagedVolumeCopyManagedTemplateAsyncWithLock(VolumeServiceImpl.java:1562) at org.apache.cloudstack.storage.volume.VolumeServiceImpl.createManagedStorageVolumeFromTemplateAsync(VolumeServiceImpl.java:1533) at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.recreateVolume(VolumeOrchestrator.java:1780) at org.apache.cloudstack.engine.orchestration.VolumeOrchestrator.prepare(VolumeOrchestrator.java:1944) ``` Also, noticed Storpool Adaptor call during cleanup and resulting in in NPE, which needs fix. ``` 2025-06-06 08:45:49,621 DEBUG [c.c.a.t.Request] (AgentManager-Handler-19:[]) (logid:) Seq 1-4269412446747230759: Processing: { Ans: , MgmtId: 32986389020927, via: 1, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":"false","details":"java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "volumeUuid" is null at com.cloud.hypervisor.kvm.storage.StorPoolStorageAdaptor.getVolumeNameFromPath(StorPoolStorageAdaptor.java:142) at com.cloud.hypervisor.kvm.storage.StorPoolStorageAdaptor.attachOrDetachVolume(StorPoolStorageAdaptor.java:152) at com.cloud.hypervisor.kvm.storage.StorPoolStorageAdaptor.disconnectPhysicalDisk(StorPoolStorageAdaptor.java:271) at com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.disconnectPhysicalDisk(KVMStoragePoolManager.java:221) at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.cleanupDisk(LibvirtComputingResource.java:3452) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStopCommandWrapper.execute(LibvirtStopCommandWrapper.java:112) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtStopCommandWrapper.execute(LibvirtStopCommandWrapper.java:47) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78) at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1958) at com.cloud.agent.Agent.processRequest(Agent.java:779) ``` ### versions KVM + Dell PowerFlex storage ### The steps to reproduce the bug 1. Add PowerFlex pool as primary storage using tag 'powerflex' 2. Register template with small size, eg. macchinina here: http://dl.openvm.eu/cloudstack/macchinina/x86_64/macchinina-kvm.qcow2.bz2 3. Create a Service/Compute Offering with storage tag 'powerflex' 4. Create instance using the above register template when it is ready and service offering ### What to do about it? Expected: Should be able to create instances using smaller templates on PowerFlex storage. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org