[Yum-devel] urlgrabber and rrdns

seth vidal skvidal at linux.duke.edu
Fri Feb 24 21:46:27 UTC 2006


On Tue, 2006-02-14 at 05:26 -0600, Johnny Hughes wrote:
> When using urlgrabber against an rrdns name, I am seeing that it picks 1
> IP address from the list an overwhelming percentage of the time.
> 
> I have tested 2.9.6 and 2.9.7 urlgrabber and both exhibit this trait.
> 
> Using a simple script to grab a url from a webserver that is tied to a
> rrdns with several names, 1 IP came up more than 95% of the time on
> every test.
> 
> Pinging the the same rrdns list in a loop script ends up with the
> distribution of IPs as you would expect ... nearly a 50-50 split for 2
> IPs, a 1/3 split for 3 etc.
> 
> I think that the desired effect if you have more than 1 IP address
> returned would be to take the first listed IP address ... or if that is
> not possible, at least a random IP address from an RRDNS list.
> 
> I am not sure if this is a urlgrabber issue or whatever resolves the
> URL's name in python, but I don't think it is the desired behavior.

as I think you mentioned on irc - this seems like a lower level python
issue. If you can take a look at python's bug tracker and see if it's
known. I bet it is.

-sv





More information about the Yum-devel mailing list