From: [email protected]
To: [email protected]; [email protected]
CC: [email protected]
Subject: RE: [Users] very odd permission problem
Date: Fri, 6 Sep 2013 21:35:51 -0400
> Date: Fri, 6 Sep 2013 22:05:05 +0100
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: [Users] very odd permission problem
>
> On Fri, Sep 06, 2013 at 04:05:13PM +0200, Joop wrote:
> > Alessandro Bianchi wrote:
> > >>On 6-9-2013 12:34, Alessandro Bianchi wrote:
> > >>>Hi all
> > >>>
> > >>>I'm running 3.2 on several Fedora 18 nodes
> > >>>
> > >>>One of them has a local storage running 4 VMs
> > >>>
> > >>>Today the UPS crashed and host was rebboted after UPS replacement
> > >>>
> > >>>None of the VM's were able to be started
> > >>>
> > >>>I tried to put the Host in maintenance and reinstalled it, but this
> > >>>didn't give any result
> > >>>
> > >>>Digging into the logs I discovered the following error:
> > >>>
> > >>>The first was of this kind (on every VM)
> > >>>
> > >>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2630, in
> > >>>createXML
> > >>> if ret is None:raise libvirtError('virDomainCreateXML() failed',
> > >>>conn=self)
> > >>>libvirtError: errore interno process exited while connecting to
> > >>>monitor: ((null):5034): Spice-Warning **: reds.c:3247:reds_init_ssl:
> > >>>Could not use private key file
> > >>>qemu-kvm: failed to initialize spice server
> > >>>
> > >>>Thread-564::DEBUG::2013-09-06
> > >>>11:31:32,814::vm::1065::vm.Vm::(setDownStatus)
> > >>>vmId=`49d84915-490b-497d-a3f8-c7dac7485281`::Changed state to Down:
> > >>>errore interno process exited while connecting to monitor:
> > >>>((null):5034): Spice-Warning **: reds.c:3247:reds_init_ssl: Could not
> > >>>use private key file
> > >>>qemu-kvm: failed to initialize spice server
> > >>>
> > >>>The private key was marked 440 as permission owned by vdsm user and
> > >>>kvm group
> > >>>
> > >>>I had to change it to 444 to allow everyone to read it
> > >>>
> > >>>After that I had for every VM the following error:
> > >>>
> > >>>could not open disk image
> > >>>/rhev/data-center/3935800a-abe4-406d-84a1-4c3c0b915cce/6818de31-5cda-41d0-a41a-681230a409ba/images/54144c03-5057-462e-8275-6ab386ae8c5a/01298998-32d5-44c2-b5d1-91be1316ed19:
> > >>>
> > >>>Permission denied
> > >>>
> > >>>Disks were owned by vdsm:kvm with 660 permission
> > >>>
> > >>>I had to relax this to 666 to enable the VMs to start
> > >>>
> > >>>Has anyone faced this kind f problem before?
> > >>>
> > >>Yes, me.
> > >>>Any hint about what may have caused this odd problem?
> > >>>
> > >>yum update.
> > >>
> > >>I updated one of my hosts and after that that host couldn't start VMs
> > >>anymore with exact the same errors. See thread 'Starting VM error' by
> > >>Shaun Glass. I tried a couple of things but not making world readable
> > >>those files. Will probably restore a backup and try it.
> > >>I added the virt-preview repo for F18 and updated qemu/libvirt which
> > >>also solved the problem.
> > >>The difference between the updated and not updated host were really
> > >>minimal. See the thead for logs.
> > >>
> > >>Regards,
> > >>
> > >>Joop
> > >Thank you for your very quick answer
> > >
> > >I suspected the same thing !
> > >
> > >I'll update libvirt and revert the permission changes
> > >
> > That will give you way way newer libvirt/qemu than you probably
> > want. I would keep the permission changes and hope that one of the
> > following updates to either libvirt/qemu fixes this problem.
>
> Joop, I'm sorry that I have many requests and few answers, but if indeed
> the problem is related to a version of libvirt/qemu, would yould you try
> to reproduce it outside ovirt?
>
> I mean, in your working/non-working hosts, could you create a vdsm:kvm-
> owned image, and try to run it from virsh (using vdsm@ovirt user and the
> ever-so-secret password listed in vdsm/libvirt_password)?
>
> What happens if you chown your image to vdsm:qemu? (keeping mode as 660)
>
> What's `groups qemu` on your hosts?
>
> Could you attach gdb to the short-living qemu process, and run
> getgroups(2) on it?
>
> Dan. > > >>>errore interno process exited while connecting to monitor:
> > >>>((null):5034): Spice-Warning **: reds.c:3247:reds_init_ssl: Could not
> > >>>use private key file I just ran into this myself on a fresh 3.2.2
> > >>>install. Enabling the virt-preview repo and doing a yum update fixed the
> > >>>spice-warning issue and the VMs started right up. That might help you
> > >>>Joop. Another issue, ovirt-engine-sdk is newer on the fedora repos than
> > >>>in the ovirt-repo. The fedora one caused issues (I forget which error at
> > >>>the moment), so I had to disable the fedora repos, remove
> > >>>ovirt-engine-sdk, and then reinstall it from the ovirt-repo. *Forgot to
> > >>>note that I attached a text file of what updated once I added the
> > >>>virt-preview repo
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ovirt.org/mailman/listinfo/users
Updating:
ipxe-roms-qemu noarch
20130517-2.gitc4bce43.fc18 fedora-virt-preview
806 k
libiscsi x86_64
1.7.0-5.fc18 fedora-virt-preview
51 k
libvirt x86_64
1.1.0-1.fc18 fedora-virt-preview
32 k
libvirt-client x86_64
1.1.0-1.fc18 fedora-virt-preview
4.8 M
libvirt-daemon x86_64
1.1.0-1.fc18 fedora-virt-preview
2.1 M
libvirt-daemon-config-network x86_64
1.1.0-1.fc18 fedora-virt-preview
31 k
libvirt-daemon-config-nwfilter x86_64
1.1.0-1.fc18 fedora-virt-preview
35 k
libvirt-daemon-driver-interface x86_64
1.1.0-1.fc18 fedora-virt-preview
71 k
libvirt-daemon-driver-libxl x86_64
1.1.0-1.fc18 fedora-virt-preview
112 k
libvirt-daemon-driver-lxc x86_64
1.1.0-1.fc18 fedora-virt-preview
116 k
libvirt-daemon-driver-network x86_64
1.1.0-1.fc18 fedora-virt-preview
84 k
libvirt-daemon-driver-nodedev x86_64
1.1.0-1.fc18 fedora-virt-preview
71 k
libvirt-daemon-driver-nwfilter x86_64
1.1.0-1.fc18 fedora-virt-preview
97 k
libvirt-daemon-driver-qemu x86_64
1.1.0-1.fc18 fedora-virt-preview
382 k
libvirt-daemon-driver-secret x86_64
1.1.0-1.fc18 fedora-virt-preview
66 k
libvirt-daemon-driver-storage x86_64
1.1.0-1.fc18 fedora-virt-preview
110 k
libvirt-daemon-driver-uml x86_64
1.1.0-1.fc18 fedora-virt-preview
79 k
libvirt-daemon-driver-xen x86_64
1.1.0-1.fc18 fedora-virt-preview
116 k
libvirt-lock-sanlock x86_64
1.1.0-1.fc18 fedora-virt-preview
78 k
libvirt-python x86_64
1.1.0-1.fc18 fedora-virt-preview
222 k
qemu-common x86_64
2:1.5.1-1.fc18 fedora-virt-preview
217 k
qemu-img x86_64
2:1.5.1-1.fc18 fedora-virt-preview
460 k
qemu-kvm x86_64
2:1.5.1-1.fc18 fedora-virt-preview
38 k
qemu-system-x86 x86_64
2:1.5.1-1.fc18 fedora-virt-preview
3.3 M
seabios-bin noarch
1.7.2.2-1.fc18 fedora-virt-preview
70 k
sgabios-bin noarch
1:0.20110622svn-5.fc18 fedora-virt-preview
6.2 k
Installing for dependencies:
at-spi2-atk x86_64
2.6.2-1.fc18 fedora
72 k
at-spi2-core x86_64
2.6.2-1.fc18 fedora
147 k
cairo-gobject x86_64
1.12.8-2.fc18 fedora
24 k
color-filesystem noarch
1-10 fedora
4.9 k
colord x86_64
0.1.25-1.fc18 fedora
238 k
fuse-libs x86_64
2.9.2-1.fc18 fedora
90 k
gtk3 x86_64
3.6.2-1.fc18 fedora
3.1 M
lcms2 x86_64
2.4-1.fc18 fedora
138 k
libXevie x86_64
1.0.3-4.fc18 fedora
17 k
libgusb x86_64
0.1.4-1.fc18 fedora
33 k
libvirt-daemon-driver-vbox x86_64
1.1.0-1.fc18 fedora-virt-preview
189 k
seavgabios-bin noarch
1.7.2.2-1.fc18 fedora-virt-preview
25 k
shared-color-profiles noarch
0.1.6-1.fc18 fedora
705 k
vte3 x86_64
0.34.2-3.fc18 fedora
329 k_______________________________________________
Users mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/users