SCIENTIFIC-LINUX-DEVEL Archives

July 2005

SCIENTIFIC-LINUX-DEVEL@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Troy Dawson <[log in to unmask]>
Reply To:
Troy Dawson <[log in to unmask]>
Date:
Fri, 29 Jul 2005 14:20:21 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (288 lines)
Troy Dawson wrote:
> Jaroslaw Polok wrote:
> 
>> Jaroslaw Polok wrote:
>>
>>> Hi
>>>
>>>
>>>> I just want to double check, which version of yum are you working 
>>>> with.  Can you send
>>>>
>>>>   rpm -q yum
>>
>>
>> Yep. 2.0.7-11.SL also has a problem (but different):
>>
>> I will do the following:
>> [install: kernel-smp 2.4.21-32.0.1.EL.cern.x86_64]
>> [install: kernel-source 2.4.21-32.0.1.EL.cern.x86_64]
>> [install: kernel 2.4.21-32.0.1.EL.cern.x86_64]
>> [update: kernel-module-openafs-2.4.21-32.0.1.EL.cernsmp
>> ^^^^^^^^
>> 1.2.11-15.12.SL.x86_64]
>> [update: kernel-module-openafs-2.4.21-32.0.1.EL.cern
>> ^^^^^^^^
>> 1.2.11-15.12.SL.x86_64]
>>
>>
>> NO: Actually I want to install the module packages,
>> NOT upgrade these .. (because that would remove modules
>> for my current running kernel !!)
>>
>> After patching nevral.py (patch at the bottom), I get
>> what I expect:
>>
>> I will do the following:
>> [install: kernel-module-openafs-2.4.21-32.0.1.EL.cernsmp 
>> 1.2.11-15.12.SL.x86_64]
>> [install: kernel-smp 2.4.21-32.0.1.EL.cern.x86_64]
>> [install: kernel-module-openafs-2.4.21-32.0.1.EL.cern 
>> 1.2.11-15.12.SL.x86_64]
>> [install: kernel-source 2.4.21-32.0.1.EL.cern.x86_64]
>> [install: kernel 2.4.21-32.0.1.EL.cern.x86_64]
>>
>> And here's the patch (against :yum-2.0.7-11.SL):
>>
>> --- nevral.py.org       2005-07-20 17:02:40.000000000 +0200
>> +++ nevral.py   2005-07-20 17:04:40.000000000 +0200
>> @@ -344,9 +344,9 @@
>>             if mo:
>>                 modname, kv = mo.group(1,2)
>>                 if modname in mod_list and kv in 
>> kernel_version_list.keys() and arch == kernel_version_list[kv]:
>> -                   if self.state(name,arch) != 'u':
>> -                       self.setPkgState(name,arch, 'u')
>> -                       log(4, "Upgrading " + name)
>> +                   if self.state(name,arch) != 'i':
>> +                       self.setPkgState(name,arch, 'i')
>> +                       log(4, "Installing " + name)
>>
>>         return res
>>
>>
>> Could you please test/validate this ?
>>
>> Jarek
> 
> 
> Will do.
> Thanks for the detail.  It should make testing alot easier.
> 
> Troy
> 

Hi Jarek,
Sorry for the delay in replying to this.  Especially when we're 
releasing.  But the end result is that we're sticking with yum-2.0.7-11.SL.

In your tests, you never actually said 'Y' to it.  If you had you would 
find that when Yum says "Update" it means Update in the same sense that 
rpm says Update.  That is, if there is something older, then it will 
really update it, but if that something isn't even installed, then it 
will just install it.
So yum was working correctly, but I will admit that it is a little 
confusing saying 'Update' when it's really an 'Install'  But anyway, 
here is the test of yum-2.0.7-11.SL  (with alot of details taken out, 
which I have if you want)

--------------------

[root@cob root]# rpm -q yum
yum-2.0.7-11.SL.noarch
[root@cob root]# rpm -qa | grep kernel-module
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.11-15.12.SL.i686
[root@cob root]# yum -c yum.conf.afs update
... snip ...
I will do the following:
[install: kernel-smp-unsupported 2.4.21-32.0.1.EL.i686]
[install: kernel-unsupported 2.4.21-32.0.1.EL.i686]
[install: kernel 2.4.21-32.0.1.EL.i686]
[install: kernel-source 2.4.21-32.0.1.EL.i386]
[install: kernel-smp 2.4.21-32.0.1.EL.i686]
[update: kernel-module-openafs-2.4.21-32.0.1.ELsmp 1.2.11-15.12.SL.i686]
[update: kernel-module-openafs-2.4.21-32.0.1.EL 1.2.11-15.12.SL.i686]
Is this ok [y/N]: y
... snip ...
Installed:  kernel-smp-unsupported 2.4.21-32.0.1.EL.i686 
kernel-unsupported 2.4.21-32.0.1.EL.i686 kernel 2.4.21-32.0.1.EL.i686 
kernel-source 2.4.21-32.0.1.EL.i386 kernel-smp 2.4.21-32.0.1.EL.i686
Updated:  kernel-module-openafs-2.4.21-32.0.1.ELsmp 1.2.11-15.12.SL.i686 
kernel-module-openafs-2.4.21-32.0.1.EL 1.2.11-15.12.SL.i686
Transaction(s) Complete
[root@cob root]# rpm -qa | grep kernel-module
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.ELsmp-1.2.11-15.12.SL.i686
[root@cob root]#
-----------------------

Now, at first glance, I thought, well, it doesn't actually NEED the 
patch, but I'll put it in so things look better ... and they did as we 
see in this test

---------------------------

[root@cob root]# rpm -qa | grep kernel-module
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.11-15.12.SL.i686
[root@cob root]# rpm -q yum
yum-2.0.7-12.SL.noarch
[root@cob root]# yum -c yum.conf.afs update
... snip ...
I will do the following:
[install: kernel-smp-unsupported 2.4.21-32.0.1.EL.i686]
[install: kernel-unsupported 2.4.21-32.0.1.EL.i686]
[install: kernel-module-openafs-2.4.21-32.0.1.ELsmp 1.2.11-15.12.SL.i686]
[install: kernel-module-openafs-2.4.21-32.0.1.EL 1.2.11-15.12.SL.i686]
[install: kernel 2.4.21-32.0.1.EL.i686]
[install: kernel-source 2.4.21-32.0.1.EL.i386]
[install: kernel-smp 2.4.21-32.0.1.EL.i686]
Is this ok [y/N]: y
... snip ...
Installed:  kernel-smp-unsupported 2.4.21-32.0.1.EL.i686 
kernel-unsupported 2.4.21-32.0.1.EL.i686 
kernel-module-openafs-2.4.21-32.0.1.ELsmp 1.2.11-15.12.SL.i686 
kernel-module-openafs-2.4.21-32.0.1.EL 1.2.11-15.12.SL.i686 kernel 
2.4.21-32.0.1.EL.i686 kernel-source 2.4.21-32.0.1.EL.i386 kernel-smp 
2.4.21-32.0.1.EL.i686
Transaction(s) Complete
[root@cob root]# rpm -qa | grep kernel-module
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.ELsmp-1.2.11-15.12.SL.i686
[root@cob root]#

---------------------------

But, there is another test that we have to do, and that is to actually 
update openafs from one version to another.  And this is where things 
didn't work out.  Because when yum says it will 'Install' something, it 
really means it will install it.  This is reserved for things like 
kernels where there can be more than one of them.  Luckily we have the 
new openafs for 3.0.5, that I could do this test on.

Here is the results from yum-2.0.7-11.SL
------------------------

[root@cob root]# rpm -qa | grep openafs
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.ELsmp-1.2.11-15.12.SL.i686
openafs-1.2.11-15.12.SL.i386
openafs-client-1.2.11-15.12.SL.i386
[root@cob root]# yum -c yum.conf.new.afs update
... snip ...
I will do the following:
[update: kernel-module-openafs-2.4.21-27.0.2.ELsmp 1.2.13-15.16.SL.i686]
[update: kernel-module-openafs-2.4.21-27.0.4.EL 1.2.13-15.16.SL.i686]
[update: kernel-module-openafs-2.4.21-27.0.2.EL 1.2.13-15.16.SL.i686]
[update: openafs-client 1.2.13-15.16.SL.i386]
[update: kernel-module-openafs-2.4.21-32.0.1.ELsmp 1.2.13-15.16.SL.i686]
[update: kernel-module-openafs-2.4.21-32.0.1.EL 1.2.13-15.16.SL.i686]
[update: openafs 1.2.13-15.16.SL.i386]
[update: kernel-module-openafs-2.4.21-27.0.4.ELsmp 1.2.13-15.16.SL.i686]
Is this ok [y/N]: y
... snip ...
Updated:  kernel-module-openafs-2.4.21-27.0.2.ELsmp 1.2.13-15.16.SL.i686 
kernel-module-openafs-2.4.21-27.0.4.EL 1.2.13-15.16.SL.i686 
kernel-module-openafs-2.4.21-27.0.2.EL 1.2.13-15.16.SL.i686 
openafs-client 1.2.13-15.16.SL.i386 
kernel-module-openafs-2.4.21-32.0.1.ELsmp 1.2.13-15.16.SL.i686 
kernel-module-openafs-2.4.21-32.0.1.EL 1.2.13-15.16.SL.i686 openafs 
1.2.13-15.16.SL.i386 kernel-module-openafs-2.4.21-27.0.4.ELsmp 
1.2.13-15.16.SL.i686
Transaction(s) Complete
[root@cob root]# rpm -qa | grep openafs
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-32.0.1.EL-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-32.0.1.ELsmp-1.2.13-15.16.SL.i686
openafs-1.2.13-15.16.SL.i386
openafs-client-1.2.13-15.16.SL.i386
[root@cob root]#

-------------------------------

And now with the patch

-------------------------------
[root@cob root]#  rpm -qa | grep openafs
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.ELsmp-1.2.11-15.12.SL.i686
openafs-1.2.11-15.12.SL.i386
openafs-client-1.2.11-15.12.SL.i386
[root@cob root]#  yum -c yum.conf.new.afs update
... snip ...
I will do the following:
[install: kernel-module-openafs-2.4.21-27.0.2.ELsmp 1.2.13-15.16.SL.i686]
[install: kernel-module-openafs-2.4.21-27.0.4.EL 1.2.13-15.16.SL.i686]
[install: kernel-module-openafs-2.4.21-27.0.2.EL 1.2.13-15.16.SL.i686]
[install: kernel-module-openafs-2.4.21-32.0.1.ELsmp 1.2.13-15.16.SL.i686]
[install: kernel-module-openafs-2.4.21-32.0.1.EL 1.2.13-15.16.SL.i686]
[install: kernel-module-openafs-2.4.21-27.0.4.ELsmp 1.2.13-15.16.SL.i686]
[update: openafs-client 1.2.13-15.16.SL.i386]
[update: openafs 1.2.13-15.16.SL.i386]
Is this ok [y/N]: y
... snip ...
Installed:  kernel-module-openafs-2.4.21-27.0.2.ELsmp 
1.2.13-15.16.SL.i686 kernel-module-openafs-2.4.21-27.0.4.EL 
1.2.13-15.16.SL.i686 kernel-module-openafs-2.4.21-27.0.2.EL 
1.2.13-15.16.SL.i686 kernel-module-openafs-2.4.21-32.0.1.ELsmp 
1.2.13-15.16.SL.i686 kernel-module-openafs-2.4.21-32.0.1.EL 
1.2.13-15.16.SL.i686 kernel-module-openafs-2.4.21-27.0.4.ELsmp 
1.2.13-15.16.SL.i686
Updated:  openafs-client 1.2.13-15.16.SL.i386 openafs 1.2.13-15.16.SL.i386
Transaction(s) Complete
[root@cob root]#  rpm -qa | grep openafs
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.2.EL-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.2.ELsmp-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.EL-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-27.0.4.ELsmp-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-32.0.1.EL-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.EL-1.2.13-15.16.SL.i686
kernel-module-openafs-2.4.21-32.0.1.ELsmp-1.2.11-15.12.SL.i686
kernel-module-openafs-2.4.21-32.0.1.ELsmp-1.2.13-15.16.SL.i686
openafs-1.2.13-15.16.SL.i386
openafs-client-1.2.13-15.16.SL.i386
[root@cob root]#

-------------------------

So because those were labeled for 'Install', they installed right over 
top of the old ones.

Troy
p.s. Sorry this is so long, but I've had a couple people contacting me 
about this, and I wanted them to be able to see the test results.

-- 
__________________________________________________
Troy Dawson  [log in to unmask]  (630)840-6468
Fermilab  ComputingDivision/CSS  CSI Group
__________________________________________________

ATOM RSS1 RSS2