Bug 1588 - Mgaonline doesn't invalidate old mirrors cache on installation
Summary: Mgaonline doesn't invalidate old mirrors cache on installation
Status: RESOLVED DUPLICATE of bug 5609
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-05 02:14 CEST by Anssi Hannula
Modified: 2012-04-26 15:42 CEST (History)
3 users (show)

See Also:
Source RPM: mgaonline
CVE:
Status comment:


Attachments

Description Anssi Hannula 2011-06-05 02:14:38 CEST
On installation, mgaonline replaces the Mandriva mirrorlist URL with mageia url.

However, it fails to invalidate the mirror cache, and urpmi.addmedia stupidly (bug) uses the cache and thus re-adds the Mandriva medias instead of adding the Mageia medias.

This breaks migration by following http://mageia.org/en/1/migrate/ .

It should be fixed by rm'ing /var/cache/urpmi/mirrors.cache when an mdv system is migrated.
Comment 1 Manuel Hiebel 2011-06-06 14:14:40 CEST
duplicate

*** This bug has been marked as a duplicate of bug 1557 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE

Comment 2 Ahmad Samir 2011-07-02 03:55:26 CEST
Same symptoms but two different tools, reopening.

Status: RESOLVED => REOPENED
Hardware: i586 => arm
Resolution: DUPLICATE => (none)

Comment 3 Richard Neill 2011-07-13 00:00:55 CEST
Also, installing the Mageia updater ought to have an RPM-conflict with the Mandriva one.

I ended up with both the Mageia and Mandriva online updaters running simultaneously in my KDE system tray!

I suggest that the mgaonline-2.77.29-1.mga1 RPM should have an explicit conflict with mdkonline-2.77.15.17-1.2mdv2009.0.

CC: (none) => mageia

Comment 4 Ahmad Samir 2011-07-13 09:01:14 CEST
mgaonline already obsoletes mdkonline, however you need to kill the mdkapplet process manually, or just log out -> log in.
Comment 5 Richard Neill 2011-07-13 16:40:35 CEST
(In reply to comment #4)
> mgaonline already obsoletes mdkonline, however you need to kill the mdkapplet
> process manually, or just log out -> log in.

Sorry - I don't think this is right. I'd been using my new Mga system for several hours (after rebooting into it) when I noticed this problem. I certainly had to manually "rpm -r mdkonline".
Comment 6 Ahmad Samir 2011-07-13 17:11:59 CEST
$ urpmq --obsoletes mgaonline
mdkonline[< 2.77.30-2.mga2]

I don't know what went wrong on your box though..
Comment 7 Richard Neill 2011-07-13 17:27:48 CEST
(In reply to comment #6)
> $ urpmq --obsoletes mgaonline
> mdkonline[< 2.77.30-2.mga2]
> 
> I don't know what went wrong on your box though..

Indeed...well, that's obviously final; a bit puzzling how it happened though. 
/var/log/user.log doesn't tell me much, excepting that I installed 
mgaonline-2.77.29-1.mga1 as the very first step in my upgrade.
Thierry Vignaud 2011-08-18 10:27:49 CEST

CC: (none) => thierry.vignaud
Assignee: bugsquad => thierry.vignaud

Comment 8 Thierry Vignaud 2011-08-18 10:33:11 CEST
We could kill mdkapplet in %post.
I'll make it invalidate the cache like installer now does
I'll look at the obsoletes/provides too
Comment 9 Marja Van Waes 2011-12-27 19:46:16 CET
(In reply to comment #8)
> We could kill mdkapplet in %post.
> I'll make it invalidate the cache like installer now does
> I'll look at the obsoletes/provides too


@ Thierry,
pinging because this bug still has the reopened status and nothing happened to it since august.

Please set status to ASSIGNED or, if for work flow reasons you can't do that, put OK on the whiteboard instead. RESOLVED will do, too, when applicable ;)

CC: (none) => marja11

Comment 10 Marja Van Waes 2012-04-21 20:39:24 CEST
3 monthly ping
Comment 11 Thierry Vignaud 2012-04-21 22:56:38 CEST
I've fixed the cache invalidation (needs backporting as an update to mga1 though).
Anybody can add & test a "%triggerpostun - mdkonline" for upgrading mdv to mga

Keywords: (none) => Junior_job

Comment 12 Manuel Hiebel 2012-04-26 11:43:37 CEST
Since the package is in testing, the QA need an announcement/advisory to validate that update.

Keywords: Junior_job => (none)
Hardware: arm => All

Comment 13 Thierry Vignaud 2012-04-26 12:14:23 CEST
Advisory:
=========
This update fixes mgaonline so that when performing a live update, it invalidates urpmi cache of mirrors so that before adding new release media, else it could break the upgrade.
Comment 14 Manuel Hiebel 2012-04-26 12:16:24 CEST
Thanks

Assignee: thierry.vignaud => qa-bugs

Comment 15 Manuel Hiebel 2012-04-26 15:42:44 CEST
arf I don't have seen the other bug, sorry

*** This bug has been marked as a duplicate of bug 5609 ***

Status: REOPENED => RESOLVED
Resolution: (none) => DUPLICATE


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