Bug 788092

Summary: VDSM: Disable vdsm's ssl'ability influence spice ssl'ability and prevent VM from starting.
Product: [Retired] oVirt Reporter: Avi Tal <atal>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, acathrow, bazulay, iheim, jkt, michal.skrivanek, oramraz, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-19 10:16:11 UTC Type: ---
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
vdsm log none

Description Avi Tal 2012-02-07 13:19:29 UTC
Created attachment 559940 [details]
vdsm log

vdsm-4.9.3.3-0.fc16.x86_64
qemu-kvm-0.15.1-3.fc16.x86_64
libvirt-0.9.6-4.fc16.x86_64

Description of problem:
Start VM failed when using fake hosts:
vdsm log:
hread-286::ERROR::2012-02-07 14:27:38,849::vm::552::vm.Vm::(_startUnderlyingVm) vmId=`d222d726-3a2d-4a3f-bf7e-e3ffeceb284b`::The vm start process failed
Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 518, in _startUnderlyingVm
    self._run()
  File "/usr/share/vdsm/libvirtvm.py", line 1169, in _run
    self._connection.createXML(domxml, flags),
  File "/usr/share/vdsm/libvirtconnection.py", line 79, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2100, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: internal error Child process (LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin /usr/libexec/vdsm/vdsm-faqemu -help) status unexpected: exit status 1


As a workaround,i had to create link of qemu-kvm to libexec
# ln -s /usr/bin/qemu-kvm /usr/libexec/

but after creating that link the start VM still failed:

Thread-1945::ERROR::2012-02-07 15:02:25,688::vm::552::vm.Vm::(_startUnderlyingVm) vmId=`d222d726-3a2d-4a3f-bf7e-e3ffeceb284b`::The vm start process failed
Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 518, in _startUnderlyingVm
    self._run()
  File "/usr/share/vdsm/libvirtvm.py", line 1169, in _run
    self._connection.createXML(domxml, flags),
  File "/usr/share/vdsm/libvirtconnection.py", line 79, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2100, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: internal error process exited while connecting to monitor: do_spice_init: starting 0.10.1


There for this bug is a test blocker for us.

Comment 1 Avi Tal 2012-02-08 08:06:10 UTC
Correction to the bug summery:
The bug is all around spice ssl'ability that for some reason related to vdsm ssl'ability.

scenario:
1. Installing host/vdsm with ssl.
2. Reconfigure vdsm ssl=false.
3. Try to start VM with spice and ssl true. (backend DB: EnableSpiceRootCertificateValidation=true)

unable to start VM:
vdsm exception:
Thread-1945::ERROR::2012-02-07
15:02:25,688::vm::552::vm.Vm::(_startUnderlyingVm)
vmId=`d222d726-3a2d-4a3f-bf7e-e3ffeceb284b`::The vm start process failed
Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 518, in _startUnderlyingVm
    self._run()
  File "/usr/share/vdsm/libvirtvm.py", line 1169, in _run
    self._connection.createXML(domxml, flags),
  File "/usr/share/vdsm/libvirtconnection.py", line 79, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2100, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: internal error process exited while connecting to monitor:
do_spice_init: starting 0.10.1

Comment 3 Michal Skrivanek 2013-08-19 10:16:11 UTC
plain connections are for debug only, there's no need to have additional granularity