Bug 590709 - Nagios uninstall by update
Nagios uninstall by update
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: nagios (Show other bugs)
12
All Linux
low Severity high
: ---
: ---
Assigned To: Peter Lemenkov
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-10 10:28 EDT by marianne@tuxette.fr
Modified: 2010-06-23 18:12 EDT (History)
7 users (show)

See Also:
Fixed In Version: nagios-plugins-1.4.14-4.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-06-16 13:40:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Extract of the /var/log/messages (6.65 KB, text/plain)
2010-05-10 10:28 EDT, marianne@tuxette.fr
no flags Details

  None (edit)
Description marianne@tuxette.fr 2010-05-10 10:28:05 EDT
Created attachment 412855 [details]
Extract of the /var/log/messages

Description of problem:
I've updated my desktop in wich I've installed a nagios server. 
The update have updated a lot of nagios-plugins and installed nagios-common but uninstall the nagios package

Version-Release number of selected component (if applicable):
 nagios-common-3.2.1-2.fc12.i686
nagios-3.2.1-2.fc12.i686

How reproducible:
updating a existant nagios install

  
Actual results:
all config files have been passed as "rpmsave" so no configuration is lost but it's very unexepected and deceiptful to see the QA fails 

I have reinstalled the nagios package and move the configfiles from .cfg.rpmsave to cfg and my nagios work again
Comment 1 Fedora Update System 2010-05-17 14:58:22 EDT
nagios-3.2.1-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/nagios-3.2.1-3.fc12
Comment 2 Fedora Update System 2010-05-17 14:58:27 EDT
nagios-3.2.1-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/nagios-3.2.1-3.fc11
Comment 3 Fedora Update System 2010-05-17 14:58:33 EDT
nagios-3.2.1-3.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/nagios-3.2.1-3.fc13
Comment 4 Fedora Update System 2010-05-18 03:40:07 EDT
nagios-plugins-1.4.14-4.el5,nagios-2.12-8.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-4.el5,nagios-2.12-8.el5
Comment 5 Fedora Update System 2010-05-18 03:40:24 EDT
nagios-plugins-1.4.14-4.el4,nagios-2.12-8.el4 has been submitted as an update for Fedora EPEL 4.
http://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-4.el4,nagios-2.12-8.el4
Comment 6 Fedora Update System 2010-05-18 22:38:50 EDT
nagios-plugins-1.4.14-4.el4, nagios-2.12-8.el4 has been pushed to the Fedora EPEL 4 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nagios-plugins nagios'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-4.el4,nagios-2.12-8.el4
Comment 7 Fedora Update System 2010-05-18 22:39:40 EDT
nagios-plugins-1.4.14-4.el5, nagios-2.12-8.el5 has been pushed to the Fedora EPEL 5 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nagios-plugins nagios'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-4.el5,nagios-2.12-8.el5
Comment 8 Michael Schwendt 2010-05-19 01:13:13 EDT
Both "Obsoletes" are wrong and should be removed. They are useless.

http://lists.fedoraproject.org/pipermail/devel/2010-May/136433.html

Btw, the damage is done. Where "nagios" was replaced by "nagios-common" due to the unneeded Obsoletes, you cannot make the update reinstall "nagios" unless you would make it a new dependency again [somewhere in a -plugin package].


> it's very unexepected and deceiptful to see the QA fails 

Which QA? That update hasn't seen any:

