Luskan777 opened a new issue, #9915: URL: https://github.com/apache/cloudstack/issues/9915
<!-- Verify first that your issue/request is not already reported on GitHub. Also test if the latest release and main branch are affected too. Always add information AFTER of these HTML comments, but no need to delete the comments. --> ##### ISSUE TYPE <!-- Pick one below and delete the rest --> * Bug Report ##### COMPONENT NAME <!-- Categorize the issue, e.g. API, VR, VPN, UI, etc. --> ~~~ STORAGE CLVM ~~~ ##### CLOUDSTACK VERSION <!-- New line separated list of affected versions, commit ID for issues on main branch. --> ~~~ 4.19 ~~~ ##### CONFIGURATION <!-- Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise --> ##### OS / ENVIRONMENT <!-- Information about the environment if relevant, N/A otherwise --> - KVM/libvirt as Virtualization is used - Ubuntu 22.04.5 LTS (Agent) - CLVM Primary Storage ##### SUMMARY <!-- Explain the problem/feature briefly --> I am trying to use CLVM as Primary Storage, but when I try to add Primary Storage it gives me an error. However, if I check the KVM agent hosts, it creates the storage pool in libvirt as expected, but it doesn't finish creating the Primary Storage in Cloudstack Management Cloustack Agents KVM:  ##### STEPS TO REPRODUCE <!-- For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate. For new features, show how the feature would be used. --> <!-- Paste example playbooks or commands between quotes below --> ~~~ Using KVM as Hypervisor, try adding a Primary Storage of type CLVM ~~~ <!-- You can also paste gist.github.com links for larger files --> ##### EXPECTED RESULTS <!-- What did you expect to happen when running the steps above? --> ~~~ Primary Storage created successfully ~~~ ##### ACTUAL RESULTS <!-- What actually happened? --> <!-- Paste verbatim command output between quotes below --> Cloudstack UI: ~~~ Request failed. (530) Failed to add data store: Failed to access storage pool ~~~ <img width="992" alt="Captura de Tela 2024-11-08 às 11 40 36" src="https://github.com/user-attachments/assets/10b5f61d-74b7-43f8-a2a4-d6b8edba515c"> Cloudstack management (Logs): ~~~ DEBUG [c.c.a.t.Request] (AgentManager-Handler-1:[]) (logid:) Seq 18-5556597515245060226: Processing: { Ans: , MgmtId: 42374915704331, via: 18, Ver: v1, Flags: 10, [{"com.cloud.agent.api.Answer":{"result":"false","details":"java.lang.IllegalArgumentException: No enum constant com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolDef.PoolType.LOGICAL at java.base/java.lang.Enum.valueOf(Enum.java:273) at com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolDef$PoolType.valueOf(LibvirtStoragePoolDef.java:26) at com.cloud.hypervisor.kvm.resource.LibvirtStoragePoolXMLParser.parseStoragePoolXML(LibvirtStoragePoolXMLParser.java:118) at com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePoolDef(LibvirtStorageAdaptor.java:502) at com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:534) at com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.getStoragePool(LibvirtStorageAdaptor.java:519) at com.cloud.hypervisor.kvm.storage.LibvirtStorageAdaptor.createStoragePool(LibvirtStorageAdaptor.java:763) at com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:392) at com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.createStoragePool(KVMStoragePoolManager.java:386) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtModifyStoragePoolCommandWrapper.execute(LibvirtModifyStoragePoolCommandWrapper.java:42) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtModifyStoragePoolCommandWrapper.execute(LibvirtModifyStoragePoolCommandWrapper.java:35) at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78) at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1944) at com.cloud.agent.Agent.processRequest(Agent.java:686) at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1109) at com.cloud.utils.nio.Task.call(Task.java:83) at com.cloud.utils.nio.Task.call(Task.java:29) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:840) ","wait":"0","bypassHostMaintenance":"false"}}] } ~~~ -- 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