Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 890346

Summary: [vdsm] Cannot migrate vms between hosts
Product: [oVirt] ovirt-host-deploy Reporter: Kiril Nesenko <knesenko>
Component: Plugins.VDSMAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED WORKSFORME QA Contact: Haim <hateya>
Severity: urgent Docs Contact:
Priority: urgent    
Version: masterCC: abaron, alonbl, bazulay, bugs, danken, dfediuck, dougsland, iheim, lpeer, mgoldboi, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: ---Flags: knesenko: devel_ack?
Hardware: x86_64   
OS: Linux   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-27 10:10:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

Description Kiril Nesenko 2012-12-26 14:58:21 UTC
Created attachment 669246 [details]
logs

Description of problem:
Can not migrate vdsm between hosts.

Thread-275::ERROR::2012-12-26 16:52:03,606::vm::195::vm.Vm::(_recover) vmId=`6f6b16f8-992d-4581-8a4a-5940c8b701b6`::operation failed: Failed to connect to remote libvirt 
URI qemu+tls://nari13.eng.lab.tlv.redhat.com/system
Thread-275::ERROR::2012-12-26 16:52:03,731::vm::283::vm.Vm::(run) vmId=`6f6b16f8-992d-4581-8a4a-5940c8b701b6`::Failed to migrate
Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 268, in run
    self._startUnderlyingMigration()
  File "/usr/share/vdsm/libvirtvm.py", line 479, in _startUnderlyingMigration
    None, maxBandwidth)
  File "/usr/share/vdsm/libvirtvm.py", line 515, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py", line 83, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1178, in migrateToURI2
    if ret == -1: raise libvirtError ('virDomainMigrateToURI2() failed', dom=self)
libvirtError: operation failed: Failed to connect to remote libvirt URI qemu+tls://nari13.eng.lab.tlv.redhat.com/system


Version-Release number of selected component (if applicable):
libvirt-0.10.2-13.el6.x86_64
vdsm-4.10.2-2.0.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.348.el6.x86_64


How reproducible:


Steps to Reproduce:
1. Migrate vm between hosts
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Dan Kenigsberg 2012-12-27 08:17:40 UTC
Does this happen 100%? Only on these hosts? (you should have stated that under "How reproducible".)

Does it go away if you disable firewall?

Go to the host running the vm, then try to ping the remote host.
Could you do
 virsh -c qemu+tls://nari13.eng.lab.tlv.redhat.com/system capabilities

or

 vdsClient -s nari13.eng.lab.tlv.redhat.com getVdsCaps

Comment 3 Kiril Nesenko 2012-12-27 08:45:11 UTC
(In reply to comment #2)
> Does this happen 100%? Only on these hosts? (you should have stated that
> under "How reproducible".)
> 
It happens 100% on these hosts.
> Does it go away if you disable firewall?
> 
Still can not migrate

> Go to the host running the vm, then try to ping the remote host.
> Could you do
>  virsh -c qemu+tls://nari13.eng.lab.tlv.redhat.com/system capabilities

[root@nari11 ~]# virsh -c qemu+tls://nari13.eng.lab.tlv.redhat.com/system capabilities
error: Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory
error: failed to connect to the hypervisor

[root@nari11 ~]# ls -l /etc/pki/CA/cacert.pem
ls: cannot access /etc/pki/CA/cacert.pem: No such file or directory

Seems like /etc/pki/CA/cacert.pem doesn't exist.
> 
> or
> 
>  vdsClient -s nari13.eng.lab.tlv.redhat.com getVdsCaps
This works

Comment 4 Alon Bar-Lev 2012-12-27 09:02:35 UTC
opps.

Comment 5 Alon Bar-Lev 2012-12-27 09:04:17 UTC
(In reply to comment #3)
> [root@nari11 ~]# ls -l /etc/pki/CA/cacert.pem
> ls: cannot access /etc/pki/CA/cacert.pem: No such file or directory
> 
> Seems like /etc/pki/CA/cacert.pem doesn't exist.

Please use latest nightly of otopi and ovirt-host-deploy.
Thanks!

Comment 7 Kiril Nesenko 2012-12-27 10:10:32 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > [root@nari11 ~]# ls -l /etc/pki/CA/cacert.pem
> > ls: cannot access /etc/pki/CA/cacert.pem: No such file or directory
> > 
> > Seems like /etc/pki/CA/cacert.pem doesn't exist.
> 
> Please use latest nightly of otopi and ovirt-host-deploy.
> Thanks!

Thanks Alon, it works with latest otopi and ovirt-host-deploy.
Closing a bz.