--Apple-Mail=_5B67002A-DE5B-43FB-ACC9-D4A23FB178C4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii
I'm running an up to date ovirt setup.
I tried to put an host in maintenance mode, with one VM running on it.
It failed with this message in vdsm.log:
Thread-351083::ERROR::2016-06-17 =
11:30:04,732::migration::209::virt.vm::(_recover) =
vmId=3D`b82209c9-42ff-457c-bb98-b6a2034833fc`::internal error: process =
exited while connecting to monitor: 2016-06-17T09:30:04.429323Z =
qemu-kvm: -chardev =
socket,id=3Dcharchannel0,path=3D/var/lib/libvirt/qemu/channels/b82209c9-42=
ff-457c-bb98-b6a2034833fc.com.redhat.rhevm.vdsm,server,nowait: Failed to =
bind socket to =
/var/lib/libvirt/qemu/channels/b82209c9-42ff-457c-bb98-b6a2034833fc.com.re=
dhat.rhevm.vdsm: Permission denied
...
Traceback (most recent call last):
File "/usr/share/vdsm/virt/migration.py", line 298, in run
self._startUnderlyingMigration(time.time())
File "/usr/share/vdsm/virt/migration.py", line 364, in =
_startUnderlyingMigration
self._perform_migration(duri, muri)
File "/usr/share/vdsm/virt/migration.py", line 403, in =
_perform_migration
self._vm._dom.migrateToURI3(duri, params, flags)
File "/usr/share/vdsm/virt/virdomain.py", line 68, in f
ret =3D attr(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", =
line 124, in wrapper
ret =3D f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 1313, in =
wrapper
return func(inst, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1836, in =
migrateToURI3
if ret =3D=3D -1: raise libvirtError ('virDomainMigrateToURI3() =
failed', dom=3Dself)
libvirtError: internal error: process exited while connecting to =
monitor: 2016-06-17T09:30:04.429323Z qemu-kvm: -chardev =
socket,id=3Dcharchannel0,path=3D/var/lib/libvirt/qemu/channels/b82209c9-42=
ff-457c-bb98-b6a2034833fc.com.redhat.rhevm.vdsm,server,nowait: Failed to =
bind socket to =
/var/lib/libvirt/qemu/channels/b82209c9-42ff-457c-bb98-b6a2034833fc.com.re=
dhat.rhevm.vdsm: Permission denied
If i check the file, I see :
srwxrwxr-x 1 qemu qemu 0 May 31 16:21 =
/var/lib/libvirt/qemu/channels/b82209c9-42ff-457c-bb98-b6a2034833fc.com.re=
dhat.rhevm.vdsm
And on all my hosts, the permissions are the same:
srwxrwxr-x 1 qemu qemu /var/lib/libvirt/qemu/channels/*
And vdsm is running vdsm:
4 S vdsm 3816 1 0 60 -20 - 947345 poll_s May25 ? =
02:21:58 /usr/bin/python /usr/share/vdsm/vdsm
If I check vdsm groups:
~# id vdsm
uid=3D36(vdsm) gid=3D36(kvm) groups=3D36(kvm),179(sanlock),107(qemu)
--Apple-Mail=_5B67002A-DE5B-43FB-ACC9-D4A23FB178C4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=us-ascii
<html><head><meta http-equiv=3D"Content-Type"
content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">I'm running an up to date ovirt setup.<div
class=3D""><br =
class=3D""></div><div class=3D"">I tried to put an host
in maintenance =
mode, with one VM running on it.</div><div class=3D""><br =
class=3D""></div><div class=3D"">It failed with this
message in =
vdsm.log:</div><div class=3D""><br
class=3D""></div><div class=3D""><div =
class=3D""><font face=3D"Menlo" style=3D"font-size:
11px;" =
class=3D"">Thread-351083::ERROR::2016-06-17 =
11:30:04,732::migration::209::virt.vm::(_recover) =
vmId=3D`b82209c9-42ff-457c-bb98-b6a2034833fc`::internal error: process =
exited while connecting to monitor: 2016-06-17T09:30:04.429323Z =
qemu-kvm: -chardev =
socket,id=3Dcharchannel0,path=3D/var/lib/libvirt/qemu/channels/b82209c9-42=
ff-457c-bb98-b6a2034833fc.com.redhat.rhevm.vdsm,server,nowait: Failed to =
bind socket to =
/var/lib/libvirt/qemu/channels/b82209c9-42ff-457c-bb98-b6a2034833fc.com.re=
dhat.rhevm.vdsm: Permission denied</font></div></div><div
class=3D""><font=
face=3D"Menlo" style=3D"font-size: 11px;"
class=3D"">...</font></div><div=
class=3D""><div class=3D""><font face=3D"Menlo"
style=3D"font-size: =
11px;" class=3D"">Traceback (most recent call
last):</font></div><div =
class=3D""><font face=3D"Menlo" style=3D"font-size:
11px;" =
class=3D""> File "/usr/share/vdsm/virt/migration.py",
line 298, in =
run</font></div><div class=3D""><font
face=3D"Menlo" style=3D"font-size: =
11px;" class=3D""> =
self._startUnderlyingMigration(time.time())</font></div><div =
class=3D""><font face=3D"Menlo" style=3D"font-size:
11px;" =
class=3D""> File "/usr/share/vdsm/virt/migration.py",
line 364, in =
_startUnderlyingMigration</font></div><div class=3D""><font
face=3D"Menlo"=
style=3D"font-size: 11px;" class=3D""> =
self._perform_migration(duri, muri)</font></div><div
class=3D""><font =
face=3D"Menlo" style=3D"font-size: 11px;"
class=3D""> File =
"/usr/share/vdsm/virt/migration.py", line 403, in =
_perform_migration</font></div><div class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D""> =
self._vm._dom.migrateToURI3(duri, params, flags)</font></div><div =
class=3D""><font face=3D"Menlo" style=3D"font-size:
11px;" =
class=3D""> File "/usr/share/vdsm/virt/virdomain.py",
line 68, in =
f</font></div><div class=3D""><font
face=3D"Menlo" style=3D"font-size: =
11px;" class=3D""> ret =3D attr(*args, =
**kwargs)</font></div><div class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D""> File =
"/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 124, =
in wrapper</font></div><div class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D""> ret =3D
f(*args, =
**kwargs)</font></div><div class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D""> File =
"/usr/lib/python2.7/site-packages/vdsm/utils.py", line 1313, in =
wrapper</font></div><div class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D""> return
func(inst, =
*args, **kwargs)</font></div><div class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D""> File =
"/usr/lib64/python2.7/site-packages/libvirt.py", line 1836, in =
migrateToURI3</font></div><div class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D""> if ret
=3D=3D -1: =
raise libvirtError ('virDomainMigrateToURI3() failed', =
dom=3Dself)</font></div><div class=3D""><font
face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D"">libvirtError: internal error:
=
process exited while connecting to monitor: 2016-06-17T09:30:04.429323Z =
qemu-kvm: -chardev =
socket,id=3Dcharchannel0,path=3D/var/lib/libvirt/qemu/channels/b82209c9-42=
ff-457c-bb98-b6a2034833fc.com.redhat.rhevm.vdsm,server,nowait: Failed to =
bind socket to =
/var/lib/libvirt/qemu/channels/b82209c9-42ff-457c-bb98-b6a2034833fc.com.re=
dhat.rhevm.vdsm: Permission denied</font></div></div><div
class=3D""><br =
class=3D""></div><div class=3D"">If i check the file, I
see :</div><div =
class=3D""><br class=3D""></div><div
class=3D""><div style=3D"margin: =
0px;" class=3D""><font face=3D"Menlo"
style=3D"font-size: 11px;" =
class=3D"">srwxrwxr-x 1 qemu qemu 0 May 31 16:21 =
/var/lib/libvirt/qemu/channels/b82209c9-42ff-457c-bb98-b6a2034833fc.com.re=
dhat.rhevm.vdsm</font></div></div><div style=3D"margin:
0px;" =
class=3D""><br class=3D""></div><div
style=3D"margin: 0px;" class=3D"">And=
on all my hosts, the permissions are the same:</div><div style=3D"margin:=
0px;" class=3D""><font face=3D"Menlo"
style=3D"font-size: 11px;" =
class=3D""><font class=3D"">srwxrwxr-x 1 qemu =
qemu </font>/var/lib/libvirt/qemu/channels/*</font></div><div
=
style=3D"margin: 0px;" class=3D""><br
class=3D""></div><div =
style=3D"margin: 0px;" class=3D"">And vdsm is
running =
vdsm:</div><div style=3D"margin: 0px;" class=3D""><div
style=3D"margin: =
0px;" class=3D""><font face=3D"Menlo"
style=3D"font-size: 11px;" =
class=3D"">4 S vdsm 3816
1 =
0 60 -20 - 947345 poll_s May25 ? 02:21:58 =
/usr/bin/python /usr/share/vdsm/vdsm</font></div><div style=3D"margin:
=
0px;" class=3D""><br class=3D""></div><div
style=3D"margin: 0px;" =
class=3D"">If I check vdsm groups:</div><div style=3D"margin:
0px;" =
class=3D""><div style=3D"margin: 0px;"
class=3D""><font face=3D"Menlo" =
style=3D"font-size: 11px;" class=3D"">~# id
vdsm</font></div><div =
style=3D"margin: 0px;" class=3D""><font face=3D"Menlo"
style=3D"font-size:=
11px;" class=3D"">uid=3D36(vdsm) gid=3D36(kvm) =
groups=3D36(kvm),179(sanlock),107(qemu)</font></div><div
class=3D""><br =
class=3D""></div><div class=3D""><br
class=3D""></div></div><div =
class=3D""><br class=3D""></div><div
class=3D""><br =
class=3D""></div></div></body></html>=
--Apple-Mail=_5B67002A-DE5B-43FB-ACC9-D4A23FB178C4--