sureshanaparti opened a new issue, #8704:
URL: https://github.com/apache/cloudstack/issues/8704

   <!--
   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.
   -->
   
   Failed to list the VMs in remote KVM host, for importing them to CloudStack.
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   VM Import
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main 
branch.
   -->
   
   ~~~
   4.19.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   KVM hypervisor / Advanced Zone
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   Tried on MS, KVM Hosts on Ubuntu 22.04 & MS / KVM Hosts on Rocky Linux 8
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   Failed to list the VMs in remote KVM host, for importing them to CloudStack.
   
   <img 
src="https://github.com/apache/cloudstack/assets/12028987/22cb4e9a-47f1-4666-a7fa-e64f9eaceb71";
 width="70%" height="70%">
   
   API cmd has the following parameters - zoneid, host, username, password, 
hypervisor=kvm.
   
   API Response:
   ```
   {
       "listvmsforimportresponse": {
           "uuidList": [],
           "errorcode": 530,
           "cserrorcode": 4250,
           "errortext": "Error while listing remote Vms"
       }
   }
   ```
   
   Exception in Logs:
   ```
   2024-02-26 06:12:25,881 ERROR [c.c.a.ApiServer] 
(qtp1753127384-473:ctx-f57f9de7 ctx-67aa987a) (logid:2887196b) unhandled 
exception executing api command: [Ljava.lang.String;@106067a6
   com.cloud.utils.exception.CloudRuntimeException: Error while listing remote 
Vms
        at 
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.getRemoteVms(UnmanagedVMsManagerImpl.java:2489)
        at 
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.listVmsForImport(UnmanagedVMsManagerImpl.java:2464)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
        at com.sun.proxy.$Proxy459.listVmsForImport(Unknown Source)
        at 
org.apache.cloudstack.api.command.admin.vm.ListVmsForImportCmd.execute(ListVmsForImportCmd.java:121)
   ```
   
   ##### 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.
   -->
   
   - Go to Import-Export Instances in Tools section
   - Select 'KVM' in Select Import-Export Source Hypervisor
   - Pick option 'Import Instance from KVM Host'
   - Add the remote host details, and Click on 'Fetch Instances'
   
   
   <!-- Paste example playbooks or commands between quotes below -->
   
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   The stopped VMs on the remote KVM should be listed, for import
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   Unable to list VMs on the remote KVM, fails with Request Failed (530) error.
   ~~~
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to