https://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-3.fc12.1,nagios-3.2.1-2.fc12
Comment 9 Peter Lemenkov 2010-05-19 06:41:12 EDT
(In reply to comment #8)
> Both "Obsoletes" are wrong and should be removed. They are useless.

That's not true. In every case we splitting package, we must add Obsoletes to each new package, created from previous monolithic one. Otherwise user could face rpm conflicts or we'll create other rpm-related problems (for example, multiple owned directories).

My only (and very severe) mistake was that I didn't add necessary Obsoletes to both packages but only to nagios-common. Now I fixed this issue.
Comment 10 Michael Schwendt 2010-05-19 08:44:34 EDT
> In every case we splitting package, we must add Obsoletes to
> each new package, created from previous monolithic one.

Not true.

And certainly not true for this nagios --> nagios + nagios-common split either.
Comment 11 Peter Lemenkov 2010-05-19 09:05:16 EDT
(In reply to comment #10)
> > In every case we splitting package, we must add Obsoletes to
> > each new package, created from previous monolithic one.
> 
> Not true.
> 
> And certainly not true for this nagios --> nagios + nagios-common split either.    

Ok, to be more specific - here is a user's case:

1. User installs nagios (previous monolithic version).
2. User installs nagios-plugins (updated package) - this pulls nagios-common (newest version).

This leads to 'multiple owned directory' issue (because there is no way to tell user that nagios-common now owns directory previously owned by nagios). But if we'll use 'Obsoletes', then this update replaces nagios, thus all directories would have the only owner.

That's why we need 'Obsoletes' in nagios-common => We must add 'Obsoletes' to main nagios package to prevent issues like this one, described in the comment #0.
Comment 12 Michael Schwendt 2010-05-19 10:19:02 EDT
> That's why we need 'Obsoletes' in nagios-common

You didn't prove why you need that. The Obsoletes in nagios-common did nothing else than cause the breakage as described in this ticket.


> here is a user's case:

A simple "yum update" prior to adding new packages is common practise. It would pull in the updated nagios package *and* nagios-common.

In case there really were a file conflict that would error out at the transaction check (there's isn't, because just the dirs moved), self-Obsoletes in "nagios" would suffice and enforce an update of nagios. => That means, to _move_ the 'Obsoletes' from nagios-common to nagios, but not to put the same 'Obsoletes' into both packages.
Comment 13 Michael Schwendt 2010-05-19 10:40:49 EDT
$ rpm -q nagios
nagios-3.2.1-1.fc12.i686

$ sudo yum install nagios-plugins-load
...
Dependencies Resolved

================================================================================
 Package                 Arch     Version             Repository           Size
================================================================================
Installing:
 nagios-common           i686     3.2.1-3.fc12        updates-testing      13 k
     replacing  nagios.i686 3.2.1-1.fc12
 nagios-plugins-load     i686     1.4.14-3.fc12.1     updates              22 k
Installing for dependencies:
 nagios-plugins          i686     1.4.14-3.fc12.1     updates             164 k

Transaction Summary
================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total size: 199 k
Is this ok [y/N]: n

Certainly not okay, since it would also erase (= replace) nagios, which is what this bug report is about.
Comment 14 Fedora Update System 2010-06-09 05:30:44 EDT
nagios-3.2.1-5.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/nagios-3.2.1-5.fc12
Comment 15 Fedora Update System 2010-06-09 05:30:51 EDT
nagios-3.2.1-5.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/nagios-3.2.1-5.fc13
Comment 16 Fedora Update System 2010-06-09 05:30:55 EDT
nagios-3.2.1-5.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/nagios-3.2.1-5.fc11
Comment 17 Fedora Update System 2010-06-09 05:39:26 EDT
nagios-plugins-1.4.14-4.el5,nagios-2.12-9.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-4.el5,nagios-2.12-9.el5
Comment 18 Fedora Update System 2010-06-09 05:39:51 EDT
nagios-plugins-1.4.14-4.el4,nagios-2.12-9.el4 has been submitted as an update for Fedora EPEL 4.
http://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-4.el4,nagios-2.12-9.el4
Comment 19 Fedora Update System 2010-06-09 11:47:21 EDT
nagios-plugins-1.4.14-4.el4, nagios-2.12-9.el4 has been pushed to the Fedora EPEL 4 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nagios-plugins nagios'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-4.el4,nagios-2.12-9.el4
Comment 20 Fedora Update System 2010-06-09 11:49:47 EDT
nagios-plugins-1.4.14-4.el5, nagios-2.12-9.el5 has been pushed to the Fedora EPEL 5 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nagios-plugins nagios'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nagios-plugins-1.4.14-4.el5,nagios-2.12-9.el5
Comment 21 Fedora Update System 2010-06-10 15:12:51 EDT
nagios-3.2.1-5.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nagios'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nagios-3.2.1-5.fc11
Comment 22 Fedora Update System 2010-06-10 15:17:15 EDT
nagios-3.2.1-5.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nagios'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nagios-3.2.1-5.fc13
Comment 23 Fedora Update System 2010-06-10 15:19:30 EDT
nagios-3.2.1-5.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update nagios'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/nagios-3.2.1-5.fc12
Comment 24 Fedora Update System 2010-06-16 13:40:15 EDT
nagios-3.2.1-5.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 25 Fedora Update System 2010-06-16 13:47:02 EDT
nagios-3.2.1-5.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 26 Fedora Update System 2010-06-16 13:49:40 EDT
nagios-3.2.1-5.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 27 Fedora Update System 2010-06-23 18:10:08 EDT
nagios-plugins-1.4.14-4.el4, nagios-2.12-9.el4 has been pushed to the Fedora EPEL 4 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 28 Fedora Update System 2010-06-23 18:11:41 EDT
nagios-plugins-1.4.14-4.el5, nagios-2.12-9.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.