Description of problem: When performing online update from mga3 to mga4, error in the urpmi.addmedia line (syntax error) resulted in cauldron repos being added rather than command failure. This resulted in an upgrade to mga5, which had to be removed by using backups. Version-Release number of selected component (if applicable): experienced with urpmi-7.27.3-2. How reproducible: I haven't tried to reproduce it Steps to Reproduce: 1. from this page: https://wiki.mageia.org/en/Mageia_4_Release_Notes copy/paste the line urpmi.addmedia --distrib --mirrorlist http://mirrors.mageia.org/api/mageia.4.$ARCH.list into shell window as written, without substituting $ARCH with x86_64 or i586 (which you are told to do on the next line). 2.continue with upgrade. 3.enjoy pre-alpha mga5 Command should return a syntax error, or in some other way fail to select repositories. Reproducible: Steps to Reproduce:
Component: BuildSystem => RPM PackagesVersion: unspecified => 3Product: Infrastructure => Mageia
it works fine on mga4
CC: (none) => doktor5000
but it looks like someone was affected too on irc, wiki was a bit updated, thierry, if you want to take a look,
Assignee: sysadmin-bugs => thierry.vignaud
IIRC since Mageia 2 or 3, at least when using only --distrib one needs to escape the URL to mirror with single quotes when using either $RELEASE or $ARCH otherwise those are not expanded. E.g. urpmi.addmedia --distrib --wget ftp://ftp.nluug.nl/pub/os/Linux/distr/mageia/distrib/$RELEASE/$ARCH would fail but urpmi.addmedia --distrib --wget 'ftp://ftp.nluug.nl/pub/os/Linux/distr/mageia/distrib/$RELEASE/$ARCH' would work.
WRONG! That's not a syntax error. Urpmi is just expecting an URL. You did provide a valid URL (though not actually pointing to what you though) urpmi expand $ARCH, ... if found. Of course, if you don't quote them, the shell will first try to expand them. The doc was wrong and has been fixed. The real bug regarding upgrade to cauldron instead of mga4 is that the server wrongly reports the content of http://mirrors.mageia.org/api/mageia.4.list when requesting http://mirrors.mageia.org/api/mageia.4..list
Status: NEW => ASSIGNEDComponent: RPM Packages => mirrors.mageia.orgVersion: 3 => trunkProduct: Mageia => WebsitesSource RPM: urpmi-7.27.3-2.mga3.src.rpm => (none)
Priority: Normal => HighAssignee: thierry.vignaud => sysadmin-bugsSummary: urpmi.addmedia does not fail on syntax error, instead adds cauldron repos => mirror API return a list including instead adds cauldron reposSeverity: normal => critical
Actually both these 2 URLs return bogus results. The results are not good when arch is missed. It should return an empty list in that case. Compare: - OK: http://mirrors.mageia.org/api/mageia.4.i586.list - KO: http://mirrors.mageia.org/api/mageia.4..list http://mirrors.mageia.org/api/mageia.4.list http://mirrors.mageia.org/api/mageia..list http://mirrors.mageia.org/api/mageia.list http://mirrors.mageia.org/api/mageia.40.list
Summary: mirror API return a list including instead adds cauldron repos => mirror API return a list including cauldron repos if URL misses arch
CC: (none) => nanardon
setting status back from ASSIGNED to NEW, because the current assignee (Sysadmin Team) did not set the ASSIGNED status.
Status: ASSIGNED => NEWCC: (none) => marja11
Hi, This is High priority bug for a good reason. Making Mageia even better than ever is best direction. In order to do right thing, this bug should be examined and fixed as soon as possible. Packagers, please make the status to Assigned when you are working on this. Feel free to reassign the bug if bad-triaged. Also, if bug is old, please close it. On October 1st 2020, we will drop priority to normal.