[Bug 845851] New: package libvirt-daemon: installation error
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=845851 https://bugzilla.novell.com/show_bug.cgi?id=845851#c0 Summary: package libvirt-daemon: installation error Classification: openSUSE Product: openSUSE Factory Version: 13.1 Beta 1 Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: comes@naic.edu QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 If during the installation I select to install the package libvirt-daemon , I found this error in /var/log/zypp/history: # 2013-10-13 18:00:10 libvirt-daemon-1.1.2-2.2.1.x86_64.rpm installed ok # Additional rpm output: # warning: user qemu does not exist - using root # warning: group qemu does not exist - using root # warning: user qemu does not exist - using root # warning: group qemu does not exist - using root # warning: user qemu does not exist - using root # warning: group qemu does not exist - using root # warning: user qemu does not exist - using root # warning: group qemu does not exist - using root # Updating /etc/sysconfig/libvirtd... # Updating /etc/sysconfig/virtlockd... # 2013-10-13 18:00:11|install|libvirt-daemon|1.1.2-2.2.1|x86_64||openSUSE-13.1-1.3|56745b18332e9af5e8f76c271736534e1351ea5270636cdc6a3b0c300709fe10| The problem is that some files in libvirt-daemon package belongs to qemu:qemu but at the time libvirt-daemon is installed user qemu and group qemu do not exist. A possible fix is to add a preinstall scriplet that creates user and group qemu or make libvirt-daemon PreReq a package that creates such user/group Reproducible: Always Steps to Reproduce: 1.Install 13.1 RC 1 adding the libvirt-daemon package 2. 3. Actual Results: There is a message in /var/log/zypp/history about user qemu does not exist - using root and group qemu does not exist - using root Expected Results: no error message -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=845851 https://bugzilla.novell.com/show_bug.cgi?id=845851#c Ye Yuan <yyuan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yyuan@suse.com AssignedTo|bnc-team-screening@forge.pr |jfehlig@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=845851 https://bugzilla.novell.com/show_bug.cgi?id=845851#c1 James Fehlig <jfehlig@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jdouglas@suse.com Resolution| |FIXED --- Comment #1 from James Fehlig <jfehlig@suse.com> 2013-10-18 20:49:48 UTC --- (In reply to comment #0)
A possible fix is to add a preinstall scriplet that creates user and group qemu or make libvirt-daemon PreReq a package that creates such user/group
That is what the qemu package does. AFAICT, the warnings are a result of the following in libvirt.spec %define qemu_user qemu %define qemu_group qemu .. %files daemon .. %if %{with_qemu} %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/ %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/ %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/ %dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/channel/target/ .. %endif These, and similar hypervisor-specific files for xen, uml, and lxc, should be in the hypervisor-specific daemons, e.g. daemon-xen, daemon-uml, and daemon-lxc. I've made this change in the spec file and have it queued in the Virtualization project for Factory/13.1 RC2. You can give it a try if you like https://build.opensuse.org/package/show/Virtualization/libvirt FYI, libvirt-daemon only provides a skeletal libvirtd. To make it useful, you need to add a libvirt-daemon-<hypervisor> subpackage of your choosing. At install, you can also use the kvm_server and xen_server patterns to have the corresponding virtualization stack installed for you, including virt-manager. Post-install, you can use the "Install hypervisor and tools" yast module. Thanks for the report! I'm glad this was found and fixed before RC2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
![](https://seccdn.libravatar.org/avatar/3035b38ff33cf86f480bb169b8500b80.jpg?s=120&d=mm&r=g)
https://bugzilla.novell.com/show_bug.cgi?id=845851 https://bugzilla.novell.com/show_bug.cgi?id=845851#c2 --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-10-26 04:00:49 CEST --- This is an autogenerated message for OBS integration: This bug (845851) was mentioned in https://build.opensuse.org/request/show/204842 Factory / libvirt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com