[Bug 837585] New: xen* pkg update DISables `xencommons` and `xendomains` systemd services
https://bugzilla.novell.com/show_bug.cgi?id=837585 https://bugzilla.novell.com/show_bug.cgi?id=837585#c0 Summary: xen* pkg update DISables `xencommons` and `xendomains` systemd services Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: All OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: jdouglas@suse.com ReportedBy: ar16@imapmail.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 After each xen-libs/tools update, both `xencommons` and `xendomains` systemd services are DISabled, requiring: systemctl enable xencommons.service ln -s '/usr/lib/systemd/system/xencommons.service' '/etc/systemd/system/multi-user.target.wants/xencommons.service' systemctl enable xendomains.service ln -s '/usr/lib/systemd/system/xendomains.service' '/etc/systemd/system/multi-user.target.wants/xendomains.service' to straighten things out. looking at the spec, https://build.opensuse.org/package/view_file/Virtualization/xen/xen.spec?exp... This looks to be the enable-on-install trigger ... 1119 # without_xend %if %{?with_systemd}0 %{fillup_and_insserv -i -y -n xencommons xencommons} /bin/systemctl enable xencommons.service %else ... %ifnarch %arm aarch64 %if %{?with_systemd}0 %{fillup_and_insserv -i -y -n xendomains xendomains} /bin/systemctl enable xendomains.service %else ...
From mailing list,
"Best to open a bug I suppose, so this doesn't get lost. Visual review of the spec file didn't reveal any obvious bug, so this will require more investigation, which is low priority for me ATM - apologies." Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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://bugzilla.novell.com/show_bug.cgi?id=837585
https://bugzilla.novell.com/show_bug.cgi?id=837585#c
Charles Arnold
https://bugzilla.novell.com/show_bug.cgi?id=837585
https://bugzilla.novell.com/show_bug.cgi?id=837585#c1
--- Comment #1 from A R
https://bugzilla.novell.com/show_bug.cgi?id=837585
https://bugzilla.novell.com/show_bug.cgi?id=837585#c2
Charles Arnold
https://bugzilla.novell.com/show_bug.cgi?id=837585
https://bugzilla.novell.com/show_bug.cgi?id=837585#c3
A R
https://bugzilla.novell.com/show_bug.cgi?id=837585
https://bugzilla.novell.com/show_bug.cgi?id=837585#c4
--- Comment #4 from Charles Arnold
Unfortunately, not if you mean: 4.3.0_09-270.1
zypper -v dup ... Computing upgrade...
The following packages are going to be upgraded: ... qemu 1.6.0-168.4 -> 1.6.0-168.5 qemu-tools 1.6.0-168.4 -> 1.6.0-168.5 xen 4.3.0_09-269.2 -> 4.3.0_09-270.1 xen-devel 4.3.0_09-269.2 -> 4.3.0_09-270.1 xen-libs 4.3.0_09-269.2 -> 4.3.0_09-270.1 xen-tools 4.3.0_09-269.2 -> 4.3.0_09-270.1 ... ( 9/11) Installing: xen-tools-4.3.0_09-270.1 ........................................................................ Additional rpm output: Updating /etc/sysconfig/xencommons... ln -s '/usr/lib/systemd/system/xencommons.service' '/etc/systemd/system/multi-user.target.wants/xencommons.service' Updating /etc/sysconfig/xendomains... ln -s '/usr/lib/systemd/system/xendomains.service' '/etc/systemd/system/multi-user.target.wants/xendomains.service' !! rm '/etc/systemd/system/multi-user.target.wants/xencommons.service' !! rm '/etc/systemd/system/multi-user.target.wants/xendomains.service' ...
This is because the uninstall scripts of the prior installed version of the xen-tools RPM (4.3.0_09-269.2) runs on the upgrade to the newer version. The prior version removes the links. The new one will not unless the xen-tools RPM is completely removed from the system. We can't do anything about rpm running the old installed versions of the uninstall scripts unless you pass '--nopreun --nopostun' to the xen-tools RPM. To do a quick fix of the missing links you can install the new xen-tools RPM a second time using '--force'. -- 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://bugzilla.novell.com/show_bug.cgi?id=837585
https://bugzilla.novell.com/show_bug.cgi?id=837585#c5
Charles Arnold
https://bugzilla.novell.com/show_bug.cgi?id=837585
https://bugzilla.novell.com/show_bug.cgi?id=837585#c6
--- Comment #6 from A R
https://bugzilla.novell.com/show_bug.cgi?id=837585
https://bugzilla.novell.com/show_bug.cgi?id=837585#c7
--- Comment #7 from Charles Arnold
Odd. Looks to me from the above execution that the "uninstall scripts of the prior installed version" runs AFTER the *install* script of the NEW version.
That is correct. The install scripts run first from the new package and then the uninstall scripts run after from the old package. It works something like this, %pre script of new package * package install * %post script of new package %preun script of old package * removal of old package * %postun script of old package -- 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