Upgrade/Downgrade ad infinitum

Grant McWilliams grantmasterflash at gmail.com
Sat Nov 17 11:38:54 PST 2007


OK folks. I've not gotten anything back on this and it's rearing it's ugly
head quite  a lot on 50 machines so I spent a little time on it.

It seems (and I haven't dug into the source) that smartpm puts a weighting
on various criteria in order to "smartly" decide what to upgrade, keep the
same or downgrade.
A couple of the things it seems to weight is repository priority and package
version. However, it doesn't seem to use the same criteria all the time or
at least not in the same order.

So if I have CentOS-Base with a priority of 1 and RPMforge with a priority
of 0 and theirs a newer version of a package in RPMforge it will upgrade it.
On the next pass it will see that CentOS-Base has a higher priority and
downgrade the exact same package! If I boost the priority of CentOS-Base to
5 it wins all the time.

This seems to be a bug as the weighting should have an order and that order
should never change. If a channel has priority it should have it period. I'm
still not having the time "yet" to dig into the source and help out. I'm
hoping that I'll get a break soon.

Grant


On Oct 30, 2007 10:47 AM, Grant McWilliams <grantmasterflash at gmail.com>
wrote:

> I'mmm Baaack!
>
> Ok, I've run into this problem again. If I do a smart upgrade it wants to
> upgrade a bunch of packages and downgrade one. I then do it again and it
> upgrades the one it downgraded and downgrades the others. It will do this
> forever.  This time I captured the output.
>
>
> [root at MSL-31 ~]# smart upgrade
> Loading cache...
> Updating cache...
> ################################################### [100%]
>
> Computing transaction...
>
> Upgrading packages (5):
>   agg-2.5-1.el5.rf at i386
> perl-DBI-1.58-2.el5.rf at i386
>   lftp-3.5.14-1.el5.rf at i386
> perl-XML-SAX-0.16-1.el5.rf at noarch
>   perl-Convert-ASN1-0.21-2.el5.rf at noarch
>
> Downgrading packages (1):
>   subversion-1.4.2-2.el5 at i386
>
> 5.2MB of package files are needed. 2.4MB will be freed.
>
> Confirm changes? (Y/n): y
>
> Fetching
> packages...
>
> ->
> http://apt.sw.be/redhat/el5/en/i386/dag/RPMS/lftp-3.5.14-1.el5.rf.i386.rpm
>
> lftp-3.5.14-1.el5.rf.i386.rpm
> ################################################### [100%]
>
>
>
> Committing transaction...
> Preparing...
> ################################################### [  0%]
>    1:Installing perl-DBI
> ################################################### [  8%]
>    2:Cleaning perl-DBI
> ################################################### [ 16%]
>    3:Installing agg
> ################################################### [ 25%]
>    4:Cleaning agg
> ################################################### [ 33%]
>    5:Installing perl-XML-SAX
> ################################################### [ 41%]
>    6:Cleaning perl-XML-SAX
> ################################################### [ 50%]
>    7:Installing subversion
> ################################################### [ 58%]
>    8:Cleaning subversion
> ################################################### [ 66%]
>    9:Installing perl-Convert-ASN1
> ################################################### [ 75%]
>   10:Cleaning perl-Convert-ASN1
> ################################################### [ 83%]
>   11:Installing lftp
> ################################################### [ 91%]
>   12:Cleaning lftp
> ################################################### [100%]
>
>
> [root at MSL-31 ~]# smart upgrade
> Loading cache...
> Updating cache...
> ################################################### [100%]
>
> Computing transaction...
>
> Upgrading packages (1):
>   subversion-1.4.4-0.1.el5.rf at i386
>
> Downgrading packages (5):
>   agg-2.4-2.1 at i386                               perl-DBI-1.52-1.fc6 at i386
>
>   lftp-3.5.1-2.fc6 at i386
> perl-XML-SAX-0.14-5 at noarch
>   perl-Convert-ASN1-0.20-1.1 at noarch
>
> 6.1MB of package files are needed. 2.4MB will be used.
>
> Confirm changes? (Y/n): n
>
> Saving cache...
>
> [root at MSL-31 ~]# smart update
> Loading cache...
> Updating cache...
> ################################################### [100%]
>
> Fetching information for 'CentOS 5 - i386 -
> atrpms'...
> ->
> http://mirrors.ircam.fr/pub/atrpms/el5-i386/atrpms/stable//repodata/repomd.xml
>
> repomd.xml
> ################################################### [  4%]
>
>
> Fetching information for 'CentOS 5 - i386 - rpmforge'...
> -> http://apt.sw.be/redhat/el5/en/i386/dag/repodata/repomd.xml
>
> repomd.xml
> ################################################### [ 14%]
>
>
> Fetching information for 'MSL Packages'...
> -> scp://mas:*@testserver.com:/home/update-repo/MSL/repodata/repomd.xml
>
> repomd.xml
> ################################################### [ 23%]
>
>
> Fetching information for 'CentOS 5 - i386 - extras'...
> -> http://yum.math.hmc.edu/os/centos/5/extras/i386/repodata/repomd.xml
>
> repomd.xml
> ################################################### [ 33%]
>
>
> Fetching information for 'CentOS 5 - i386 - plus'...
> -> http://yum.math.hmc.edu/os/centos/5/centosplus/i386/repodata/repomd.xml
>
> repomd.xml
> ################################################### [ 42%]
>
>
> Fetching information for 'CentOS 5 - i386 - base'...
> -> http://mirror.stanford.edu/yum/pub/centos/5/os/i386/repodata/repomd.xml
>
> repomd.xml
> ################################################### [ 52%]
>
>
> Fetching information for 'CentOS 5 - i386 - updates'...
> -> http://mirror.stanford.edu/yum/pub/centos/5/updates/i386/repodata/repomd.xml
>
> repomd.xml
> ################################################### [ 61%]
>
> Updating cache...
> ################################################### [100%]
>
> Channels have no new packages.
>
>


-- 
Some people, when confronted with a problem, think "I know, I'll use
Windows."
Now they have two problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.labix.org/pipermail/smart-labix.org/attachments/20071117/57111ad5/attachment-0002.htm>


More information about the Smart mailing list