Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KVM 비관리 인스턴스 가져오기 기능 오류 #423

Open
ycyun opened this issue Mar 19, 2024 · 0 comments
Open

KVM 비관리 인스턴스 가져오기 기능 오류 #423

ycyun opened this issue Mar 19, 2024 · 0 comments

Comments

@ycyun
Copy link

ycyun commented Mar 19, 2024

이슈 타입

  • 버그 및 오류 보고

컴포넌트 이름

VM 가져오기

ABLESTACK 버전

Diplo


구성

기본 구성 + KVM을 통한 수동 인스턴스 생성

OS / 환경


이슈 내용

mold 에서 KVM 비관리 인스턴스 가져오기 기능 을 테스트 하기 위해
KVM에서 직접 가상머신을 생성 후 가져오기를 시도하면 아래와 같은 오류가 발생합니다.

2024-03-19 04:58:29,972 INFO  [resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper] (agentRequest-Handler-5:null) (logid:4d0d196c) Fetching unmanaged instance on host
2024-03-19 04:58:29,992 INFO  [resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper] (agentRequest-Handler-5:null) (logid:4d0d196c) Unable to retrieve unmanaged instance info. null
java.lang.NullPointerException
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.getUnmanagedInstance(LibvirtGetUnmanagedInstancesCommandWrapper.java:127)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.execute(LibvirtGetUnmanagedInstancesCommandWrapper.java:60)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.execute(LibvirtGetUnmanagedInstancesCommandWrapper.java:43)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
	at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:2032)
	at com.cloud.agent.Agent.processRequest(Agent.java:683)
	at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1106)
	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:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
2024-03-19 04:58:29,999 INFO  [resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper] (agentRequest-Handler-5:null) (logid:4d0d196c) Unable to retrieve unmanaged instance info. null
java.lang.NullPointerException
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.getUnmanagedInstance(LibvirtGetUnmanagedInstancesCommandWrapper.java:127)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.execute(LibvirtGetUnmanagedInstancesCommandWrapper.java:60)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.execute(LibvirtGetUnmanagedInstancesCommandWrapper.java:43)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
	at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:2032)
	at com.cloud.agent.Agent.processRequest(Agent.java:683)
	at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1106)
	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:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
2024-03-19 04:58:30,003 INFO  [resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper] (agentRequest-Handler-5:null) (logid:4d0d196c) Unable to retrieve unmanaged instance info. null
java.lang.NullPointerException
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.getUnmanagedInstance(LibvirtGetUnmanagedInstancesCommandWrapper.java:127)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.execute(LibvirtGetUnmanagedInstancesCommandWrapper.java:60)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtGetUnmanagedInstancesCommandWrapper.execute(LibvirtGetUnmanagedInstancesCommandWrapper.java:43)
	at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:78)
	at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:2032)
	at com.cloud.agent.Agent.processRequest(Agent.java:683)
	at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:1106)
	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:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

재현 과정

  1. 에이블스택 구성
  2. scvm 의 qcow2파일을 복사하여 VM 추가 생성
  3. 가상머신 가져오기 기능 확인

기대한 결과

신규 생성한 가상머신이 왼쪽 비관리 목록에 나타남


실제 결과

  1. 가상머신이 목록에 보시 안됨
  2. 호스트 에이전트에 오류발생

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant