[Yum-devel] $releasever non-interpolation in mirrorlist queries (yum 3.2.8 - centos5)

Charlie Brady charlieb-yum-devel at budge.apana.org.au
Thu Aug 7 18:56:44 UTC 2008


On Thu, 7 Aug 2008, Seth Vidal wrote:

> On Thu, 2008-08-07 at 14:47 -0400, Charlie Brady wrote:
>> On Thu, 7 Aug 2008, Charlie Brady wrote:
>>
>>> [root at li32-157 yum.repos.d]#
>>>
>>> strace shows that the "5" is not being interpolated into the mirror list
>>> query:
>>>
>>> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
>>> connect(5, {sa_family=AF_INET, sin_port=htons(80),
>>> sin_addr=inet_addr("204.15.73.243")}, 16) = 0
>>> send(5, "GET /?release=$releasever&arch=$basearch&repo=os HTTP/1.1\r\nHost:
>>> mirrorlist.centos.org\r\nAccept-
>>> Encoding: identity\r\nUser-agent: urlgrabber/3.1.0 yum/3.2.8\r\n\r\n", 157,
>>
>> yum 3.2.17 behaves better, so I guess this has been found and fixed
>> already (and RedHat doesn't know or doesn't care because it doesn't
>> affect them):
>>
>> ...
>> 7213  socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
>> 7213  connect(5, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("204.15.73.243")}, 16) = 0
>> 7213  send(5, "GET /?release=5&arch=i386&repo=os HTTP/1.1\r\nHost: mirrorlist.centos.org\r\nAccept-Encoding: identity\r\nUser-agent: urlgrabber/3.1.0 yum/3.2.17\r\n\r\n", 143, 0) = 143
>> 7213  recv(5, "H", 1, 0)                = 1
>
> or it could have been fixed.

Without being found? OK, that happens sometimes.

> oh and $releasever does impact red hat distros - for example EPEL uses
> it - that's for rhel and centos.

>From what I've seen it won't affect them unless there are systems with 
mirrorlist being specified for repos in-line in /etc/yum.conf. There 
probably aren't too many of those.



More information about the Yum-devel mailing list