Migration was refused connection to the destination. Please check libvirt configurations compatibility and firewall #9987
Replies: 13 comments
-
@verendrakalsi can you explain bit more instead of just pasting the logs. |
Beta Was this translation helpful? Give feedback.
-
not sure why all the details are not showing up, i have updated it. Anyways. I have 3 KVM hosts in same subnet and cloudstack mgmt on a different subnet but there is communication between KVM hosts & cloudstack mgmt. There is no firewall in between. I have enabled DRS at global & cluster level and also they are on same storage as well. However either DRS runs automatic or manual, the VMs doesnt move and i get this error |
Beta Was this translation helpful? Give feedback.
-
@verendrakalsi, are libvirt TCP connections allowed? |
Beta Was this translation helpful? Give feedback.
-
Actually i am using ubuntu 22.04 as base OS not RHEL and yes Libvirt TCP connection is allowed |
Beta Was this translation helpful? Give feedback.
-
@verendrakalsi
|
Beta Was this translation helpful? Give feedback.
-
Here is the screenshot from one of the server and it is same for all of them. |
Beta Was this translation helpful? Give feedback.
-
can you remove the line if everything works, the output should be same as
|
Beta Was this translation helpful? Give feedback.
-
i have commented the line and i get this output after running the ps command. |
Beta Was this translation helpful? Give feedback.
-
@verendrakalsi, can you check that TCP port for libvirt is open?
this is in my lab
after changing to
|
Beta Was this translation helpful? Give feedback.
-
for Secure host, it uses tls listen_tcp=0 |
Beta Was this translation helpful? Give feedback.
-
As per the documentation https://docs.cloudstack.apache.org/en/latest/installguide/hypervisor/kvm.html#kvm-installation-overview However i changed it to this and now migration is working. I am going to load more VMs and see if even automatic is working or not. mostly it should. |
Beta Was this translation helpful? Give feedback.
-
did you add the host via cloudstack UI ? it looks like your host is unsecure. you can go to host details and click "provision host security keys" which will secure cloudstack-agent and libvirtd with certificates. |
Beta Was this translation helpful? Give feedback.
-
yes i did added it via cloudstacck UI and yes it was unsecure. |
Beta Was this translation helpful? Give feedback.
-
Rethrow exception com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://192.168.101.100/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
3 KVM hosts on Ubuntu 22.04 all are in same subnet.
Zone :- Datacenter-Linux
Pod :- Linux
Clusters :- Linux
enable automatic DRS in global settings and also on the cluster.
Firewall is disable on cloudstack and kvm hosts.
OS / ENVIRONMENT
SUMMARY
2024-11-22 17:34:27,689 ERROR [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-15:ctx-36934979 job-484/job-485 ctx-bb524027) (logid:1ece315b) Invocation exception, caused by: com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://192.168.101.100/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
2024-11-22 17:34:27,690 INFO [c.c.v.VmWorkJobHandlerProxy] (Work-Job-Executor-15:ctx-36934979 job-484/job-485 ctx-bb524027) (logid:1ece315b) Rethrow exception com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://192.168.101.100/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
2024-11-22 17:34:27,690 ERROR [c.c.v.VmWorkJobDispatcher] (Work-Job-Executor-15:ctx-36934979 job-484/job-485) (logid:1ece315b) Unable to complete AsyncJobVO: {id:485, userId: 1, accountId: 1, instanceType: null, instanceId: null, cmd: com.cloud.vm.VmWorkMigrate, cmdInfo: rO0ABXNyABpjb20uY2xvdWQudm0uVm1Xb3JrTWlncmF0ZRdxQXtPtzYqAgAGSgAJc3JjSG9zdElkTAAJY2x1c3RlcklkdAAQTGphdmEvbGFuZy9Mb25nO0wABmhvc3RJZHEAfgABTAAFcG9kSWRxAH4AAUwAB3N0b3JhZ2V0AA9MamF2YS91dGlsL01hcDtMAAZ6b25lSWRxAH4AAXhyABNjb20uY2xvdWQudm0uVm1Xb3Jrn5m2VvAlZ2sCAARKAAlhY2NvdW50SWRKAAZ1c2VySWRKAAR2bUlkTAALaGFuZGxlck5hbWV0ABJMamF2YS9sYW5nL1N0cmluZzt4cAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAIHQAGVZpcnR1YWxNYWNoaW5lTWFuYWdlckltcGwAAAAAAAAABXNyAA5qYXZhLmxhbmcuTG9uZzuL5JDMjyPfAgABSgAFdmFsdWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAAAAAAAAAAnNxAH4ABwAAAAAAAAAEcQB-AAlwcQB-AAk, cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: null, initMsid: 345051317061, completeMsid: null, lastUpdated: null, lastPolled: null, created: Fri Nov 22 17:34:26 UTC 2024, removed: null}, job origin:484
com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://192.168.101.100/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
2024-11-22 17:34:27,698 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Work-Job-Executor-15:ctx-36934979 job-484/job-485) (logid:1ece315b) Complete async job-485, jobStatus: FAILED, resultCode: 0, result: rO0ABXNyAC9jb20uY2xvdWQudXRpbHMuZXhjZXB0aW9uLkNsb3VkUnVudGltZUV4Y2VwdGlvblZNT3AAAAACAwABSQALY3NFcnJvckNvZGV4cgAaamF2YS5sYW5nLlJ1bnRpbWVFeGNlcHRpb26eXwZHCjSD5QIAAHhyABNqYXZhLmxhbmcuRXhjZXB0aW9u0P0fPho7HMQCAAB4cgATamF2YS5sYW5nLlRocm93YWJsZdXGNSc5d7jLAwAETAAFY2F1c2V0ABVMamF2YS9sYW5nL1Rocm93YWJsZTtMAA1kZXRhaWxNZXNzYWdldAASTGphdmEvbGFuZy9TdHJpbmc7WwAKc3RhY2tUcmFjZXQAHltMamF2YS9sYW5nL1N0YWNrVHJhY2VFbGVtZW50O0wAFHN1cHByZXNzZWRFeGNlcHRpb25zdAAQTGphdmEvdXRpbC9MaXN0O3hwcQB-AAh0ALxNaWdyYXRpb24gd2FzIHJlZnVzZWQgY29ubmVjdGlvbiB0byBkZXN0aW5hdGlvbjogcWVtdSt0Y3A6Ly8xOTIuMTY4LjEwMS4xMDAvc3lzdGVtLiBQbG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GhDb250ZXh0cHBzcQB-AAwBAAAALXEAfgAOdAA8b3JnLmFwYWNoZS5jbG91ZHN0YWNrLm1hbmFnZWQuY29udGV4dC5NYW5hZ2VkQ29udGV4dFJ1bm5hYmxlcQB-ADJxAH4AM3Bwc3EAfgAMAQAAAlpxAH4ADnEAfgAtcQB-AC5xAH4AM3Bwc3EAfgAMAgAAAgNwdAAuamF2YS51dGlsLmNvbmN1cnJlbnQuRXhlY3V0b3JzJFJ1bm5hYmxlQWRhcHRlcnQADkV4ZWN1dG9ycy5qYXZhcQB-ADdxAH4AGXEAfgAac3EAfgAMAgAAAQhwdAAfamF2YS51dGlsLmNvbmN1cnJlbnQuRnV0dXJlVGFza3QAD0Z1dHVyZVRhc2suamF2YXEAfgAzcQB-ABlxAH4AGnNxAH4ADAIAAARocHQAJ2phdmEudXRpbC5jb25jdXJyZW50LlRocmVhZFBvb2xFeGVjdXRvcnQAF1RocmVhZFBvb2xFeGVjdXRvci5qYXZhdAAJcnVuV29ya2VycQB-ABlxAH4AGnNxAH4ADAIAAAJ0cHQALmphdmEudXRpbC5jb25jdXJyZW50LlRocmVhZFBvb2xFeGVjdXRvciRXb3JrZXJxAH4ASHEAfgAzcQB-ABlxAH4AGnNxAH4ADAIAAAM9cHQAEGphdmEubGFuZy5UaHJlYWR0AAtUaHJlYWQuamF2YXEAfgAzcQB-ABlxAH4AGnNyAB9qYXZhLnV0aWwuQ29sbGVjdGlvbnMkRW1wdHlMaXN0ergXtDynnt4CAAB4cHgAABCadwgAAAAAAAAAAHg
2024-11-22 17:34:27,726 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-6:ctx-b5d1c146 job-484) (logid:1ece315b) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.MigrateVMCmd
com.cloud.utils.exception.CloudRuntimeException: Migration was refused connection to destination: qemu+tcp://192.168.101.100/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts.
2024-11-22 17:34:27,727 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-6:ctx-b5d1c146 job-484) (logid:1ece315b) Complete async job-484, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Migration was refused connection to destination: qemu+tcp://192.168.101.100/system. Please check libvirt configuration compatibility and firewall rules on the source and destination hosts."}
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
Beta Was this translation helpful? Give feedback.
All reactions